hadoop_1.1.2.xml 3.4 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048380493805038051380523805338054380553805638057380583805938060380613806238063380643806538066380673806838069380703807138072380733807438075380763807738078380793808038081380823808338084380853808638087380883808938090380913809238093380943809538096380973809838099381003810138102381033810438105381063810738108381093811038111381123811338114381153811638117381183811938120381213812238123381243812538126381273812838129381303813138132381333813438135381363813738138381393814038141381423814338144381453814638147381483814938150381513815238153381543815538156381573815838159381603816138162381633816438165381663816738168381693817038171381723817338174381753817638177381783817938180381813818238183381843818538186381873818838189381903819138192381933819438195381963819738198381993820038201382023820338204382053820638207382083820938210382113821238213382143821538216382173821838219382203822138222382233822438225382263822738228382293823038231382323823338234382353823638237382383823938240382413824238243382443824538246382473824838249382503825138252382533825438255382563825738258382593826038261382623826338264382653826638267382683826938270382713827238273382743827538276382773827838279382803828138282382833828438285382863828738288382893829038291382923829338294382953829638297382983829938300383013830238303383043830538306383073830838309383103831138312383133831438315383163831738318383193832038321383223832338324383253832638327383283832938330383313833238333383343833538336383373833838339383403834138342383433834438345383463834738348383493835038351383523835338354383553835638357383583835938360383613836238363383643836538366383673836838369383703837138372383733837438375383763837738378383793838038381383823838338384383853838638387383883838938390383913839238393383943839538396383973839838399384003840138402384033840438405384063840738408384093841038411384123841338414384153841638417384183841938420384213842238423384243842538426384273842838429384303843138432384333843438435384363843738438384393844038441384423844338444384453844638447384483844938450384513845238453384543845538456384573845838459384603846138462384633846438465384663846738468384693847038471384723847338474384753847638477384783847938480384813848238483384843848538486384873848838489384903849138492384933849438495384963849738498384993850038501385023850338504385053850638507385083850938510385113851238513385143851538516385173851838519385203852138522385233852438525385263852738528385293853038531385323853338534385353853638537385383853938540385413854238543385443854538546385473854838549385503855138552385533855438555385563855738558385593856038561385623856338564385653856638567385683856938570385713857238573385743857538576385773857838579385803858138582385833858438585385863858738588385893859038591385923859338594385953859638597385983859938600386013860238603386043860538606386073860838609386103861138612386133861438615386163861738618386193862038621386223862338624386253862638627386283862938630386313863238633386343863538636386373863838639386403864138642386433864438645386463864738648386493865038651386523865338654386553865638657386583865938660386613866238663386643866538666386673866838669386703867138672386733867438675386763867738678386793868038681386823868338684386853868638687386883868938690386913869238693386943869538696386973869838699387003870138702387033870438705387063870738708387093871038711387123871338714387153871638717387183871938720387213872238723387243872538726387273872838729387303873138732387333873438735387363873738738387393874038741387423874338744387453874638747387483874938750387513875238753387543875538756387573875838759387603876138762387633876438765387663876738768387693877038771387723877338774387753877638777387783877938780387813878238783387843878538786387873878838789387903879138792387933879438795387963879738798387993880038801388023880338804388053880638807388083880938810388113881238813388143881538816388173881838819388203882138822388233882438825388263882738828388293883038831388323883338834388353883638837388383883938840388413884238843388443884538846388473884838849388503885138852388533885438855388563885738858388593886038861388623886338864388653886638867388683886938870388713887238873388743887538876388773887838879388803888138882388833888438885388863888738888388893889038891388923889338894388953889638897388983889938900389013890238903389043890538906389073890838909389103891138912389133891438915389163891738918389193892038921389223892338924389253892638927389283892938930389313893238933389343893538936389373893838939389403894138942389433894438945389463894738948389493895038951389523895338954389553895638957389583895938960389613896238963389643896538966389673896838969389703897138972389733897438975389763897738978389793898038981389823898338984389853898638987389883898938990389913899238993389943899538996389973899838999390003900139002390033900439005390063900739008390093901039011390123901339014390153901639017390183901939020390213902239023390243902539026390273902839029390303903139032390333903439035390363903739038390393904039041390423904339044390453904639047390483904939050390513905239053390543905539056390573905839059390603906139062390633906439065390663906739068390693907039071390723907339074390753907639077390783907939080390813908239083390843908539086390873908839089390903909139092390933909439095390963909739098390993910039101391023910339104391053910639107391083910939110391113911239113391143911539116391173911839119391203912139122391233912439125391263912739128391293913039131391323913339134391353913639137391383913939140391413914239143391443914539146391473914839149391503915139152391533915439155391563915739158391593916039161391623916339164391653916639167391683916939170391713917239173391743917539176391773917839179391803918139182391833918439185391863918739188391893919039191391923919339194391953919639197391983919939200392013920239203392043920539206392073920839209392103921139212392133921439215392163921739218392193922039221392223922339224392253922639227392283922939230392313923239233392343923539236392373923839239392403924139242392433924439245392463924739248392493925039251392523925339254392553925639257392583925939260392613926239263392643926539266392673926839269392703927139272392733927439275392763927739278392793928039281392823928339284392853928639287392883928939290392913929239293392943929539296392973929839299393003930139302393033930439305393063930739308393093931039311393123931339314393153931639317393183931939320393213932239323393243932539326393273932839329393303933139332393333933439335393363933739338393393934039341393423934339344393453934639347393483934939350393513935239353393543935539356393573935839359393603936139362393633936439365393663936739368393693937039371393723937339374393753937639377393783937939380393813938239383393843938539386393873938839389393903939139392393933939439395393963939739398393993940039401394023940339404394053940639407394083940939410394113941239413394143941539416394173941839419394203942139422394233942439425394263942739428394293943039431394323943339434394353943639437394383943939440394413944239443394443944539446394473944839449394503945139452394533945439455394563945739458394593946039461394623946339464394653946639467394683946939470394713947239473394743947539476394773947839479394803948139482394833948439485394863948739488394893949039491394923949339494394953949639497394983949939500395013950239503395043950539506395073950839509395103951139512395133951439515395163951739518395193952039521395223952339524395253952639527395283952939530395313953239533395343953539536395373953839539395403954139542395433954439545395463954739548395493955039551395523955339554395553955639557395583955939560395613956239563395643956539566395673956839569395703957139572395733957439575395763957739578395793958039581395823958339584395853958639587395883958939590395913959239593395943959539596395973959839599396003960139602396033960439605396063960739608396093961039611396123961339614396153961639617396183961939620396213962239623396243962539626396273962839629396303963139632396333963439635396363963739638396393964039641396423964339644396453964639647396483964939650396513965239653396543965539656396573965839659396603966139662396633966439665396663966739668396693967039671396723967339674396753967639677396783967939680396813968239683396843968539686396873968839689396903969139692396933969439695396963969739698396993970039701397023970339704397053970639707397083970939710397113971239713397143971539716397173971839719397203972139722397233972439725397263972739728397293973039731397323973339734397353973639737397383973939740397413974239743397443974539746397473974839749397503975139752397533975439755397563975739758397593976039761397623976339764397653976639767397683976939770397713977239773397743977539776397773977839779397803978139782397833978439785397863978739788397893979039791397923979339794397953979639797397983979939800398013980239803398043980539806398073980839809398103981139812398133981439815398163981739818398193982039821398223982339824398253982639827398283982939830398313983239833398343983539836398373983839839398403984139842398433984439845398463984739848398493985039851398523985339854398553985639857398583985939860398613986239863398643986539866398673986839869398703987139872398733987439875398763987739878398793988039881398823988339884398853988639887398883988939890398913989239893398943989539896398973989839899399003990139902399033990439905399063990739908399093991039911399123991339914399153991639917399183991939920399213992239923399243992539926399273992839929399303993139932399333993439935399363993739938399393994039941399423994339944399453994639947399483994939950399513995239953399543995539956399573995839959399603996139962399633996439965399663996739968399693997039971399723997339974399753997639977399783997939980399813998239983399843998539986399873998839989399903999139992399933999439995399963999739998399994000040001400024000340004400054000640007400084000940010400114001240013400144001540016400174001840019400204002140022400234002440025400264002740028400294003040031400324003340034400354003640037400384003940040400414004240043400444004540046400474004840049400504005140052400534005440055400564005740058400594006040061400624006340064400654006640067400684006940070400714007240073400744007540076400774007840079400804008140082400834008440085400864008740088400894009040091400924009340094400954009640097400984009940100401014010240103401044010540106401074010840109401104011140112401134011440115401164011740118401194012040121401224012340124401254012640127401284012940130401314013240133401344013540136401374013840139401404014140142401434014440145401464014740148401494015040151401524015340154401554015640157401584015940160401614016240163401644016540166401674016840169401704017140172401734017440175401764017740178401794018040181401824018340184401854018640187401884018940190401914019240193401944019540196401974019840199402004020140202402034020440205402064020740208402094021040211402124021340214402154021640217402184021940220402214022240223402244022540226402274022840229402304023140232402334023440235402364023740238402394024040241402424024340244402454024640247402484024940250402514025240253402544025540256402574025840259402604026140262402634026440265402664026740268402694027040271402724027340274402754027640277402784027940280402814028240283402844028540286402874028840289402904029140292402934029440295402964029740298402994030040301403024030340304403054030640307403084030940310403114031240313403144031540316403174031840319403204032140322403234032440325403264032740328403294033040331403324033340334403354033640337403384033940340403414034240343403444034540346403474034840349403504035140352403534035440355403564035740358403594036040361403624036340364403654036640367403684036940370403714037240373403744037540376403774037840379403804038140382403834038440385403864038740388403894039040391403924039340394403954039640397403984039940400404014040240403404044040540406404074040840409404104041140412404134041440415404164041740418404194042040421404224042340424404254042640427404284042940430404314043240433404344043540436404374043840439404404044140442404434044440445404464044740448404494045040451404524045340454404554045640457404584045940460404614046240463404644046540466404674046840469404704047140472404734047440475404764047740478404794048040481404824048340484404854048640487404884048940490404914049240493404944049540496404974049840499405004050140502405034050440505405064050740508405094051040511405124051340514405154051640517405184051940520405214052240523405244052540526405274052840529405304053140532405334053440535405364053740538405394054040541405424054340544405454054640547405484054940550405514055240553405544055540556405574055840559405604056140562405634056440565405664056740568405694057040571405724057340574405754057640577405784057940580405814058240583405844058540586405874058840589405904059140592405934059440595405964059740598405994060040601406024060340604406054060640607406084060940610406114061240613406144061540616406174061840619406204062140622406234062440625406264062740628406294063040631406324063340634406354063640637406384063940640406414064240643406444064540646406474064840649406504065140652406534065440655406564065740658406594066040661406624066340664406654066640667406684066940670406714067240673406744067540676406774067840679406804068140682406834068440685406864068740688406894069040691406924069340694406954069640697406984069940700407014070240703407044070540706407074070840709407104071140712407134071440715407164071740718407194072040721407224072340724407254072640727407284072940730407314073240733407344073540736407374073840739407404074140742407434074440745407464074740748407494075040751407524075340754407554075640757407584075940760407614076240763407644076540766407674076840769407704077140772407734077440775407764077740778407794078040781407824078340784407854078640787407884078940790407914079240793407944079540796407974079840799408004080140802408034080440805408064080740808408094081040811408124081340814408154081640817408184081940820408214082240823408244082540826408274082840829408304083140832408334083440835408364083740838408394084040841408424084340844408454084640847408484084940850408514085240853408544085540856408574085840859408604086140862408634086440865408664086740868408694087040871408724087340874408754087640877408784087940880408814088240883408844088540886408874088840889408904089140892408934089440895408964089740898408994090040901409024090340904409054090640907409084090940910409114091240913409144091540916409174091840919409204092140922409234092440925409264092740928409294093040931409324093340934409354093640937409384093940940409414094240943409444094540946409474094840949409504095140952409534095440955409564095740958409594096040961409624096340964409654096640967409684096940970409714097240973409744097540976409774097840979409804098140982409834098440985409864098740988409894099040991409924099340994409954099640997409984099941000410014100241003410044100541006410074100841009410104101141012410134101441015410164101741018410194102041021410224102341024410254102641027410284102941030410314103241033410344103541036410374103841039410404104141042410434104441045410464104741048410494105041051410524105341054410554105641057410584105941060410614106241063410644106541066410674106841069410704107141072410734107441075410764107741078410794108041081410824108341084410854108641087410884108941090410914109241093410944109541096410974109841099411004110141102411034110441105411064110741108411094111041111411124111341114411154111641117411184111941120411214112241123411244112541126411274112841129411304113141132411334113441135411364113741138411394114041141411424114341144411454114641147411484114941150411514115241153411544115541156411574115841159411604116141162411634116441165411664116741168411694117041171411724117341174411754117641177411784117941180411814118241183411844118541186411874118841189411904119141192411934119441195411964119741198411994120041201412024120341204412054120641207412084120941210412114121241213412144121541216412174121841219412204122141222412234122441225412264122741228412294123041231412324123341234412354123641237412384123941240412414124241243412444124541246412474124841249412504125141252412534125441255412564125741258412594126041261412624126341264412654126641267412684126941270412714127241273412744127541276412774127841279412804128141282412834128441285412864128741288412894129041291412924129341294412954129641297412984129941300413014130241303413044130541306413074130841309413104131141312413134131441315413164131741318413194132041321413224132341324413254132641327413284132941330413314133241333413344133541336413374133841339413404134141342413434134441345413464134741348413494135041351413524135341354413554135641357413584135941360413614136241363413644136541366413674136841369413704137141372413734137441375413764137741378413794138041381413824138341384413854138641387413884138941390413914139241393413944139541396413974139841399414004140141402414034140441405414064140741408414094141041411414124141341414414154141641417414184141941420414214142241423414244142541426414274142841429414304143141432414334143441435414364143741438414394144041441414424144341444414454144641447414484144941450414514145241453414544145541456414574145841459414604146141462414634146441465414664146741468414694147041471414724147341474414754147641477414784147941480414814148241483414844148541486414874148841489414904149141492414934149441495414964149741498414994150041501415024150341504415054150641507415084150941510415114151241513415144151541516415174151841519415204152141522415234152441525415264152741528415294153041531415324153341534415354153641537415384153941540415414154241543415444154541546415474154841549415504155141552415534155441555415564155741558415594156041561415624156341564415654156641567415684156941570415714157241573415744157541576415774157841579415804158141582415834158441585415864158741588415894159041591415924159341594415954159641597415984159941600416014160241603416044160541606416074160841609416104161141612416134161441615416164161741618416194162041621416224162341624416254162641627416284162941630416314163241633416344163541636416374163841639416404164141642416434164441645416464164741648416494165041651416524165341654416554165641657416584165941660416614166241663416644166541666416674166841669416704167141672416734167441675416764167741678416794168041681416824168341684416854168641687416884168941690416914169241693416944169541696416974169841699417004170141702417034170441705417064170741708417094171041711417124171341714417154171641717417184171941720417214172241723417244172541726417274172841729417304173141732417334173441735417364173741738417394174041741417424174341744417454174641747417484174941750417514175241753417544175541756417574175841759417604176141762417634176441765417664176741768417694177041771417724177341774417754177641777417784177941780417814178241783417844178541786417874178841789417904179141792417934179441795417964179741798417994180041801418024180341804418054180641807418084180941810418114181241813418144181541816418174181841819418204182141822418234182441825418264182741828418294183041831418324183341834418354183641837418384183941840418414184241843418444184541846418474184841849418504185141852418534185441855418564185741858418594186041861418624186341864418654186641867418684186941870418714187241873418744187541876418774187841879418804188141882418834188441885418864188741888418894189041891418924189341894418954189641897418984189941900419014190241903419044190541906419074190841909419104191141912419134191441915419164191741918419194192041921419224192341924419254192641927419284192941930419314193241933419344193541936419374193841939419404194141942419434194441945419464194741948419494195041951419524195341954419554195641957419584195941960419614196241963419644196541966419674196841969419704197141972419734197441975419764197741978419794198041981419824198341984419854198641987419884198941990419914199241993419944199541996419974199841999420004200142002420034200442005420064200742008420094201042011420124201342014420154201642017420184201942020420214202242023420244202542026420274202842029420304203142032420334203442035420364203742038420394204042041420424204342044420454204642047420484204942050420514205242053420544205542056420574205842059420604206142062420634206442065420664206742068420694207042071420724207342074420754207642077420784207942080420814208242083420844208542086420874208842089420904209142092420934209442095420964209742098420994210042101421024210342104421054210642107421084210942110421114211242113421144211542116421174211842119421204212142122421234212442125421264212742128421294213042131421324213342134421354213642137421384213942140421414214242143421444214542146421474214842149421504215142152421534215442155421564215742158421594216042161421624216342164421654216642167421684216942170421714217242173421744217542176421774217842179421804218142182421834218442185421864218742188421894219042191421924219342194421954219642197421984219942200422014220242203422044220542206422074220842209422104221142212422134221442215422164221742218422194222042221422224222342224422254222642227422284222942230422314223242233422344223542236422374223842239422404224142242422434224442245422464224742248422494225042251422524225342254422554225642257422584225942260422614226242263422644226542266422674226842269422704227142272422734227442275422764227742278422794228042281422824228342284422854228642287422884228942290422914229242293422944229542296422974229842299423004230142302423034230442305423064230742308423094231042311423124231342314423154231642317423184231942320423214232242323423244232542326423274232842329423304233142332423334233442335423364233742338423394234042341423424234342344423454234642347423484234942350423514235242353423544235542356423574235842359423604236142362423634236442365423664236742368423694237042371423724237342374423754237642377423784237942380423814238242383423844238542386423874238842389423904239142392423934239442395423964239742398423994240042401424024240342404424054240642407424084240942410424114241242413424144241542416424174241842419424204242142422424234242442425424264242742428424294243042431424324243342434424354243642437424384243942440424414244242443424444244542446424474244842449424504245142452424534245442455424564245742458424594246042461424624246342464424654246642467424684246942470424714247242473424744247542476424774247842479424804248142482424834248442485424864248742488424894249042491424924249342494424954249642497424984249942500425014250242503425044250542506425074250842509425104251142512425134251442515425164251742518425194252042521425224252342524425254252642527425284252942530425314253242533425344253542536425374253842539425404254142542425434254442545425464254742548425494255042551425524255342554425554255642557425584255942560425614256242563425644256542566425674256842569425704257142572425734257442575425764257742578425794258042581425824258342584425854258642587425884258942590425914259242593425944259542596425974259842599426004260142602426034260442605426064260742608426094261042611426124261342614426154261642617426184261942620426214262242623426244262542626426274262842629426304263142632426334263442635426364263742638426394264042641426424264342644426454264642647426484264942650426514265242653426544265542656426574265842659426604266142662426634266442665426664266742668426694267042671426724267342674426754267642677426784267942680426814268242683426844268542686426874268842689426904269142692426934269442695426964269742698426994270042701427024270342704427054270642707427084270942710427114271242713427144271542716427174271842719427204272142722427234272442725427264272742728427294273042731427324273342734427354273642737427384273942740427414274242743427444274542746427474274842749427504275142752427534275442755427564275742758427594276042761427624276342764427654276642767427684276942770427714277242773427744277542776427774277842779427804278142782427834278442785427864278742788427894279042791427924279342794427954279642797427984279942800428014280242803428044280542806428074280842809428104281142812428134281442815428164281742818428194282042821428224282342824428254282642827428284282942830428314283242833428344283542836428374283842839428404284142842428434284442845428464284742848428494285042851428524285342854428554285642857428584285942860428614286242863428644286542866428674286842869428704287142872428734287442875428764287742878428794288042881428824288342884428854288642887428884288942890428914289242893428944289542896428974289842899429004290142902429034290442905429064290742908429094291042911429124291342914429154291642917429184291942920429214292242923429244292542926429274292842929429304293142932429334293442935429364293742938429394294042941429424294342944429454294642947429484294942950429514295242953429544295542956429574295842959429604296142962429634296442965429664296742968429694297042971429724297342974429754297642977429784297942980429814298242983429844298542986429874298842989429904299142992429934299442995429964299742998429994300043001430024300343004430054300643007430084300943010430114301243013430144301543016430174301843019430204302143022430234302443025430264302743028430294303043031430324303343034430354303643037430384303943040430414304243043430444304543046430474304843049430504305143052430534305443055430564305743058430594306043061430624306343064430654306643067430684306943070430714307243073430744307543076430774307843079430804308143082430834308443085430864308743088430894309043091430924309343094430954309643097430984309943100431014310243103431044310543106431074310843109431104311143112431134311443115431164311743118431194312043121431224312343124431254312643127431284312943130431314313243133431344313543136431374313843139431404314143142431434314443145431464314743148431494315043151431524315343154431554315643157431584315943160431614316243163431644316543166431674316843169431704317143172431734317443175431764317743178431794318043181431824318343184431854318643187431884318943190431914319243193431944319543196431974319843199432004320143202432034320443205432064320743208432094321043211432124321343214432154321643217432184321943220432214322243223432244322543226432274322843229432304323143232432334323443235432364323743238432394324043241432424324343244432454324643247432484324943250432514325243253432544325543256432574325843259432604326143262432634326443265432664326743268432694327043271432724327343274432754327643277432784327943280432814328243283432844328543286432874328843289432904329143292432934329443295432964329743298432994330043301433024330343304433054330643307433084330943310433114331243313433144331543316433174331843319433204332143322433234332443325433264332743328433294333043331433324333343334433354333643337433384333943340433414334243343433444334543346433474334843349433504335143352433534335443355433564335743358433594336043361433624336343364433654336643367433684336943370433714337243373433744337543376433774337843379433804338143382433834338443385433864338743388433894339043391433924339343394433954339643397433984339943400434014340243403434044340543406434074340843409434104341143412434134341443415434164341743418434194342043421434224342343424434254342643427434284342943430434314343243433434344343543436434374343843439434404344143442434434344443445434464344743448434494345043451434524345343454434554345643457434584345943460434614346243463434644346543466434674346843469434704347143472434734347443475434764347743478434794348043481434824348343484434854348643487434884348943490434914349243493434944349543496434974349843499435004350143502435034350443505435064350743508435094351043511435124351343514435154351643517435184351943520435214352243523435244352543526435274352843529435304353143532435334353443535435364353743538435394354043541435424354343544435454354643547435484354943550435514355243553435544355543556435574355843559435604356143562435634356443565435664356743568435694357043571435724357343574435754357643577435784357943580435814358243583435844358543586435874358843589435904359143592435934359443595435964359743598435994360043601436024360343604436054360643607436084360943610436114361243613436144361543616436174361843619436204362143622436234362443625436264362743628436294363043631436324363343634436354363643637436384363943640436414364243643436444364543646436474364843649436504365143652436534365443655436564365743658436594366043661436624366343664436654366643667436684366943670436714367243673436744367543676436774367843679436804368143682436834368443685436864368743688436894369043691436924369343694436954369643697436984369943700437014370243703437044370543706437074370843709437104371143712437134371443715437164371743718437194372043721437224372343724437254372643727437284372943730437314373243733437344373543736437374373843739437404374143742437434374443745437464374743748437494375043751437524375343754437554375643757437584375943760437614376243763437644376543766437674376843769437704377143772437734377443775437764377743778437794378043781437824378343784437854378643787437884378943790437914379243793437944379543796437974379843799438004380143802438034380443805438064380743808438094381043811438124381343814438154381643817438184381943820438214382243823438244382543826438274382843829438304383143832438334383443835438364383743838438394384043841438424384343844438454384643847438484384943850438514385243853438544385543856438574385843859438604386143862438634386443865438664386743868438694387043871438724387343874438754387643877438784387943880438814388243883438844388543886438874388843889438904389143892438934389443895438964389743898438994390043901439024390343904439054390643907439084390943910439114391243913439144391543916439174391843919439204392143922439234392443925439264392743928439294393043931439324393343934439354393643937439384393943940439414394243943439444394543946439474394843949439504395143952439534395443955439564395743958439594396043961439624396343964439654396643967439684396943970439714397243973439744397543976439774397843979439804398143982439834398443985439864398743988439894399043991439924399343994439954399643997439984399944000440014400244003440044400544006440074400844009440104401144012440134401444015440164401744018440194402044021440224402344024440254402644027440284402944030440314403244033440344403544036440374403844039440404404144042440434404444045440464404744048440494405044051440524405344054440554405644057440584405944060440614406244063440644406544066440674406844069440704407144072440734407444075440764407744078440794408044081440824408344084440854408644087440884408944090440914409244093440944409544096440974409844099441004410144102441034410444105441064410744108441094411044111441124411344114441154411644117441184411944120441214412244123441244412544126441274412844129441304413144132441334413444135441364413744138441394414044141441424414344144441454414644147441484414944150441514415244153441544415544156441574415844159441604416144162441634416444165441664416744168441694417044171441724417344174441754417644177441784417944180441814418244183441844418544186441874418844189441904419144192441934419444195441964419744198441994420044201442024420344204442054420644207442084420944210442114421244213442144421544216442174421844219442204422144222442234422444225442264422744228442294423044231442324423344234442354423644237442384423944240442414424244243442444424544246442474424844249442504425144252442534425444255442564425744258442594426044261442624426344264442654426644267442684426944270442714427244273442744427544276442774427844279442804428144282442834428444285442864428744288442894429044291442924429344294442954429644297442984429944300443014430244303443044430544306443074430844309443104431144312443134431444315443164431744318443194432044321443224432344324443254432644327443284432944330443314433244333443344433544336443374433844339443404434144342443434434444345443464434744348443494435044351443524435344354443554435644357443584435944360443614436244363443644436544366443674436844369443704437144372443734437444375443764437744378443794438044381443824438344384443854438644387443884438944390443914439244393443944439544396443974439844399444004440144402444034440444405444064440744408444094441044411444124441344414444154441644417444184441944420444214442244423444244442544426444274442844429444304443144432444334443444435444364443744438444394444044441444424444344444444454444644447444484444944450444514445244453444544445544456444574445844459444604446144462444634446444465444664446744468444694447044471444724447344474444754447644477444784447944480444814448244483444844448544486444874448844489444904449144492444934449444495444964449744498444994450044501445024450344504445054450644507445084450944510445114451244513445144451544516445174451844519445204452144522445234452444525445264452744528445294453044531445324453344534445354453644537445384453944540445414454244543445444454544546445474454844549445504455144552445534455444555445564455744558445594456044561445624456344564445654456644567445684456944570445714457244573445744457544576445774457844579445804458144582445834458444585445864458744588445894459044591445924459344594445954459644597445984459944600446014460244603446044460544606446074460844609446104461144612446134461444615446164461744618446194462044621446224462344624446254462644627446284462944630446314463244633446344463544636446374463844639446404464144642446434464444645446464464744648446494465044651446524465344654446554465644657446584465944660446614466244663446644466544666446674466844669446704467144672446734467444675446764467744678446794468044681446824468344684446854468644687446884468944690446914469244693446944469544696446974469844699447004470144702447034470444705447064470744708447094471044711447124471344714447154471644717447184471944720447214472244723447244472544726447274472844729447304473144732447334473444735447364473744738447394474044741447424474344744447454474644747447484474944750447514475244753447544475544756447574475844759447604476144762447634476444765447664476744768447694477044771447724477344774447754477644777447784477944780447814478244783447844478544786447874478844789447904479144792447934479444795447964479744798447994480044801448024480344804448054480644807448084480944810448114481244813448144481544816448174481844819448204482144822448234482444825448264482744828448294483044831448324483344834448354483644837448384483944840448414484244843448444484544846448474484844849448504485144852448534485444855448564485744858448594486044861448624486344864448654486644867448684486944870448714487244873448744487544876448774487844879448804488144882448834488444885448864488744888448894489044891448924489344894448954489644897448984489944900449014490244903449044490544906449074490844909449104491144912449134491444915449164491744918449194492044921449224492344924449254492644927449284492944930449314493244933449344493544936449374493844939449404494144942449434494444945449464494744948449494495044951449524495344954449554495644957449584495944960449614496244963449644496544966449674496844969449704497144972449734497444975449764497744978449794498044981449824498344984449854498644987449884498944990449914499244993449944499544996449974499844999450004500145002450034500445005450064500745008450094501045011450124501345014450154501645017450184501945020450214502245023450244502545026450274502845029450304503145032450334503445035450364503745038450394504045041450424504345044450454504645047450484504945050450514505245053450544505545056450574505845059450604506145062450634506445065450664506745068450694507045071450724507345074450754507645077450784507945080450814508245083450844508545086450874508845089450904509145092450934509445095450964509745098450994510045101451024510345104451054510645107451084510945110451114511245113451144511545116451174511845119451204512145122451234512445125451264512745128451294513045131451324513345134451354513645137451384513945140451414514245143451444514545146451474514845149451504515145152451534515445155451564515745158451594516045161451624516345164451654516645167451684516945170451714517245173451744517545176451774517845179451804518145182451834518445185451864518745188451894519045191451924519345194451954519645197451984519945200452014520245203452044520545206452074520845209452104521145212452134521445215452164521745218452194522045221452224522345224452254522645227452284522945230452314523245233452344523545236452374523845239452404524145242452434524445245452464524745248452494525045251452524525345254452554525645257452584525945260452614526245263452644526545266452674526845269452704527145272452734527445275452764527745278452794528045281452824528345284452854528645287452884528945290452914529245293452944529545296452974529845299453004530145302453034530445305453064530745308453094531045311453124531345314453154531645317453184531945320453214532245323453244532545326453274532845329453304533145332453334533445335453364533745338453394534045341453424534345344453454534645347453484534945350453514535245353453544535545356453574535845359453604536145362453634536445365453664536745368453694537045371453724537345374453754537645377453784537945380453814538245383453844538545386453874538845389453904539145392453934539445395453964539745398453994540045401454024540345404454054540645407454084540945410454114541245413454144541545416454174541845419454204542145422454234542445425454264542745428454294543045431454324543345434454354543645437454384543945440454414544245443454444544545446454474544845449454504545145452454534545445455454564545745458454594546045461454624546345464454654546645467454684546945470454714547245473454744547545476454774547845479454804548145482454834548445485454864548745488454894549045491454924549345494454954549645497454984549945500455014550245503455044550545506455074550845509455104551145512455134551445515455164551745518455194552045521455224552345524455254552645527455284552945530455314553245533455344553545536455374553845539455404554145542455434554445545455464554745548455494555045551455524555345554455554555645557455584555945560455614556245563455644556545566455674556845569455704557145572455734557445575455764557745578455794558045581455824558345584455854558645587455884558945590455914559245593455944559545596455974559845599456004560145602456034560445605456064560745608456094561045611456124561345614456154561645617456184561945620456214562245623456244562545626456274562845629456304563145632456334563445635456364563745638456394564045641456424564345644456454564645647456484564945650456514565245653456544565545656456574565845659456604566145662456634566445665456664566745668456694567045671456724567345674456754567645677456784567945680456814568245683456844568545686456874568845689456904569145692456934569445695456964569745698456994570045701457024570345704457054570645707457084570945710457114571245713457144571545716457174571845719457204572145722457234572445725457264572745728457294573045731457324573345734457354573645737457384573945740457414574245743457444574545746457474574845749457504575145752457534575445755457564575745758457594576045761457624576345764457654576645767457684576945770457714577245773457744577545776457774577845779457804578145782457834578445785457864578745788457894579045791457924579345794457954579645797457984579945800458014580245803458044580545806458074580845809458104581145812458134581445815458164581745818458194582045821458224582345824458254582645827458284582945830458314583245833458344583545836458374583845839458404584145842458434584445845458464584745848458494585045851458524585345854458554585645857458584585945860458614586245863458644586545866458674586845869458704587145872458734587445875458764587745878458794588045881458824588345884458854588645887458884588945890458914589245893458944589545896458974589845899459004590145902459034590445905459064590745908459094591045911459124591345914459154591645917459184591945920459214592245923459244592545926459274592845929459304593145932459334593445935459364593745938459394594045941459424594345944459454594645947459484594945950459514595245953459544595545956459574595845959459604596145962459634596445965459664596745968459694597045971459724597345974459754597645977459784597945980459814598245983459844598545986459874598845989459904599145992459934599445995459964599745998459994600046001460024600346004460054600646007460084600946010460114601246013460144601546016460174601846019460204602146022460234602446025460264602746028460294603046031460324603346034460354603646037460384603946040460414604246043460444604546046460474604846049460504605146052460534605446055460564605746058460594606046061460624606346064460654606646067460684606946070460714607246073460744607546076460774607846079460804608146082460834608446085460864608746088460894609046091460924609346094460954609646097460984609946100461014610246103461044610546106461074610846109461104611146112461134611446115461164611746118461194612046121461224612346124461254612646127461284612946130461314613246133461344613546136461374613846139461404614146142461434614446145461464614746148461494615046151461524615346154461554615646157461584615946160461614616246163461644616546166461674616846169461704617146172461734617446175461764617746178461794618046181461824618346184461854618646187461884618946190461914619246193461944619546196461974619846199462004620146202462034620446205462064620746208462094621046211462124621346214462154621646217462184621946220462214622246223462244622546226462274622846229462304623146232462334623446235462364623746238462394624046241462424624346244462454624646247462484624946250462514625246253462544625546256462574625846259462604626146262462634626446265462664626746268462694627046271462724627346274462754627646277462784627946280462814628246283462844628546286462874628846289462904629146292462934629446295462964629746298462994630046301463024630346304463054630646307463084630946310463114631246313463144631546316463174631846319463204632146322463234632446325463264632746328463294633046331463324633346334463354633646337463384633946340463414634246343463444634546346463474634846349463504635146352463534635446355463564635746358463594636046361463624636346364463654636646367463684636946370463714637246373463744637546376463774637846379463804638146382463834638446385463864638746388463894639046391463924639346394463954639646397463984639946400464014640246403464044640546406464074640846409464104641146412464134641446415464164641746418464194642046421464224642346424464254642646427464284642946430464314643246433464344643546436464374643846439464404644146442464434644446445464464644746448464494645046451464524645346454464554645646457464584645946460464614646246463464644646546466464674646846469464704647146472464734647446475464764647746478464794648046481464824648346484464854648646487464884648946490464914649246493464944649546496464974649846499465004650146502465034650446505465064650746508465094651046511465124651346514465154651646517465184651946520465214652246523465244652546526465274652846529465304653146532465334653446535465364653746538465394654046541465424654346544465454654646547465484654946550465514655246553465544655546556465574655846559465604656146562465634656446565465664656746568465694657046571465724657346574465754657646577465784657946580465814658246583465844658546586465874658846589465904659146592465934659446595465964659746598465994660046601466024660346604466054660646607466084660946610466114661246613466144661546616466174661846619466204662146622466234662446625466264662746628466294663046631466324663346634466354663646637466384663946640466414664246643466444664546646466474664846649466504665146652466534665446655466564665746658466594666046661466624666346664466654666646667466684666946670466714667246673466744667546676466774667846679466804668146682466834668446685466864668746688466894669046691466924669346694466954669646697466984669946700467014670246703467044670546706467074670846709467104671146712467134671446715467164671746718467194672046721467224672346724467254672646727467284672946730467314673246733467344673546736467374673846739467404674146742467434674446745467464674746748467494675046751467524675346754467554675646757467584675946760467614676246763467644676546766467674676846769467704677146772467734677446775467764677746778467794678046781467824678346784467854678646787467884678946790467914679246793467944679546796467974679846799468004680146802468034680446805468064680746808468094681046811468124681346814468154681646817468184681946820468214682246823468244682546826468274682846829468304683146832468334683446835468364683746838468394684046841468424684346844468454684646847468484684946850468514685246853468544685546856468574685846859468604686146862468634686446865468664686746868468694687046871468724687346874468754687646877468784687946880468814688246883468844688546886468874688846889468904689146892468934689446895468964689746898468994690046901469024690346904469054690646907469084690946910469114691246913469144691546916469174691846919469204692146922469234692446925469264692746928469294693046931469324693346934469354693646937469384693946940469414694246943469444694546946469474694846949469504695146952469534695446955469564695746958469594696046961469624696346964469654696646967469684696946970469714697246973469744697546976469774697846979469804698146982469834698446985469864698746988469894699046991469924699346994469954699646997469984699947000470014700247003470044700547006470074700847009470104701147012470134701447015470164701747018470194702047021470224702347024470254702647027470284702947030470314703247033470344703547036470374703847039470404704147042470434704447045470464704747048470494705047051470524705347054470554705647057470584705947060470614706247063470644706547066470674706847069470704707147072470734707447075470764707747078470794708047081470824708347084470854708647087470884708947090470914709247093470944709547096470974709847099471004710147102471034710447105471064710747108471094711047111471124711347114471154711647117471184711947120471214712247123471244712547126471274712847129471304713147132471334713447135471364713747138471394714047141471424714347144471454714647147471484714947150471514715247153471544715547156471574715847159471604716147162471634716447165471664716747168471694717047171471724717347174471754717647177471784717947180471814718247183471844718547186471874718847189471904719147192471934719447195471964719747198471994720047201472024720347204472054720647207472084720947210472114721247213472144721547216472174721847219472204722147222472234722447225472264722747228472294723047231472324723347234472354723647237472384723947240472414724247243472444724547246472474724847249472504725147252472534725447255472564725747258472594726047261472624726347264472654726647267472684726947270472714727247273472744727547276472774727847279472804728147282472834728447285472864728747288472894729047291472924729347294472954729647297472984729947300473014730247303473044730547306473074730847309473104731147312473134731447315473164731747318473194732047321473224732347324473254732647327473284732947330473314733247333473344733547336473374733847339473404734147342473434734447345473464734747348473494735047351473524735347354473554735647357473584735947360473614736247363473644736547366473674736847369473704737147372473734737447375473764737747378473794738047381473824738347384473854738647387473884738947390473914739247393473944739547396473974739847399474004740147402474034740447405474064740747408474094741047411474124741347414474154741647417474184741947420474214742247423474244742547426474274742847429474304743147432474334743447435474364743747438474394744047441474424744347444474454744647447474484744947450474514745247453474544745547456474574745847459474604746147462474634746447465474664746747468474694747047471474724747347474474754747647477474784747947480474814748247483474844748547486474874748847489474904749147492474934749447495474964749747498474994750047501475024750347504475054750647507475084750947510475114751247513475144751547516475174751847519475204752147522475234752447525475264752747528475294753047531475324753347534475354753647537475384753947540475414754247543475444754547546475474754847549475504755147552475534755447555475564755747558475594756047561475624756347564475654756647567475684756947570475714757247573475744757547576475774757847579475804758147582475834758447585475864758747588475894759047591475924759347594475954759647597475984759947600476014760247603476044760547606476074760847609476104761147612476134761447615476164761747618476194762047621476224762347624476254762647627476284762947630476314763247633476344763547636476374763847639476404764147642476434764447645476464764747648476494765047651476524765347654476554765647657476584765947660476614766247663476644766547666476674766847669476704767147672476734767447675476764767747678476794768047681476824768347684476854768647687476884768947690476914769247693476944769547696476974769847699477004770147702477034770447705477064770747708477094771047711477124771347714477154771647717477184771947720477214772247723477244772547726477274772847729477304773147732477334773447735477364773747738477394774047741477424774347744477454774647747477484774947750477514775247753477544775547756477574775847759477604776147762477634776447765477664776747768477694777047771477724777347774477754777647777477784777947780477814778247783477844778547786477874778847789477904779147792477934779447795477964779747798477994780047801478024780347804478054780647807478084780947810478114781247813478144781547816478174781847819478204782147822478234782447825478264782747828478294783047831478324783347834478354783647837478384783947840478414784247843478444784547846478474784847849478504785147852478534785447855478564785747858478594786047861478624786347864478654786647867478684786947870478714787247873478744787547876478774787847879478804788147882478834788447885478864788747888478894789047891478924789347894478954789647897478984789947900479014790247903479044790547906479074790847909479104791147912479134791447915479164791747918479194792047921479224792347924479254792647927479284792947930479314793247933479344793547936479374793847939479404794147942479434794447945479464794747948479494795047951479524795347954479554795647957479584795947960479614796247963479644796547966479674796847969479704797147972479734797447975479764797747978479794798047981479824798347984479854798647987479884798947990479914799247993479944799547996479974799847999480004800148002480034800448005480064800748008480094801048011480124801348014480154801648017480184801948020480214802248023480244802548026480274802848029480304803148032480334803448035480364803748038480394804048041480424804348044480454804648047480484804948050480514805248053480544805548056480574805848059480604806148062480634806448065480664806748068480694807048071480724807348074480754807648077480784807948080480814808248083480844808548086480874808848089480904809148092480934809448095480964809748098480994810048101481024810348104481054810648107481084810948110481114811248113481144811548116481174811848119481204812148122481234812448125481264812748128481294813048131481324813348134481354813648137481384813948140481414814248143481444814548146481474814848149481504815148152481534815448155481564815748158481594816048161481624816348164481654816648167481684816948170481714817248173481744817548176481774817848179481804818148182481834818448185481864818748188481894819048191481924819348194481954819648197481984819948200482014820248203482044820548206482074820848209482104821148212482134821448215482164821748218482194822048221482224822348224482254822648227482284822948230482314823248233482344823548236482374823848239482404824148242482434824448245482464824748248482494825048251482524825348254482554825648257482584825948260482614826248263482644826548266482674826848269482704827148272482734827448275482764827748278482794828048281482824828348284482854828648287482884828948290482914829248293482944829548296482974829848299483004830148302483034830448305483064830748308483094831048311483124831348314483154831648317483184831948320483214832248323483244832548326483274832848329483304833148332483334833448335483364833748338483394834048341483424834348344483454834648347483484834948350483514835248353483544835548356483574835848359483604836148362483634836448365483664836748368483694837048371483724837348374483754837648377483784837948380483814838248383483844838548386483874838848389483904839148392483934839448395483964839748398483994840048401484024840348404484054840648407484084840948410484114841248413484144841548416484174841848419484204842148422484234842448425484264842748428484294843048431484324843348434484354843648437484384843948440484414844248443484444844548446484474844848449484504845148452484534845448455484564845748458484594846048461484624846348464484654846648467484684846948470484714847248473484744847548476484774847848479484804848148482484834848448485484864848748488484894849048491484924849348494484954849648497484984849948500485014850248503485044850548506485074850848509485104851148512485134851448515485164851748518485194852048521485224852348524485254852648527485284852948530485314853248533485344853548536485374853848539485404854148542485434854448545485464854748548485494855048551485524855348554485554855648557485584855948560485614856248563485644856548566485674856848569485704857148572485734857448575485764857748578485794858048581485824858348584485854858648587485884858948590485914859248593485944859548596485974859848599486004860148602486034860448605486064860748608486094861048611486124861348614486154861648617486184861948620486214862248623486244862548626486274862848629486304863148632486334863448635486364863748638486394864048641486424864348644486454864648647486484864948650486514865248653486544865548656486574865848659486604866148662486634866448665486664866748668486694867048671486724867348674486754867648677486784867948680486814868248683486844868548686486874868848689486904869148692486934869448695486964869748698486994870048701487024870348704487054870648707487084870948710487114871248713487144871548716487174871848719487204872148722487234872448725487264872748728487294873048731487324873348734487354873648737487384873948740487414874248743487444874548746487474874848749487504875148752487534875448755487564875748758487594876048761487624876348764487654876648767487684876948770487714877248773487744877548776487774877848779487804878148782487834878448785487864878748788487894879048791487924879348794487954879648797487984879948800488014880248803488044880548806488074880848809488104881148812488134881448815488164881748818488194882048821488224882348824488254882648827488284882948830488314883248833488344883548836488374883848839488404884148842488434884448845488464884748848488494885048851488524885348854488554885648857488584885948860488614886248863488644886548866488674886848869488704887148872488734887448875488764887748878488794888048881488824888348884488854888648887488884888948890488914889248893488944889548896488974889848899489004890148902489034890448905489064890748908489094891048911489124891348914489154891648917489184891948920489214892248923489244892548926489274892848929489304893148932489334893448935489364893748938489394894048941489424894348944489454894648947489484894948950489514895248953489544895548956489574895848959489604896148962489634896448965489664896748968489694897048971489724897348974489754897648977489784897948980489814898248983489844898548986489874898848989489904899148992489934899448995489964899748998489994900049001490024900349004490054900649007490084900949010490114901249013490144901549016490174901849019490204902149022490234902449025490264902749028490294903049031490324903349034490354903649037490384903949040490414904249043490444904549046490474904849049490504905149052490534905449055490564905749058490594906049061490624906349064490654906649067490684906949070490714907249073490744907549076490774907849079490804908149082490834908449085490864908749088490894909049091490924909349094490954909649097490984909949100491014910249103491044910549106491074910849109491104911149112491134911449115491164911749118491194912049121491224912349124491254912649127491284912949130491314913249133491344913549136491374913849139491404914149142491434914449145491464914749148491494915049151491524915349154491554915649157491584915949160491614916249163491644916549166491674916849169491704917149172491734917449175491764917749178491794918049181491824918349184491854918649187491884918949190491914919249193491944919549196491974919849199492004920149202492034920449205492064920749208492094921049211492124921349214492154921649217492184921949220492214922249223492244922549226492274922849229492304923149232492334923449235492364923749238492394924049241492424924349244492454924649247492484924949250492514925249253492544925549256492574925849259492604926149262492634926449265492664926749268492694927049271492724927349274492754927649277492784927949280492814928249283492844928549286492874928849289492904929149292492934929449295492964929749298492994930049301493024930349304493054930649307493084930949310493114931249313493144931549316493174931849319493204932149322493234932449325493264932749328493294933049331493324933349334493354933649337493384933949340493414934249343493444934549346493474934849349493504935149352493534935449355493564935749358493594936049361493624936349364493654936649367493684936949370493714937249373493744937549376493774937849379493804938149382493834938449385493864938749388493894939049391493924939349394493954939649397493984939949400494014940249403494044940549406494074940849409494104941149412494134941449415494164941749418494194942049421494224942349424494254942649427494284942949430494314943249433494344943549436494374943849439494404944149442494434944449445494464944749448494494945049451494524945349454494554945649457494584945949460494614946249463494644946549466494674946849469494704947149472494734947449475494764947749478494794948049481494824948349484494854948649487494884948949490494914949249493494944949549496494974949849499495004950149502495034950449505495064950749508495094951049511495124951349514495154951649517495184951949520495214952249523495244952549526495274952849529495304953149532495334953449535495364953749538495394954049541495424954349544495454954649547495484954949550495514955249553495544955549556495574955849559495604956149562495634956449565495664956749568495694957049571495724957349574495754957649577495784957949580495814958249583495844958549586495874958849589495904959149592495934959449595495964959749598495994960049601496024960349604496054960649607496084960949610496114961249613496144961549616496174961849619496204962149622496234962449625496264962749628496294963049631496324963349634496354963649637496384963949640496414964249643496444964549646496474964849649496504965149652496534965449655496564965749658496594966049661496624966349664496654966649667496684966949670496714967249673496744967549676496774967849679496804968149682496834968449685496864968749688496894969049691496924969349694496954969649697496984969949700497014970249703497044970549706497074970849709497104971149712497134971449715497164971749718497194972049721497224972349724497254972649727497284972949730497314973249733497344973549736497374973849739497404974149742497434974449745497464974749748497494975049751497524975349754497554975649757497584975949760497614976249763497644976549766497674976849769497704977149772497734977449775497764977749778497794978049781497824978349784497854978649787497884978949790497914979249793497944979549796497974979849799498004980149802498034980449805498064980749808498094981049811498124981349814498154981649817498184981949820498214982249823498244982549826498274982849829498304983149832498334983449835498364983749838498394984049841498424984349844498454984649847498484984949850498514985249853498544985549856498574985849859498604986149862498634986449865498664986749868498694987049871498724987349874498754987649877498784987949880498814988249883498844988549886498874988849889498904989149892498934989449895498964989749898498994990049901499024990349904499054990649907499084990949910499114991249913499144991549916499174991849919499204992149922499234992449925499264992749928499294993049931499324993349934499354993649937499384993949940499414994249943499444994549946499474994849949499504995149952499534995449955499564995749958499594996049961499624996349964499654996649967499684996949970499714997249973499744997549976499774997849979499804998149982499834998449985499864998749988499894999049991499924999349994499954999649997499984999950000500015000250003500045000550006500075000850009500105001150012500135001450015500165001750018500195002050021500225002350024500255002650027500285002950030500315003250033500345003550036500375003850039500405004150042500435004450045500465004750048500495005050051500525005350054500555005650057500585005950060500615006250063500645006550066500675006850069500705007150072500735007450075500765007750078500795008050081500825008350084500855008650087500885008950090500915009250093500945009550096500975009850099501005010150102501035010450105501065010750108501095011050111501125011350114501155011650117501185011950120501215012250123501245012550126501275012850129501305013150132501335013450135501365013750138501395014050141501425014350144501455014650147501485014950150501515015250153501545015550156501575015850159501605016150162501635016450165501665016750168501695017050171501725017350174501755017650177501785017950180501815018250183501845018550186501875018850189501905019150192501935019450195501965019750198501995020050201502025020350204502055020650207502085020950210502115021250213502145021550216502175021850219502205022150222502235022450225502265022750228502295023050231502325023350234502355023650237502385023950240502415024250243502445024550246502475024850249502505025150252502535025450255502565025750258502595026050261502625026350264502655026650267502685026950270502715027250273502745027550276502775027850279502805028150282502835028450285502865028750288502895029050291502925029350294502955029650297502985029950300503015030250303503045030550306503075030850309503105031150312503135031450315503165031750318503195032050321503225032350324503255032650327503285032950330503315033250333503345033550336503375033850339503405034150342503435034450345503465034750348503495035050351503525035350354503555035650357503585035950360503615036250363503645036550366503675036850369503705037150372503735037450375503765037750378503795038050381503825038350384503855038650387503885038950390503915039250393503945039550396503975039850399504005040150402504035040450405504065040750408504095041050411504125041350414504155041650417504185041950420504215042250423504245042550426504275042850429504305043150432504335043450435504365043750438504395044050441504425044350444504455044650447504485044950450504515045250453504545045550456504575045850459504605046150462504635046450465504665046750468504695047050471504725047350474504755047650477504785047950480504815048250483504845048550486504875048850489504905049150492504935049450495504965049750498504995050050501505025050350504505055050650507505085050950510505115051250513505145051550516505175051850519505205052150522505235052450525505265052750528505295053050531505325053350534505355053650537505385053950540505415054250543505445054550546505475054850549505505055150552505535055450555505565055750558505595056050561505625056350564505655056650567505685056950570505715057250573505745057550576505775057850579505805058150582505835058450585505865058750588505895059050591505925059350594505955059650597505985059950600506015060250603506045060550606506075060850609506105061150612506135061450615506165061750618506195062050621506225062350624506255062650627506285062950630506315063250633506345063550636506375063850639506405064150642506435064450645506465064750648506495065050651506525065350654506555065650657506585065950660506615066250663506645066550666506675066850669506705067150672506735067450675506765067750678506795068050681506825068350684506855068650687506885068950690506915069250693506945069550696506975069850699507005070150702507035070450705507065070750708507095071050711507125071350714507155071650717507185071950720507215072250723507245072550726507275072850729507305073150732507335073450735507365073750738507395074050741507425074350744507455074650747507485074950750507515075250753507545075550756507575075850759507605076150762507635076450765507665076750768507695077050771507725077350774507755077650777507785077950780507815078250783507845078550786507875078850789507905079150792507935079450795507965079750798507995080050801508025080350804508055080650807508085080950810508115081250813508145081550816508175081850819508205082150822508235082450825508265082750828508295083050831508325083350834508355083650837508385083950840508415084250843508445084550846508475084850849508505085150852508535085450855508565085750858508595086050861508625086350864508655086650867508685086950870508715087250873508745087550876508775087850879508805088150882508835088450885508865088750888508895089050891508925089350894508955089650897508985089950900509015090250903509045090550906509075090850909509105091150912509135091450915509165091750918509195092050921509225092350924509255092650927509285092950930509315093250933509345093550936509375093850939509405094150942509435094450945509465094750948509495095050951509525095350954509555095650957509585095950960509615096250963509645096550966509675096850969509705097150972509735097450975509765097750978509795098050981509825098350984509855098650987509885098950990509915099250993509945099550996509975099850999510005100151002510035100451005510065100751008510095101051011510125101351014510155101651017510185101951020510215102251023510245102551026510275102851029510305103151032510335103451035510365103751038510395104051041510425104351044510455104651047510485104951050510515105251053510545105551056510575105851059510605106151062510635106451065510665106751068510695107051071510725107351074510755107651077510785107951080510815108251083510845108551086510875108851089510905109151092510935109451095510965109751098510995110051101511025110351104511055110651107511085110951110511115111251113511145111551116511175111851119511205112151122511235112451125511265112751128511295113051131511325113351134511355113651137511385113951140511415114251143511445114551146511475114851149511505115151152511535115451155511565115751158511595116051161511625116351164511655116651167511685116951170511715117251173511745117551176511775117851179511805118151182511835118451185511865118751188511895119051191511925119351194511955119651197511985119951200512015120251203512045120551206512075120851209512105121151212512135121451215512165121751218512195122051221512225122351224512255122651227512285122951230512315123251233512345123551236512375123851239512405124151242512435124451245512465124751248512495125051251512525125351254512555125651257512585125951260512615126251263512645126551266512675126851269512705127151272512735127451275512765127751278512795128051281512825128351284512855128651287512885128951290512915129251293512945129551296512975129851299513005130151302513035130451305513065130751308513095131051311513125131351314513155131651317513185131951320513215132251323513245132551326513275132851329513305133151332513335133451335513365133751338513395134051341513425134351344513455134651347513485134951350513515135251353513545135551356513575135851359513605136151362513635136451365513665136751368513695137051371513725137351374513755137651377513785137951380513815138251383513845138551386513875138851389513905139151392513935139451395513965139751398513995140051401514025140351404514055140651407514085140951410514115141251413514145141551416514175141851419514205142151422514235142451425514265142751428514295143051431514325143351434514355143651437514385143951440514415144251443514445144551446514475144851449514505145151452514535145451455514565145751458514595146051461514625146351464514655146651467514685146951470514715147251473514745147551476514775147851479514805148151482514835148451485514865148751488514895149051491514925149351494514955149651497514985149951500515015150251503515045150551506515075150851509515105151151512515135151451515515165151751518515195152051521515225152351524515255152651527515285152951530515315153251533515345153551536515375153851539515405154151542515435154451545515465154751548515495155051551515525155351554515555155651557515585155951560515615156251563515645156551566515675156851569515705157151572515735157451575515765157751578515795158051581515825158351584515855158651587515885158951590515915159251593515945159551596515975159851599516005160151602516035160451605516065160751608516095161051611516125161351614516155161651617516185161951620516215162251623516245162551626516275162851629516305163151632516335163451635516365163751638516395164051641516425164351644516455164651647516485164951650516515165251653516545165551656516575165851659516605166151662516635166451665516665166751668516695167051671516725167351674516755167651677516785167951680516815168251683516845168551686516875168851689516905169151692516935169451695516965169751698516995170051701517025170351704517055170651707517085170951710517115171251713517145171551716517175171851719517205172151722517235172451725517265172751728517295173051731517325173351734517355173651737517385173951740517415174251743517445174551746517475174851749517505175151752517535175451755517565175751758517595176051761517625176351764517655176651767517685176951770517715177251773517745177551776517775177851779517805178151782517835178451785517865178751788517895179051791517925179351794517955179651797517985179951800518015180251803518045180551806518075180851809518105181151812518135181451815518165181751818518195182051821518225182351824518255182651827518285182951830518315183251833518345183551836518375183851839518405184151842518435184451845518465184751848518495185051851518525185351854518555185651857518585185951860518615186251863518645186551866518675186851869518705187151872518735187451875518765187751878518795188051881518825188351884518855188651887518885188951890518915189251893518945189551896518975189851899519005190151902519035190451905519065190751908519095191051911519125191351914519155191651917519185191951920519215192251923519245192551926519275192851929519305193151932519335193451935519365193751938519395194051941519425194351944519455194651947519485194951950519515195251953519545195551956519575195851959519605196151962519635196451965519665196751968519695197051971519725197351974519755197651977519785197951980519815198251983519845198551986519875198851989519905199151992519935199451995519965199751998519995200052001520025200352004520055200652007520085200952010520115201252013520145201552016520175201852019520205202152022520235202452025520265202752028520295203052031520325203352034520355203652037520385203952040520415204252043520445204552046520475204852049520505205152052520535205452055520565205752058520595206052061520625206352064520655206652067520685206952070520715207252073520745207552076520775207852079520805208152082520835208452085520865208752088520895209052091520925209352094520955209652097520985209952100521015210252103521045210552106521075210852109521105211152112521135211452115521165211752118521195212052121521225212352124521255212652127521285212952130521315213252133521345213552136521375213852139521405214152142521435214452145521465214752148521495215052151521525215352154521555215652157521585215952160521615216252163521645216552166521675216852169521705217152172521735217452175521765217752178521795218052181521825218352184521855218652187521885218952190521915219252193521945219552196521975219852199522005220152202522035220452205522065220752208522095221052211522125221352214522155221652217522185221952220522215222252223522245222552226522275222852229522305223152232522335223452235522365223752238522395224052241522425224352244522455224652247522485224952250522515225252253522545225552256522575225852259522605226152262522635226452265522665226752268522695227052271522725227352274522755227652277522785227952280522815228252283522845228552286522875228852289522905229152292522935229452295522965229752298522995230052301523025230352304523055230652307523085230952310523115231252313523145231552316523175231852319523205232152322523235232452325523265232752328523295233052331523325233352334523355233652337523385233952340523415234252343523445234552346523475234852349523505235152352523535235452355523565235752358523595236052361523625236352364523655236652367523685236952370523715237252373523745237552376523775237852379523805238152382523835238452385523865238752388523895239052391523925239352394523955239652397523985239952400524015240252403524045240552406524075240852409524105241152412524135241452415524165241752418524195242052421524225242352424524255242652427524285242952430524315243252433524345243552436524375243852439524405244152442524435244452445524465244752448524495245052451524525245352454524555245652457524585245952460524615246252463524645246552466524675246852469524705247152472524735247452475524765247752478524795248052481524825248352484524855248652487524885248952490524915249252493524945249552496524975249852499525005250152502525035250452505525065250752508525095251052511525125251352514525155251652517525185251952520525215252252523525245252552526525275252852529525305253152532525335253452535525365253752538525395254052541525425254352544525455254652547525485254952550525515255252553525545255552556525575255852559525605256152562525635256452565525665256752568525695257052571525725257352574525755257652577525785257952580525815258252583525845258552586525875258852589525905259152592525935259452595525965259752598525995260052601526025260352604526055260652607526085260952610526115261252613526145261552616526175261852619526205262152622526235262452625526265262752628526295263052631526325263352634526355263652637526385263952640526415264252643526445264552646526475264852649526505265152652526535265452655526565265752658526595266052661526625266352664526655266652667526685266952670526715267252673526745267552676526775267852679526805268152682526835268452685526865268752688526895269052691526925269352694526955269652697526985269952700527015270252703527045270552706527075270852709527105271152712527135271452715527165271752718527195272052721527225272352724527255272652727527285272952730527315273252733527345273552736527375273852739527405274152742527435274452745527465274752748527495275052751527525275352754527555275652757527585275952760527615276252763527645276552766527675276852769527705277152772527735277452775527765277752778527795278052781527825278352784527855278652787527885278952790527915279252793527945279552796527975279852799528005280152802528035280452805528065280752808528095281052811528125281352814528155281652817528185281952820528215282252823528245282552826528275282852829528305283152832528335283452835528365283752838528395284052841528425284352844528455284652847528485284952850528515285252853528545285552856528575285852859528605286152862528635286452865528665286752868528695287052871528725287352874528755287652877528785287952880528815288252883528845288552886528875288852889528905289152892528935289452895528965289752898528995290052901529025290352904529055290652907529085290952910529115291252913529145291552916529175291852919529205292152922529235292452925529265292752928529295293052931529325293352934529355293652937529385293952940529415294252943529445294552946529475294852949529505295152952529535295452955529565295752958529595296052961529625296352964529655296652967529685296952970529715297252973529745297552976529775297852979529805298152982529835298452985529865298752988529895299052991529925299352994529955299652997529985299953000530015300253003530045300553006530075300853009530105301153012530135301453015530165301753018530195302053021530225302353024530255302653027530285302953030530315303253033530345303553036530375303853039530405304153042530435304453045530465304753048530495305053051530525305353054530555305653057530585305953060530615306253063530645306553066530675306853069530705307153072530735307453075530765307753078530795308053081530825308353084530855308653087530885308953090530915309253093530945309553096530975309853099531005310153102531035310453105531065310753108531095311053111531125311353114531155311653117531185311953120531215312253123531245312553126531275312853129531305313153132531335313453135531365313753138531395314053141531425314353144531455314653147531485314953150531515315253153531545315553156531575315853159531605316153162531635316453165531665316753168531695317053171531725317353174531755317653177531785317953180531815318253183531845318553186531875318853189531905319153192531935319453195531965319753198531995320053201532025320353204532055320653207532085320953210532115321253213532145321553216532175321853219532205322153222532235322453225532265322753228532295323053231532325323353234532355323653237532385323953240532415324253243532445324553246532475324853249532505325153252532535325453255532565325753258532595326053261532625326353264532655326653267532685326953270532715327253273532745327553276532775327853279532805328153282532835328453285532865328753288532895329053291532925329353294532955329653297532985329953300533015330253303533045330553306533075330853309533105331153312533135331453315533165331753318533195332053321533225332353324533255332653327533285332953330533315333253333533345333553336533375333853339533405334153342533435334453345533465334753348533495335053351533525335353354533555335653357533585335953360533615336253363533645336553366533675336853369533705337153372533735337453375533765337753378533795338053381533825338353384533855338653387533885338953390533915339253393533945339553396533975339853399534005340153402534035340453405534065340753408534095341053411534125341353414534155341653417534185341953420534215342253423534245342553426534275342853429534305343153432534335343453435534365343753438534395344053441534425344353444534455344653447534485344953450534515345253453534545345553456534575345853459534605346153462534635346453465534665346753468534695347053471534725347353474534755347653477534785347953480534815348253483534845348553486534875348853489534905349153492534935349453495534965349753498534995350053501535025350353504535055350653507535085350953510535115351253513535145351553516535175351853519535205352153522535235352453525535265352753528535295353053531535325353353534535355353653537535385353953540535415354253543535445354553546535475354853549535505355153552535535355453555535565355753558535595356053561535625356353564535655356653567535685356953570535715357253573535745357553576535775357853579535805358153582535835358453585535865358753588535895359053591535925359353594535955359653597535985359953600536015360253603536045360553606536075360853609536105361153612536135361453615536165361753618536195362053621536225362353624536255362653627536285362953630536315363253633536345363553636536375363853639536405364153642536435364453645536465364753648536495365053651536525365353654536555365653657536585365953660536615366253663536645366553666536675366853669536705367153672536735367453675536765367753678536795368053681536825368353684536855368653687536885368953690536915369253693536945369553696536975369853699537005370153702537035370453705537065370753708537095371053711537125371353714537155371653717537185371953720537215372253723537245372553726537275372853729537305373153732537335373453735537365373753738537395374053741537425374353744537455374653747537485374953750537515375253753537545375553756537575375853759537605376153762537635376453765537665376753768537695377053771537725377353774537755377653777537785377953780537815378253783537845378553786537875378853789537905379153792537935379453795537965379753798537995380053801538025380353804538055380653807538085380953810538115381253813538145381553816538175381853819538205382153822538235382453825538265382753828538295383053831538325383353834538355383653837538385383953840538415384253843538445384553846538475384853849538505385153852538535385453855538565385753858538595386053861538625386353864538655386653867538685386953870538715387253873538745387553876538775387853879538805388153882538835388453885538865388753888538895389053891538925389353894538955389653897538985389953900539015390253903539045390553906539075390853909539105391153912539135391453915539165391753918539195392053921539225392353924539255392653927539285392953930539315393253933539345393553936539375393853939539405394153942539435394453945539465394753948539495395053951539525395353954539555395653957539585395953960539615396253963539645396553966539675396853969539705397153972539735397453975539765397753978539795398053981539825398353984539855398653987539885398953990539915399253993539945399553996539975399853999540005400154002540035400454005540065400754008540095401054011540125401354014540155401654017540185401954020540215402254023540245402554026540275402854029540305403154032540335403454035540365403754038540395404054041540425404354044540455404654047540485404954050540515405254053540545405554056540575405854059540605406154062540635406454065540665406754068540695407054071540725407354074540755407654077540785407954080540815408254083540845408554086540875408854089540905409154092540935409454095540965409754098540995410054101541025410354104541055410654107541085410954110541115411254113541145411554116541175411854119541205412154122541235412454125541265412754128541295413054131541325413354134541355413654137541385413954140541415414254143541445414554146541475414854149541505415154152541535415454155541565415754158541595416054161541625416354164541655416654167541685416954170541715417254173541745417554176541775417854179541805418154182541835418454185541865418754188541895419054191541925419354194541955419654197541985419954200542015420254203542045420554206542075420854209542105421154212542135421454215542165421754218542195422054221542225422354224542255422654227542285422954230542315423254233542345423554236542375423854239542405424154242542435424454245542465424754248542495425054251542525425354254542555425654257542585425954260542615426254263542645426554266542675426854269542705427154272542735427454275542765427754278542795428054281542825428354284542855428654287542885428954290542915429254293542945429554296542975429854299543005430154302543035430454305543065430754308543095431054311543125431354314543155431654317543185431954320543215432254323543245432554326543275432854329543305433154332543335433454335543365433754338543395434054341543425434354344543455434654347543485434954350543515435254353543545435554356543575435854359543605436154362543635436454365543665436754368543695437054371543725437354374543755437654377543785437954380543815438254383543845438554386543875438854389543905439154392543935439454395543965439754398543995440054401544025440354404544055440654407544085440954410544115441254413544145441554416544175441854419544205442154422544235442454425544265442754428544295443054431544325443354434544355443654437544385443954440544415444254443544445444554446544475444854449544505445154452544535445454455544565445754458544595446054461544625446354464544655446654467544685446954470544715447254473544745447554476544775447854479544805448154482544835448454485544865448754488544895449054491544925449354494544955449654497544985449954500545015450254503545045450554506545075450854509545105451154512545135451454515545165451754518545195452054521545225452354524545255452654527545285452954530545315453254533545345453554536545375453854539545405454154542545435454454545545465454754548545495455054551545525455354554545555455654557545585455954560545615456254563545645456554566545675456854569545705457154572545735457454575545765457754578545795458054581545825458354584545855458654587545885458954590545915459254593545945459554596545975459854599546005460154602546035460454605546065460754608546095461054611546125461354614546155461654617546185461954620546215462254623546245462554626546275462854629546305463154632546335463454635546365463754638546395464054641546425464354644546455464654647546485464954650546515465254653546545465554656546575465854659546605466154662546635466454665546665466754668546695467054671546725467354674546755467654677546785467954680546815468254683546845468554686546875468854689546905469154692546935469454695546965469754698546995470054701547025470354704547055470654707547085470954710547115471254713547145471554716547175471854719547205472154722547235472454725547265472754728547295473054731547325473354734547355473654737547385473954740547415474254743547445474554746547475474854749547505475154752547535475454755547565475754758547595476054761547625476354764547655476654767547685476954770547715477254773547745477554776547775477854779547805478154782547835478454785547865478754788547895479054791547925479354794547955479654797547985479954800548015480254803548045480554806548075480854809548105481154812548135481454815548165481754818548195482054821548225482354824548255482654827548285482954830548315483254833548345483554836548375483854839548405484154842548435484454845548465484754848548495485054851548525485354854548555485654857548585485954860548615486254863548645486554866548675486854869548705487154872548735487454875548765487754878548795488054881548825488354884548855488654887548885488954890548915489254893548945489554896548975489854899549005490154902549035490454905549065490754908549095491054911549125491354914549155491654917549185491954920549215492254923549245492554926549275492854929549305493154932549335493454935549365493754938549395494054941549425494354944549455494654947549485494954950549515495254953549545495554956549575495854959549605496154962549635496454965549665496754968549695497054971549725497354974549755497654977549785497954980549815498254983549845498554986549875498854989549905499154992549935499454995549965499754998549995500055001550025500355004550055500655007550085500955010550115501255013550145501555016550175501855019550205502155022550235502455025550265502755028550295503055031550325503355034550355503655037550385503955040550415504255043550445504555046550475504855049550505505155052550535505455055550565505755058550595506055061550625506355064550655506655067550685506955070550715507255073550745507555076550775507855079550805508155082550835508455085550865508755088550895509055091550925509355094550955509655097550985509955100551015510255103551045510555106551075510855109551105511155112551135511455115551165511755118551195512055121551225512355124551255512655127551285512955130551315513255133551345513555136551375513855139551405514155142551435514455145551465514755148551495515055151551525515355154551555515655157551585515955160551615516255163551645516555166551675516855169551705517155172551735517455175551765517755178551795518055181551825518355184551855518655187551885518955190551915519255193551945519555196551975519855199552005520155202552035520455205552065520755208552095521055211552125521355214552155521655217552185521955220552215522255223552245522555226552275522855229552305523155232552335523455235552365523755238552395524055241552425524355244552455524655247552485524955250552515525255253552545525555256552575525855259552605526155262552635526455265552665526755268552695527055271552725527355274552755527655277552785527955280552815528255283552845528555286552875528855289552905529155292552935529455295552965529755298552995530055301553025530355304553055530655307553085530955310553115531255313553145531555316553175531855319553205532155322553235532455325553265532755328553295533055331553325533355334553355533655337553385533955340553415534255343553445534555346553475534855349553505535155352553535535455355553565535755358553595536055361553625536355364553655536655367553685536955370553715537255373553745537555376553775537855379553805538155382553835538455385553865538755388553895539055391553925539355394553955539655397553985539955400554015540255403554045540555406554075540855409554105541155412554135541455415554165541755418554195542055421554225542355424554255542655427554285542955430554315543255433554345543555436554375543855439554405544155442554435544455445554465544755448554495545055451554525545355454554555545655457554585545955460554615546255463554645546555466554675546855469554705547155472554735547455475554765547755478554795548055481554825548355484554855548655487554885548955490554915549255493554945549555496554975549855499555005550155502555035550455505555065550755508555095551055511555125551355514555155551655517555185551955520555215552255523555245552555526555275552855529555305553155532555335553455535555365553755538555395554055541555425554355544555455554655547555485554955550555515555255553555545555555556555575555855559555605556155562555635556455565555665556755568555695557055571555725557355574555755557655577555785557955580555815558255583555845558555586555875558855589555905559155592555935559455595555965559755598555995560055601556025560355604556055560655607556085560955610556115561255613556145561555616556175561855619556205562155622556235562455625556265562755628556295563055631556325563355634556355563655637556385563955640556415564255643556445564555646556475564855649556505565155652556535565455655556565565755658556595566055661556625566355664556655566655667556685566955670556715567255673556745567555676556775567855679556805568155682556835568455685556865568755688556895569055691556925569355694556955569655697556985569955700557015570255703557045570555706557075570855709557105571155712557135571455715557165571755718557195572055721557225572355724557255572655727557285572955730557315573255733557345573555736557375573855739557405574155742557435574455745557465574755748557495575055751557525575355754557555575655757557585575955760557615576255763557645576555766557675576855769557705577155772557735577455775557765577755778557795578055781557825578355784557855578655787557885578955790557915579255793557945579555796557975579855799558005580155802558035580455805558065580755808558095581055811558125581355814558155581655817558185581955820558215582255823558245582555826558275582855829558305583155832558335583455835558365583755838558395584055841558425584355844558455584655847558485584955850558515585255853558545585555856558575585855859558605586155862558635586455865558665586755868558695587055871558725587355874558755587655877558785587955880558815588255883558845588555886558875588855889558905589155892558935589455895558965589755898558995590055901559025590355904559055590655907559085590955910559115591255913559145591555916559175591855919559205592155922559235592455925559265592755928559295593055931559325593355934559355593655937559385593955940559415594255943559445594555946559475594855949559505595155952559535595455955559565595755958559595596055961559625596355964559655596655967559685596955970559715597255973559745597555976559775597855979559805598155982559835598455985559865598755988559895599055991559925599355994559955599655997559985599956000560015600256003560045600556006560075600856009560105601156012560135601456015560165601756018560195602056021560225602356024560255602656027560285602956030560315603256033560345603556036560375603856039560405604156042560435604456045560465604756048560495605056051560525605356054560555605656057560585605956060560615606256063560645606556066560675606856069560705607156072560735607456075560765607756078560795608056081560825608356084560855608656087560885608956090560915609256093560945609556096560975609856099561005610156102561035610456105561065610756108561095611056111561125611356114561155611656117561185611956120561215612256123561245612556126561275612856129561305613156132561335613456135561365613756138561395614056141561425614356144561455614656147561485614956150561515615256153561545615556156561575615856159561605616156162561635616456165561665616756168561695617056171561725617356174561755617656177561785617956180561815618256183561845618556186561875618856189561905619156192561935619456195561965619756198561995620056201562025620356204562055620656207562085620956210562115621256213562145621556216562175621856219562205622156222562235622456225562265622756228562295623056231562325623356234562355623656237562385623956240562415624256243562445624556246562475624856249562505625156252562535625456255562565625756258562595626056261562625626356264562655626656267562685626956270562715627256273562745627556276562775627856279562805628156282562835628456285562865628756288562895629056291562925629356294562955629656297562985629956300563015630256303563045630556306563075630856309563105631156312563135631456315563165631756318563195632056321563225632356324563255632656327563285632956330563315633256333563345633556336563375633856339563405634156342563435634456345563465634756348563495635056351563525635356354563555635656357563585635956360563615636256363563645636556366563675636856369563705637156372563735637456375563765637756378563795638056381563825638356384563855638656387563885638956390563915639256393563945639556396563975639856399564005640156402564035640456405564065640756408564095641056411564125641356414564155641656417564185641956420564215642256423564245642556426564275642856429564305643156432564335643456435564365643756438564395644056441564425644356444564455644656447564485644956450564515645256453564545645556456564575645856459564605646156462564635646456465564665646756468564695647056471564725647356474564755647656477564785647956480564815648256483564845648556486564875648856489564905649156492564935649456495564965649756498564995650056501565025650356504565055650656507565085650956510565115651256513565145651556516565175651856519565205652156522565235652456525565265652756528565295653056531565325653356534565355653656537565385653956540565415654256543565445654556546565475654856549565505655156552565535655456555565565655756558565595656056561565625656356564565655656656567565685656956570565715657256573565745657556576565775657856579565805658156582565835658456585565865658756588565895659056591565925659356594565955659656597565985659956600566015660256603566045660556606566075660856609566105661156612566135661456615566165661756618566195662056621566225662356624566255662656627566285662956630566315663256633566345663556636566375663856639566405664156642566435664456645566465664756648566495665056651566525665356654566555665656657566585665956660566615666256663566645666556666566675666856669566705667156672566735667456675566765667756678566795668056681566825668356684566855668656687566885668956690566915669256693566945669556696566975669856699567005670156702567035670456705567065670756708567095671056711567125671356714567155671656717567185671956720567215672256723567245672556726567275672856729567305673156732567335673456735567365673756738567395674056741567425674356744567455674656747567485674956750567515675256753567545675556756567575675856759567605676156762567635676456765567665676756768567695677056771567725677356774567755677656777567785677956780567815678256783567845678556786567875678856789567905679156792567935679456795567965679756798567995680056801568025680356804568055680656807568085680956810568115681256813568145681556816568175681856819568205682156822568235682456825568265682756828568295683056831568325683356834568355683656837568385683956840568415684256843568445684556846568475684856849568505685156852568535685456855568565685756858568595686056861568625686356864568655686656867568685686956870568715687256873568745687556876568775687856879568805688156882568835688456885568865688756888568895689056891568925689356894568955689656897568985689956900569015690256903569045690556906569075690856909569105691156912569135691456915569165691756918569195692056921569225692356924569255692656927569285692956930569315693256933569345693556936569375693856939569405694156942569435694456945569465694756948569495695056951569525695356954569555695656957569585695956960569615696256963569645696556966569675696856969569705697156972569735697456975569765697756978569795698056981569825698356984569855698656987569885698956990569915699256993569945699556996569975699856999570005700157002570035700457005570065700757008570095701057011570125701357014570155701657017570185701957020570215702257023570245702557026570275702857029570305703157032570335703457035570365703757038570395704057041570425704357044570455704657047570485704957050570515705257053570545705557056570575705857059570605706157062570635706457065570665706757068570695707057071570725707357074570755707657077570785707957080570815708257083570845708557086570875708857089570905709157092570935709457095570965709757098570995710057101571025710357104571055710657107571085710957110571115711257113571145711557116571175711857119571205712157122571235712457125571265712757128571295713057131571325713357134571355713657137571385713957140571415714257143571445714557146571475714857149571505715157152571535715457155571565715757158571595716057161571625716357164571655716657167571685716957170571715717257173571745717557176571775717857179571805718157182571835718457185571865718757188571895719057191571925719357194571955719657197571985719957200572015720257203572045720557206572075720857209572105721157212572135721457215572165721757218572195722057221572225722357224572255722657227572285722957230572315723257233572345723557236572375723857239572405724157242572435724457245572465724757248572495725057251572525725357254572555725657257572585725957260572615726257263572645726557266572675726857269572705727157272572735727457275572765727757278572795728057281572825728357284572855728657287572885728957290572915729257293572945729557296572975729857299573005730157302573035730457305573065730757308573095731057311573125731357314573155731657317573185731957320573215732257323573245732557326573275732857329573305733157332573335733457335573365733757338573395734057341573425734357344573455734657347573485734957350573515735257353573545735557356573575735857359573605736157362573635736457365573665736757368573695737057371573725737357374573755737657377573785737957380573815738257383573845738557386573875738857389573905739157392573935739457395573965739757398573995740057401574025740357404574055740657407574085740957410574115741257413574145741557416574175741857419574205742157422574235742457425574265742757428574295743057431574325743357434574355743657437574385743957440574415744257443574445744557446574475744857449574505745157452574535745457455574565745757458574595746057461574625746357464574655746657467574685746957470574715747257473574745747557476574775747857479574805748157482574835748457485574865748757488574895749057491574925749357494574955749657497574985749957500575015750257503575045750557506575075750857509575105751157512575135751457515575165751757518575195752057521575225752357524575255752657527575285752957530575315753257533575345753557536575375753857539575405754157542575435754457545575465754757548575495755057551575525755357554575555755657557575585755957560575615756257563575645756557566575675756857569575705757157572575735757457575575765757757578575795758057581575825758357584575855758657587575885758957590575915759257593575945759557596575975759857599576005760157602576035760457605576065760757608576095761057611576125761357614576155761657617576185761957620576215762257623576245762557626576275762857629576305763157632576335763457635576365763757638576395764057641576425764357644576455764657647576485764957650576515765257653576545765557656576575765857659576605766157662576635766457665576665766757668576695767057671576725767357674576755767657677576785767957680576815768257683576845768557686576875768857689576905769157692576935769457695576965769757698576995770057701577025770357704577055770657707577085770957710577115771257713577145771557716577175771857719577205772157722577235772457725577265772757728577295773057731577325773357734577355773657737577385773957740577415774257743577445774557746577475774857749577505775157752577535775457755577565775757758577595776057761577625776357764577655776657767577685776957770577715777257773577745777557776577775777857779577805778157782577835778457785577865778757788577895779057791577925779357794577955779657797577985779957800578015780257803578045780557806578075780857809578105781157812578135781457815578165781757818578195782057821578225782357824578255782657827578285782957830578315783257833578345783557836578375783857839578405784157842578435784457845578465784757848578495785057851578525785357854578555785657857578585785957860578615786257863578645786557866578675786857869578705787157872578735787457875578765787757878578795788057881578825788357884578855788657887578885788957890578915789257893578945789557896578975789857899579005790157902579035790457905579065790757908579095791057911579125791357914579155791657917579185791957920579215792257923579245792557926579275792857929579305793157932579335793457935579365793757938579395794057941579425794357944579455794657947579485794957950579515795257953579545795557956579575795857959579605796157962579635796457965579665796757968579695797057971579725797357974579755797657977579785797957980579815798257983579845798557986579875798857989579905799157992579935799457995579965799757998579995800058001580025800358004580055800658007580085800958010580115801258013580145801558016580175801858019580205802158022580235802458025580265802758028580295803058031580325803358034580355803658037580385803958040580415804258043580445804558046580475804858049580505805158052580535805458055580565805758058580595806058061580625806358064580655806658067580685806958070580715807258073580745807558076580775807858079580805808158082580835808458085580865808758088580895809058091580925809358094580955809658097580985809958100581015810258103581045810558106581075810858109581105811158112581135811458115581165811758118581195812058121581225812358124581255812658127581285812958130581315813258133581345813558136581375813858139581405814158142581435814458145581465814758148581495815058151581525815358154581555815658157581585815958160581615816258163581645816558166581675816858169581705817158172581735817458175581765817758178581795818058181581825818358184581855818658187581885818958190581915819258193581945819558196581975819858199582005820158202582035820458205582065820758208582095821058211582125821358214582155821658217582185821958220582215822258223582245822558226582275822858229582305823158232582335823458235582365823758238582395824058241582425824358244582455824658247582485824958250582515825258253582545825558256582575825858259582605826158262582635826458265582665826758268582695827058271582725827358274582755827658277582785827958280582815828258283582845828558286582875828858289582905829158292582935829458295582965829758298582995830058301583025830358304583055830658307583085830958310583115831258313583145831558316583175831858319583205832158322583235832458325583265832758328583295833058331583325833358334583355833658337583385833958340583415834258343583445834558346583475834858349583505835158352583535835458355583565835758358583595836058361583625836358364583655836658367583685836958370583715837258373583745837558376583775837858379583805838158382583835838458385583865838758388583895839058391583925839358394583955839658397583985839958400584015840258403584045840558406584075840858409584105841158412584135841458415584165841758418584195842058421584225842358424584255842658427584285842958430584315843258433584345843558436584375843858439584405844158442584435844458445584465844758448584495845058451584525845358454584555845658457584585845958460584615846258463584645846558466584675846858469584705847158472584735847458475584765847758478584795848058481584825848358484584855848658487584885848958490584915849258493584945849558496584975849858499585005850158502585035850458505585065850758508585095851058511585125851358514585155851658517585185851958520585215852258523585245852558526585275852858529585305853158532585335853458535585365853758538585395854058541585425854358544585455854658547585485854958550585515855258553585545855558556585575855858559585605856158562585635856458565585665856758568585695857058571585725857358574585755857658577585785857958580585815858258583585845858558586585875858858589585905859158592585935859458595585965859758598585995860058601586025860358604586055860658607586085860958610586115861258613586145861558616586175861858619586205862158622586235862458625586265862758628586295863058631586325863358634586355863658637586385863958640586415864258643586445864558646586475864858649586505865158652586535865458655586565865758658586595866058661586625866358664586655866658667586685866958670586715867258673586745867558676586775867858679586805868158682586835868458685586865868758688586895869058691586925869358694586955869658697586985869958700587015870258703587045870558706587075870858709587105871158712587135871458715587165871758718587195872058721587225872358724587255872658727587285872958730587315873258733587345873558736587375873858739587405874158742587435874458745587465874758748587495875058751587525875358754587555875658757587585875958760587615876258763587645876558766587675876858769587705877158772587735877458775587765877758778587795878058781587825878358784587855878658787587885878958790587915879258793587945879558796587975879858799588005880158802588035880458805588065880758808588095881058811588125881358814588155881658817588185881958820588215882258823588245882558826588275882858829588305883158832588335883458835588365883758838588395884058841588425884358844588455884658847588485884958850588515885258853588545885558856588575885858859588605886158862588635886458865588665886758868588695887058871588725887358874588755887658877588785887958880588815888258883588845888558886588875888858889588905889158892588935889458895588965889758898588995890058901589025890358904589055890658907589085890958910589115891258913589145891558916589175891858919589205892158922589235892458925589265892758928589295893058931589325893358934589355893658937589385893958940589415894258943589445894558946589475894858949589505895158952589535895458955589565895758958589595896058961589625896358964589655896658967589685896958970589715897258973589745897558976589775897858979589805898158982589835898458985589865898758988589895899058991589925899358994589955899658997589985899959000590015900259003590045900559006590075900859009590105901159012590135901459015590165901759018590195902059021590225902359024590255902659027590285902959030590315903259033590345903559036590375903859039590405904159042590435904459045590465904759048590495905059051590525905359054590555905659057590585905959060590615906259063590645906559066590675906859069590705907159072590735907459075590765907759078590795908059081590825908359084590855908659087590885908959090590915909259093590945909559096590975909859099591005910159102591035910459105591065910759108591095911059111591125911359114591155911659117591185911959120591215912259123591245912559126591275912859129591305913159132591335913459135591365913759138591395914059141591425914359144591455914659147591485914959150591515915259153591545915559156591575915859159591605916159162591635916459165591665916759168591695917059171591725917359174591755917659177591785917959180591815918259183591845918559186591875918859189591905919159192591935919459195591965919759198591995920059201592025920359204592055920659207592085920959210592115921259213592145921559216592175921859219592205922159222592235922459225592265922759228592295923059231592325923359234592355923659237592385923959240592415924259243592445924559246592475924859249592505925159252592535925459255592565925759258592595926059261592625926359264592655926659267592685926959270592715927259273592745927559276592775927859279592805928159282592835928459285592865928759288592895929059291592925929359294592955929659297592985929959300593015930259303593045930559306593075930859309593105931159312593135931459315593165931759318593195932059321593225932359324593255932659327593285932959330593315933259333593345933559336593375933859339593405934159342593435934459345593465934759348593495935059351593525935359354593555935659357593585935959360593615936259363593645936559366593675936859369593705937159372593735937459375593765937759378593795938059381593825938359384593855938659387593885938959390593915939259393593945939559396593975939859399594005940159402594035940459405594065940759408594095941059411594125941359414594155941659417594185941959420594215942259423594245942559426594275942859429594305943159432594335943459435594365943759438594395944059441594425944359444594455944659447594485944959450594515945259453594545945559456594575945859459594605946159462594635946459465594665946759468594695947059471594725947359474594755947659477594785947959480594815948259483594845948559486594875948859489594905949159492594935949459495594965949759498594995950059501595025950359504595055950659507595085950959510595115951259513595145951559516595175951859519595205952159522595235952459525595265952759528595295953059531595325953359534595355953659537595385953959540595415954259543595445954559546595475954859549595505955159552595535955459555595565955759558595595956059561595625956359564595655956659567595685956959570595715957259573595745957559576595775957859579595805958159582595835958459585595865958759588595895959059591595925959359594595955959659597595985959959600596015960259603596045960559606596075960859609596105961159612596135961459615596165961759618596195962059621596225962359624596255962659627596285962959630596315963259633596345963559636596375963859639596405964159642596435964459645596465964759648596495965059651596525965359654596555965659657596585965959660596615966259663596645966559666596675966859669596705967159672596735967459675596765967759678596795968059681596825968359684596855968659687596885968959690596915969259693596945969559696596975969859699597005970159702597035970459705597065970759708597095971059711597125971359714597155971659717597185971959720597215972259723597245972559726597275972859729597305973159732597335973459735597365973759738597395974059741597425974359744597455974659747597485974959750597515975259753597545975559756597575975859759597605976159762597635976459765597665976759768597695977059771597725977359774597755977659777597785977959780597815978259783597845978559786597875978859789597905979159792597935979459795597965979759798597995980059801598025980359804598055980659807598085980959810598115981259813598145981559816598175981859819598205982159822598235982459825598265982759828598295983059831598325983359834598355983659837598385983959840598415984259843598445984559846598475984859849598505985159852598535985459855598565985759858598595986059861598625986359864598655986659867598685986959870598715987259873598745987559876598775987859879598805988159882598835988459885598865988759888598895989059891598925989359894598955989659897598985989959900599015990259903599045990559906599075990859909599105991159912599135991459915599165991759918599195992059921599225992359924599255992659927599285992959930599315993259933599345993559936599375993859939599405994159942599435994459945599465994759948599495995059951599525995359954599555995659957599585995959960599615996259963599645996559966599675996859969599705997159972599735997459975599765997759978599795998059981599825998359984599855998659987599885998959990599915999259993599945999559996599975999859999600006000160002600036000460005600066000760008600096001060011600126001360014600156001660017600186001960020600216002260023600246002560026600276002860029600306003160032600336003460035600366003760038600396004060041600426004360044600456004660047600486004960050600516005260053600546005560056600576005860059600606006160062600636006460065600666006760068600696007060071600726007360074600756007660077600786007960080600816008260083600846008560086600876008860089600906009160092600936009460095600966009760098600996010060101601026010360104601056010660107601086010960110601116011260113601146011560116601176011860119601206012160122601236012460125601266012760128601296013060131601326013360134601356013660137601386013960140601416014260143601446014560146601476014860149601506015160152601536015460155601566015760158601596016060161601626016360164601656016660167601686016960170601716017260173601746017560176601776017860179601806018160182601836018460185601866018760188601896019060191601926019360194601956019660197601986019960200602016020260203602046020560206602076020860209602106021160212602136021460215602166021760218602196022060221602226022360224602256022660227602286022960230602316023260233602346023560236602376023860239602406024160242602436024460245602466024760248602496025060251602526025360254602556025660257602586025960260602616026260263602646026560266602676026860269602706027160272602736027460275602766027760278602796028060281602826028360284602856028660287602886028960290602916029260293602946029560296602976029860299603006030160302603036030460305603066030760308603096031060311603126031360314603156031660317603186031960320603216032260323603246032560326603276032860329603306033160332603336033460335603366033760338603396034060341603426034360344603456034660347603486034960350603516035260353603546035560356603576035860359603606036160362603636036460365603666036760368603696037060371603726037360374603756037660377603786037960380603816038260383603846038560386603876038860389603906039160392603936039460395603966039760398603996040060401604026040360404604056040660407604086040960410604116041260413604146041560416604176041860419604206042160422604236042460425604266042760428604296043060431604326043360434604356043660437604386043960440604416044260443604446044560446604476044860449604506045160452604536045460455604566045760458604596046060461604626046360464604656046660467604686046960470604716047260473604746047560476604776047860479604806048160482604836048460485604866048760488604896049060491604926049360494604956049660497604986049960500605016050260503605046050560506605076050860509605106051160512605136051460515605166051760518605196052060521605226052360524605256052660527605286052960530605316053260533605346053560536605376053860539605406054160542605436054460545605466054760548605496055060551605526055360554605556055660557605586055960560605616056260563605646056560566605676056860569605706057160572605736057460575605766057760578605796058060581605826058360584605856058660587605886058960590605916059260593605946059560596605976059860599606006060160602606036060460605606066060760608606096061060611606126061360614606156061660617606186061960620606216062260623606246062560626606276062860629606306063160632606336063460635606366063760638606396064060641606426064360644606456064660647606486064960650606516065260653606546065560656606576065860659606606066160662606636066460665606666066760668606696067060671606726067360674606756067660677606786067960680606816068260683606846068560686606876068860689606906069160692606936069460695606966069760698606996070060701607026070360704607056070660707607086070960710607116071260713607146071560716607176071860719607206072160722607236072460725607266072760728607296073060731607326073360734607356073660737607386073960740607416074260743607446074560746607476074860749607506075160752607536075460755607566075760758607596076060761607626076360764607656076660767607686076960770607716077260773607746077560776607776077860779607806078160782607836078460785607866078760788607896079060791607926079360794607956079660797607986079960800608016080260803608046080560806608076080860809608106081160812608136081460815608166081760818608196082060821608226082360824608256082660827608286082960830608316083260833608346083560836608376083860839608406084160842608436084460845608466084760848608496085060851608526085360854608556085660857608586085960860608616086260863608646086560866608676086860869608706087160872608736087460875608766087760878608796088060881608826088360884608856088660887608886088960890608916089260893608946089560896608976089860899609006090160902609036090460905609066090760908609096091060911609126091360914609156091660917609186091960920609216092260923609246092560926609276092860929609306093160932609336093460935609366093760938609396094060941609426094360944609456094660947609486094960950609516095260953609546095560956609576095860959609606096160962609636096460965609666096760968609696097060971609726097360974609756097660977609786097960980609816098260983609846098560986609876098860989609906099160992609936099460995609966099760998609996100061001610026100361004610056100661007610086100961010610116101261013610146101561016610176101861019610206102161022610236102461025610266102761028610296103061031610326103361034610356103661037610386103961040610416104261043610446104561046610476104861049610506105161052610536105461055610566105761058610596106061061610626106361064610656106661067610686106961070610716107261073610746107561076610776107861079610806108161082610836108461085610866108761088610896109061091610926109361094610956109661097610986109961100611016110261103611046110561106611076110861109611106111161112611136111461115611166111761118611196112061121611226112361124611256112661127611286112961130611316113261133611346113561136611376113861139611406114161142611436114461145611466114761148611496115061151611526115361154611556115661157611586115961160611616116261163611646116561166611676116861169611706117161172611736117461175611766117761178611796118061181611826118361184611856118661187611886118961190611916119261193611946119561196611976119861199612006120161202612036120461205612066120761208612096121061211612126121361214612156121661217612186121961220612216122261223612246122561226612276122861229612306123161232612336123461235612366123761238612396124061241612426124361244612456124661247612486124961250612516125261253612546125561256612576125861259612606126161262612636126461265612666126761268612696127061271612726127361274612756127661277612786127961280612816128261283612846128561286612876128861289612906129161292612936129461295612966129761298612996130061301613026130361304613056130661307613086130961310613116131261313613146131561316613176131861319613206132161322613236132461325613266132761328613296133061331613326133361334613356133661337613386133961340613416134261343613446134561346613476134861349613506135161352613536135461355613566135761358613596136061361613626136361364613656136661367613686136961370613716137261373613746137561376613776137861379613806138161382613836138461385613866138761388613896139061391613926139361394613956139661397613986139961400614016140261403614046140561406614076140861409614106141161412614136141461415614166141761418614196142061421614226142361424614256142661427614286142961430614316143261433614346143561436614376143861439614406144161442614436144461445614466144761448614496145061451614526145361454614556145661457614586145961460614616146261463614646146561466614676146861469614706147161472614736147461475614766147761478614796148061481614826148361484614856148661487614886148961490614916149261493614946149561496614976149861499615006150161502615036150461505615066150761508615096151061511615126151361514615156151661517615186151961520615216152261523615246152561526615276152861529615306153161532615336153461535615366153761538615396154061541615426154361544615456154661547615486154961550615516155261553615546155561556615576155861559615606156161562615636156461565615666156761568615696157061571615726157361574615756157661577615786157961580615816158261583615846158561586615876158861589615906159161592615936159461595615966159761598615996160061601616026160361604616056160661607616086160961610616116161261613616146161561616616176161861619616206162161622616236162461625616266162761628616296163061631616326163361634616356163661637616386163961640616416164261643616446164561646616476164861649616506165161652616536165461655616566165761658616596166061661616626166361664616656166661667616686166961670616716167261673616746167561676616776167861679616806168161682616836168461685616866168761688616896169061691616926169361694616956169661697616986169961700617016170261703617046170561706617076170861709617106171161712617136171461715617166171761718617196172061721617226172361724617256172661727617286172961730617316173261733617346173561736617376173861739617406174161742617436174461745617466174761748617496175061751617526175361754617556175661757617586175961760617616176261763617646176561766617676176861769617706177161772617736177461775617766177761778617796178061781617826178361784617856178661787617886178961790617916179261793617946179561796617976179861799618006180161802618036180461805618066180761808618096181061811618126181361814618156181661817618186181961820618216182261823618246182561826618276182861829618306183161832618336183461835618366183761838618396184061841618426184361844618456184661847618486184961850618516185261853618546185561856618576185861859618606186161862618636186461865618666186761868618696187061871618726187361874618756187661877618786187961880618816188261883618846188561886618876188861889618906189161892618936189461895618966189761898618996190061901619026190361904619056190661907619086190961910619116191261913619146191561916619176191861919619206192161922619236192461925619266192761928619296193061931619326193361934619356193661937619386193961940619416194261943619446194561946619476194861949619506195161952619536195461955619566195761958619596196061961619626196361964619656196661967619686196961970619716197261973619746197561976619776197861979619806198161982619836198461985619866198761988619896199061991619926199361994619956199661997619986199962000620016200262003620046200562006620076200862009620106201162012620136201462015620166201762018620196202062021620226202362024620256202662027620286202962030620316203262033620346203562036620376203862039620406204162042620436204462045620466204762048620496205062051620526205362054620556205662057620586205962060620616206262063620646206562066620676206862069620706207162072620736207462075620766207762078620796208062081620826208362084620856208662087620886208962090620916209262093620946209562096620976209862099621006210162102621036210462105621066210762108621096211062111621126211362114621156211662117621186211962120621216212262123621246212562126621276212862129621306213162132621336213462135621366213762138621396214062141621426214362144621456214662147621486214962150621516215262153621546215562156621576215862159621606216162162621636216462165621666216762168621696217062171621726217362174621756217662177621786217962180621816218262183621846218562186621876218862189621906219162192621936219462195621966219762198621996220062201622026220362204622056220662207622086220962210622116221262213622146221562216622176221862219622206222162222622236222462225622266222762228622296223062231622326223362234622356223662237622386223962240622416224262243622446224562246622476224862249622506225162252622536225462255622566225762258622596226062261622626226362264622656226662267622686226962270622716227262273622746227562276622776227862279622806228162282622836228462285622866228762288622896229062291622926229362294622956229662297622986229962300623016230262303623046230562306623076230862309623106231162312623136231462315623166231762318623196232062321623226232362324623256232662327623286232962330623316233262333623346233562336623376233862339623406234162342623436234462345623466234762348623496235062351623526235362354623556235662357623586235962360623616236262363623646236562366623676236862369623706237162372623736237462375623766237762378623796238062381623826238362384623856238662387623886238962390623916239262393623946239562396623976239862399624006240162402624036240462405624066240762408624096241062411624126241362414624156241662417624186241962420624216242262423624246242562426624276242862429624306243162432624336243462435624366243762438624396244062441624426244362444624456244662447624486244962450624516245262453624546245562456624576245862459624606246162462624636246462465624666246762468624696247062471624726247362474624756247662477624786247962480624816248262483624846248562486624876248862489624906249162492624936249462495624966249762498624996250062501625026250362504625056250662507625086250962510625116251262513625146251562516625176251862519625206252162522625236252462525625266252762528625296253062531625326253362534625356253662537625386253962540625416254262543625446254562546625476254862549625506255162552625536255462555625566255762558625596256062561625626256362564625656256662567625686256962570625716257262573625746257562576625776257862579625806258162582625836258462585625866258762588625896259062591625926259362594625956259662597625986259962600626016260262603626046260562606626076260862609626106261162612626136261462615626166261762618626196262062621626226262362624626256262662627626286262962630626316263262633626346263562636626376263862639626406264162642626436264462645626466264762648626496265062651626526265362654626556265662657626586265962660626616266262663626646266562666626676266862669626706267162672626736267462675626766267762678626796268062681626826268362684626856268662687626886268962690626916269262693626946269562696626976269862699627006270162702627036270462705627066270762708627096271062711627126271362714627156271662717627186271962720627216272262723627246272562726627276272862729627306273162732627336273462735627366273762738627396274062741627426274362744627456274662747627486274962750627516275262753627546275562756627576275862759627606276162762627636276462765627666276762768627696277062771627726277362774627756277662777627786277962780627816278262783627846278562786627876278862789627906279162792627936279462795627966279762798627996280062801628026280362804628056280662807628086280962810628116281262813628146281562816628176281862819628206282162822628236282462825628266282762828628296283062831628326283362834628356283662837628386283962840628416284262843628446284562846628476284862849628506285162852628536285462855628566285762858628596286062861628626286362864628656286662867628686286962870628716287262873628746287562876628776287862879628806288162882628836288462885628866288762888628896289062891628926289362894628956289662897628986289962900629016290262903629046290562906629076290862909629106291162912629136291462915629166291762918629196292062921629226292362924629256292662927629286292962930629316293262933629346293562936629376293862939629406294162942629436294462945629466294762948629496295062951629526295362954629556295662957629586295962960629616296262963629646296562966629676296862969629706297162972629736297462975629766297762978629796298062981629826298362984629856298662987629886298962990629916299262993629946299562996629976299862999630006300163002630036300463005630066300763008630096301063011630126301363014630156301663017630186301963020630216302263023630246302563026630276302863029630306303163032630336303463035630366303763038630396304063041630426304363044630456304663047630486304963050630516305263053630546305563056630576305863059630606306163062630636306463065630666306763068630696307063071630726307363074630756307663077630786307963080630816308263083630846308563086630876308863089630906309163092630936309463095630966309763098630996310063101631026310363104631056310663107631086310963110631116311263113631146311563116631176311863119631206312163122631236312463125631266312763128631296313063131631326313363134631356313663137631386313963140631416314263143631446314563146631476314863149631506315163152631536315463155631566315763158631596316063161631626316363164631656316663167631686316963170631716317263173631746317563176631776317863179631806318163182631836318463185631866318763188631896319063191631926319363194631956319663197631986319963200632016320263203632046320563206632076320863209632106321163212632136321463215632166321763218632196322063221632226322363224632256322663227632286322963230632316323263233632346323563236632376323863239632406324163242632436324463245632466324763248632496325063251632526325363254632556325663257632586325963260632616326263263632646326563266632676326863269632706327163272632736327463275632766327763278632796328063281632826328363284632856328663287632886328963290632916329263293632946329563296632976329863299633006330163302633036330463305633066330763308633096331063311633126331363314633156331663317633186331963320633216332263323633246332563326633276332863329633306333163332633336333463335633366333763338633396334063341633426334363344633456334663347633486334963350633516335263353633546335563356633576335863359633606336163362633636336463365633666336763368633696337063371633726337363374633756337663377633786337963380633816338263383633846338563386633876338863389633906339163392633936339463395633966339763398633996340063401634026340363404634056340663407634086340963410634116341263413634146341563416634176341863419634206342163422634236342463425634266342763428634296343063431634326343363434634356343663437634386343963440634416344263443634446344563446634476344863449634506345163452634536345463455634566345763458634596346063461634626346363464634656346663467634686346963470634716347263473634746347563476634776347863479634806348163482634836348463485634866348763488634896349063491634926349363494634956349663497634986349963500635016350263503635046350563506635076350863509635106351163512635136351463515635166351763518635196352063521635226352363524635256352663527635286352963530635316353263533635346353563536635376353863539635406354163542635436354463545635466354763548635496355063551635526355363554635556355663557635586355963560635616356263563635646356563566635676356863569635706357163572635736357463575635766357763578635796358063581635826358363584635856358663587635886358963590635916359263593635946359563596635976359863599636006360163602636036360463605636066360763608636096361063611636126361363614636156361663617636186361963620636216362263623636246362563626636276362863629636306363163632636336363463635636366363763638636396364063641636426364363644636456364663647636486364963650636516365263653636546365563656636576365863659636606366163662636636366463665636666366763668636696367063671636726367363674636756367663677636786367963680636816368263683636846368563686636876368863689636906369163692636936369463695636966369763698636996370063701637026370363704637056370663707637086370963710637116371263713637146371563716637176371863719637206372163722637236372463725637266372763728637296373063731637326373363734637356373663737637386373963740637416374263743637446374563746637476374863749637506375163752637536375463755637566375763758637596376063761637626376363764637656376663767637686376963770637716377263773637746377563776637776377863779637806378163782637836378463785637866378763788637896379063791637926379363794637956379663797637986379963800638016380263803638046380563806638076380863809638106381163812638136381463815638166381763818638196382063821638226382363824638256382663827638286382963830638316383263833638346383563836638376383863839638406384163842638436384463845638466384763848638496385063851638526385363854638556385663857638586385963860638616386263863638646386563866638676386863869638706387163872638736387463875638766387763878638796388063881638826388363884638856388663887638886388963890638916389263893638946389563896638976389863899639006390163902639036390463905639066390763908639096391063911639126391363914639156391663917639186391963920639216392263923639246392563926639276392863929639306393163932639336393463935639366393763938639396394063941639426394363944639456394663947639486394963950639516395263953639546395563956639576395863959639606396163962639636396463965639666396763968639696397063971639726397363974639756397663977639786397963980639816398263983639846398563986639876398863989639906399163992639936399463995639966399763998639996400064001640026400364004640056400664007640086400964010640116401264013640146401564016640176401864019640206402164022640236402464025640266402764028640296403064031640326403364034640356403664037640386403964040640416404264043640446404564046640476404864049640506405164052640536405464055640566405764058640596406064061640626406364064640656406664067640686406964070640716407264073640746407564076640776407864079640806408164082640836408464085640866408764088640896409064091640926409364094640956409664097640986409964100641016410264103641046410564106641076410864109641106411164112641136411464115641166411764118641196412064121641226412364124641256412664127641286412964130641316413264133641346413564136641376413864139641406414164142641436414464145641466414764148641496415064151641526415364154641556415664157641586415964160641616416264163641646416564166641676416864169641706417164172641736417464175641766417764178641796418064181641826418364184641856418664187641886418964190641916419264193641946419564196641976419864199642006420164202642036420464205642066420764208642096421064211642126421364214642156421664217642186421964220642216422264223642246422564226642276422864229642306423164232642336423464235642366423764238642396424064241642426424364244642456424664247642486424964250642516425264253642546425564256642576425864259642606426164262642636426464265642666426764268642696427064271642726427364274642756427664277642786427964280642816428264283642846428564286642876428864289642906429164292642936429464295642966429764298642996430064301643026430364304643056430664307643086430964310643116431264313643146431564316643176431864319643206432164322643236432464325643266432764328643296433064331643326433364334643356433664337643386433964340643416434264343643446434564346643476434864349643506435164352643536435464355643566435764358643596436064361643626436364364643656436664367643686436964370643716437264373643746437564376643776437864379643806438164382643836438464385643866438764388643896439064391643926439364394643956439664397643986439964400644016440264403644046440564406644076440864409644106441164412644136441464415644166441764418644196442064421644226442364424644256442664427644286442964430644316443264433644346443564436644376443864439644406444164442644436444464445644466444764448644496445064451644526445364454644556445664457644586445964460644616446264463644646446564466644676446864469644706447164472644736447464475644766447764478644796448064481644826448364484644856448664487644886448964490644916449264493644946449564496644976449864499645006450164502645036450464505645066450764508645096451064511645126451364514645156451664517645186451964520645216452264523645246452564526645276452864529645306453164532645336453464535645366453764538645396454064541645426454364544645456454664547645486454964550645516455264553645546455564556645576455864559645606456164562645636456464565645666456764568645696457064571645726457364574645756457664577645786457964580645816458264583645846458564586645876458864589645906459164592645936459464595645966459764598645996460064601646026460364604646056460664607646086460964610646116461264613646146461564616646176461864619646206462164622646236462464625646266462764628646296463064631646326463364634646356463664637646386463964640646416464264643646446464564646646476464864649646506465164652646536465464655646566465764658646596466064661646626466364664646656466664667646686466964670646716467264673646746467564676646776467864679646806468164682646836468464685646866468764688646896469064691646926469364694646956469664697646986469964700647016470264703647046470564706647076470864709647106471164712647136471464715647166471764718647196472064721647226472364724647256472664727647286472964730647316473264733647346473564736647376473864739647406474164742647436474464745647466474764748647496475064751647526475364754647556475664757647586475964760647616476264763647646476564766647676476864769647706477164772647736477464775647766477764778647796478064781647826478364784647856478664787647886478964790647916479264793647946479564796647976479864799648006480164802648036480464805648066480764808648096481064811648126481364814648156481664817648186481964820648216482264823648246482564826648276482864829648306483164832648336483464835648366483764838648396484064841648426484364844648456484664847648486484964850648516485264853648546485564856648576485864859648606486164862648636486464865648666486764868648696487064871648726487364874648756487664877648786487964880648816488264883648846488564886648876488864889648906489164892648936489464895648966489764898648996490064901649026490364904649056490664907649086490964910649116491264913649146491564916649176491864919649206492164922649236492464925649266492764928649296493064931649326493364934649356493664937649386493964940649416494264943649446494564946649476494864949649506495164952649536495464955649566495764958649596496064961649626496364964649656496664967649686496964970649716497264973649746497564976649776497864979649806498164982649836498464985649866498764988649896499064991649926499364994649956499664997649986499965000650016500265003650046500565006650076500865009650106501165012650136501465015650166501765018650196502065021650226502365024650256502665027650286502965030650316503265033650346503565036650376503865039650406504165042650436504465045650466504765048650496505065051650526505365054650556505665057650586505965060650616506265063650646506565066650676506865069650706507165072650736507465075650766507765078650796508065081650826508365084650856508665087650886508965090650916509265093650946509565096650976509865099651006510165102651036510465105651066510765108651096511065111651126511365114651156511665117651186511965120651216512265123651246512565126651276512865129651306513165132651336513465135651366513765138651396514065141651426514365144651456514665147651486514965150651516515265153651546515565156651576515865159651606516165162651636516465165651666516765168651696517065171651726517365174651756517665177651786517965180651816518265183651846518565186651876518865189651906519165192651936519465195651966519765198651996520065201652026520365204652056520665207652086520965210652116521265213652146521565216652176521865219652206522165222652236522465225652266522765228652296523065231652326523365234652356523665237652386523965240652416524265243652446524565246652476524865249652506525165252652536525465255652566525765258652596526065261652626526365264652656526665267652686526965270652716527265273652746527565276652776527865279652806528165282652836528465285652866528765288652896529065291652926529365294652956529665297652986529965300653016530265303653046530565306653076530865309653106531165312653136531465315653166531765318653196532065321653226532365324653256532665327653286532965330653316533265333653346533565336653376533865339653406534165342653436534465345653466534765348653496535065351653526535365354653556535665357653586535965360653616536265363653646536565366653676536865369653706537165372653736537465375653766537765378653796538065381653826538365384653856538665387653886538965390653916539265393653946539565396653976539865399654006540165402654036540465405654066540765408654096541065411654126541365414654156541665417654186541965420654216542265423654246542565426654276542865429654306543165432654336543465435654366543765438654396544065441654426544365444654456544665447654486544965450654516545265453654546545565456654576545865459654606546165462654636546465465654666546765468654696547065471654726547365474654756547665477654786547965480654816548265483654846548565486654876548865489654906549165492654936549465495654966549765498654996550065501655026550365504655056550665507655086550965510655116551265513655146551565516655176551865519655206552165522655236552465525655266552765528655296553065531655326553365534655356553665537655386553965540655416554265543655446554565546655476554865549655506555165552655536555465555655566555765558655596556065561655626556365564655656556665567655686556965570655716557265573655746557565576655776557865579655806558165582655836558465585655866558765588655896559065591655926559365594655956559665597655986559965600656016560265603656046560565606656076560865609656106561165612656136561465615656166561765618656196562065621656226562365624656256562665627656286562965630656316563265633656346563565636656376563865639656406564165642656436564465645656466564765648656496565065651656526565365654656556565665657656586565965660656616566265663656646566565666656676566865669656706567165672656736567465675656766567765678656796568065681656826568365684656856568665687656886568965690656916569265693656946569565696656976569865699657006570165702657036570465705657066570765708657096571065711657126571365714657156571665717657186571965720657216572265723657246572565726657276572865729657306573165732657336573465735657366573765738657396574065741657426574365744657456574665747657486574965750657516575265753657546575565756657576575865759657606576165762657636576465765657666576765768657696577065771657726577365774657756577665777657786577965780657816578265783657846578565786657876578865789657906579165792657936579465795657966579765798657996580065801658026580365804658056580665807658086580965810658116581265813658146581565816658176581865819658206582165822658236582465825658266582765828658296583065831658326583365834658356583665837658386583965840658416584265843658446584565846658476584865849658506585165852658536585465855658566585765858658596586065861658626586365864658656586665867658686586965870658716587265873658746587565876658776587865879658806588165882658836588465885658866588765888658896589065891658926589365894658956589665897658986589965900659016590265903659046590565906659076590865909659106591165912659136591465915659166591765918659196592065921659226592365924659256592665927659286592965930659316593265933659346593565936659376593865939659406594165942659436594465945659466594765948659496595065951659526595365954659556595665957659586595965960659616596265963659646596565966659676596865969659706597165972659736597465975659766597765978659796598065981659826598365984659856598665987659886598965990659916599265993659946599565996659976599865999660006600166002660036600466005660066600766008660096601066011660126601366014660156601666017660186601966020660216602266023660246602566026660276602866029660306603166032660336603466035660366603766038660396604066041660426604366044660456604666047660486604966050660516605266053660546605566056660576605866059660606606166062660636606466065660666606766068660696607066071660726607366074660756607666077660786607966080660816608266083660846608566086660876608866089660906609166092660936609466095660966609766098660996610066101661026610366104661056610666107661086610966110661116611266113661146611566116661176611866119661206612166122661236612466125661266612766128661296613066131661326613366134661356613666137661386613966140661416614266143661446614566146661476614866149661506615166152661536615466155661566615766158661596616066161661626616366164661656616666167661686616966170661716617266173661746617566176661776617866179661806618166182661836618466185661866618766188661896619066191661926619366194661956619666197661986619966200662016620266203662046620566206662076620866209662106621166212662136621466215662166621766218662196622066221662226622366224662256622666227662286622966230662316623266233662346623566236662376623866239662406624166242662436624466245662466624766248662496625066251662526625366254662556625666257662586625966260662616626266263662646626566266662676626866269662706627166272662736627466275662766627766278662796628066281662826628366284662856628666287662886628966290662916629266293662946629566296662976629866299663006630166302663036630466305663066630766308663096631066311663126631366314663156631666317663186631966320663216632266323663246632566326663276632866329663306633166332663336633466335663366633766338663396634066341663426634366344663456634666347663486634966350663516635266353663546635566356663576635866359663606636166362663636636466365663666636766368663696637066371663726637366374663756637666377663786637966380663816638266383663846638566386663876638866389663906639166392663936639466395663966639766398663996640066401664026640366404664056640666407664086640966410664116641266413664146641566416664176641866419664206642166422664236642466425664266642766428664296643066431664326643366434664356643666437664386643966440664416644266443664446644566446664476644866449664506645166452664536645466455664566645766458664596646066461664626646366464664656646666467664686646966470664716647266473664746647566476664776647866479664806648166482664836648466485664866648766488664896649066491664926649366494664956649666497664986649966500665016650266503665046650566506665076650866509665106651166512665136651466515665166651766518665196652066521665226652366524665256652666527665286652966530665316653266533665346653566536665376653866539665406654166542665436654466545665466654766548665496655066551665526655366554665556655666557665586655966560665616656266563665646656566566665676656866569665706657166572665736657466575665766657766578665796658066581665826658366584665856658666587665886658966590665916659266593665946659566596665976659866599666006660166602666036660466605666066660766608666096661066611666126661366614666156661666617666186661966620666216662266623666246662566626666276662866629666306663166632666336663466635666366663766638666396664066641666426664366644666456664666647666486664966650666516665266653666546665566656666576665866659666606666166662666636666466665666666666766668666696667066671666726667366674666756667666677666786667966680666816668266683666846668566686666876668866689666906669166692666936669466695666966669766698666996670066701667026670366704667056670666707667086670966710667116671266713667146671566716667176671866719667206672166722667236672466725667266672766728667296673066731667326673366734667356673666737667386673966740667416674266743667446674566746667476674866749667506675166752667536675466755667566675766758667596676066761667626676366764667656676666767667686676966770667716677266773667746677566776667776677866779667806678166782667836678466785667866678766788667896679066791667926679366794667956679666797667986679966800668016680266803668046680566806668076680866809668106681166812668136681466815668166681766818668196682066821668226682366824668256682666827668286682966830668316683266833668346683566836668376683866839668406684166842668436684466845668466684766848668496685066851668526685366854668556685666857668586685966860668616686266863668646686566866668676686866869668706687166872668736687466875668766687766878668796688066881668826688366884668856688666887668886688966890668916689266893668946689566896668976689866899669006690166902669036690466905669066690766908669096691066911669126691366914669156691666917669186691966920669216692266923669246692566926669276692866929669306693166932669336693466935669366693766938669396694066941669426694366944669456694666947669486694966950669516695266953669546695566956669576695866959669606696166962669636696466965669666696766968669696697066971669726697366974669756697666977669786697966980669816698266983669846698566986669876698866989669906699166992669936699466995669966699766998669996700067001670026700367004670056700667007670086700967010670116701267013670146701567016670176701867019670206702167022670236702467025670266702767028670296703067031670326703367034670356703667037670386703967040670416704267043670446704567046670476704867049670506705167052670536705467055670566705767058670596706067061670626706367064670656706667067670686706967070670716707267073670746707567076670776707867079670806708167082670836708467085670866708767088670896709067091670926709367094670956709667097670986709967100671016710267103671046710567106671076710867109671106711167112671136711467115671166711767118671196712067121671226712367124671256712667127671286712967130671316713267133671346713567136671376713867139671406714167142671436714467145671466714767148671496715067151671526715367154671556715667157671586715967160671616716267163671646716567166671676716867169671706717167172671736717467175671766717767178671796718067181671826718367184671856718667187671886718967190671916719267193671946719567196671976719867199672006720167202672036720467205672066720767208672096721067211672126721367214672156721667217672186721967220672216722267223672246722567226672276722867229672306723167232672336723467235672366723767238672396724067241672426724367244672456724667247672486724967250672516725267253672546725567256672576725867259672606726167262672636726467265672666726767268672696727067271672726727367274672756727667277672786727967280672816728267283672846728567286672876728867289672906729167292672936729467295672966729767298672996730067301673026730367304673056730667307673086730967310673116731267313673146731567316673176731867319673206732167322673236732467325673266732767328673296733067331673326733367334673356733667337673386733967340673416734267343673446734567346673476734867349673506735167352673536735467355673566735767358673596736067361673626736367364673656736667367673686736967370673716737267373673746737567376673776737867379673806738167382673836738467385673866738767388673896739067391673926739367394673956739667397673986739967400674016740267403674046740567406674076740867409674106741167412674136741467415674166741767418674196742067421674226742367424674256742667427674286742967430674316743267433674346743567436674376743867439674406744167442674436744467445674466744767448674496745067451674526745367454674556745667457674586745967460674616746267463674646746567466674676746867469674706747167472674736747467475674766747767478674796748067481674826748367484674856748667487674886748967490674916749267493674946749567496674976749867499675006750167502675036750467505675066750767508675096751067511675126751367514675156751667517675186751967520675216752267523675246752567526675276752867529675306753167532675336753467535675366753767538675396754067541675426754367544675456754667547675486754967550675516755267553675546755567556675576755867559675606756167562675636756467565675666756767568675696757067571675726757367574675756757667577675786757967580675816758267583675846758567586675876758867589675906759167592675936759467595675966759767598675996760067601676026760367604676056760667607676086760967610676116761267613676146761567616676176761867619676206762167622676236762467625676266762767628676296763067631676326763367634676356763667637676386763967640676416764267643676446764567646676476764867649676506765167652676536765467655676566765767658676596766067661676626766367664676656766667667676686766967670676716767267673676746767567676676776767867679676806768167682676836768467685676866768767688676896769067691676926769367694676956769667697676986769967700677016770267703677046770567706677076770867709677106771167712677136771467715677166771767718677196772067721677226772367724677256772667727677286772967730677316773267733677346773567736677376773867739677406774167742677436774467745677466774767748677496775067751677526775367754677556775667757677586775967760677616776267763677646776567766677676776867769677706777167772677736777467775677766777767778677796778067781677826778367784677856778667787677886778967790677916779267793677946779567796677976779867799678006780167802678036780467805678066780767808678096781067811678126781367814678156781667817678186781967820678216782267823678246782567826678276782867829678306783167832678336783467835678366783767838678396784067841678426784367844678456784667847678486784967850678516785267853678546785567856678576785867859678606786167862678636786467865678666786767868678696787067871678726787367874678756787667877678786787967880678816788267883678846788567886678876788867889678906789167892678936789467895678966789767898678996790067901679026790367904679056790667907679086790967910679116791267913679146791567916679176791867919679206792167922679236792467925679266792767928679296793067931679326793367934679356793667937679386793967940679416794267943679446794567946679476794867949679506795167952679536795467955679566795767958679596796067961679626796367964679656796667967679686796967970679716797267973679746797567976679776797867979679806798167982679836798467985679866798767988679896799067991679926799367994679956799667997679986799968000680016800268003680046800568006680076800868009680106801168012680136801468015680166801768018680196802068021680226802368024680256802668027680286802968030680316803268033680346803568036680376803868039680406804168042680436804468045680466804768048680496805068051680526805368054680556805668057680586805968060680616806268063680646806568066680676806868069680706807168072680736807468075680766807768078680796808068081680826808368084680856808668087680886808968090680916809268093680946809568096680976809868099681006810168102681036810468105681066810768108681096811068111681126811368114681156811668117681186811968120681216812268123681246812568126681276812868129681306813168132681336813468135681366813768138681396814068141681426814368144681456814668147681486814968150681516815268153681546815568156681576815868159681606816168162681636816468165681666816768168681696817068171681726817368174681756817668177681786817968180681816818268183681846818568186681876818868189681906819168192681936819468195681966819768198681996820068201682026820368204682056820668207682086820968210682116821268213682146821568216682176821868219682206822168222682236822468225682266822768228682296823068231682326823368234682356823668237682386823968240682416824268243682446824568246682476824868249682506825168252682536825468255682566825768258682596826068261682626826368264682656826668267682686826968270682716827268273682746827568276682776827868279682806828168282682836828468285682866828768288682896829068291682926829368294682956829668297682986829968300683016830268303683046830568306683076830868309683106831168312683136831468315683166831768318683196832068321683226832368324683256832668327683286832968330683316833268333683346833568336683376833868339683406834168342683436834468345683466834768348683496835068351683526835368354683556835668357683586835968360683616836268363683646836568366683676836868369683706837168372683736837468375683766837768378683796838068381683826838368384683856838668387683886838968390683916839268393683946839568396683976839868399684006840168402684036840468405684066840768408684096841068411684126841368414684156841668417684186841968420684216842268423684246842568426684276842868429684306843168432684336843468435684366843768438684396844068441684426844368444684456844668447684486844968450684516845268453684546845568456684576845868459684606846168462684636846468465684666846768468684696847068471684726847368474684756847668477684786847968480684816848268483684846848568486684876848868489684906849168492684936849468495684966849768498684996850068501685026850368504685056850668507685086850968510685116851268513685146851568516685176851868519685206852168522685236852468525685266852768528685296853068531685326853368534685356853668537685386853968540685416854268543685446854568546685476854868549685506855168552685536855468555685566855768558685596856068561685626856368564685656856668567685686856968570685716857268573685746857568576685776857868579685806858168582685836858468585685866858768588685896859068591685926859368594685956859668597685986859968600686016860268603686046860568606686076860868609686106861168612686136861468615686166861768618686196862068621686226862368624686256862668627686286862968630686316863268633686346863568636686376863868639686406864168642686436864468645686466864768648686496865068651686526865368654686556865668657686586865968660686616866268663686646866568666686676866868669686706867168672686736867468675686766867768678686796868068681686826868368684686856868668687686886868968690686916869268693686946869568696686976869868699687006870168702687036870468705687066870768708687096871068711687126871368714687156871668717687186871968720687216872268723687246872568726687276872868729687306873168732687336873468735687366873768738687396874068741687426874368744687456874668747687486874968750687516875268753687546875568756687576875868759687606876168762687636876468765687666876768768687696877068771687726877368774687756877668777687786877968780687816878268783687846878568786687876878868789687906879168792687936879468795687966879768798687996880068801688026880368804688056880668807688086880968810688116881268813688146881568816688176881868819688206882168822688236882468825688266882768828688296883068831688326883368834688356883668837688386883968840688416884268843688446884568846688476884868849688506885168852688536885468855688566885768858688596886068861688626886368864688656886668867688686886968870688716887268873688746887568876688776887868879688806888168882688836888468885688866888768888688896889068891688926889368894688956889668897688986889968900689016890268903689046890568906689076890868909689106891168912689136891468915689166891768918689196892068921689226892368924689256892668927689286892968930689316893268933689346893568936689376893868939689406894168942689436894468945689466894768948689496895068951689526895368954689556895668957689586895968960689616896268963689646896568966689676896868969689706897168972689736897468975689766897768978689796898068981689826898368984689856898668987689886898968990689916899268993689946899568996689976899868999690006900169002690036900469005690066900769008690096901069011690126901369014690156901669017690186901969020690216902269023690246902569026690276902869029690306903169032690336903469035690366903769038690396904069041690426904369044690456904669047690486904969050690516905269053690546905569056690576905869059690606906169062690636906469065690666906769068690696907069071690726907369074690756907669077690786907969080690816908269083690846908569086690876908869089690906909169092690936909469095690966909769098690996910069101691026910369104691056910669107691086910969110691116911269113691146911569116691176911869119691206912169122691236912469125691266912769128691296913069131691326913369134691356913669137691386913969140691416914269143691446914569146691476914869149691506915169152691536915469155691566915769158691596916069161691626916369164691656916669167691686916969170691716917269173691746917569176691776917869179691806918169182691836918469185691866918769188691896919069191691926919369194691956919669197691986919969200692016920269203692046920569206692076920869209692106921169212692136921469215692166921769218692196922069221692226922369224692256922669227692286922969230692316923269233692346923569236692376923869239692406924169242692436924469245692466924769248692496925069251692526925369254692556925669257692586925969260692616926269263692646926569266692676926869269692706927169272692736927469275692766927769278692796928069281692826928369284692856928669287692886928969290692916929269293692946929569296692976929869299693006930169302693036930469305693066930769308693096931069311693126931369314693156931669317693186931969320693216932269323693246932569326693276932869329693306933169332693336933469335693366933769338693396934069341693426934369344693456934669347693486934969350693516935269353693546935569356693576935869359693606936169362693636936469365693666936769368693696937069371693726937369374693756937669377693786937969380693816938269383693846938569386693876938869389693906939169392693936939469395693966939769398693996940069401694026940369404694056940669407694086940969410694116941269413694146941569416694176941869419694206942169422694236942469425694266942769428694296943069431694326943369434694356943669437694386943969440694416944269443694446944569446694476944869449694506945169452694536945469455694566945769458694596946069461694626946369464694656946669467694686946969470694716947269473694746947569476694776947869479694806948169482694836948469485694866948769488694896949069491694926949369494694956949669497694986949969500695016950269503695046950569506695076950869509695106951169512695136951469515695166951769518695196952069521695226952369524695256952669527695286952969530695316953269533695346953569536695376953869539695406954169542695436954469545695466954769548695496955069551695526955369554695556955669557695586955969560695616956269563695646956569566695676956869569695706957169572695736957469575695766957769578695796958069581695826958369584695856958669587695886958969590695916959269593695946959569596695976959869599696006960169602696036960469605696066960769608696096961069611696126961369614696156961669617696186961969620696216962269623696246962569626696276962869629696306963169632696336963469635696366963769638696396964069641696426964369644696456964669647696486964969650696516965269653696546965569656696576965869659696606966169662696636966469665696666966769668696696967069671696726967369674696756967669677696786967969680696816968269683696846968569686696876968869689696906969169692696936969469695696966969769698696996970069701697026970369704697056970669707697086970969710697116971269713697146971569716697176971869719697206972169722697236972469725697266972769728697296973069731697326973369734697356973669737697386973969740697416974269743697446974569746697476974869749697506975169752697536975469755697566975769758697596976069761697626976369764697656976669767697686976969770697716977269773697746977569776697776977869779697806978169782697836978469785697866978769788697896979069791697926979369794697956979669797697986979969800698016980269803698046980569806698076980869809698106981169812698136981469815698166981769818698196982069821698226982369824698256982669827698286982969830698316983269833698346983569836698376983869839698406984169842698436984469845698466984769848698496985069851698526985369854698556985669857698586985969860698616986269863698646986569866698676986869869698706987169872698736987469875698766987769878698796988069881698826988369884698856988669887698886988969890698916989269893698946989569896698976989869899699006990169902699036990469905699066990769908699096991069911699126991369914699156991669917699186991969920699216992269923699246992569926699276992869929699306993169932699336993469935699366993769938699396994069941699426994369944699456994669947699486994969950699516995269953699546995569956699576995869959699606996169962699636996469965699666996769968699696997069971699726997369974699756997669977699786997969980699816998269983699846998569986699876998869989699906999169992699936999469995699966999769998699997000070001700027000370004700057000670007700087000970010700117001270013700147001570016700177001870019700207002170022700237002470025700267002770028700297003070031700327003370034700357003670037700387003970040700417004270043700447004570046700477004870049700507005170052700537005470055700567005770058700597006070061700627006370064700657006670067700687006970070700717007270073700747007570076700777007870079700807008170082700837008470085700867008770088700897009070091700927009370094700957009670097700987009970100701017010270103701047010570106701077010870109701107011170112701137011470115701167011770118701197012070121701227012370124701257012670127701287012970130701317013270133701347013570136701377013870139701407014170142701437014470145701467014770148701497015070151701527015370154701557015670157701587015970160701617016270163701647016570166701677016870169701707017170172701737017470175701767017770178701797018070181701827018370184701857018670187701887018970190701917019270193701947019570196701977019870199702007020170202702037020470205702067020770208702097021070211702127021370214702157021670217702187021970220702217022270223702247022570226702277022870229702307023170232702337023470235702367023770238702397024070241702427024370244702457024670247702487024970250702517025270253702547025570256702577025870259702607026170262702637026470265702667026770268702697027070271702727027370274702757027670277702787027970280702817028270283702847028570286702877028870289702907029170292702937029470295702967029770298702997030070301703027030370304703057030670307703087030970310703117031270313703147031570316703177031870319703207032170322703237032470325703267032770328703297033070331703327033370334703357033670337703387033970340703417034270343703447034570346703477034870349703507035170352703537035470355703567035770358703597036070361703627036370364703657036670367703687036970370703717037270373703747037570376703777037870379703807038170382703837038470385703867038770388703897039070391703927039370394703957039670397703987039970400704017040270403704047040570406704077040870409704107041170412704137041470415704167041770418704197042070421704227042370424704257042670427704287042970430704317043270433704347043570436704377043870439704407044170442704437044470445704467044770448704497045070451704527045370454704557045670457704587045970460704617046270463704647046570466704677046870469704707047170472704737047470475704767047770478704797048070481704827048370484704857048670487704887048970490704917049270493704947049570496704977049870499705007050170502705037050470505705067050770508705097051070511705127051370514705157051670517705187051970520705217052270523705247052570526705277052870529705307053170532705337053470535705367053770538705397054070541705427054370544705457054670547705487054970550705517055270553705547055570556705577055870559705607056170562705637056470565705667056770568705697057070571705727057370574705757057670577705787057970580705817058270583705847058570586705877058870589705907059170592705937059470595705967059770598705997060070601706027060370604706057060670607706087060970610706117061270613706147061570616706177061870619706207062170622706237062470625706267062770628706297063070631706327063370634706357063670637706387063970640706417064270643706447064570646706477064870649706507065170652706537065470655706567065770658706597066070661706627066370664706657066670667706687066970670706717067270673706747067570676706777067870679706807068170682706837068470685706867068770688706897069070691706927069370694706957069670697706987069970700707017070270703707047070570706707077070870709707107071170712707137071470715707167071770718707197072070721707227072370724707257072670727707287072970730707317073270733707347073570736707377073870739707407074170742707437074470745707467074770748707497075070751707527075370754707557075670757707587075970760707617076270763707647076570766707677076870769707707077170772707737077470775707767077770778707797078070781707827078370784707857078670787707887078970790707917079270793707947079570796707977079870799708007080170802708037080470805708067080770808708097081070811708127081370814708157081670817708187081970820708217082270823708247082570826708277082870829708307083170832708337083470835708367083770838708397084070841708427084370844708457084670847708487084970850708517085270853708547085570856708577085870859708607086170862708637086470865708667086770868708697087070871708727087370874708757087670877708787087970880708817088270883708847088570886708877088870889708907089170892708937089470895708967089770898708997090070901709027090370904709057090670907709087090970910709117091270913709147091570916709177091870919709207092170922709237092470925709267092770928709297093070931709327093370934709357093670937709387093970940709417094270943709447094570946709477094870949709507095170952709537095470955709567095770958709597096070961709627096370964709657096670967709687096970970709717097270973709747097570976709777097870979709807098170982709837098470985709867098770988709897099070991709927099370994709957099670997709987099971000710017100271003710047100571006710077100871009710107101171012710137101471015710167101771018710197102071021710227102371024710257102671027710287102971030710317103271033710347103571036710377103871039710407104171042710437104471045710467104771048710497105071051710527105371054710557105671057710587105971060710617106271063710647106571066710677106871069710707107171072710737107471075710767107771078710797108071081710827108371084710857108671087710887108971090710917109271093710947109571096710977109871099711007110171102711037110471105711067110771108711097111071111711127111371114711157111671117711187111971120711217112271123711247112571126711277112871129711307113171132711337113471135711367113771138711397114071141711427114371144711457114671147711487114971150711517115271153711547115571156711577115871159711607116171162711637116471165711667116771168711697117071171711727117371174711757117671177711787117971180711817118271183711847118571186711877118871189711907119171192711937119471195711967119771198711997120071201712027120371204712057120671207712087120971210712117121271213712147121571216712177121871219712207122171222712237122471225712267122771228712297123071231712327123371234712357123671237712387123971240712417124271243712447124571246712477124871249712507125171252712537125471255712567125771258712597126071261712627126371264712657126671267712687126971270712717127271273712747127571276712777127871279712807128171282712837128471285712867128771288712897129071291712927129371294712957129671297712987129971300713017130271303713047130571306713077130871309713107131171312713137131471315713167131771318713197132071321713227132371324713257132671327713287132971330713317133271333713347133571336713377133871339713407134171342713437134471345713467134771348713497135071351713527135371354713557135671357713587135971360713617136271363713647136571366713677136871369713707137171372713737137471375713767137771378713797138071381713827138371384713857138671387713887138971390713917139271393713947139571396713977139871399714007140171402714037140471405714067140771408714097141071411714127141371414714157141671417714187141971420714217142271423714247142571426714277142871429714307143171432714337143471435714367143771438714397144071441714427144371444714457144671447714487144971450714517145271453714547145571456714577145871459714607146171462714637146471465714667146771468714697147071471714727147371474714757147671477714787147971480714817148271483714847148571486714877148871489714907149171492714937149471495714967149771498714997150071501715027150371504715057150671507715087150971510715117151271513715147151571516715177151871519715207152171522715237152471525715267152771528715297153071531715327153371534715357153671537715387153971540715417154271543715447154571546715477154871549715507155171552715537155471555715567155771558715597156071561715627156371564715657156671567715687156971570715717157271573715747157571576715777157871579715807158171582715837158471585715867158771588715897159071591715927159371594715957159671597715987159971600716017160271603716047160571606716077160871609716107161171612716137161471615716167161771618716197162071621716227162371624716257162671627716287162971630716317163271633716347163571636716377163871639716407164171642716437164471645716467164771648716497165071651716527165371654716557165671657716587165971660716617166271663716647166571666716677166871669716707167171672716737167471675716767167771678716797168071681716827168371684716857168671687716887168971690716917169271693716947169571696716977169871699717007170171702717037170471705717067170771708717097171071711717127171371714717157171671717717187171971720717217172271723717247172571726717277172871729717307173171732717337173471735717367173771738717397174071741717427174371744717457174671747717487174971750717517175271753717547175571756717577175871759717607176171762717637176471765717667176771768717697177071771717727177371774717757177671777717787177971780717817178271783717847178571786717877178871789717907179171792717937179471795717967179771798717997180071801718027180371804718057180671807718087180971810718117181271813718147181571816718177181871819718207182171822718237182471825718267182771828718297183071831718327183371834718357183671837718387183971840718417184271843718447184571846718477184871849718507185171852718537185471855718567185771858718597186071861718627186371864718657186671867718687186971870718717187271873718747187571876718777187871879718807188171882718837188471885718867188771888718897189071891718927189371894718957189671897718987189971900719017190271903719047190571906719077190871909719107191171912719137191471915719167191771918719197192071921719227192371924719257192671927719287192971930719317193271933719347193571936719377193871939719407194171942719437194471945719467194771948719497195071951719527195371954719557195671957719587195971960719617196271963719647196571966719677196871969719707197171972719737197471975719767197771978719797198071981719827198371984719857198671987719887198971990719917199271993719947199571996719977199871999720007200172002720037200472005720067200772008720097201072011720127201372014720157201672017720187201972020720217202272023720247202572026720277202872029720307203172032720337203472035720367203772038720397204072041720427204372044720457204672047720487204972050720517205272053720547205572056720577205872059720607206172062720637206472065720667206772068720697207072071720727207372074720757207672077720787207972080720817208272083720847208572086720877208872089720907209172092720937209472095720967209772098720997210072101721027210372104721057210672107721087210972110721117211272113721147211572116721177211872119721207212172122721237212472125721267212772128721297213072131721327213372134721357213672137721387213972140721417214272143721447214572146721477214872149721507215172152721537215472155721567215772158721597216072161721627216372164721657216672167721687216972170721717217272173721747217572176721777217872179721807218172182721837218472185721867218772188721897219072191721927219372194721957219672197721987219972200722017220272203722047220572206722077220872209722107221172212722137221472215722167221772218722197222072221722227222372224722257222672227722287222972230722317223272233722347223572236722377223872239722407224172242722437224472245722467224772248722497225072251722527225372254722557225672257722587225972260722617226272263722647226572266722677226872269722707227172272722737227472275722767227772278722797228072281722827228372284722857228672287722887228972290722917229272293722947229572296722977229872299723007230172302723037230472305723067230772308723097231072311723127231372314723157231672317723187231972320723217232272323723247232572326723277232872329723307233172332723337233472335723367233772338723397234072341723427234372344723457234672347723487234972350723517235272353723547235572356723577235872359723607236172362723637236472365723667236772368723697237072371723727237372374723757237672377723787237972380723817238272383723847238572386723877238872389723907239172392723937239472395723967239772398723997240072401724027240372404724057240672407724087240972410724117241272413724147241572416724177241872419724207242172422724237242472425724267242772428724297243072431724327243372434724357243672437724387243972440724417244272443724447244572446724477244872449724507245172452724537245472455724567245772458724597246072461724627246372464724657246672467724687246972470724717247272473724747247572476724777247872479724807248172482724837248472485724867248772488724897249072491724927249372494724957249672497724987249972500725017250272503725047250572506725077250872509725107251172512725137251472515725167251772518725197252072521725227252372524725257252672527725287252972530725317253272533725347253572536725377253872539725407254172542725437254472545725467254772548725497255072551725527255372554725557255672557725587255972560725617256272563725647256572566725677256872569725707257172572725737257472575725767257772578725797258072581725827258372584725857258672587725887258972590725917259272593725947259572596725977259872599726007260172602726037260472605726067260772608726097261072611726127261372614726157261672617726187261972620726217262272623726247262572626726277262872629726307263172632726337263472635726367263772638726397264072641726427264372644726457264672647726487264972650726517265272653726547265572656726577265872659726607266172662726637266472665726667266772668726697267072671726727267372674726757267672677726787267972680726817268272683726847268572686726877268872689726907269172692726937269472695726967269772698726997270072701727027270372704727057270672707727087270972710727117271272713727147271572716727177271872719727207272172722727237272472725727267272772728727297273072731727327273372734727357273672737727387273972740727417274272743727447274572746727477274872749727507275172752727537275472755727567275772758727597276072761727627276372764727657276672767727687276972770727717277272773727747277572776727777277872779727807278172782727837278472785727867278772788727897279072791727927279372794727957279672797727987279972800728017280272803728047280572806728077280872809728107281172812728137281472815728167281772818728197282072821728227282372824728257282672827728287282972830728317283272833728347283572836728377283872839728407284172842728437284472845728467284772848728497285072851728527285372854728557285672857728587285972860728617286272863728647286572866728677286872869728707287172872728737287472875728767287772878728797288072881728827288372884728857288672887728887288972890728917289272893728947289572896728977289872899729007290172902729037290472905729067290772908729097291072911729127291372914729157291672917729187291972920729217292272923729247292572926729277292872929729307293172932729337293472935729367293772938729397294072941729427294372944729457294672947729487294972950729517295272953729547295572956729577295872959729607296172962729637296472965729667296772968729697297072971729727297372974729757297672977729787297972980729817298272983729847298572986729877298872989729907299172992729937299472995729967299772998729997300073001730027300373004730057300673007730087300973010730117301273013730147301573016730177301873019730207302173022730237302473025730267302773028730297303073031730327303373034730357303673037730387303973040730417304273043730447304573046730477304873049730507305173052730537305473055730567305773058730597306073061730627306373064730657306673067730687306973070730717307273073730747307573076730777307873079730807308173082730837308473085730867308773088730897309073091730927309373094730957309673097730987309973100731017310273103731047310573106731077310873109731107311173112731137311473115731167311773118731197312073121731227312373124731257312673127731287312973130731317313273133731347313573136731377313873139731407314173142731437314473145731467314773148731497315073151731527315373154731557315673157731587315973160731617316273163731647316573166731677316873169731707317173172731737317473175731767317773178731797318073181731827318373184731857318673187731887318973190731917319273193731947319573196731977319873199732007320173202732037320473205732067320773208732097321073211732127321373214732157321673217732187321973220732217322273223732247322573226732277322873229732307323173232732337323473235732367323773238732397324073241732427324373244732457324673247732487324973250732517325273253732547325573256732577325873259732607326173262732637326473265732667326773268732697327073271732727327373274732757327673277732787327973280732817328273283732847328573286732877328873289732907329173292732937329473295732967329773298732997330073301733027330373304733057330673307733087330973310733117331273313733147331573316733177331873319733207332173322733237332473325733267332773328733297333073331733327333373334733357333673337733387333973340733417334273343733447334573346733477334873349733507335173352733537335473355733567335773358733597336073361733627336373364733657336673367733687336973370733717337273373733747337573376733777337873379733807338173382733837338473385733867338773388733897339073391733927339373394733957339673397733987339973400734017340273403734047340573406734077340873409734107341173412734137341473415734167341773418734197342073421734227342373424734257342673427734287342973430734317343273433734347343573436734377343873439734407344173442734437344473445734467344773448734497345073451734527345373454734557345673457734587345973460734617346273463734647346573466734677346873469734707347173472734737347473475734767347773478734797348073481734827348373484734857348673487734887348973490734917349273493734947349573496734977349873499735007350173502735037350473505735067350773508735097351073511735127351373514735157351673517735187351973520735217352273523735247352573526735277352873529735307353173532735337353473535735367353773538735397354073541735427354373544735457354673547735487354973550735517355273553735547355573556735577355873559735607356173562735637356473565735667356773568735697357073571735727357373574735757357673577735787357973580735817358273583735847358573586735877358873589735907359173592735937359473595735967359773598735997360073601736027360373604736057360673607736087360973610736117361273613736147361573616736177361873619736207362173622736237362473625736267362773628736297363073631736327363373634736357363673637736387363973640736417364273643736447364573646736477364873649736507365173652736537365473655736567365773658736597366073661736627366373664736657366673667736687366973670736717367273673736747367573676736777367873679736807368173682736837368473685736867368773688736897369073691736927369373694736957369673697736987369973700737017370273703737047370573706737077370873709737107371173712737137371473715737167371773718737197372073721737227372373724737257372673727737287372973730737317373273733737347373573736737377373873739737407374173742737437374473745737467374773748737497375073751737527375373754737557375673757737587375973760737617376273763737647376573766737677376873769737707377173772737737377473775737767377773778737797378073781737827378373784737857378673787737887378973790737917379273793737947379573796737977379873799738007380173802738037380473805738067380773808738097381073811738127381373814738157381673817738187381973820738217382273823738247382573826738277382873829738307383173832738337383473835738367383773838738397384073841738427384373844738457384673847738487384973850738517385273853738547385573856738577385873859738607386173862738637386473865738667386773868738697387073871738727387373874738757387673877738787387973880738817388273883738847388573886738877388873889738907389173892738937389473895738967389773898738997390073901739027390373904739057390673907739087390973910739117391273913739147391573916739177391873919739207392173922739237392473925739267392773928739297393073931739327393373934739357393673937739387393973940739417394273943739447394573946739477394873949739507395173952739537395473955739567395773958739597396073961739627396373964739657396673967739687396973970739717397273973739747397573976739777397873979739807398173982739837398473985739867398773988739897399073991739927399373994739957399673997739987399974000740017400274003740047400574006740077400874009740107401174012740137401474015740167401774018740197402074021740227402374024740257402674027740287402974030740317403274033740347403574036740377403874039740407404174042740437404474045740467404774048740497405074051740527405374054740557405674057740587405974060740617406274063740647406574066740677406874069740707407174072740737407474075740767407774078740797408074081740827408374084740857408674087740887408974090740917409274093740947409574096740977409874099741007410174102741037410474105741067410774108741097411074111741127411374114741157411674117741187411974120741217412274123741247412574126741277412874129741307413174132741337413474135741367413774138741397414074141741427414374144741457414674147741487414974150741517415274153741547415574156741577415874159741607416174162741637416474165741667416774168741697417074171741727417374174741757417674177741787417974180741817418274183741847418574186741877418874189741907419174192741937419474195741967419774198741997420074201742027420374204742057420674207742087420974210742117421274213742147421574216742177421874219742207422174222742237422474225742267422774228742297423074231742327423374234742357423674237742387423974240742417424274243742447424574246742477424874249742507425174252742537425474255742567425774258742597426074261742627426374264742657426674267742687426974270742717427274273742747427574276742777427874279742807428174282742837428474285742867428774288742897429074291742927429374294742957429674297742987429974300743017430274303743047430574306743077430874309743107431174312743137431474315743167431774318743197432074321743227432374324743257432674327743287432974330743317433274333743347433574336743377433874339743407434174342743437434474345743467434774348743497435074351743527435374354743557435674357743587435974360743617436274363743647436574366743677436874369743707437174372743737437474375743767437774378743797438074381743827438374384743857438674387743887438974390743917439274393743947439574396743977439874399744007440174402744037440474405744067440774408744097441074411744127441374414744157441674417744187441974420744217442274423744247442574426744277442874429744307443174432744337443474435744367443774438744397444074441744427444374444744457444674447744487444974450744517445274453744547445574456744577445874459744607446174462744637446474465744667446774468744697447074471744727447374474744757447674477744787447974480744817448274483744847448574486744877448874489744907449174492744937449474495744967449774498744997450074501745027450374504745057450674507745087450974510745117451274513745147451574516745177451874519745207452174522745237452474525745267452774528745297453074531745327453374534745357453674537745387453974540745417454274543745447454574546745477454874549745507455174552745537455474555745567455774558745597456074561745627456374564745657456674567745687456974570745717457274573745747457574576745777457874579745807458174582745837458474585745867458774588745897459074591745927459374594745957459674597745987459974600746017460274603746047460574606746077460874609746107461174612746137461474615746167461774618746197462074621746227462374624746257462674627746287462974630746317463274633746347463574636746377463874639746407464174642746437464474645746467464774648746497465074651746527465374654746557465674657746587465974660746617466274663746647466574666746677466874669746707467174672746737467474675746767467774678746797468074681746827468374684746857468674687746887468974690746917469274693746947469574696746977469874699747007470174702747037470474705747067470774708747097471074711747127471374714747157471674717747187471974720747217472274723747247472574726747277472874729747307473174732747337473474735747367473774738747397474074741747427474374744747457474674747747487474974750747517475274753747547475574756747577475874759747607476174762747637476474765747667476774768747697477074771747727477374774747757477674777747787477974780747817478274783747847478574786747877478874789747907479174792747937479474795747967479774798747997480074801748027480374804748057480674807748087480974810748117481274813748147481574816748177481874819748207482174822748237482474825748267482774828748297483074831748327483374834748357483674837748387483974840748417484274843748447484574846748477484874849748507485174852748537485474855748567485774858748597486074861748627486374864748657486674867748687486974870748717487274873748747487574876748777487874879748807488174882748837488474885748867488774888748897489074891748927489374894748957489674897748987489974900749017490274903749047490574906749077490874909749107491174912749137491474915749167491774918749197492074921749227492374924749257492674927749287492974930749317493274933749347493574936749377493874939749407494174942749437494474945749467494774948749497495074951749527495374954749557495674957749587495974960749617496274963749647496574966749677496874969749707497174972749737497474975749767497774978749797498074981749827498374984749857498674987749887498974990749917499274993749947499574996749977499874999750007500175002750037500475005750067500775008750097501075011750127501375014750157501675017750187501975020750217502275023750247502575026750277502875029750307503175032750337503475035750367503775038750397504075041750427504375044750457504675047750487504975050750517505275053750547505575056750577505875059750607506175062750637506475065750667506775068750697507075071750727507375074750757507675077750787507975080750817508275083750847508575086750877508875089750907509175092750937509475095750967509775098750997510075101751027510375104751057510675107751087510975110751117511275113751147511575116751177511875119751207512175122751237512475125751267512775128751297513075131751327513375134751357513675137751387513975140751417514275143751447514575146751477514875149751507515175152751537515475155751567515775158751597516075161751627516375164751657516675167751687516975170751717517275173751747517575176751777517875179751807518175182751837518475185751867518775188751897519075191751927519375194751957519675197751987519975200752017520275203752047520575206752077520875209752107521175212752137521475215752167521775218752197522075221752227522375224752257522675227752287522975230752317523275233752347523575236752377523875239752407524175242752437524475245752467524775248752497525075251752527525375254752557525675257752587525975260752617526275263752647526575266752677526875269752707527175272752737527475275752767527775278752797528075281752827528375284752857528675287752887528975290752917529275293752947529575296752977529875299753007530175302753037530475305753067530775308753097531075311753127531375314753157531675317753187531975320753217532275323753247532575326753277532875329753307533175332753337533475335753367533775338753397534075341753427534375344753457534675347753487534975350753517535275353753547535575356753577535875359753607536175362753637536475365753667536775368753697537075371753727537375374753757537675377753787537975380753817538275383753847538575386753877538875389753907539175392753937539475395753967539775398753997540075401754027540375404754057540675407754087540975410754117541275413754147541575416754177541875419754207542175422754237542475425754267542775428754297543075431754327543375434754357543675437754387543975440754417544275443754447544575446754477544875449754507545175452754537545475455754567545775458754597546075461754627546375464754657546675467754687546975470754717547275473754747547575476754777547875479754807548175482754837548475485754867548775488754897549075491754927549375494754957549675497754987549975500755017550275503755047550575506755077550875509755107551175512755137551475515755167551775518755197552075521755227552375524755257552675527755287552975530755317553275533755347553575536755377553875539755407554175542755437554475545755467554775548755497555075551755527555375554755557555675557755587555975560755617556275563755647556575566755677556875569755707557175572755737557475575755767557775578755797558075581755827558375584755857558675587755887558975590755917559275593755947559575596755977559875599756007560175602756037560475605756067560775608756097561075611756127561375614756157561675617756187561975620756217562275623756247562575626756277562875629756307563175632756337563475635756367563775638756397564075641756427564375644756457564675647756487564975650756517565275653756547565575656756577565875659756607566175662756637566475665756667566775668756697567075671756727567375674756757567675677756787567975680756817568275683756847568575686756877568875689756907569175692756937569475695756967569775698756997570075701757027570375704757057570675707757087570975710757117571275713757147571575716757177571875719757207572175722757237572475725757267572775728757297573075731757327573375734757357573675737757387573975740757417574275743757447574575746757477574875749757507575175752757537575475755757567575775758757597576075761757627576375764757657576675767757687576975770757717577275773757747577575776757777577875779757807578175782757837578475785757867578775788757897579075791757927579375794757957579675797757987579975800758017580275803758047580575806758077580875809758107581175812758137581475815758167581775818758197582075821758227582375824758257582675827758287582975830758317583275833758347583575836758377583875839758407584175842758437584475845758467584775848758497585075851758527585375854758557585675857758587585975860758617586275863758647586575866758677586875869758707587175872758737587475875758767587775878758797588075881758827588375884758857588675887758887588975890758917589275893758947589575896758977589875899759007590175902759037590475905759067590775908759097591075911759127591375914759157591675917759187591975920759217592275923759247592575926759277592875929759307593175932759337593475935759367593775938759397594075941759427594375944759457594675947759487594975950759517595275953759547595575956759577595875959759607596175962759637596475965759667596775968759697597075971759727597375974759757597675977759787597975980759817598275983759847598575986759877598875989759907599175992759937599475995759967599775998759997600076001760027600376004760057600676007760087600976010760117601276013760147601576016760177601876019760207602176022760237602476025760267602776028760297603076031760327603376034760357603676037760387603976040760417604276043760447604576046760477604876049760507605176052760537605476055760567605776058760597606076061760627606376064760657606676067760687606976070760717607276073760747607576076760777607876079760807608176082760837608476085760867608776088760897609076091760927609376094760957609676097760987609976100761017610276103761047610576106761077610876109761107611176112761137611476115761167611776118761197612076121761227612376124761257612676127761287612976130761317613276133761347613576136761377613876139761407614176142761437614476145761467614776148761497615076151761527615376154761557615676157761587615976160761617616276163761647616576166761677616876169761707617176172761737617476175761767617776178761797618076181761827618376184761857618676187761887618976190761917619276193761947619576196761977619876199762007620176202762037620476205762067620776208762097621076211762127621376214762157621676217762187621976220762217622276223762247622576226762277622876229762307623176232762337623476235762367623776238762397624076241762427624376244762457624676247762487624976250762517625276253762547625576256762577625876259762607626176262762637626476265762667626776268762697627076271762727627376274762757627676277762787627976280762817628276283762847628576286762877628876289762907629176292762937629476295762967629776298762997630076301763027630376304763057630676307763087630976310763117631276313763147631576316763177631876319763207632176322763237632476325763267632776328763297633076331763327633376334763357633676337763387633976340763417634276343763447634576346763477634876349763507635176352763537635476355763567635776358763597636076361763627636376364763657636676367763687636976370763717637276373763747637576376763777637876379763807638176382763837638476385763867638776388763897639076391763927639376394763957639676397763987639976400764017640276403764047640576406764077640876409764107641176412764137641476415764167641776418764197642076421764227642376424764257642676427764287642976430764317643276433764347643576436764377643876439764407644176442764437644476445764467644776448764497645076451764527645376454764557645676457764587645976460764617646276463764647646576466764677646876469764707647176472764737647476475764767647776478764797648076481764827648376484764857648676487764887648976490764917649276493764947649576496764977649876499765007650176502765037650476505765067650776508765097651076511765127651376514765157651676517765187651976520765217652276523765247652576526765277652876529765307653176532765337653476535765367653776538765397654076541765427654376544765457654676547765487654976550765517655276553765547655576556765577655876559765607656176562765637656476565765667656776568765697657076571765727657376574765757657676577765787657976580765817658276583765847658576586765877658876589765907659176592765937659476595765967659776598765997660076601766027660376604766057660676607766087660976610766117661276613766147661576616766177661876619766207662176622766237662476625766267662776628766297663076631766327663376634766357663676637766387663976640766417664276643766447664576646766477664876649766507665176652766537665476655766567665776658766597666076661766627666376664766657666676667766687666976670766717667276673766747667576676766777667876679766807668176682766837668476685766867668776688766897669076691766927669376694766957669676697766987669976700767017670276703767047670576706767077670876709767107671176712767137671476715767167671776718767197672076721767227672376724767257672676727767287672976730767317673276733767347673576736767377673876739767407674176742767437674476745767467674776748767497675076751767527675376754767557675676757767587675976760767617676276763767647676576766767677676876769767707677176772767737677476775767767677776778767797678076781767827678376784767857678676787767887678976790767917679276793767947679576796767977679876799768007680176802768037680476805768067680776808768097681076811768127681376814768157681676817768187681976820768217682276823768247682576826768277682876829768307683176832768337683476835768367683776838768397684076841768427684376844768457684676847768487684976850768517685276853768547685576856768577685876859768607686176862768637686476865768667686776868768697687076871768727687376874768757687676877768787687976880768817688276883768847688576886768877688876889768907689176892768937689476895768967689776898768997690076901769027690376904769057690676907769087690976910769117691276913769147691576916769177691876919769207692176922769237692476925769267692776928769297693076931769327693376934769357693676937769387693976940769417694276943769447694576946769477694876949769507695176952769537695476955769567695776958769597696076961769627696376964769657696676967769687696976970769717697276973769747697576976769777697876979769807698176982769837698476985769867698776988769897699076991769927699376994769957699676997769987699977000770017700277003770047700577006770077700877009770107701177012770137701477015770167701777018770197702077021770227702377024770257702677027770287702977030770317703277033770347703577036770377703877039770407704177042770437704477045770467704777048770497705077051770527705377054770557705677057770587705977060770617706277063770647706577066770677706877069770707707177072770737707477075770767707777078770797708077081770827708377084770857708677087770887708977090770917709277093770947709577096770977709877099771007710177102771037710477105771067710777108771097711077111771127711377114771157711677117771187711977120771217712277123771247712577126771277712877129771307713177132771337713477135771367713777138771397714077141771427714377144771457714677147771487714977150771517715277153771547715577156771577715877159771607716177162771637716477165771667716777168771697717077171771727717377174771757717677177771787717977180771817718277183771847718577186771877718877189771907719177192771937719477195771967719777198771997720077201772027720377204772057720677207772087720977210772117721277213772147721577216772177721877219772207722177222772237722477225772267722777228772297723077231772327723377234772357723677237772387723977240772417724277243772447724577246772477724877249772507725177252772537725477255772567725777258772597726077261772627726377264772657726677267772687726977270772717727277273772747727577276772777727877279772807728177282772837728477285772867728777288772897729077291772927729377294772957729677297772987729977300773017730277303773047730577306773077730877309773107731177312773137731477315773167731777318773197732077321773227732377324773257732677327773287732977330773317733277333773347733577336773377733877339773407734177342773437734477345773467734777348773497735077351773527735377354773557735677357773587735977360773617736277363773647736577366773677736877369773707737177372773737737477375773767737777378773797738077381773827738377384773857738677387773887738977390773917739277393773947739577396773977739877399774007740177402774037740477405774067740777408774097741077411774127741377414774157741677417774187741977420774217742277423774247742577426774277742877429774307743177432774337743477435774367743777438774397744077441774427744377444774457744677447774487744977450774517745277453774547745577456774577745877459774607746177462774637746477465774667746777468774697747077471774727747377474774757747677477774787747977480774817748277483774847748577486774877748877489774907749177492774937749477495774967749777498774997750077501775027750377504775057750677507775087750977510775117751277513775147751577516775177751877519775207752177522775237752477525775267752777528775297753077531775327753377534775357753677537775387753977540775417754277543775447754577546775477754877549775507755177552775537755477555775567755777558775597756077561775627756377564775657756677567775687756977570775717757277573775747757577576775777757877579775807758177582775837758477585775867758777588775897759077591775927759377594775957759677597775987759977600776017760277603776047760577606776077760877609776107761177612776137761477615776167761777618776197762077621776227762377624776257762677627776287762977630776317763277633776347763577636776377763877639776407764177642776437764477645776467764777648776497765077651776527765377654776557765677657776587765977660776617766277663776647766577666776677766877669776707767177672776737767477675776767767777678776797768077681776827768377684776857768677687776887768977690776917769277693776947769577696776977769877699777007770177702777037770477705777067770777708777097771077711777127771377714777157771677717777187771977720777217772277723777247772577726777277772877729777307773177732777337773477735777367773777738777397774077741777427774377744777457774677747777487774977750777517775277753777547775577756777577775877759777607776177762777637776477765777667776777768777697777077771777727777377774777757777677777777787777977780777817778277783777847778577786777877778877789777907779177792777937779477795777967779777798777997780077801778027780377804778057780677807778087780977810778117781277813778147781577816778177781877819778207782177822778237782477825778267782777828778297783077831778327783377834778357783677837778387783977840778417784277843778447784577846778477784877849778507785177852778537785477855778567785777858778597786077861778627786377864778657786677867778687786977870778717787277873778747787577876778777787877879778807788177882778837788477885778867788777888778897789077891778927789377894778957789677897778987789977900779017790277903779047790577906779077790877909779107791177912779137791477915779167791777918779197792077921779227792377924779257792677927779287792977930779317793277933779347793577936779377793877939779407794177942779437794477945779467794777948779497795077951779527795377954779557795677957779587795977960779617796277963779647796577966779677796877969779707797177972779737797477975779767797777978779797798077981779827798377984779857798677987779887798977990779917799277993779947799577996779977799877999780007800178002780037800478005780067800778008780097801078011780127801378014780157801678017780187801978020780217802278023780247802578026780277802878029780307803178032780337803478035780367803778038780397804078041780427804378044780457804678047780487804978050780517805278053780547805578056780577805878059780607806178062780637806478065780667806778068780697807078071780727807378074780757807678077780787807978080780817808278083780847808578086780877808878089780907809178092780937809478095780967809778098780997810078101781027810378104781057810678107781087810978110781117811278113781147811578116781177811878119781207812178122781237812478125781267812778128781297813078131781327813378134781357813678137781387813978140781417814278143781447814578146781477814878149781507815178152781537815478155781567815778158781597816078161781627816378164781657816678167781687816978170781717817278173781747817578176781777817878179781807818178182781837818478185781867818778188781897819078191781927819378194781957819678197781987819978200782017820278203782047820578206782077820878209782107821178212782137821478215782167821778218782197822078221782227822378224782257822678227782287822978230782317823278233782347823578236782377823878239782407824178242782437824478245782467824778248782497825078251782527825378254782557825678257782587825978260782617826278263782647826578266782677826878269782707827178272782737827478275782767827778278782797828078281782827828378284782857828678287782887828978290782917829278293782947829578296782977829878299783007830178302783037830478305783067830778308783097831078311783127831378314783157831678317783187831978320783217832278323783247832578326783277832878329783307833178332783337833478335783367833778338783397834078341783427834378344783457834678347783487834978350783517835278353783547835578356783577835878359783607836178362783637836478365783667836778368783697837078371783727837378374783757837678377783787837978380783817838278383783847838578386783877838878389783907839178392783937839478395783967839778398783997840078401784027840378404784057840678407784087840978410784117841278413784147841578416784177841878419784207842178422784237842478425784267842778428784297843078431784327843378434784357843678437784387843978440784417844278443784447844578446784477844878449784507845178452784537845478455784567845778458784597846078461784627846378464784657846678467784687846978470784717847278473784747847578476784777847878479784807848178482784837848478485784867848778488784897849078491784927849378494784957849678497784987849978500785017850278503785047850578506785077850878509785107851178512785137851478515785167851778518785197852078521785227852378524785257852678527785287852978530785317853278533785347853578536785377853878539785407854178542785437854478545785467854778548785497855078551785527855378554785557855678557785587855978560785617856278563785647856578566785677856878569785707857178572785737857478575785767857778578785797858078581785827858378584785857858678587785887858978590785917859278593785947859578596785977859878599786007860178602786037860478605786067860778608786097861078611786127861378614786157861678617786187861978620786217862278623786247862578626786277862878629786307863178632786337863478635786367863778638786397864078641786427864378644786457864678647786487864978650786517865278653786547865578656786577865878659786607866178662786637866478665786667866778668786697867078671786727867378674786757867678677786787867978680786817868278683786847868578686786877868878689786907869178692786937869478695786967869778698786997870078701787027870378704787057870678707787087870978710787117871278713787147871578716787177871878719787207872178722787237872478725787267872778728787297873078731787327873378734787357873678737787387873978740787417874278743787447874578746787477874878749787507875178752787537875478755787567875778758787597876078761787627876378764787657876678767787687876978770787717877278773787747877578776787777877878779787807878178782787837878478785787867878778788787897879078791787927879378794787957879678797787987879978800788017880278803788047880578806788077880878809788107881178812788137881478815788167881778818788197882078821788227882378824788257882678827788287882978830788317883278833788347883578836788377883878839788407884178842788437884478845788467884778848788497885078851788527885378854788557885678857788587885978860788617886278863788647886578866788677886878869788707887178872788737887478875788767887778878788797888078881788827888378884788857888678887788887888978890788917889278893788947889578896788977889878899789007890178902789037890478905789067890778908789097891078911789127891378914789157891678917789187891978920789217892278923789247892578926789277892878929789307893178932789337893478935789367893778938789397894078941789427894378944789457894678947789487894978950789517895278953789547895578956789577895878959789607896178962789637896478965789667896778968789697897078971789727897378974789757897678977789787897978980789817898278983789847898578986789877898878989789907899178992789937899478995789967899778998789997900079001790027900379004790057900679007790087900979010790117901279013790147901579016790177901879019790207902179022790237902479025790267902779028790297903079031790327903379034790357903679037790387903979040790417904279043790447904579046790477904879049790507905179052790537905479055790567905779058790597906079061790627906379064790657906679067790687906979070790717907279073790747907579076790777907879079790807908179082790837908479085790867908779088790897909079091790927909379094790957909679097790987909979100791017910279103791047910579106791077910879109791107911179112791137911479115791167911779118791197912079121791227912379124791257912679127791287912979130791317913279133791347913579136791377913879139791407914179142791437914479145791467914779148791497915079151791527915379154791557915679157791587915979160791617916279163791647916579166791677916879169791707917179172791737917479175791767917779178791797918079181791827918379184791857918679187791887918979190791917919279193791947919579196791977919879199792007920179202792037920479205792067920779208792097921079211792127921379214792157921679217792187921979220792217922279223792247922579226792277922879229792307923179232792337923479235792367923779238792397924079241792427924379244792457924679247792487924979250792517925279253792547925579256792577925879259792607926179262792637926479265792667926779268792697927079271792727927379274792757927679277792787927979280792817928279283792847928579286792877928879289792907929179292792937929479295792967929779298792997930079301793027930379304793057930679307793087930979310793117931279313793147931579316793177931879319793207932179322793237932479325793267932779328793297933079331793327933379334793357933679337793387933979340793417934279343793447934579346793477934879349793507935179352793537935479355793567935779358793597936079361793627936379364793657936679367793687936979370793717937279373793747937579376793777937879379793807938179382793837938479385793867938779388793897939079391793927939379394793957939679397793987939979400794017940279403794047940579406794077940879409794107941179412794137941479415794167941779418794197942079421794227942379424794257942679427794287942979430794317943279433794347943579436794377943879439794407944179442794437944479445794467944779448794497945079451794527945379454794557945679457794587945979460794617946279463794647946579466794677946879469794707947179472794737947479475794767947779478794797948079481794827948379484794857948679487794887948979490794917949279493794947949579496794977949879499795007950179502795037950479505795067950779508795097951079511795127951379514795157951679517795187951979520795217952279523795247952579526795277952879529795307953179532795337953479535795367953779538795397954079541795427954379544795457954679547795487954979550795517955279553795547955579556795577955879559795607956179562795637956479565795667956779568795697957079571795727957379574795757957679577795787957979580795817958279583795847958579586795877958879589795907959179592795937959479595795967959779598795997960079601796027960379604796057960679607796087960979610796117961279613796147961579616796177961879619796207962179622796237962479625796267962779628796297963079631796327963379634796357963679637796387963979640796417964279643796447964579646796477964879649796507965179652796537965479655796567965779658796597966079661796627966379664796657966679667796687966979670796717967279673796747967579676796777967879679796807968179682796837968479685796867968779688796897969079691796927969379694796957969679697796987969979700797017970279703797047970579706797077970879709797107971179712797137971479715797167971779718797197972079721797227972379724797257972679727797287972979730797317973279733797347973579736797377973879739797407974179742797437974479745797467974779748797497975079751797527975379754797557975679757797587975979760797617976279763797647976579766797677976879769797707977179772797737977479775797767977779778797797978079781797827978379784797857978679787797887978979790797917979279793797947979579796797977979879799798007980179802798037980479805798067980779808798097981079811798127981379814798157981679817798187981979820798217982279823798247982579826798277982879829798307983179832798337983479835798367983779838798397984079841798427984379844798457984679847798487984979850798517985279853798547985579856798577985879859798607986179862798637986479865798667986779868798697987079871798727987379874798757987679877798787987979880798817988279883798847988579886798877988879889798907989179892798937989479895798967989779898798997990079901799027990379904799057990679907799087990979910799117991279913799147991579916799177991879919799207992179922799237992479925799267992779928799297993079931799327993379934799357993679937799387993979940799417994279943799447994579946799477994879949799507995179952799537995479955799567995779958799597996079961799627996379964799657996679967799687996979970799717997279973799747997579976799777997879979799807998179982799837998479985799867998779988799897999079991799927999379994799957999679997799987999980000800018000280003800048000580006800078000880009800108001180012800138001480015800168001780018800198002080021800228002380024800258002680027800288002980030800318003280033800348003580036800378003880039800408004180042800438004480045800468004780048800498005080051800528005380054800558005680057800588005980060800618006280063800648006580066800678006880069800708007180072800738007480075800768007780078800798008080081800828008380084800858008680087800888008980090800918009280093800948009580096800978009880099801008010180102801038010480105801068010780108801098011080111801128011380114801158011680117801188011980120801218012280123801248012580126801278012880129801308013180132801338013480135801368013780138801398014080141801428014380144801458014680147801488014980150801518015280153801548015580156801578015880159801608016180162801638016480165801668016780168801698017080171801728017380174801758017680177801788017980180801818018280183801848018580186801878018880189801908019180192801938019480195801968019780198801998020080201802028020380204802058020680207802088020980210802118021280213802148021580216802178021880219802208022180222802238022480225802268022780228802298023080231802328023380234802358023680237802388023980240802418024280243802448024580246802478024880249802508025180252802538025480255802568025780258802598026080261802628026380264802658026680267802688026980270802718027280273802748027580276802778027880279802808028180282802838028480285802868028780288802898029080291802928029380294802958029680297802988029980300803018030280303803048030580306803078030880309803108031180312803138031480315803168031780318803198032080321803228032380324803258032680327803288032980330803318033280333803348033580336803378033880339803408034180342803438034480345803468034780348803498035080351803528035380354803558035680357803588035980360803618036280363803648036580366803678036880369803708037180372803738037480375803768037780378803798038080381803828038380384803858038680387803888038980390803918039280393803948039580396803978039880399804008040180402804038040480405804068040780408804098041080411804128041380414804158041680417804188041980420804218042280423804248042580426804278042880429804308043180432804338043480435804368043780438804398044080441804428044380444804458044680447804488044980450804518045280453804548045580456804578045880459804608046180462804638046480465804668046780468804698047080471804728047380474804758047680477804788047980480804818048280483804848048580486804878048880489804908049180492804938049480495804968049780498804998050080501805028050380504805058050680507805088050980510805118051280513805148051580516805178051880519805208052180522805238052480525805268052780528805298053080531805328053380534805358053680537805388053980540805418054280543805448054580546805478054880549805508055180552805538055480555805568055780558805598056080561805628056380564805658056680567805688056980570805718057280573805748057580576805778057880579805808058180582805838058480585805868058780588805898059080591805928059380594805958059680597805988059980600806018060280603806048060580606806078060880609806108061180612806138061480615806168061780618806198062080621806228062380624806258062680627806288062980630806318063280633806348063580636806378063880639806408064180642806438064480645806468064780648806498065080651806528065380654806558065680657806588065980660806618066280663806648066580666806678066880669806708067180672806738067480675806768067780678806798068080681806828068380684806858068680687806888068980690806918069280693806948069580696806978069880699807008070180702807038070480705807068070780708807098071080711807128071380714807158071680717807188071980720807218072280723807248072580726807278072880729807308073180732807338073480735807368073780738807398074080741807428074380744807458074680747807488074980750807518075280753807548075580756807578075880759807608076180762807638076480765807668076780768807698077080771807728077380774807758077680777807788077980780807818078280783807848078580786807878078880789807908079180792807938079480795807968079780798807998080080801808028080380804808058080680807808088080980810808118081280813808148081580816808178081880819808208082180822808238082480825808268082780828808298083080831808328083380834808358083680837808388083980840808418084280843808448084580846808478084880849808508085180852808538085480855808568085780858808598086080861808628086380864808658086680867808688086980870808718087280873808748087580876808778087880879808808088180882808838088480885808868088780888808898089080891808928089380894808958089680897808988089980900809018090280903809048090580906809078090880909809108091180912809138091480915809168091780918809198092080921809228092380924809258092680927809288092980930809318093280933809348093580936809378093880939809408094180942809438094480945809468094780948809498095080951809528095380954809558095680957809588095980960809618096280963809648096580966809678096880969809708097180972809738097480975809768097780978809798098080981809828098380984809858098680987809888098980990809918099280993809948099580996809978099880999810008100181002810038100481005810068100781008810098101081011810128101381014810158101681017810188101981020810218102281023810248102581026810278102881029810308103181032810338103481035810368103781038810398104081041810428104381044810458104681047810488104981050810518105281053810548105581056810578105881059810608106181062810638106481065810668106781068810698107081071810728107381074810758107681077810788107981080810818108281083810848108581086810878108881089810908109181092810938109481095810968109781098810998110081101811028110381104811058110681107811088110981110811118111281113811148111581116811178111881119811208112181122811238112481125811268112781128811298113081131811328113381134811358113681137811388113981140811418114281143811448114581146811478114881149811508115181152811538115481155811568115781158811598116081161811628116381164811658116681167811688116981170811718117281173811748117581176811778117881179811808118181182811838118481185811868118781188811898119081191811928119381194811958119681197811988119981200812018120281203812048120581206812078120881209812108121181212812138121481215812168121781218812198122081221812228122381224812258122681227812288122981230812318123281233812348123581236812378123881239812408124181242812438124481245812468124781248812498125081251812528125381254812558125681257812588125981260812618126281263812648126581266812678126881269812708127181272812738127481275812768127781278812798128081281812828128381284812858128681287812888128981290812918129281293812948129581296812978129881299813008130181302813038130481305813068130781308813098131081311813128131381314813158131681317813188131981320813218132281323813248132581326813278132881329813308133181332813338133481335813368133781338813398134081341813428134381344813458134681347813488134981350813518135281353813548135581356813578135881359813608136181362813638136481365813668136781368813698137081371813728137381374813758137681377813788137981380813818138281383813848138581386813878138881389813908139181392813938139481395813968139781398813998140081401814028140381404814058140681407814088140981410814118141281413814148141581416814178141881419814208142181422814238142481425814268142781428814298143081431814328143381434814358143681437814388143981440814418144281443814448144581446814478144881449814508145181452814538145481455814568145781458814598146081461814628146381464814658146681467814688146981470814718147281473814748147581476814778147881479814808148181482814838148481485814868148781488814898149081491814928149381494814958149681497814988149981500815018150281503815048150581506815078150881509815108151181512815138151481515815168151781518815198152081521815228152381524815258152681527815288152981530815318153281533815348153581536815378153881539815408154181542815438154481545815468154781548815498155081551815528155381554815558155681557815588155981560815618156281563815648156581566815678156881569815708157181572815738157481575815768157781578815798158081581815828158381584815858158681587815888158981590815918159281593815948159581596815978159881599816008160181602816038160481605816068160781608816098161081611816128161381614816158161681617816188161981620816218162281623816248162581626816278162881629816308163181632816338163481635816368163781638816398164081641816428164381644816458164681647816488164981650816518165281653816548165581656816578165881659816608166181662816638166481665816668166781668816698167081671816728167381674816758167681677816788167981680816818168281683816848168581686816878168881689816908169181692816938169481695816968169781698816998170081701817028170381704817058170681707817088170981710817118171281713817148171581716817178171881719817208172181722817238172481725817268172781728817298173081731817328173381734817358173681737817388173981740817418174281743817448174581746817478174881749817508175181752817538175481755817568175781758817598176081761817628176381764817658176681767817688176981770817718177281773817748177581776817778177881779817808178181782817838178481785817868178781788817898179081791817928179381794817958179681797817988179981800818018180281803818048180581806818078180881809818108181181812818138181481815818168181781818818198182081821818228182381824818258182681827818288182981830818318183281833818348183581836818378183881839818408184181842818438184481845818468184781848818498185081851818528185381854818558185681857818588185981860818618186281863818648186581866818678186881869818708187181872818738187481875818768187781878818798188081881818828188381884818858188681887818888188981890818918189281893818948189581896818978189881899819008190181902819038190481905819068190781908819098191081911819128191381914819158191681917819188191981920819218192281923819248192581926819278192881929819308193181932819338193481935819368193781938819398194081941819428194381944819458194681947819488194981950819518195281953819548195581956819578195881959819608196181962819638196481965819668196781968819698197081971819728197381974819758197681977819788197981980819818198281983819848198581986819878198881989819908199181992819938199481995819968199781998819998200082001820028200382004820058200682007820088200982010820118201282013820148201582016820178201882019820208202182022820238202482025820268202782028820298203082031820328203382034820358203682037820388203982040820418204282043820448204582046820478204882049820508205182052820538205482055820568205782058820598206082061820628206382064820658206682067820688206982070820718207282073820748207582076820778207882079820808208182082820838208482085820868208782088820898209082091820928209382094820958209682097820988209982100821018210282103821048210582106821078210882109821108211182112821138211482115821168211782118821198212082121821228212382124821258212682127821288212982130821318213282133821348213582136821378213882139821408214182142821438214482145821468214782148821498215082151821528215382154821558215682157821588215982160821618216282163821648216582166821678216882169821708217182172821738217482175821768217782178821798218082181821828218382184821858218682187821888218982190821918219282193821948219582196821978219882199822008220182202822038220482205822068220782208822098221082211822128221382214822158221682217822188221982220822218222282223822248222582226822278222882229822308223182232822338223482235822368223782238822398224082241822428224382244822458224682247822488224982250822518225282253822548225582256822578225882259822608226182262822638226482265822668226782268822698227082271822728227382274822758227682277822788227982280822818228282283822848228582286822878228882289822908229182292822938229482295822968229782298822998230082301823028230382304823058230682307823088230982310823118231282313823148231582316823178231882319823208232182322823238232482325823268232782328823298233082331823328233382334823358233682337823388233982340823418234282343823448234582346823478234882349823508235182352823538235482355823568235782358823598236082361823628236382364823658236682367823688236982370823718237282373823748237582376823778237882379823808238182382823838238482385823868238782388823898239082391823928239382394823958239682397823988239982400824018240282403824048240582406824078240882409824108241182412824138241482415824168241782418824198242082421824228242382424824258242682427824288242982430824318243282433824348243582436824378243882439824408244182442824438244482445824468244782448824498245082451824528245382454824558245682457824588245982460824618246282463824648246582466824678246882469824708247182472824738247482475824768247782478824798248082481824828248382484824858248682487824888248982490824918249282493824948249582496824978249882499825008250182502825038250482505825068250782508825098251082511825128251382514825158251682517825188251982520825218252282523825248252582526825278252882529825308253182532825338253482535825368253782538825398254082541825428254382544825458254682547825488254982550825518255282553825548255582556825578255882559825608256182562825638256482565825668256782568825698257082571825728257382574825758257682577825788257982580825818258282583825848258582586825878258882589825908259182592825938259482595825968259782598825998260082601826028260382604826058260682607826088260982610826118261282613826148261582616826178261882619826208262182622826238262482625826268262782628826298263082631826328263382634826358263682637826388263982640826418264282643826448264582646826478264882649826508265182652826538265482655826568265782658826598266082661826628266382664826658266682667826688266982670826718267282673826748267582676826778267882679826808268182682826838268482685826868268782688826898269082691826928269382694826958269682697826988269982700827018270282703827048270582706827078270882709827108271182712827138271482715827168271782718827198272082721827228272382724827258272682727827288272982730827318273282733827348273582736827378273882739827408274182742827438274482745827468274782748827498275082751827528275382754827558275682757827588275982760827618276282763827648276582766827678276882769827708277182772827738277482775827768277782778827798278082781827828278382784827858278682787827888278982790827918279282793827948279582796827978279882799828008280182802828038280482805828068280782808828098281082811828128281382814828158281682817828188281982820828218282282823828248282582826828278282882829828308283182832828338283482835828368283782838828398284082841828428284382844828458284682847828488284982850828518285282853828548285582856828578285882859828608286182862828638286482865828668286782868828698287082871828728287382874828758287682877828788287982880828818288282883828848288582886828878288882889828908289182892828938289482895828968289782898828998290082901829028290382904829058290682907829088290982910829118291282913829148291582916829178291882919829208292182922829238292482925829268292782928829298293082931829328293382934829358293682937829388293982940829418294282943829448294582946829478294882949829508295182952829538295482955829568295782958829598296082961829628296382964829658296682967829688296982970829718297282973829748297582976829778297882979829808298182982829838298482985829868298782988829898299082991829928299382994829958299682997829988299983000830018300283003830048300583006830078300883009830108301183012830138301483015830168301783018830198302083021830228302383024830258302683027830288302983030830318303283033830348303583036830378303883039830408304183042830438304483045830468304783048830498305083051830528305383054830558305683057830588305983060830618306283063830648306583066830678306883069830708307183072830738307483075830768307783078830798308083081830828308383084830858308683087830888308983090830918309283093830948309583096830978309883099831008310183102831038310483105831068310783108831098311083111831128311383114831158311683117831188311983120831218312283123831248312583126831278312883129831308313183132831338313483135831368313783138831398314083141831428314383144831458314683147831488314983150831518315283153831548315583156831578315883159831608316183162831638316483165831668316783168831698317083171831728317383174831758317683177831788317983180831818318283183831848318583186831878318883189831908319183192831938319483195831968319783198831998320083201832028320383204832058320683207832088320983210832118321283213832148321583216832178321883219832208322183222832238322483225832268322783228
  1. <?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
  2. <!-- Generated by the JDiff Javadoc doclet -->
  3. <!-- (http://www.jdiff.org) -->
  4. <!-- on Wed Mar 06 09:13:44 UTC 2013 -->
  5. <api
  6. xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
  7. xsi:noNamespaceSchemaLocation='api.xsd'
  8. name="hadoop 1.1.2"
  9. jdversion="1.0.9">
  10. <!-- Command line arguments = -doclet jdiff.JDiff -docletpath /grid/0/dev/mfoley/hadoop-1.1/build/ivy/lib/Hadoop/jdiff/jdiff-1.0.9.jar:/grid/0/dev/mfoley/hadoop-1.1/build/ivy/lib/Hadoop/jdiff/xerces-1.4.4.jar -classpath /grid/0/dev/mfoley/hadoop-1.1/build/classes:/grid/0/dev/mfoley/hadoop-1.1/lib/hsqldb-1.8.0.10.jar:/grid/0/dev/mfoley/hadoop-1.1/lib/jsp-2.1/jsp-2.1.jar:/grid/0/dev/mfoley/hadoop-1.1/lib/jsp-2.1/jsp-api-2.1.jar:/grid/0/dev/mfoley/hadoop-1.1/lib/kfs-0.2.2.jar:/homes/hortonfo/.ivy2/cache/log4j/log4j/jars/log4j-1.2.15.jar:/homes/hortonfo/.ivy2/cache/commons-httpclient/commons-httpclient/jars/commons-httpclient-3.0.1.jar:/homes/hortonfo/.ivy2/cache/commons-codec/commons-codec/jars/commons-codec-1.4.jar:/homes/hortonfo/.ivy2/cache/commons-cli/commons-cli/jars/commons-cli-1.2.jar:/homes/hortonfo/.ivy2/cache/commons-io/commons-io/jars/commons-io-2.1.jar:/homes/hortonfo/.ivy2/cache/xmlenc/xmlenc/jars/xmlenc-0.52.jar:/homes/hortonfo/.ivy2/cache/commons-daemon/commons-daemon/jars/commons-daemon-1.0.1.jar:/homes/hortonfo/.ivy2/cache/net.java.dev.jets3t/jets3t/jars/jets3t-0.6.1.jar:/homes/hortonfo/.ivy2/cache/commons-net/commons-net/jars/commons-net-3.1.jar:/homes/hortonfo/.ivy2/cache/org.mortbay.jetty/jetty/jars/jetty-6.1.26.jar:/homes/hortonfo/.ivy2/cache/org.mortbay.jetty/jetty-util/jars/jetty-util-6.1.26.jar:/homes/hortonfo/.ivy2/cache/org.mortbay.jetty/servlet-api/jars/servlet-api-2.5-20081211.jar:/homes/hortonfo/.ivy2/cache/asm/asm/jars/asm-3.2.jar:/homes/hortonfo/.ivy2/cache/com.sun.jersey/jersey-core/bundles/jersey-core-1.8.jar:/homes/hortonfo/.ivy2/cache/com.sun.jersey/jersey-json/bundles/jersey-json-1.8.jar:/homes/hortonfo/.ivy2/cache/com.sun.jersey/jersey-server/bundles/jersey-server-1.8.jar:/homes/hortonfo/.ivy2/cache/tomcat/jasper-runtime/jars/jasper-runtime-5.5.12.jar:/homes/hortonfo/.ivy2/cache/tomcat/jasper-compiler/jars/jasper-compiler-5.5.12.jar:/homes/hortonfo/.ivy2/cache/commons-el/commons-el/jars/commons-el-1.0.jar:/homes/hortonfo/.ivy2/cache/commons-configuration/commons-configuration/jars/commons-configuration-1.6.jar:/homes/hortonfo/.ivy2/cache/commons-collections/commons-collections/jars/commons-collections-3.2.1.jar:/homes/hortonfo/.ivy2/cache/commons-lang/commons-lang/jars/commons-lang-2.4.jar:/homes/hortonfo/.ivy2/cache/commons-logging/commons-logging/jars/commons-logging-1.1.1.jar:/homes/hortonfo/.ivy2/cache/commons-digester/commons-digester/jars/commons-digester-1.8.jar:/homes/hortonfo/.ivy2/cache/commons-beanutils/commons-beanutils/jars/commons-beanutils-1.7.0.jar:/homes/hortonfo/.ivy2/cache/commons-beanutils/commons-beanutils-core/jars/commons-beanutils-core-1.8.0.jar:/homes/hortonfo/.ivy2/cache/org.apache.commons/commons-math/jars/commons-math-2.1.jar:/homes/hortonfo/.ivy2/cache/junit/junit/jars/junit-4.5.jar:/homes/hortonfo/.ivy2/cache/commons-logging/commons-logging-api/jars/commons-logging-api-1.0.4.jar:/homes/hortonfo/.ivy2/cache/org.slf4j/slf4j-api/jars/slf4j-api-1.4.3.jar:/homes/hortonfo/.ivy2/cache/org.eclipse.jdt/core/jars/core-3.1.1.jar:/homes/hortonfo/.ivy2/cache/oro/oro/jars/oro-2.0.8.jar:/homes/hortonfo/.ivy2/cache/org.slf4j/slf4j-log4j12/jars/slf4j-log4j12-1.4.3.jar:/homes/hortonfo/.ivy2/cache/org.codehaus.jackson/jackson-mapper-asl/jars/jackson-mapper-asl-1.8.8.jar:/homes/hortonfo/.ivy2/cache/org.codehaus.jackson/jackson-core-asl/jars/jackson-core-asl-1.8.8.jar:/homes/hortonfo/.ivy2/cache/org.mockito/mockito-all/jars/mockito-all-1.8.5.jar:/homes/hortonfo/.ivy2/cache/com.jcraft/jsch/jars/jsch-0.1.42.jar:/homes/hortonfo/.ivy2/cache/org.aspectj/aspectjrt/jars/aspectjrt-1.6.11.jar:/homes/hortonfo/.ivy2/cache/org.aspectj/aspectjtools/jars/aspectjtools-1.6.11.jar:/homes/hortonfo/.ivy2/cache/org.vafer/jdeb/maven-plugins/jdeb-0.8.jar:/grid/0/dev/mfoley/hadoop-1.1/conf:/homes/hortonfo/.ivy2/cache/commons-logging/commons-logging/jars/commons-logging-1.0.4.jar:/homes/hortonfo/.ivy2/cache/jdiff/jdiff/jars/jdiff-1.0.9.jar:/homes/hortonfo/.ivy2/cache/xerces/xerces/jars/xerces-1.4.4.jar:/homes/hortonfo/tools/apache-ant-1.7.1/lib/ant-launcher.jar:/homes/hortonfo/tools/apache-ant-1.7.1/lib/ant-nodeps.jar:/homes/hortonfo/tools/apache-ant-1.7.1/lib/ant-apache-bcel.jar:/homes/hortonfo/tools/apache-ant-1.7.1/lib/ant-apache-log4j.jar:/homes/hortonfo/tools/apache-ant-1.7.1/lib/ant-jsch.jar:/homes/hortonfo/tools/apache-ant-1.7.1/lib/ant-apache-regexp.jar:/homes/hortonfo/tools/apache-ant-1.7.1/lib/ant-antlr.jar:/homes/hortonfo/tools/apache-ant-1.7.1/lib/ant-apache-bsf.jar:/homes/hortonfo/tools/apache-ant-1.7.1/lib/ant-jdepend.jar:/homes/hortonfo/tools/apache-ant-1.7.1/lib/ant-jmf.jar:/homes/hortonfo/tools/apache-ant-1.7.1/lib/ant-stylebook.jar:/homes/hortonfo/tools/apache-ant-1.7.1/lib/xercesImpl.jar:/homes/hortonfo/tools/apache-ant-1.7.1/lib/ant-testutil.jar:/homes/hortonfo/tools/apache-ant-1.7.1/lib/ant-trax.jar:/homes/hortonfo/tools/apache-ant-1.7.1/lib/ant-netrexx.jar:/homes/hortonfo/tools/apache-ant-1.7.1/lib/ant-jai.jar:/homes/hortonfo/tools/apache-ant-1.7.1/lib/ant-apache-oro.jar:/homes/hortonfo/tools/apache-ant-1.7.1/lib/ant-commons-logging.jar:/homes/hortonfo/tools/apache-ant-1.7.1/lib/ant-commons-net.jar:/homes/hortonfo/tools/apache-ant-1.7.1/lib/ant-weblogic.jar:/homes/hortonfo/tools/apache-ant-1.7.1/lib/ant-javamail.jar:/homes/hortonfo/tools/apache-ant-1.7.1/lib/ant-swing.jar:/homes/hortonfo/tools/apache-ant-1.7.1/lib/ant-junit.jar:/homes/hortonfo/tools/apache-ant-1.7.1/lib/ant-starteam.jar:/homes/hortonfo/tools/apache-ant-1.7.1/lib/ant.jar:/homes/hortonfo/tools/apache-ant-1.7.1/lib/xml-apis.jar:/homes/hortonfo/tools/apache-ant-1.7.1/lib/ant-apache-resolver.jar:/homes/hortonfo/tools/jdk1.6.0_u31_64bit/lib/tools.jar -sourcepath /grid/0/dev/mfoley/hadoop-1.1/src/core:/grid/0/dev/mfoley/hadoop-1.1/src/mapred:/grid/0/dev/mfoley/hadoop-1.1/src/tools -apidir /grid/0/dev/mfoley/hadoop-1.1/lib/jdiff -apiname hadoop 1.1.2 -->
  11. <package name="org.apache.hadoop">
  12. <!-- start interface org.apache.hadoop.HadoopVersionAnnotation -->
  13. <interface name="HadoopVersionAnnotation" abstract="true"
  14. static="false" final="false" visibility="public"
  15. deprecated="not deprecated">
  16. <implements name="java.lang.annotation.Annotation"/>
  17. <method name="version" return="java.lang.String"
  18. abstract="false" native="false" synchronized="false"
  19. static="false" final="false" visibility="public"
  20. deprecated="not deprecated">
  21. <doc>
  22. <![CDATA[Get the Hadoop version
  23. @return the version string "0.6.3-dev"]]>
  24. </doc>
  25. </method>
  26. <method name="user" return="java.lang.String"
  27. abstract="false" native="false" synchronized="false"
  28. static="false" final="false" visibility="public"
  29. deprecated="not deprecated">
  30. <doc>
  31. <![CDATA[Get the username that compiled Hadoop.]]>
  32. </doc>
  33. </method>
  34. <method name="date" return="java.lang.String"
  35. abstract="false" native="false" synchronized="false"
  36. static="false" final="false" visibility="public"
  37. deprecated="not deprecated">
  38. <doc>
  39. <![CDATA[Get the date when Hadoop was compiled.
  40. @return the date in unix 'date' format]]>
  41. </doc>
  42. </method>
  43. <method name="url" return="java.lang.String"
  44. abstract="false" native="false" synchronized="false"
  45. static="false" final="false" visibility="public"
  46. deprecated="not deprecated">
  47. <doc>
  48. <![CDATA[Get the url for the subversion repository.]]>
  49. </doc>
  50. </method>
  51. <method name="revision" return="java.lang.String"
  52. abstract="false" native="false" synchronized="false"
  53. static="false" final="false" visibility="public"
  54. deprecated="not deprecated">
  55. <doc>
  56. <![CDATA[Get the subversion revision.
  57. @return the revision number as a string (eg. "451451")]]>
  58. </doc>
  59. </method>
  60. <method name="srcChecksum" return="java.lang.String"
  61. abstract="false" native="false" synchronized="false"
  62. static="false" final="false" visibility="public"
  63. deprecated="not deprecated">
  64. <doc>
  65. <![CDATA[Get a checksum of the source files from which
  66. Hadoop was compiled.
  67. @return a string that uniquely identifies the source]]>
  68. </doc>
  69. </method>
  70. <doc>
  71. <![CDATA[A package attribute that captures the version of Hadoop that was compiled.]]>
  72. </doc>
  73. </interface>
  74. <!-- end interface org.apache.hadoop.HadoopVersionAnnotation -->
  75. </package>
  76. <package name="org.apache.hadoop.classification">
  77. <!-- start class org.apache.hadoop.classification.InterfaceAudience -->
  78. <class name="InterfaceAudience" extends="java.lang.Object"
  79. abstract="false"
  80. static="false" final="false" visibility="public"
  81. deprecated="not deprecated">
  82. <doc>
  83. <![CDATA[Annotation to inform users of a package, class or method's intended audience.]]>
  84. </doc>
  85. </class>
  86. <!-- end class org.apache.hadoop.classification.InterfaceAudience -->
  87. <!-- start interface org.apache.hadoop.classification.InterfaceAudience.LimitedPrivate -->
  88. <interface name="InterfaceAudience.LimitedPrivate" abstract="true"
  89. static="true" final="false" visibility="public"
  90. deprecated="not deprecated">
  91. <implements name="java.lang.annotation.Annotation"/>
  92. <method name="value" return="java.lang.String[]"
  93. abstract="false" native="false" synchronized="false"
  94. static="false" final="false" visibility="public"
  95. deprecated="not deprecated">
  96. </method>
  97. <doc>
  98. <![CDATA[Intended only for the project(s) specified in the annotation.
  99. For example, "Common", "HDFS", "MapReduce", "ZooKeeper", "HBase".]]>
  100. </doc>
  101. </interface>
  102. <!-- end interface org.apache.hadoop.classification.InterfaceAudience.LimitedPrivate -->
  103. <!-- start interface org.apache.hadoop.classification.InterfaceAudience.Private -->
  104. <interface name="InterfaceAudience.Private" abstract="true"
  105. static="true" final="false" visibility="public"
  106. deprecated="not deprecated">
  107. <implements name="java.lang.annotation.Annotation"/>
  108. <doc>
  109. <![CDATA[Intended for use only within Hadoop itself.]]>
  110. </doc>
  111. </interface>
  112. <!-- end interface org.apache.hadoop.classification.InterfaceAudience.Private -->
  113. <!-- start interface org.apache.hadoop.classification.InterfaceAudience.Public -->
  114. <interface name="InterfaceAudience.Public" abstract="true"
  115. static="true" final="false" visibility="public"
  116. deprecated="not deprecated">
  117. <implements name="java.lang.annotation.Annotation"/>
  118. <doc>
  119. <![CDATA[Intended for use by any project or application.]]>
  120. </doc>
  121. </interface>
  122. <!-- end interface org.apache.hadoop.classification.InterfaceAudience.Public -->
  123. <!-- start class org.apache.hadoop.classification.InterfaceStability -->
  124. <class name="InterfaceStability" extends="java.lang.Object"
  125. abstract="false"
  126. static="false" final="false" visibility="public"
  127. deprecated="not deprecated">
  128. <constructor name="InterfaceStability"
  129. static="false" final="false" visibility="public"
  130. deprecated="not deprecated">
  131. </constructor>
  132. <doc>
  133. <![CDATA[Annotation to inform users of how much to rely on a particular package,
  134. class or method not changing over time.]]>
  135. </doc>
  136. </class>
  137. <!-- end class org.apache.hadoop.classification.InterfaceStability -->
  138. <!-- start interface org.apache.hadoop.classification.InterfaceStability.Evolving -->
  139. <interface name="InterfaceStability.Evolving" abstract="true"
  140. static="true" final="false" visibility="public"
  141. deprecated="not deprecated">
  142. <implements name="java.lang.annotation.Annotation"/>
  143. <doc>
  144. <![CDATA[Evolving, but can break compatibility at minor release (i.e. m.x)]]>
  145. </doc>
  146. </interface>
  147. <!-- end interface org.apache.hadoop.classification.InterfaceStability.Evolving -->
  148. <!-- start interface org.apache.hadoop.classification.InterfaceStability.Stable -->
  149. <interface name="InterfaceStability.Stable" abstract="true"
  150. static="true" final="false" visibility="public"
  151. deprecated="not deprecated">
  152. <implements name="java.lang.annotation.Annotation"/>
  153. <doc>
  154. <![CDATA[Can evolve while retaining compatibility for minor release boundaries.;
  155. can break compatibility only at major release (ie. at m.0).]]>
  156. </doc>
  157. </interface>
  158. <!-- end interface org.apache.hadoop.classification.InterfaceStability.Stable -->
  159. <!-- start interface org.apache.hadoop.classification.InterfaceStability.Unstable -->
  160. <interface name="InterfaceStability.Unstable" abstract="true"
  161. static="true" final="false" visibility="public"
  162. deprecated="not deprecated">
  163. <implements name="java.lang.annotation.Annotation"/>
  164. <doc>
  165. <![CDATA[No guarantee is provided as to reliability or stability across any
  166. level of release granularity.]]>
  167. </doc>
  168. </interface>
  169. <!-- end interface org.apache.hadoop.classification.InterfaceStability.Unstable -->
  170. </package>
  171. <package name="org.apache.hadoop.conf">
  172. <!-- start interface org.apache.hadoop.conf.Configurable -->
  173. <interface name="Configurable" abstract="true"
  174. static="false" final="false" visibility="public"
  175. deprecated="not deprecated">
  176. <method name="setConf"
  177. abstract="false" native="false" synchronized="false"
  178. static="false" final="false" visibility="public"
  179. deprecated="not deprecated">
  180. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  181. <doc>
  182. <![CDATA[Set the configuration to be used by this object.]]>
  183. </doc>
  184. </method>
  185. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  186. abstract="false" native="false" synchronized="false"
  187. static="false" final="false" visibility="public"
  188. deprecated="not deprecated">
  189. <doc>
  190. <![CDATA[Return the configuration used by this object.]]>
  191. </doc>
  192. </method>
  193. <doc>
  194. <![CDATA[Something that may be configured with a {@link Configuration}.]]>
  195. </doc>
  196. </interface>
  197. <!-- end interface org.apache.hadoop.conf.Configurable -->
  198. <!-- start class org.apache.hadoop.conf.Configuration -->
  199. <class name="Configuration" extends="java.lang.Object"
  200. abstract="false"
  201. static="false" final="false" visibility="public"
  202. deprecated="not deprecated">
  203. <implements name="java.lang.Iterable"/>
  204. <implements name="org.apache.hadoop.io.Writable"/>
  205. <constructor name="Configuration"
  206. static="false" final="false" visibility="public"
  207. deprecated="not deprecated">
  208. <doc>
  209. <![CDATA[A new configuration.]]>
  210. </doc>
  211. </constructor>
  212. <constructor name="Configuration" type="boolean"
  213. static="false" final="false" visibility="public"
  214. deprecated="not deprecated">
  215. <doc>
  216. <![CDATA[A new configuration where the behavior of reading from the default
  217. resources can be turned off.
  218. If the parameter {@code loadDefaults} is false, the new instance
  219. will not load resources from the default files.
  220. @param loadDefaults specifies whether to load from the default files]]>
  221. </doc>
  222. </constructor>
  223. <constructor name="Configuration" type="org.apache.hadoop.conf.Configuration"
  224. static="false" final="false" visibility="public"
  225. deprecated="not deprecated">
  226. <doc>
  227. <![CDATA[A new configuration with the same settings cloned from another.
  228. @param other the configuration from which to clone settings.]]>
  229. </doc>
  230. </constructor>
  231. <method name="addDefaultResource"
  232. abstract="false" native="false" synchronized="true"
  233. static="true" final="false" visibility="public"
  234. deprecated="not deprecated">
  235. <param name="name" type="java.lang.String"/>
  236. <doc>
  237. <![CDATA[Add a default resource. Resources are loaded in the order of the resources
  238. added.
  239. @param name file name. File should be present in the classpath.]]>
  240. </doc>
  241. </method>
  242. <method name="addResource"
  243. abstract="false" native="false" synchronized="false"
  244. static="false" final="false" visibility="public"
  245. deprecated="not deprecated">
  246. <param name="name" type="java.lang.String"/>
  247. <doc>
  248. <![CDATA[Add a configuration resource.
  249. The properties of this resource will override properties of previously
  250. added resources, unless they were marked <a href="#Final">final</a>.
  251. @param name resource to be added, the classpath is examined for a file
  252. with that name.]]>
  253. </doc>
  254. </method>
  255. <method name="addResource"
  256. abstract="false" native="false" synchronized="false"
  257. static="false" final="false" visibility="public"
  258. deprecated="not deprecated">
  259. <param name="url" type="java.net.URL"/>
  260. <doc>
  261. <![CDATA[Add a configuration resource.
  262. The properties of this resource will override properties of previously
  263. added resources, unless they were marked <a href="#Final">final</a>.
  264. @param url url of the resource to be added, the local filesystem is
  265. examined directly to find the resource, without referring to
  266. the classpath.]]>
  267. </doc>
  268. </method>
  269. <method name="addResource"
  270. abstract="false" native="false" synchronized="false"
  271. static="false" final="false" visibility="public"
  272. deprecated="not deprecated">
  273. <param name="file" type="org.apache.hadoop.fs.Path"/>
  274. <doc>
  275. <![CDATA[Add a configuration resource.
  276. The properties of this resource will override properties of previously
  277. added resources, unless they were marked <a href="#Final">final</a>.
  278. @param file file-path of resource to be added, the local filesystem is
  279. examined directly to find the resource, without referring to
  280. the classpath.]]>
  281. </doc>
  282. </method>
  283. <method name="addResource"
  284. abstract="false" native="false" synchronized="false"
  285. static="false" final="false" visibility="public"
  286. deprecated="not deprecated">
  287. <param name="in" type="java.io.InputStream"/>
  288. <doc>
  289. <![CDATA[Add a configuration resource.
  290. The properties of this resource will override properties of previously
  291. added resources, unless they were marked <a href="#Final">final</a>.
  292. @param in InputStream to deserialize the object from.]]>
  293. </doc>
  294. </method>
  295. <method name="reloadConfiguration"
  296. abstract="false" native="false" synchronized="true"
  297. static="false" final="false" visibility="public"
  298. deprecated="not deprecated">
  299. <doc>
  300. <![CDATA[Reload configuration from previously added resources.
  301. This method will clear all the configuration read from the added
  302. resources, and final parameters. This will make the resources to
  303. be read again before accessing the values. Values that are added
  304. via set methods will overlay values read from the resources.]]>
  305. </doc>
  306. </method>
  307. <method name="get" return="java.lang.String"
  308. abstract="false" native="false" synchronized="false"
  309. static="false" final="false" visibility="public"
  310. deprecated="not deprecated">
  311. <param name="name" type="java.lang.String"/>
  312. <doc>
  313. <![CDATA[Get the value of the <code>name</code> property, <code>null</code> if
  314. no such property exists.
  315. Values are processed for <a href="#VariableExpansion">variable expansion</a>
  316. before being returned.
  317. @param name the property name.
  318. @return the value of the <code>name</code> property,
  319. or null if no such property exists.]]>
  320. </doc>
  321. </method>
  322. <method name="getRaw" return="java.lang.String"
  323. abstract="false" native="false" synchronized="false"
  324. static="false" final="false" visibility="public"
  325. deprecated="not deprecated">
  326. <param name="name" type="java.lang.String"/>
  327. <doc>
  328. <![CDATA[Get the value of the <code>name</code> property, without doing
  329. <a href="#VariableExpansion">variable expansion</a>.
  330. @param name the property name.
  331. @return the value of the <code>name</code> property,
  332. or null if no such property exists.]]>
  333. </doc>
  334. </method>
  335. <method name="set"
  336. abstract="false" native="false" synchronized="false"
  337. static="false" final="false" visibility="public"
  338. deprecated="not deprecated">
  339. <param name="name" type="java.lang.String"/>
  340. <param name="value" type="java.lang.String"/>
  341. <doc>
  342. <![CDATA[Set the <code>value</code> of the <code>name</code> property.
  343. @param name property name.
  344. @param value property value.]]>
  345. </doc>
  346. </method>
  347. <method name="setIfUnset"
  348. abstract="false" native="false" synchronized="false"
  349. static="false" final="false" visibility="public"
  350. deprecated="not deprecated">
  351. <param name="name" type="java.lang.String"/>
  352. <param name="value" type="java.lang.String"/>
  353. <doc>
  354. <![CDATA[Sets a property if it is currently unset.
  355. @param name the property name
  356. @param value the new value]]>
  357. </doc>
  358. </method>
  359. <method name="get" return="java.lang.String"
  360. abstract="false" native="false" synchronized="false"
  361. static="false" final="false" visibility="public"
  362. deprecated="not deprecated">
  363. <param name="name" type="java.lang.String"/>
  364. <param name="defaultValue" type="java.lang.String"/>
  365. <doc>
  366. <![CDATA[Get the value of the <code>name</code> property. If no such property
  367. exists, then <code>defaultValue</code> is returned.
  368. @param name property name.
  369. @param defaultValue default value.
  370. @return property value, or <code>defaultValue</code> if the property
  371. doesn't exist.]]>
  372. </doc>
  373. </method>
  374. <method name="getInt" return="int"
  375. abstract="false" native="false" synchronized="false"
  376. static="false" final="false" visibility="public"
  377. deprecated="not deprecated">
  378. <param name="name" type="java.lang.String"/>
  379. <param name="defaultValue" type="int"/>
  380. <doc>
  381. <![CDATA[Get the value of the <code>name</code> property as an <code>int</code>.
  382. If no such property exists, or if the specified value is not a valid
  383. <code>int</code>, then <code>defaultValue</code> is returned.
  384. @param name property name.
  385. @param defaultValue default value.
  386. @return property value as an <code>int</code>,
  387. or <code>defaultValue</code>.]]>
  388. </doc>
  389. </method>
  390. <method name="setInt"
  391. abstract="false" native="false" synchronized="false"
  392. static="false" final="false" visibility="public"
  393. deprecated="not deprecated">
  394. <param name="name" type="java.lang.String"/>
  395. <param name="value" type="int"/>
  396. <doc>
  397. <![CDATA[Set the value of the <code>name</code> property to an <code>int</code>.
  398. @param name property name.
  399. @param value <code>int</code> value of the property.]]>
  400. </doc>
  401. </method>
  402. <method name="getLong" return="long"
  403. abstract="false" native="false" synchronized="false"
  404. static="false" final="false" visibility="public"
  405. deprecated="not deprecated">
  406. <param name="name" type="java.lang.String"/>
  407. <param name="defaultValue" type="long"/>
  408. <doc>
  409. <![CDATA[Get the value of the <code>name</code> property as a <code>long</code>.
  410. If no such property is specified, or if the specified value is not a valid
  411. <code>long</code>, then <code>defaultValue</code> is returned.
  412. @param name property name.
  413. @param defaultValue default value.
  414. @return property value as a <code>long</code>,
  415. or <code>defaultValue</code>.]]>
  416. </doc>
  417. </method>
  418. <method name="setLong"
  419. abstract="false" native="false" synchronized="false"
  420. static="false" final="false" visibility="public"
  421. deprecated="not deprecated">
  422. <param name="name" type="java.lang.String"/>
  423. <param name="value" type="long"/>
  424. <doc>
  425. <![CDATA[Set the value of the <code>name</code> property to a <code>long</code>.
  426. @param name property name.
  427. @param value <code>long</code> value of the property.]]>
  428. </doc>
  429. </method>
  430. <method name="getFloat" return="float"
  431. abstract="false" native="false" synchronized="false"
  432. static="false" final="false" visibility="public"
  433. deprecated="not deprecated">
  434. <param name="name" type="java.lang.String"/>
  435. <param name="defaultValue" type="float"/>
  436. <doc>
  437. <![CDATA[Get the value of the <code>name</code> property as a <code>float</code>.
  438. If no such property is specified, or if the specified value is not a valid
  439. <code>float</code>, then <code>defaultValue</code> is returned.
  440. @param name property name.
  441. @param defaultValue default value.
  442. @return property value as a <code>float</code>,
  443. or <code>defaultValue</code>.]]>
  444. </doc>
  445. </method>
  446. <method name="setFloat"
  447. abstract="false" native="false" synchronized="false"
  448. static="false" final="false" visibility="public"
  449. deprecated="not deprecated">
  450. <param name="name" type="java.lang.String"/>
  451. <param name="value" type="float"/>
  452. <doc>
  453. <![CDATA[Set the value of the <code>name</code> property to a <code>float</code>.
  454. @param name property name.
  455. @param value property value.]]>
  456. </doc>
  457. </method>
  458. <method name="getBoolean" return="boolean"
  459. abstract="false" native="false" synchronized="false"
  460. static="false" final="false" visibility="public"
  461. deprecated="not deprecated">
  462. <param name="name" type="java.lang.String"/>
  463. <param name="defaultValue" type="boolean"/>
  464. <doc>
  465. <![CDATA[Get the value of the <code>name</code> property as a <code>boolean</code>.
  466. If no such property is specified, or if the specified value is not a valid
  467. <code>boolean</code>, then <code>defaultValue</code> is returned.
  468. @param name property name.
  469. @param defaultValue default value.
  470. @return property value as a <code>boolean</code>,
  471. or <code>defaultValue</code>.]]>
  472. </doc>
  473. </method>
  474. <method name="setBoolean"
  475. abstract="false" native="false" synchronized="false"
  476. static="false" final="false" visibility="public"
  477. deprecated="not deprecated">
  478. <param name="name" type="java.lang.String"/>
  479. <param name="value" type="boolean"/>
  480. <doc>
  481. <![CDATA[Set the value of the <code>name</code> property to a <code>boolean</code>.
  482. @param name property name.
  483. @param value <code>boolean</code> value of the property.]]>
  484. </doc>
  485. </method>
  486. <method name="setBooleanIfUnset"
  487. abstract="false" native="false" synchronized="false"
  488. static="false" final="false" visibility="public"
  489. deprecated="not deprecated">
  490. <param name="name" type="java.lang.String"/>
  491. <param name="value" type="boolean"/>
  492. <doc>
  493. <![CDATA[Set the given property, if it is currently unset.
  494. @param name property name
  495. @param value new value]]>
  496. </doc>
  497. </method>
  498. <method name="setEnum"
  499. abstract="false" native="false" synchronized="false"
  500. static="false" final="false" visibility="public"
  501. deprecated="not deprecated">
  502. <param name="name" type="java.lang.String"/>
  503. <param name="value" type="java.lang.Enum"/>
  504. <doc>
  505. <![CDATA[Set the value of the <code>name</code> property to the given type. This
  506. is equivalent to <code>set(&lt;name&gt;, value.toString())</code>.
  507. @param name property name
  508. @param value new value]]>
  509. </doc>
  510. </method>
  511. <method name="getEnum" return="java.lang.Enum"
  512. abstract="false" native="false" synchronized="false"
  513. static="false" final="false" visibility="public"
  514. deprecated="not deprecated">
  515. <param name="name" type="java.lang.String"/>
  516. <param name="defaultValue" type="java.lang.Enum"/>
  517. <doc>
  518. <![CDATA[Return value matching this enumerated type.
  519. @param name Property name
  520. @param defaultValue Value returned if no mapping exists
  521. @throws IllegalArgumentException If mapping is illegal for the type
  522. provided]]>
  523. </doc>
  524. </method>
  525. <method name="getRange" return="org.apache.hadoop.conf.Configuration.IntegerRanges"
  526. abstract="false" native="false" synchronized="false"
  527. static="false" final="false" visibility="public"
  528. deprecated="not deprecated">
  529. <param name="name" type="java.lang.String"/>
  530. <param name="defaultValue" type="java.lang.String"/>
  531. <doc>
  532. <![CDATA[Parse the given attribute as a set of integer ranges
  533. @param name the attribute name
  534. @param defaultValue the default value if it is not set
  535. @return a new set of ranges from the configured value]]>
  536. </doc>
  537. </method>
  538. <method name="getStringCollection" return="java.util.Collection"
  539. abstract="false" native="false" synchronized="false"
  540. static="false" final="false" visibility="public"
  541. deprecated="not deprecated">
  542. <param name="name" type="java.lang.String"/>
  543. <doc>
  544. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  545. a collection of <code>String</code>s.
  546. If no such property is specified then empty collection is returned.
  547. <p>
  548. This is an optimized version of {@link #getStrings(String)}
  549. @param name property name.
  550. @return property value as a collection of <code>String</code>s.]]>
  551. </doc>
  552. </method>
  553. <method name="getStrings" return="java.lang.String[]"
  554. abstract="false" native="false" synchronized="false"
  555. static="false" final="false" visibility="public"
  556. deprecated="not deprecated">
  557. <param name="name" type="java.lang.String"/>
  558. <doc>
  559. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  560. an array of <code>String</code>s.
  561. If no such property is specified then <code>null</code> is returned.
  562. @param name property name.
  563. @return property value as an array of <code>String</code>s,
  564. or <code>null</code>.]]>
  565. </doc>
  566. </method>
  567. <method name="getStrings" return="java.lang.String[]"
  568. abstract="false" native="false" synchronized="false"
  569. static="false" final="false" visibility="public"
  570. deprecated="not deprecated">
  571. <param name="name" type="java.lang.String"/>
  572. <param name="defaultValue" type="java.lang.String[]"/>
  573. <doc>
  574. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  575. an array of <code>String</code>s.
  576. If no such property is specified then default value is returned.
  577. @param name property name.
  578. @param defaultValue The default value
  579. @return property value as an array of <code>String</code>s,
  580. or default value.]]>
  581. </doc>
  582. </method>
  583. <method name="setStrings"
  584. abstract="false" native="false" synchronized="false"
  585. static="false" final="false" visibility="public"
  586. deprecated="not deprecated">
  587. <param name="name" type="java.lang.String"/>
  588. <param name="values" type="java.lang.String[]"/>
  589. <doc>
  590. <![CDATA[Set the array of string values for the <code>name</code> property as
  591. as comma delimited values.
  592. @param name property name.
  593. @param values The values]]>
  594. </doc>
  595. </method>
  596. <method name="getClassByName" return="java.lang.Class"
  597. abstract="false" native="false" synchronized="false"
  598. static="false" final="false" visibility="public"
  599. deprecated="not deprecated">
  600. <param name="name" type="java.lang.String"/>
  601. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  602. <doc>
  603. <![CDATA[Load a class by name.
  604. @param name the class name.
  605. @return the class object.
  606. @throws ClassNotFoundException if the class is not found.]]>
  607. </doc>
  608. </method>
  609. <method name="getClasses" return="java.lang.Class[]"
  610. abstract="false" native="false" synchronized="false"
  611. static="false" final="false" visibility="public"
  612. deprecated="not deprecated">
  613. <param name="name" type="java.lang.String"/>
  614. <param name="defaultValue" type="java.lang.Class[]"/>
  615. <doc>
  616. <![CDATA[Get the value of the <code>name</code> property
  617. as an array of <code>Class</code>.
  618. The value of the property specifies a list of comma separated class names.
  619. If no such property is specified, then <code>defaultValue</code> is
  620. returned.
  621. @param name the property name.
  622. @param defaultValue default value.
  623. @return property value as a <code>Class[]</code>,
  624. or <code>defaultValue</code>.]]>
  625. </doc>
  626. </method>
  627. <method name="getClass" return="java.lang.Class"
  628. abstract="false" native="false" synchronized="false"
  629. static="false" final="false" visibility="public"
  630. deprecated="not deprecated">
  631. <param name="name" type="java.lang.String"/>
  632. <param name="defaultValue" type="java.lang.Class"/>
  633. <doc>
  634. <![CDATA[Get the value of the <code>name</code> property as a <code>Class</code>.
  635. If no such property is specified, then <code>defaultValue</code> is
  636. returned.
  637. @param name the class name.
  638. @param defaultValue default value.
  639. @return property value as a <code>Class</code>,
  640. or <code>defaultValue</code>.]]>
  641. </doc>
  642. </method>
  643. <method name="getClass" return="java.lang.Class"
  644. abstract="false" native="false" synchronized="false"
  645. static="false" final="false" visibility="public"
  646. deprecated="not deprecated">
  647. <param name="name" type="java.lang.String"/>
  648. <param name="defaultValue" type="java.lang.Class"/>
  649. <param name="xface" type="java.lang.Class"/>
  650. <doc>
  651. <![CDATA[Get the value of the <code>name</code> property as a <code>Class</code>
  652. implementing the interface specified by <code>xface</code>.
  653. If no such property is specified, then <code>defaultValue</code> is
  654. returned.
  655. An exception is thrown if the returned class does not implement the named
  656. interface.
  657. @param name the class name.
  658. @param defaultValue default value.
  659. @param xface the interface implemented by the named class.
  660. @return property value as a <code>Class</code>,
  661. or <code>defaultValue</code>.]]>
  662. </doc>
  663. </method>
  664. <method name="getInstances" return="java.util.List"
  665. abstract="false" native="false" synchronized="false"
  666. static="false" final="false" visibility="public"
  667. deprecated="not deprecated">
  668. <param name="name" type="java.lang.String"/>
  669. <param name="xface" type="java.lang.Class"/>
  670. <doc>
  671. <![CDATA[Get the value of the <code>name</code> property as a <code>List</code>
  672. of objects implementing the interface specified by <code>xface</code>.
  673. An exception is thrown if any of the classes does not exist, or if it does
  674. not implement the named interface.
  675. @param name the property name.
  676. @param xface the interface implemented by the classes named by
  677. <code>name</code>.
  678. @return a <code>List</code> of objects implementing <code>xface</code>.]]>
  679. </doc>
  680. </method>
  681. <method name="setClass"
  682. abstract="false" native="false" synchronized="false"
  683. static="false" final="false" visibility="public"
  684. deprecated="not deprecated">
  685. <param name="name" type="java.lang.String"/>
  686. <param name="theClass" type="java.lang.Class"/>
  687. <param name="xface" type="java.lang.Class"/>
  688. <doc>
  689. <![CDATA[Set the value of the <code>name</code> property to the name of a
  690. <code>theClass</code> implementing the given interface <code>xface</code>.
  691. An exception is thrown if <code>theClass</code> does not implement the
  692. interface <code>xface</code>.
  693. @param name property name.
  694. @param theClass property value.
  695. @param xface the interface implemented by the named class.]]>
  696. </doc>
  697. </method>
  698. <method name="getLocalPath" return="org.apache.hadoop.fs.Path"
  699. abstract="false" native="false" synchronized="false"
  700. static="false" final="false" visibility="public"
  701. deprecated="not deprecated">
  702. <param name="dirsProp" type="java.lang.String"/>
  703. <param name="path" type="java.lang.String"/>
  704. <exception name="IOException" type="java.io.IOException"/>
  705. <doc>
  706. <![CDATA[Get a local file under a directory named by <i>dirsProp</i> with
  707. the given <i>path</i>. If <i>dirsProp</i> contains multiple directories,
  708. then one is chosen based on <i>path</i>'s hash code. If the selected
  709. directory does not exist, an attempt is made to create it.
  710. @param dirsProp directory in which to locate the file.
  711. @param path file-path.
  712. @return local file under the directory with the given path.]]>
  713. </doc>
  714. </method>
  715. <method name="getFile" return="java.io.File"
  716. abstract="false" native="false" synchronized="false"
  717. static="false" final="false" visibility="public"
  718. deprecated="not deprecated">
  719. <param name="dirsProp" type="java.lang.String"/>
  720. <param name="path" type="java.lang.String"/>
  721. <exception name="IOException" type="java.io.IOException"/>
  722. <doc>
  723. <![CDATA[Get a local file name under a directory named in <i>dirsProp</i> with
  724. the given <i>path</i>. If <i>dirsProp</i> contains multiple directories,
  725. then one is chosen based on <i>path</i>'s hash code. If the selected
  726. directory does not exist, an attempt is made to create it.
  727. @param dirsProp directory in which to locate the file.
  728. @param path file-path.
  729. @return local file under the directory with the given path.]]>
  730. </doc>
  731. </method>
  732. <method name="getResource" return="java.net.URL"
  733. abstract="false" native="false" synchronized="false"
  734. static="false" final="false" visibility="public"
  735. deprecated="not deprecated">
  736. <param name="name" type="java.lang.String"/>
  737. <doc>
  738. <![CDATA[Get the {@link URL} for the named resource.
  739. @param name resource name.
  740. @return the url for the named resource.]]>
  741. </doc>
  742. </method>
  743. <method name="getConfResourceAsInputStream" return="java.io.InputStream"
  744. abstract="false" native="false" synchronized="false"
  745. static="false" final="false" visibility="public"
  746. deprecated="not deprecated">
  747. <param name="name" type="java.lang.String"/>
  748. <doc>
  749. <![CDATA[Get an input stream attached to the configuration resource with the
  750. given <code>name</code>.
  751. @param name configuration resource name.
  752. @return an input stream attached to the resource.]]>
  753. </doc>
  754. </method>
  755. <method name="getConfResourceAsReader" return="java.io.Reader"
  756. abstract="false" native="false" synchronized="false"
  757. static="false" final="false" visibility="public"
  758. deprecated="not deprecated">
  759. <param name="name" type="java.lang.String"/>
  760. <doc>
  761. <![CDATA[Get a {@link Reader} attached to the configuration resource with the
  762. given <code>name</code>.
  763. @param name configuration resource name.
  764. @return a reader attached to the resource.]]>
  765. </doc>
  766. </method>
  767. <method name="size" return="int"
  768. abstract="false" native="false" synchronized="false"
  769. static="false" final="false" visibility="public"
  770. deprecated="not deprecated">
  771. <doc>
  772. <![CDATA[Return the number of keys in the configuration.
  773. @return number of keys in the configuration.]]>
  774. </doc>
  775. </method>
  776. <method name="clear"
  777. abstract="false" native="false" synchronized="false"
  778. static="false" final="false" visibility="public"
  779. deprecated="not deprecated">
  780. <doc>
  781. <![CDATA[Clears all keys from the configuration.]]>
  782. </doc>
  783. </method>
  784. <method name="iterator" return="java.util.Iterator"
  785. abstract="false" native="false" synchronized="false"
  786. static="false" final="false" visibility="public"
  787. deprecated="not deprecated">
  788. <doc>
  789. <![CDATA[Get an {@link Iterator} to go through the list of <code>String</code>
  790. key-value pairs in the configuration.
  791. @return an iterator over the entries.]]>
  792. </doc>
  793. </method>
  794. <method name="writeXml"
  795. abstract="false" native="false" synchronized="false"
  796. static="false" final="false" visibility="public"
  797. deprecated="not deprecated">
  798. <param name="out" type="java.io.OutputStream"/>
  799. <exception name="IOException" type="java.io.IOException"/>
  800. <doc>
  801. <![CDATA[Write out the non-default properties in this configuration to the given
  802. {@link OutputStream}.
  803. @param out the output stream to write to.]]>
  804. </doc>
  805. </method>
  806. <method name="writeXml"
  807. abstract="false" native="false" synchronized="false"
  808. static="false" final="false" visibility="public"
  809. deprecated="not deprecated">
  810. <param name="out" type="java.io.Writer"/>
  811. <exception name="IOException" type="java.io.IOException"/>
  812. <doc>
  813. <![CDATA[Write out the non-default properties in this configuration to the given
  814. {@link Writer}.
  815. @param out the writer to write to.]]>
  816. </doc>
  817. </method>
  818. <method name="dumpConfiguration"
  819. abstract="false" native="false" synchronized="false"
  820. static="true" final="false" visibility="public"
  821. deprecated="not deprecated">
  822. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  823. <param name="out" type="java.io.Writer"/>
  824. <exception name="IOException" type="java.io.IOException"/>
  825. <doc>
  826. <![CDATA[Writes out all the parameters and their properties (final and resource) to
  827. the given {@link Writer}
  828. The format of the output would be
  829. { "properties" : [ {key1,value1,key1.isFinal,key1.resource}, {key2,value2,
  830. key2.isFinal,key2.resource}... ] }
  831. It does not output the parameters of the configuration object which is
  832. loaded from an input stream.
  833. @param out the Writer to write to
  834. @throws IOException]]>
  835. </doc>
  836. </method>
  837. <method name="getClassLoader" return="java.lang.ClassLoader"
  838. abstract="false" native="false" synchronized="false"
  839. static="false" final="false" visibility="public"
  840. deprecated="not deprecated">
  841. <doc>
  842. <![CDATA[Get the {@link ClassLoader} for this job.
  843. @return the correct class loader.]]>
  844. </doc>
  845. </method>
  846. <method name="setClassLoader"
  847. abstract="false" native="false" synchronized="false"
  848. static="false" final="false" visibility="public"
  849. deprecated="not deprecated">
  850. <param name="classLoader" type="java.lang.ClassLoader"/>
  851. <doc>
  852. <![CDATA[Set the class loader that will be used to load the various objects.
  853. @param classLoader the new class loader.]]>
  854. </doc>
  855. </method>
  856. <method name="toString" return="java.lang.String"
  857. abstract="false" native="false" synchronized="false"
  858. static="false" final="false" visibility="public"
  859. deprecated="not deprecated">
  860. </method>
  861. <method name="setQuietMode"
  862. abstract="false" native="false" synchronized="true"
  863. static="false" final="false" visibility="public"
  864. deprecated="not deprecated">
  865. <param name="quietmode" type="boolean"/>
  866. <doc>
  867. <![CDATA[Set the quietness-mode.
  868. In the quiet-mode, error and informational messages might not be logged.
  869. @param quietmode <code>true</code> to set quiet-mode on, <code>false</code>
  870. to turn it off.]]>
  871. </doc>
  872. </method>
  873. <method name="main"
  874. abstract="false" native="false" synchronized="false"
  875. static="true" final="false" visibility="public"
  876. deprecated="not deprecated">
  877. <param name="args" type="java.lang.String[]"/>
  878. <exception name="Exception" type="java.lang.Exception"/>
  879. <doc>
  880. <![CDATA[For debugging. List non-default properties to the terminal and exit.]]>
  881. </doc>
  882. </method>
  883. <method name="readFields"
  884. abstract="false" native="false" synchronized="false"
  885. static="false" final="false" visibility="public"
  886. deprecated="not deprecated">
  887. <param name="in" type="java.io.DataInput"/>
  888. <exception name="IOException" type="java.io.IOException"/>
  889. </method>
  890. <method name="write"
  891. abstract="false" native="false" synchronized="false"
  892. static="false" final="false" visibility="public"
  893. deprecated="not deprecated">
  894. <param name="out" type="java.io.DataOutput"/>
  895. <exception name="IOException" type="java.io.IOException"/>
  896. </method>
  897. <method name="getValByRegex" return="java.util.Map"
  898. abstract="false" native="false" synchronized="false"
  899. static="false" final="false" visibility="public"
  900. deprecated="not deprecated">
  901. <param name="regex" type="java.lang.String"/>
  902. <doc>
  903. <![CDATA[get keys matching the the regex
  904. @param regex
  905. @return Map<String,String> with matching keys]]>
  906. </doc>
  907. </method>
  908. <doc>
  909. <![CDATA[Provides access to configuration parameters.
  910. <h4 id="Resources">Resources</h4>
  911. <p>Configurations are specified by resources. A resource contains a set of
  912. name/value pairs as XML data. Each resource is named by either a
  913. <code>String</code> or by a {@link Path}. If named by a <code>String</code>,
  914. then the classpath is examined for a file with that name. If named by a
  915. <code>Path</code>, then the local filesystem is examined directly, without
  916. referring to the classpath.
  917. <p>Unless explicitly turned off, Hadoop by default specifies two
  918. resources, loaded in-order from the classpath: <ol>
  919. <li><tt><a href="{@docRoot}/../core-default.html">core-default.xml</a>
  920. </tt>: Read-only defaults for hadoop.</li>
  921. <li><tt>core-site.xml</tt>: Site-specific configuration for a given hadoop
  922. installation.</li>
  923. </ol>
  924. Applications may add additional resources, which are loaded
  925. subsequent to these resources in the order they are added.
  926. <h4 id="FinalParams">Final Parameters</h4>
  927. <p>Configuration parameters may be declared <i>final</i>.
  928. Once a resource declares a value final, no subsequently-loaded
  929. resource can alter that value.
  930. For example, one might define a final parameter with:
  931. <tt><pre>
  932. &lt;property&gt;
  933. &lt;name&gt;dfs.client.buffer.dir&lt;/name&gt;
  934. &lt;value&gt;/tmp/hadoop/dfs/client&lt;/value&gt;
  935. <b>&lt;final&gt;true&lt;/final&gt;</b>
  936. &lt;/property&gt;</pre></tt>
  937. Administrators typically define parameters as final in
  938. <tt>core-site.xml</tt> for values that user applications may not alter.
  939. <h4 id="VariableExpansion">Variable Expansion</h4>
  940. <p>Value strings are first processed for <i>variable expansion</i>. The
  941. available properties are:<ol>
  942. <li>Other properties defined in this Configuration; and, if a name is
  943. undefined here,</li>
  944. <li>Properties in {@link System#getProperties()}.</li>
  945. </ol>
  946. <p>For example, if a configuration resource contains the following property
  947. definitions:
  948. <tt><pre>
  949. &lt;property&gt;
  950. &lt;name&gt;basedir&lt;/name&gt;
  951. &lt;value&gt;/user/${<i>user.name</i>}&lt;/value&gt;
  952. &lt;/property&gt;
  953. &lt;property&gt;
  954. &lt;name&gt;tempdir&lt;/name&gt;
  955. &lt;value&gt;${<i>basedir</i>}/tmp&lt;/value&gt;
  956. &lt;/property&gt;</pre></tt>
  957. When <tt>conf.get("tempdir")</tt> is called, then <tt>${<i>basedir</i>}</tt>
  958. will be resolved to another property in this Configuration, while
  959. <tt>${<i>user.name</i>}</tt> would then ordinarily be resolved to the value
  960. of the System property with that name.]]>
  961. </doc>
  962. </class>
  963. <!-- end class org.apache.hadoop.conf.Configuration -->
  964. <!-- start class org.apache.hadoop.conf.Configuration.IntegerRanges -->
  965. <class name="Configuration.IntegerRanges" extends="java.lang.Object"
  966. abstract="false"
  967. static="true" final="false" visibility="public"
  968. deprecated="not deprecated">
  969. <constructor name="Configuration.IntegerRanges"
  970. static="false" final="false" visibility="public"
  971. deprecated="not deprecated">
  972. </constructor>
  973. <constructor name="Configuration.IntegerRanges" type="java.lang.String"
  974. static="false" final="false" visibility="public"
  975. deprecated="not deprecated">
  976. </constructor>
  977. <method name="isIncluded" return="boolean"
  978. abstract="false" native="false" synchronized="false"
  979. static="false" final="false" visibility="public"
  980. deprecated="not deprecated">
  981. <param name="value" type="int"/>
  982. <doc>
  983. <![CDATA[Is the given value in the set of ranges
  984. @param value the value to check
  985. @return is the value in the ranges?]]>
  986. </doc>
  987. </method>
  988. <method name="toString" return="java.lang.String"
  989. abstract="false" native="false" synchronized="false"
  990. static="false" final="false" visibility="public"
  991. deprecated="not deprecated">
  992. </method>
  993. <doc>
  994. <![CDATA[A class that represents a set of positive integer ranges. It parses
  995. strings of the form: "2-3,5,7-" where ranges are separated by comma and
  996. the lower/upper bounds are separated by dash. Either the lower or upper
  997. bound may be omitted meaning all values up to or over. So the string
  998. above means 2, 3, 5, and 7, 8, 9, ...]]>
  999. </doc>
  1000. </class>
  1001. <!-- end class org.apache.hadoop.conf.Configuration.IntegerRanges -->
  1002. <!-- start class org.apache.hadoop.conf.Configured -->
  1003. <class name="Configured" extends="java.lang.Object"
  1004. abstract="false"
  1005. static="false" final="false" visibility="public"
  1006. deprecated="not deprecated">
  1007. <implements name="org.apache.hadoop.conf.Configurable"/>
  1008. <constructor name="Configured"
  1009. static="false" final="false" visibility="public"
  1010. deprecated="not deprecated">
  1011. <doc>
  1012. <![CDATA[Construct a Configured.]]>
  1013. </doc>
  1014. </constructor>
  1015. <constructor name="Configured" type="org.apache.hadoop.conf.Configuration"
  1016. static="false" final="false" visibility="public"
  1017. deprecated="not deprecated">
  1018. <doc>
  1019. <![CDATA[Construct a Configured.]]>
  1020. </doc>
  1021. </constructor>
  1022. <method name="setConf"
  1023. abstract="false" native="false" synchronized="false"
  1024. static="false" final="false" visibility="public"
  1025. deprecated="not deprecated">
  1026. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1027. </method>
  1028. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  1029. abstract="false" native="false" synchronized="false"
  1030. static="false" final="false" visibility="public"
  1031. deprecated="not deprecated">
  1032. </method>
  1033. <doc>
  1034. <![CDATA[Base class for things that may be configured with a {@link Configuration}.]]>
  1035. </doc>
  1036. </class>
  1037. <!-- end class org.apache.hadoop.conf.Configured -->
  1038. <!-- start class org.apache.hadoop.conf.ConfServlet -->
  1039. <class name="ConfServlet" extends="javax.servlet.http.HttpServlet"
  1040. abstract="false"
  1041. static="false" final="false" visibility="public"
  1042. deprecated="not deprecated">
  1043. <constructor name="ConfServlet"
  1044. static="false" final="false" visibility="public"
  1045. deprecated="not deprecated">
  1046. </constructor>
  1047. <method name="doGet"
  1048. abstract="false" native="false" synchronized="false"
  1049. static="false" final="false" visibility="public"
  1050. deprecated="not deprecated">
  1051. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  1052. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  1053. <exception name="ServletException" type="javax.servlet.ServletException"/>
  1054. <exception name="IOException" type="java.io.IOException"/>
  1055. </method>
  1056. <doc>
  1057. <![CDATA[A servlet to print out the running configuration data.]]>
  1058. </doc>
  1059. </class>
  1060. <!-- end class org.apache.hadoop.conf.ConfServlet -->
  1061. <!-- start class org.apache.hadoop.conf.ConfServlet.BadFormatException -->
  1062. <class name="ConfServlet.BadFormatException" extends="java.lang.Exception"
  1063. abstract="false"
  1064. static="true" final="false" visibility="public"
  1065. deprecated="not deprecated">
  1066. <constructor name="ConfServlet.BadFormatException" type="java.lang.String"
  1067. static="false" final="false" visibility="public"
  1068. deprecated="not deprecated">
  1069. </constructor>
  1070. </class>
  1071. <!-- end class org.apache.hadoop.conf.ConfServlet.BadFormatException -->
  1072. </package>
  1073. <package name="org.apache.hadoop.fs">
  1074. <!-- start class org.apache.hadoop.fs.BlockLocation -->
  1075. <class name="BlockLocation" extends="java.lang.Object"
  1076. abstract="false"
  1077. static="false" final="false" visibility="public"
  1078. deprecated="not deprecated">
  1079. <implements name="org.apache.hadoop.io.Writable"/>
  1080. <constructor name="BlockLocation"
  1081. static="false" final="false" visibility="public"
  1082. deprecated="not deprecated">
  1083. <doc>
  1084. <![CDATA[Default Constructor]]>
  1085. </doc>
  1086. </constructor>
  1087. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], long, long"
  1088. static="false" final="false" visibility="public"
  1089. deprecated="not deprecated">
  1090. <doc>
  1091. <![CDATA[Constructor with host, name, offset and length]]>
  1092. </doc>
  1093. </constructor>
  1094. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], java.lang.String[], long, long"
  1095. static="false" final="false" visibility="public"
  1096. deprecated="not deprecated">
  1097. <doc>
  1098. <![CDATA[Constructor with host, name, network topology, offset and length]]>
  1099. </doc>
  1100. </constructor>
  1101. <method name="getHosts" return="java.lang.String[]"
  1102. abstract="false" native="false" synchronized="false"
  1103. static="false" final="false" visibility="public"
  1104. deprecated="not deprecated">
  1105. <exception name="IOException" type="java.io.IOException"/>
  1106. <doc>
  1107. <![CDATA[Get the list of hosts (hostname) hosting this block]]>
  1108. </doc>
  1109. </method>
  1110. <method name="getNames" return="java.lang.String[]"
  1111. abstract="false" native="false" synchronized="false"
  1112. static="false" final="false" visibility="public"
  1113. deprecated="not deprecated">
  1114. <exception name="IOException" type="java.io.IOException"/>
  1115. <doc>
  1116. <![CDATA[Get the list of names (hostname:port) hosting this block]]>
  1117. </doc>
  1118. </method>
  1119. <method name="getTopologyPaths" return="java.lang.String[]"
  1120. abstract="false" native="false" synchronized="false"
  1121. static="false" final="false" visibility="public"
  1122. deprecated="not deprecated">
  1123. <exception name="IOException" type="java.io.IOException"/>
  1124. <doc>
  1125. <![CDATA[Get the list of network topology paths for each of the hosts.
  1126. The last component of the path is the host.]]>
  1127. </doc>
  1128. </method>
  1129. <method name="getOffset" return="long"
  1130. abstract="false" native="false" synchronized="false"
  1131. static="false" final="false" visibility="public"
  1132. deprecated="not deprecated">
  1133. <doc>
  1134. <![CDATA[Get the start offset of file associated with this block]]>
  1135. </doc>
  1136. </method>
  1137. <method name="getLength" return="long"
  1138. abstract="false" native="false" synchronized="false"
  1139. static="false" final="false" visibility="public"
  1140. deprecated="not deprecated">
  1141. <doc>
  1142. <![CDATA[Get the length of the block]]>
  1143. </doc>
  1144. </method>
  1145. <method name="setOffset"
  1146. abstract="false" native="false" synchronized="false"
  1147. static="false" final="false" visibility="public"
  1148. deprecated="not deprecated">
  1149. <param name="offset" type="long"/>
  1150. <doc>
  1151. <![CDATA[Set the start offset of file associated with this block]]>
  1152. </doc>
  1153. </method>
  1154. <method name="setLength"
  1155. abstract="false" native="false" synchronized="false"
  1156. static="false" final="false" visibility="public"
  1157. deprecated="not deprecated">
  1158. <param name="length" type="long"/>
  1159. <doc>
  1160. <![CDATA[Set the length of block]]>
  1161. </doc>
  1162. </method>
  1163. <method name="setHosts"
  1164. abstract="false" native="false" synchronized="false"
  1165. static="false" final="false" visibility="public"
  1166. deprecated="not deprecated">
  1167. <param name="hosts" type="java.lang.String[]"/>
  1168. <exception name="IOException" type="java.io.IOException"/>
  1169. <doc>
  1170. <![CDATA[Set the hosts hosting this block]]>
  1171. </doc>
  1172. </method>
  1173. <method name="setNames"
  1174. abstract="false" native="false" synchronized="false"
  1175. static="false" final="false" visibility="public"
  1176. deprecated="not deprecated">
  1177. <param name="names" type="java.lang.String[]"/>
  1178. <exception name="IOException" type="java.io.IOException"/>
  1179. <doc>
  1180. <![CDATA[Set the names (host:port) hosting this block]]>
  1181. </doc>
  1182. </method>
  1183. <method name="setTopologyPaths"
  1184. abstract="false" native="false" synchronized="false"
  1185. static="false" final="false" visibility="public"
  1186. deprecated="not deprecated">
  1187. <param name="topologyPaths" type="java.lang.String[]"/>
  1188. <exception name="IOException" type="java.io.IOException"/>
  1189. <doc>
  1190. <![CDATA[Set the network topology paths of the hosts]]>
  1191. </doc>
  1192. </method>
  1193. <method name="write"
  1194. abstract="false" native="false" synchronized="false"
  1195. static="false" final="false" visibility="public"
  1196. deprecated="not deprecated">
  1197. <param name="out" type="java.io.DataOutput"/>
  1198. <exception name="IOException" type="java.io.IOException"/>
  1199. <doc>
  1200. <![CDATA[Implement write of Writable]]>
  1201. </doc>
  1202. </method>
  1203. <method name="readFields"
  1204. abstract="false" native="false" synchronized="false"
  1205. static="false" final="false" visibility="public"
  1206. deprecated="not deprecated">
  1207. <param name="in" type="java.io.DataInput"/>
  1208. <exception name="IOException" type="java.io.IOException"/>
  1209. <doc>
  1210. <![CDATA[Implement readFields of Writable]]>
  1211. </doc>
  1212. </method>
  1213. <method name="toString" return="java.lang.String"
  1214. abstract="false" native="false" synchronized="false"
  1215. static="false" final="false" visibility="public"
  1216. deprecated="not deprecated">
  1217. </method>
  1218. </class>
  1219. <!-- end class org.apache.hadoop.fs.BlockLocation -->
  1220. <!-- start class org.apache.hadoop.fs.BufferedFSInputStream -->
  1221. <class name="BufferedFSInputStream" extends="java.io.BufferedInputStream"
  1222. abstract="false"
  1223. static="false" final="false" visibility="public"
  1224. deprecated="not deprecated">
  1225. <implements name="org.apache.hadoop.fs.Seekable"/>
  1226. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  1227. <constructor name="BufferedFSInputStream" type="org.apache.hadoop.fs.FSInputStream, int"
  1228. static="false" final="false" visibility="public"
  1229. deprecated="not deprecated">
  1230. <doc>
  1231. <![CDATA[Creates a <code>BufferedFSInputStream</code>
  1232. with the specified buffer size,
  1233. and saves its argument, the input stream
  1234. <code>in</code>, for later use. An internal
  1235. buffer array of length <code>size</code>
  1236. is created and stored in <code>buf</code>.
  1237. @param in the underlying input stream.
  1238. @param size the buffer size.
  1239. @exception IllegalArgumentException if size <= 0.]]>
  1240. </doc>
  1241. </constructor>
  1242. <method name="getPos" return="long"
  1243. abstract="false" native="false" synchronized="false"
  1244. static="false" final="false" visibility="public"
  1245. deprecated="not deprecated">
  1246. <exception name="IOException" type="java.io.IOException"/>
  1247. </method>
  1248. <method name="skip" return="long"
  1249. abstract="false" native="false" synchronized="false"
  1250. static="false" final="false" visibility="public"
  1251. deprecated="not deprecated">
  1252. <param name="n" type="long"/>
  1253. <exception name="IOException" type="java.io.IOException"/>
  1254. </method>
  1255. <method name="seek"
  1256. abstract="false" native="false" synchronized="false"
  1257. static="false" final="false" visibility="public"
  1258. deprecated="not deprecated">
  1259. <param name="pos" type="long"/>
  1260. <exception name="IOException" type="java.io.IOException"/>
  1261. </method>
  1262. <method name="seekToNewSource" return="boolean"
  1263. abstract="false" native="false" synchronized="false"
  1264. static="false" final="false" visibility="public"
  1265. deprecated="not deprecated">
  1266. <param name="targetPos" type="long"/>
  1267. <exception name="IOException" type="java.io.IOException"/>
  1268. </method>
  1269. <method name="read" return="int"
  1270. abstract="false" native="false" synchronized="false"
  1271. static="false" final="false" visibility="public"
  1272. deprecated="not deprecated">
  1273. <param name="position" type="long"/>
  1274. <param name="buffer" type="byte[]"/>
  1275. <param name="offset" type="int"/>
  1276. <param name="length" type="int"/>
  1277. <exception name="IOException" type="java.io.IOException"/>
  1278. </method>
  1279. <method name="readFully"
  1280. abstract="false" native="false" synchronized="false"
  1281. static="false" final="false" visibility="public"
  1282. deprecated="not deprecated">
  1283. <param name="position" type="long"/>
  1284. <param name="buffer" type="byte[]"/>
  1285. <param name="offset" type="int"/>
  1286. <param name="length" type="int"/>
  1287. <exception name="IOException" type="java.io.IOException"/>
  1288. </method>
  1289. <method name="readFully"
  1290. abstract="false" native="false" synchronized="false"
  1291. static="false" final="false" visibility="public"
  1292. deprecated="not deprecated">
  1293. <param name="position" type="long"/>
  1294. <param name="buffer" type="byte[]"/>
  1295. <exception name="IOException" type="java.io.IOException"/>
  1296. </method>
  1297. <doc>
  1298. <![CDATA[A class optimizes reading from FSInputStream by bufferring]]>
  1299. </doc>
  1300. </class>
  1301. <!-- end class org.apache.hadoop.fs.BufferedFSInputStream -->
  1302. <!-- start class org.apache.hadoop.fs.ChecksumException -->
  1303. <class name="ChecksumException" extends="java.io.IOException"
  1304. abstract="false"
  1305. static="false" final="false" visibility="public"
  1306. deprecated="not deprecated">
  1307. <constructor name="ChecksumException" type="java.lang.String, long"
  1308. static="false" final="false" visibility="public"
  1309. deprecated="not deprecated">
  1310. </constructor>
  1311. <method name="getPos" return="long"
  1312. abstract="false" native="false" synchronized="false"
  1313. static="false" final="false" visibility="public"
  1314. deprecated="not deprecated">
  1315. </method>
  1316. <doc>
  1317. <![CDATA[Thrown for checksum errors.]]>
  1318. </doc>
  1319. </class>
  1320. <!-- end class org.apache.hadoop.fs.ChecksumException -->
  1321. <!-- start class org.apache.hadoop.fs.ChecksumFileSystem -->
  1322. <class name="ChecksumFileSystem" extends="org.apache.hadoop.fs.FilterFileSystem"
  1323. abstract="true"
  1324. static="false" final="false" visibility="public"
  1325. deprecated="not deprecated">
  1326. <constructor name="ChecksumFileSystem" type="org.apache.hadoop.fs.FileSystem"
  1327. static="false" final="false" visibility="public"
  1328. deprecated="not deprecated">
  1329. </constructor>
  1330. <method name="getApproxChkSumLength" return="double"
  1331. abstract="false" native="false" synchronized="false"
  1332. static="true" final="false" visibility="public"
  1333. deprecated="not deprecated">
  1334. <param name="size" type="long"/>
  1335. </method>
  1336. <method name="setConf"
  1337. abstract="false" native="false" synchronized="false"
  1338. static="false" final="false" visibility="public"
  1339. deprecated="not deprecated">
  1340. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1341. </method>
  1342. <method name="setVerifyChecksum"
  1343. abstract="false" native="false" synchronized="false"
  1344. static="false" final="false" visibility="public"
  1345. deprecated="not deprecated">
  1346. <param name="verifyChecksum" type="boolean"/>
  1347. <doc>
  1348. <![CDATA[Set whether to verify checksum.]]>
  1349. </doc>
  1350. </method>
  1351. <method name="getRawFileSystem" return="org.apache.hadoop.fs.FileSystem"
  1352. abstract="false" native="false" synchronized="false"
  1353. static="false" final="false" visibility="public"
  1354. deprecated="not deprecated">
  1355. <doc>
  1356. <![CDATA[get the raw file system]]>
  1357. </doc>
  1358. </method>
  1359. <method name="getChecksumFile" return="org.apache.hadoop.fs.Path"
  1360. abstract="false" native="false" synchronized="false"
  1361. static="false" final="false" visibility="public"
  1362. deprecated="not deprecated">
  1363. <param name="file" type="org.apache.hadoop.fs.Path"/>
  1364. <doc>
  1365. <![CDATA[Return the name of the checksum file associated with a file.]]>
  1366. </doc>
  1367. </method>
  1368. <method name="isChecksumFile" return="boolean"
  1369. abstract="false" native="false" synchronized="false"
  1370. static="true" final="false" visibility="public"
  1371. deprecated="not deprecated">
  1372. <param name="file" type="org.apache.hadoop.fs.Path"/>
  1373. <doc>
  1374. <![CDATA[Return true iff file is a checksum file name.]]>
  1375. </doc>
  1376. </method>
  1377. <method name="getChecksumFileLength" return="long"
  1378. abstract="false" native="false" synchronized="false"
  1379. static="false" final="false" visibility="public"
  1380. deprecated="not deprecated">
  1381. <param name="file" type="org.apache.hadoop.fs.Path"/>
  1382. <param name="fileSize" type="long"/>
  1383. <doc>
  1384. <![CDATA[Return the length of the checksum file given the size of the
  1385. actual file.]]>
  1386. </doc>
  1387. </method>
  1388. <method name="getBytesPerSum" return="int"
  1389. abstract="false" native="false" synchronized="false"
  1390. static="false" final="false" visibility="public"
  1391. deprecated="not deprecated">
  1392. <doc>
  1393. <![CDATA[Return the bytes Per Checksum]]>
  1394. </doc>
  1395. </method>
  1396. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  1397. abstract="false" native="false" synchronized="false"
  1398. static="false" final="false" visibility="public"
  1399. deprecated="not deprecated">
  1400. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1401. <param name="bufferSize" type="int"/>
  1402. <exception name="IOException" type="java.io.IOException"/>
  1403. <doc>
  1404. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  1405. @param f the file name to open
  1406. @param bufferSize the size of the buffer to be used.]]>
  1407. </doc>
  1408. </method>
  1409. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  1410. abstract="false" native="false" synchronized="false"
  1411. static="false" final="false" visibility="public"
  1412. deprecated="not deprecated">
  1413. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1414. <param name="bufferSize" type="int"/>
  1415. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  1416. <exception name="IOException" type="java.io.IOException"/>
  1417. <doc>
  1418. <![CDATA[{@inheritDoc}]]>
  1419. </doc>
  1420. </method>
  1421. <method name="getChecksumLength" return="long"
  1422. abstract="false" native="false" synchronized="false"
  1423. static="true" final="false" visibility="public"
  1424. deprecated="not deprecated">
  1425. <param name="size" type="long"/>
  1426. <param name="bytesPerSum" type="int"/>
  1427. <doc>
  1428. <![CDATA[Calculated the length of the checksum file in bytes.
  1429. @param size the length of the data file in bytes
  1430. @param bytesPerSum the number of bytes in a checksum block
  1431. @return the number of bytes in the checksum file]]>
  1432. </doc>
  1433. </method>
  1434. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  1435. abstract="false" native="false" synchronized="false"
  1436. static="false" final="false" visibility="public"
  1437. deprecated="not deprecated">
  1438. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1439. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  1440. <param name="overwrite" type="boolean"/>
  1441. <param name="bufferSize" type="int"/>
  1442. <param name="replication" type="short"/>
  1443. <param name="blockSize" type="long"/>
  1444. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  1445. <exception name="IOException" type="java.io.IOException"/>
  1446. <doc>
  1447. <![CDATA[{@inheritDoc}]]>
  1448. </doc>
  1449. </method>
  1450. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  1451. abstract="false" native="false" synchronized="false"
  1452. static="false" final="false" visibility="public"
  1453. deprecated="not deprecated">
  1454. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1455. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  1456. <param name="overwrite" type="boolean"/>
  1457. <param name="bufferSize" type="int"/>
  1458. <param name="replication" type="short"/>
  1459. <param name="blockSize" type="long"/>
  1460. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  1461. <exception name="IOException" type="java.io.IOException"/>
  1462. <doc>
  1463. <![CDATA[{@inheritDoc}]]>
  1464. </doc>
  1465. </method>
  1466. <method name="setReplication" return="boolean"
  1467. abstract="false" native="false" synchronized="false"
  1468. static="false" final="false" visibility="public"
  1469. deprecated="not deprecated">
  1470. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1471. <param name="replication" type="short"/>
  1472. <exception name="IOException" type="java.io.IOException"/>
  1473. <doc>
  1474. <![CDATA[Set replication for an existing file.
  1475. Implement the abstract <tt>setReplication</tt> of <tt>FileSystem</tt>
  1476. @param src file name
  1477. @param replication new replication
  1478. @throws IOException
  1479. @return true if successful;
  1480. false if file does not exist or is a directory]]>
  1481. </doc>
  1482. </method>
  1483. <method name="rename" return="boolean"
  1484. abstract="false" native="false" synchronized="false"
  1485. static="false" final="false" visibility="public"
  1486. deprecated="not deprecated">
  1487. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1488. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  1489. <exception name="IOException" type="java.io.IOException"/>
  1490. <doc>
  1491. <![CDATA[Rename files/dirs]]>
  1492. </doc>
  1493. </method>
  1494. <method name="delete" return="boolean"
  1495. abstract="false" native="false" synchronized="false"
  1496. static="false" final="false" visibility="public"
  1497. deprecated="not deprecated">
  1498. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1499. <param name="recursive" type="boolean"/>
  1500. <exception name="IOException" type="java.io.IOException"/>
  1501. <doc>
  1502. <![CDATA[Implement the delete(Path, boolean) in checksum
  1503. file system.]]>
  1504. </doc>
  1505. </method>
  1506. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  1507. abstract="false" native="false" synchronized="false"
  1508. static="false" final="false" visibility="public"
  1509. deprecated="not deprecated">
  1510. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1511. <exception name="IOException" type="java.io.IOException"/>
  1512. <doc>
  1513. <![CDATA[List the statuses of the files/directories in the given path if the path is
  1514. a directory.
  1515. @param f
  1516. given path
  1517. @return the statuses of the files/directories in the given patch
  1518. @throws IOException]]>
  1519. </doc>
  1520. </method>
  1521. <method name="mkdirs" return="boolean"
  1522. abstract="false" native="false" synchronized="false"
  1523. static="false" final="false" visibility="public"
  1524. deprecated="not deprecated">
  1525. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1526. <exception name="IOException" type="java.io.IOException"/>
  1527. </method>
  1528. <method name="copyFromLocalFile"
  1529. abstract="false" native="false" synchronized="false"
  1530. static="false" final="false" visibility="public"
  1531. deprecated="not deprecated">
  1532. <param name="delSrc" type="boolean"/>
  1533. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1534. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  1535. <exception name="IOException" type="java.io.IOException"/>
  1536. </method>
  1537. <method name="copyToLocalFile"
  1538. abstract="false" native="false" synchronized="false"
  1539. static="false" final="false" visibility="public"
  1540. deprecated="not deprecated">
  1541. <param name="delSrc" type="boolean"/>
  1542. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1543. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  1544. <exception name="IOException" type="java.io.IOException"/>
  1545. <doc>
  1546. <![CDATA[The src file is under FS, and the dst is on the local disk.
  1547. Copy it from FS control to the local dst name.]]>
  1548. </doc>
  1549. </method>
  1550. <method name="copyToLocalFile"
  1551. abstract="false" native="false" synchronized="false"
  1552. static="false" final="false" visibility="public"
  1553. deprecated="not deprecated">
  1554. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1555. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  1556. <param name="copyCrc" type="boolean"/>
  1557. <exception name="IOException" type="java.io.IOException"/>
  1558. <doc>
  1559. <![CDATA[The src file is under FS, and the dst is on the local disk.
  1560. Copy it from FS control to the local dst name.
  1561. If src and dst are directories, the copyCrc parameter
  1562. determines whether to copy CRC files.]]>
  1563. </doc>
  1564. </method>
  1565. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  1566. abstract="false" native="false" synchronized="false"
  1567. static="false" final="false" visibility="public"
  1568. deprecated="not deprecated">
  1569. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  1570. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  1571. <exception name="IOException" type="java.io.IOException"/>
  1572. </method>
  1573. <method name="completeLocalOutput"
  1574. abstract="false" native="false" synchronized="false"
  1575. static="false" final="false" visibility="public"
  1576. deprecated="not deprecated">
  1577. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  1578. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  1579. <exception name="IOException" type="java.io.IOException"/>
  1580. </method>
  1581. <method name="reportChecksumFailure" return="boolean"
  1582. abstract="false" native="false" synchronized="false"
  1583. static="false" final="false" visibility="public"
  1584. deprecated="not deprecated">
  1585. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1586. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  1587. <param name="inPos" type="long"/>
  1588. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  1589. <param name="sumsPos" type="long"/>
  1590. <doc>
  1591. <![CDATA[Report a checksum error to the file system.
  1592. @param f the file name containing the error
  1593. @param in the stream open on the file
  1594. @param inPos the position of the beginning of the bad data in the file
  1595. @param sums the stream open on the checksum file
  1596. @param sumsPos the position of the beginning of the bad data in the checksum file
  1597. @return if retry is neccessary]]>
  1598. </doc>
  1599. </method>
  1600. <doc>
  1601. <![CDATA[Abstract Checksumed FileSystem.
  1602. It provide a basice implementation of a Checksumed FileSystem,
  1603. which creates a checksum file for each raw file.
  1604. It generates & verifies checksums at the client side.]]>
  1605. </doc>
  1606. </class>
  1607. <!-- end class org.apache.hadoop.fs.ChecksumFileSystem -->
  1608. <!-- start class org.apache.hadoop.fs.CommonConfigurationKeys -->
  1609. <class name="CommonConfigurationKeys" extends="java.lang.Object"
  1610. abstract="false"
  1611. static="false" final="false" visibility="public"
  1612. deprecated="not deprecated">
  1613. <constructor name="CommonConfigurationKeys"
  1614. static="false" final="false" visibility="public"
  1615. deprecated="not deprecated">
  1616. </constructor>
  1617. <field name="FS_DEFAULT_NAME_KEY" type="java.lang.String"
  1618. transient="false" volatile="false"
  1619. static="true" final="true" visibility="public"
  1620. deprecated="not deprecated">
  1621. <doc>
  1622. <![CDATA[See src/core/core-default.xml]]>
  1623. </doc>
  1624. </field>
  1625. <field name="FS_DEFAULT_NAME_DEFAULT" type="java.lang.String"
  1626. transient="false" volatile="false"
  1627. static="true" final="true" visibility="public"
  1628. deprecated="not deprecated">
  1629. </field>
  1630. <field name="HADOOP_SECURITY_GROUP_MAPPING" type="java.lang.String"
  1631. transient="false" volatile="false"
  1632. static="true" final="true" visibility="public"
  1633. deprecated="not deprecated">
  1634. <doc>
  1635. <![CDATA[See src/core/core-default.xml]]>
  1636. </doc>
  1637. </field>
  1638. <field name="HADOOP_SECURITY_AUTHENTICATION" type="java.lang.String"
  1639. transient="false" volatile="false"
  1640. static="true" final="true" visibility="public"
  1641. deprecated="not deprecated">
  1642. <doc>
  1643. <![CDATA[See src/core/core-default.xml]]>
  1644. </doc>
  1645. </field>
  1646. <field name="HADOOP_SECURITY_AUTHORIZATION" type="java.lang.String"
  1647. transient="false" volatile="false"
  1648. static="true" final="true" visibility="public"
  1649. deprecated="not deprecated">
  1650. <doc>
  1651. <![CDATA[See src/core/core-default.xml]]>
  1652. </doc>
  1653. </field>
  1654. <field name="HADOOP_SECURITY_SERVICE_USER_NAME_KEY" type="java.lang.String"
  1655. transient="false" volatile="false"
  1656. static="true" final="true" visibility="public"
  1657. deprecated="not deprecated">
  1658. <doc>
  1659. <![CDATA[See src/core/core-default.xml]]>
  1660. </doc>
  1661. </field>
  1662. <field name="HADOOP_SECURITY_TOKEN_SERVICE_USE_IP" type="java.lang.String"
  1663. transient="false" volatile="false"
  1664. static="true" final="true" visibility="public"
  1665. deprecated="not deprecated">
  1666. <doc>
  1667. <![CDATA[See src/core/core-default.xml]]>
  1668. </doc>
  1669. </field>
  1670. <field name="HADOOP_SECURITY_TOKEN_SERVICE_USE_IP_DEFAULT" type="boolean"
  1671. transient="false" volatile="false"
  1672. static="true" final="true" visibility="public"
  1673. deprecated="not deprecated">
  1674. </field>
  1675. <field name="HADOOP_SECURITY_USE_WEAK_HTTP_CRYPTO_KEY" type="java.lang.String"
  1676. transient="false" volatile="false"
  1677. static="true" final="true" visibility="public"
  1678. deprecated="not deprecated">
  1679. </field>
  1680. <field name="HADOOP_SECURITY_USE_WEAK_HTTP_CRYPTO_DEFAULT" type="boolean"
  1681. transient="false" volatile="false"
  1682. static="true" final="true" visibility="public"
  1683. deprecated="not deprecated">
  1684. </field>
  1685. <field name="IPC_SERVER_RPC_READ_THREADS_KEY" type="java.lang.String"
  1686. transient="false" volatile="false"
  1687. static="true" final="true" visibility="public"
  1688. deprecated="not deprecated">
  1689. </field>
  1690. <field name="IPC_SERVER_RPC_READ_THREADS_DEFAULT" type="int"
  1691. transient="false" volatile="false"
  1692. static="true" final="true" visibility="public"
  1693. deprecated="not deprecated">
  1694. </field>
  1695. <field name="IO_NATIVE_LIB_AVAILABLE_KEY" type="java.lang.String"
  1696. transient="false" volatile="false"
  1697. static="true" final="true" visibility="public"
  1698. deprecated="not deprecated">
  1699. </field>
  1700. <field name="IO_NATIVE_LIB_AVAILABLE_DEFAULT" type="boolean"
  1701. transient="false" volatile="false"
  1702. static="true" final="true" visibility="public"
  1703. deprecated="not deprecated">
  1704. <doc>
  1705. <![CDATA[Default value for IO_NATIVE_LIB_AVAILABLE_KEY]]>
  1706. </doc>
  1707. </field>
  1708. <field name="IO_COMPRESSION_CODEC_SNAPPY_BUFFERSIZE_KEY" type="java.lang.String"
  1709. transient="false" volatile="false"
  1710. static="true" final="true" visibility="public"
  1711. deprecated="not deprecated">
  1712. <doc>
  1713. <![CDATA[Internal buffer size for Snappy compressor/decompressors]]>
  1714. </doc>
  1715. </field>
  1716. <field name="IO_COMPRESSION_CODEC_SNAPPY_BUFFERSIZE_DEFAULT" type="int"
  1717. transient="false" volatile="false"
  1718. static="true" final="true" visibility="public"
  1719. deprecated="not deprecated">
  1720. <doc>
  1721. <![CDATA[Default value for IO_COMPRESSION_CODEC_SNAPPY_BUFFERSIZE_KEY]]>
  1722. </doc>
  1723. </field>
  1724. <field name="HADOOP_RELAXED_VERSION_CHECK_KEY" type="java.lang.String"
  1725. transient="false" volatile="false"
  1726. static="true" final="true" visibility="public"
  1727. deprecated="not deprecated">
  1728. <doc>
  1729. <![CDATA[See src/core/core-default.xml]]>
  1730. </doc>
  1731. </field>
  1732. <field name="HADOOP_RELAXED_VERSION_CHECK_DEFAULT" type="boolean"
  1733. transient="false" volatile="false"
  1734. static="true" final="true" visibility="public"
  1735. deprecated="not deprecated">
  1736. </field>
  1737. <doc>
  1738. <![CDATA[This class contains constants for configuration keys used
  1739. in the common code.]]>
  1740. </doc>
  1741. </class>
  1742. <!-- end class org.apache.hadoop.fs.CommonConfigurationKeys -->
  1743. <!-- start class org.apache.hadoop.fs.ContentSummary -->
  1744. <class name="ContentSummary" extends="java.lang.Object"
  1745. abstract="false"
  1746. static="false" final="false" visibility="public"
  1747. deprecated="not deprecated">
  1748. <implements name="org.apache.hadoop.io.Writable"/>
  1749. <constructor name="ContentSummary"
  1750. static="false" final="false" visibility="public"
  1751. deprecated="not deprecated">
  1752. <doc>
  1753. <![CDATA[Constructor]]>
  1754. </doc>
  1755. </constructor>
  1756. <constructor name="ContentSummary" type="long, long, long"
  1757. static="false" final="false" visibility="public"
  1758. deprecated="not deprecated">
  1759. <doc>
  1760. <![CDATA[Constructor]]>
  1761. </doc>
  1762. </constructor>
  1763. <constructor name="ContentSummary" type="long, long, long, long, long, long"
  1764. static="false" final="false" visibility="public"
  1765. deprecated="not deprecated">
  1766. <doc>
  1767. <![CDATA[Constructor]]>
  1768. </doc>
  1769. </constructor>
  1770. <method name="getLength" return="long"
  1771. abstract="false" native="false" synchronized="false"
  1772. static="false" final="false" visibility="public"
  1773. deprecated="not deprecated">
  1774. <doc>
  1775. <![CDATA[@return the length]]>
  1776. </doc>
  1777. </method>
  1778. <method name="getDirectoryCount" return="long"
  1779. abstract="false" native="false" synchronized="false"
  1780. static="false" final="false" visibility="public"
  1781. deprecated="not deprecated">
  1782. <doc>
  1783. <![CDATA[@return the directory count]]>
  1784. </doc>
  1785. </method>
  1786. <method name="getFileCount" return="long"
  1787. abstract="false" native="false" synchronized="false"
  1788. static="false" final="false" visibility="public"
  1789. deprecated="not deprecated">
  1790. <doc>
  1791. <![CDATA[@return the file count]]>
  1792. </doc>
  1793. </method>
  1794. <method name="getQuota" return="long"
  1795. abstract="false" native="false" synchronized="false"
  1796. static="false" final="false" visibility="public"
  1797. deprecated="not deprecated">
  1798. <doc>
  1799. <![CDATA[Return the directory quota]]>
  1800. </doc>
  1801. </method>
  1802. <method name="getSpaceConsumed" return="long"
  1803. abstract="false" native="false" synchronized="false"
  1804. static="false" final="false" visibility="public"
  1805. deprecated="not deprecated">
  1806. <doc>
  1807. <![CDATA[Retuns (disk) space consumed]]>
  1808. </doc>
  1809. </method>
  1810. <method name="getSpaceQuota" return="long"
  1811. abstract="false" native="false" synchronized="false"
  1812. static="false" final="false" visibility="public"
  1813. deprecated="not deprecated">
  1814. <doc>
  1815. <![CDATA[Returns (disk) space quota]]>
  1816. </doc>
  1817. </method>
  1818. <method name="write"
  1819. abstract="false" native="false" synchronized="false"
  1820. static="false" final="false" visibility="public"
  1821. deprecated="not deprecated">
  1822. <param name="out" type="java.io.DataOutput"/>
  1823. <exception name="IOException" type="java.io.IOException"/>
  1824. <doc>
  1825. <![CDATA[{@inheritDoc}]]>
  1826. </doc>
  1827. </method>
  1828. <method name="readFields"
  1829. abstract="false" native="false" synchronized="false"
  1830. static="false" final="false" visibility="public"
  1831. deprecated="not deprecated">
  1832. <param name="in" type="java.io.DataInput"/>
  1833. <exception name="IOException" type="java.io.IOException"/>
  1834. <doc>
  1835. <![CDATA[{@inheritDoc}]]>
  1836. </doc>
  1837. </method>
  1838. <method name="getHeader" return="java.lang.String"
  1839. abstract="false" native="false" synchronized="false"
  1840. static="true" final="false" visibility="public"
  1841. deprecated="not deprecated">
  1842. <param name="qOption" type="boolean"/>
  1843. <doc>
  1844. <![CDATA[Return the header of the output.
  1845. if qOption is false, output directory count, file count, and content size;
  1846. if qOption is true, output quota and remaining quota as well.
  1847. @param qOption a flag indicating if quota needs to be printed or not
  1848. @return the header of the output]]>
  1849. </doc>
  1850. </method>
  1851. <method name="toString" return="java.lang.String"
  1852. abstract="false" native="false" synchronized="false"
  1853. static="false" final="false" visibility="public"
  1854. deprecated="not deprecated">
  1855. <doc>
  1856. <![CDATA[{@inheritDoc}]]>
  1857. </doc>
  1858. </method>
  1859. <method name="toString" return="java.lang.String"
  1860. abstract="false" native="false" synchronized="false"
  1861. static="false" final="false" visibility="public"
  1862. deprecated="not deprecated">
  1863. <param name="qOption" type="boolean"/>
  1864. <doc>
  1865. <![CDATA[Return the string representation of the object in the output format.
  1866. if qOption is false, output directory count, file count, and content size;
  1867. if qOption is true, output quota and remaining quota as well.
  1868. @param qOption a flag indicating if quota needs to be printed or not
  1869. @return the string representation of the object]]>
  1870. </doc>
  1871. </method>
  1872. <doc>
  1873. <![CDATA[Store the summary of a content (a directory or a file).]]>
  1874. </doc>
  1875. </class>
  1876. <!-- end class org.apache.hadoop.fs.ContentSummary -->
  1877. <!-- start class org.apache.hadoop.fs.DF -->
  1878. <class name="DF" extends="org.apache.hadoop.util.Shell"
  1879. abstract="false"
  1880. static="false" final="false" visibility="public"
  1881. deprecated="not deprecated">
  1882. <constructor name="DF" type="java.io.File, org.apache.hadoop.conf.Configuration"
  1883. static="false" final="false" visibility="public"
  1884. deprecated="not deprecated">
  1885. <exception name="IOException" type="java.io.IOException"/>
  1886. </constructor>
  1887. <constructor name="DF" type="java.io.File, long"
  1888. static="false" final="false" visibility="public"
  1889. deprecated="not deprecated">
  1890. <exception name="IOException" type="java.io.IOException"/>
  1891. </constructor>
  1892. <method name="getDirPath" return="java.lang.String"
  1893. abstract="false" native="false" synchronized="false"
  1894. static="false" final="false" visibility="public"
  1895. deprecated="not deprecated">
  1896. <doc>
  1897. <![CDATA[@return the canonical path to the volume we're checking.]]>
  1898. </doc>
  1899. </method>
  1900. <method name="getFilesystem" return="java.lang.String"
  1901. abstract="false" native="false" synchronized="false"
  1902. static="false" final="false" visibility="public"
  1903. deprecated="not deprecated">
  1904. <exception name="IOException" type="java.io.IOException"/>
  1905. <doc>
  1906. <![CDATA[@return a string indicating which filesystem volume we're checking.]]>
  1907. </doc>
  1908. </method>
  1909. <method name="getCapacity" return="long"
  1910. abstract="false" native="false" synchronized="false"
  1911. static="false" final="false" visibility="public"
  1912. deprecated="not deprecated">
  1913. <doc>
  1914. <![CDATA[@return the capacity of the measured filesystem in bytes.]]>
  1915. </doc>
  1916. </method>
  1917. <method name="getUsed" return="long"
  1918. abstract="false" native="false" synchronized="false"
  1919. static="false" final="false" visibility="public"
  1920. deprecated="not deprecated">
  1921. <doc>
  1922. <![CDATA[@return the total used space on the filesystem in bytes.]]>
  1923. </doc>
  1924. </method>
  1925. <method name="getAvailable" return="long"
  1926. abstract="false" native="false" synchronized="false"
  1927. static="false" final="false" visibility="public"
  1928. deprecated="not deprecated">
  1929. <doc>
  1930. <![CDATA[@return the usable space remaining on the filesystem in bytes.]]>
  1931. </doc>
  1932. </method>
  1933. <method name="getPercentUsed" return="int"
  1934. abstract="false" native="false" synchronized="false"
  1935. static="false" final="false" visibility="public"
  1936. deprecated="not deprecated">
  1937. <doc>
  1938. <![CDATA[@return the amount of the volume full, as a percent.]]>
  1939. </doc>
  1940. </method>
  1941. <method name="getMount" return="java.lang.String"
  1942. abstract="false" native="false" synchronized="false"
  1943. static="false" final="false" visibility="public"
  1944. deprecated="not deprecated">
  1945. <exception name="IOException" type="java.io.IOException"/>
  1946. <doc>
  1947. <![CDATA[@return the filesystem mount point for the indicated volume]]>
  1948. </doc>
  1949. </method>
  1950. <method name="toString" return="java.lang.String"
  1951. abstract="false" native="false" synchronized="false"
  1952. static="false" final="false" visibility="public"
  1953. deprecated="not deprecated">
  1954. </method>
  1955. <method name="getExecString" return="java.lang.String[]"
  1956. abstract="false" native="false" synchronized="false"
  1957. static="false" final="false" visibility="protected"
  1958. deprecated="not deprecated">
  1959. </method>
  1960. <method name="parseExecResult"
  1961. abstract="false" native="false" synchronized="false"
  1962. static="false" final="false" visibility="protected"
  1963. deprecated="not deprecated">
  1964. <param name="lines" type="java.io.BufferedReader"/>
  1965. <exception name="IOException" type="java.io.IOException"/>
  1966. </method>
  1967. <method name="main"
  1968. abstract="false" native="false" synchronized="false"
  1969. static="true" final="false" visibility="public"
  1970. deprecated="not deprecated">
  1971. <param name="args" type="java.lang.String[]"/>
  1972. <exception name="Exception" type="java.lang.Exception"/>
  1973. </method>
  1974. <field name="DF_INTERVAL_DEFAULT" type="long"
  1975. transient="false" volatile="false"
  1976. static="true" final="true" visibility="public"
  1977. deprecated="not deprecated">
  1978. <doc>
  1979. <![CDATA[Default DF refresh interval.]]>
  1980. </doc>
  1981. </field>
  1982. <doc>
  1983. <![CDATA[Filesystem disk space usage statistics. Uses the unix 'df' program to get
  1984. mount points, and java.io.File for space utilization. Tested on Linux,
  1985. FreeBSD, Cygwin.]]>
  1986. </doc>
  1987. </class>
  1988. <!-- end class org.apache.hadoop.fs.DF -->
  1989. <!-- start class org.apache.hadoop.fs.DU -->
  1990. <class name="DU" extends="org.apache.hadoop.util.Shell"
  1991. abstract="false"
  1992. static="false" final="false" visibility="public"
  1993. deprecated="not deprecated">
  1994. <constructor name="DU" type="java.io.File, long"
  1995. static="false" final="false" visibility="public"
  1996. deprecated="not deprecated">
  1997. <exception name="IOException" type="java.io.IOException"/>
  1998. <doc>
  1999. <![CDATA[Keeps track of disk usage.
  2000. @param path the path to check disk usage in
  2001. @param interval refresh the disk usage at this interval
  2002. @throws IOException if we fail to refresh the disk usage]]>
  2003. </doc>
  2004. </constructor>
  2005. <constructor name="DU" type="java.io.File, org.apache.hadoop.conf.Configuration"
  2006. static="false" final="false" visibility="public"
  2007. deprecated="not deprecated">
  2008. <exception name="IOException" type="java.io.IOException"/>
  2009. <doc>
  2010. <![CDATA[Keeps track of disk usage.
  2011. @param path the path to check disk usage in
  2012. @param conf configuration object
  2013. @throws IOException if we fail to refresh the disk usage]]>
  2014. </doc>
  2015. </constructor>
  2016. <method name="decDfsUsed"
  2017. abstract="false" native="false" synchronized="false"
  2018. static="false" final="false" visibility="public"
  2019. deprecated="not deprecated">
  2020. <param name="value" type="long"/>
  2021. <doc>
  2022. <![CDATA[Decrease how much disk space we use.
  2023. @param value decrease by this value]]>
  2024. </doc>
  2025. </method>
  2026. <method name="incDfsUsed"
  2027. abstract="false" native="false" synchronized="false"
  2028. static="false" final="false" visibility="public"
  2029. deprecated="not deprecated">
  2030. <param name="value" type="long"/>
  2031. <doc>
  2032. <![CDATA[Increase how much disk space we use.
  2033. @param value increase by this value]]>
  2034. </doc>
  2035. </method>
  2036. <method name="getUsed" return="long"
  2037. abstract="false" native="false" synchronized="false"
  2038. static="false" final="false" visibility="public"
  2039. deprecated="not deprecated">
  2040. <exception name="IOException" type="java.io.IOException"/>
  2041. <doc>
  2042. <![CDATA[@return disk space used
  2043. @throws IOException if the shell command fails]]>
  2044. </doc>
  2045. </method>
  2046. <method name="getDirPath" return="java.lang.String"
  2047. abstract="false" native="false" synchronized="false"
  2048. static="false" final="false" visibility="public"
  2049. deprecated="not deprecated">
  2050. <doc>
  2051. <![CDATA[@return the path of which we're keeping track of disk usage]]>
  2052. </doc>
  2053. </method>
  2054. <method name="start"
  2055. abstract="false" native="false" synchronized="false"
  2056. static="false" final="false" visibility="public"
  2057. deprecated="not deprecated">
  2058. <doc>
  2059. <![CDATA[Start the disk usage checking thread.]]>
  2060. </doc>
  2061. </method>
  2062. <method name="shutdown"
  2063. abstract="false" native="false" synchronized="false"
  2064. static="false" final="false" visibility="public"
  2065. deprecated="not deprecated">
  2066. <doc>
  2067. <![CDATA[Shut down the refreshing thread.]]>
  2068. </doc>
  2069. </method>
  2070. <method name="toString" return="java.lang.String"
  2071. abstract="false" native="false" synchronized="false"
  2072. static="false" final="false" visibility="public"
  2073. deprecated="not deprecated">
  2074. </method>
  2075. <method name="getExecString" return="java.lang.String[]"
  2076. abstract="false" native="false" synchronized="false"
  2077. static="false" final="false" visibility="protected"
  2078. deprecated="not deprecated">
  2079. </method>
  2080. <method name="parseExecResult"
  2081. abstract="false" native="false" synchronized="false"
  2082. static="false" final="false" visibility="protected"
  2083. deprecated="not deprecated">
  2084. <param name="lines" type="java.io.BufferedReader"/>
  2085. <exception name="IOException" type="java.io.IOException"/>
  2086. </method>
  2087. <method name="main"
  2088. abstract="false" native="false" synchronized="false"
  2089. static="true" final="false" visibility="public"
  2090. deprecated="not deprecated">
  2091. <param name="args" type="java.lang.String[]"/>
  2092. <exception name="Exception" type="java.lang.Exception"/>
  2093. </method>
  2094. <doc>
  2095. <![CDATA[Filesystem disk space usage statistics. Uses the unix 'du' program]]>
  2096. </doc>
  2097. </class>
  2098. <!-- end class org.apache.hadoop.fs.DU -->
  2099. <!-- start class org.apache.hadoop.fs.FileAlreadyExistsException -->
  2100. <class name="FileAlreadyExistsException" extends="java.io.IOException"
  2101. abstract="false"
  2102. static="false" final="false" visibility="public"
  2103. deprecated="not deprecated">
  2104. <constructor name="FileAlreadyExistsException"
  2105. static="false" final="false" visibility="public"
  2106. deprecated="not deprecated">
  2107. </constructor>
  2108. <constructor name="FileAlreadyExistsException" type="java.lang.String"
  2109. static="false" final="false" visibility="public"
  2110. deprecated="not deprecated">
  2111. </constructor>
  2112. <doc>
  2113. <![CDATA[Used when target file already exists for any operation and
  2114. is not configured to be overwritten.]]>
  2115. </doc>
  2116. </class>
  2117. <!-- end class org.apache.hadoop.fs.FileAlreadyExistsException -->
  2118. <!-- start class org.apache.hadoop.fs.FileChecksum -->
  2119. <class name="FileChecksum" extends="java.lang.Object"
  2120. abstract="true"
  2121. static="false" final="false" visibility="public"
  2122. deprecated="not deprecated">
  2123. <implements name="org.apache.hadoop.io.Writable"/>
  2124. <constructor name="FileChecksum"
  2125. static="false" final="false" visibility="public"
  2126. deprecated="not deprecated">
  2127. </constructor>
  2128. <method name="getAlgorithmName" return="java.lang.String"
  2129. abstract="true" native="false" synchronized="false"
  2130. static="false" final="false" visibility="public"
  2131. deprecated="not deprecated">
  2132. <doc>
  2133. <![CDATA[The checksum algorithm name]]>
  2134. </doc>
  2135. </method>
  2136. <method name="getLength" return="int"
  2137. abstract="true" native="false" synchronized="false"
  2138. static="false" final="false" visibility="public"
  2139. deprecated="not deprecated">
  2140. <doc>
  2141. <![CDATA[The length of the checksum in bytes]]>
  2142. </doc>
  2143. </method>
  2144. <method name="getBytes" return="byte[]"
  2145. abstract="true" native="false" synchronized="false"
  2146. static="false" final="false" visibility="public"
  2147. deprecated="not deprecated">
  2148. <doc>
  2149. <![CDATA[The value of the checksum in bytes]]>
  2150. </doc>
  2151. </method>
  2152. <method name="equals" return="boolean"
  2153. abstract="false" native="false" synchronized="false"
  2154. static="false" final="false" visibility="public"
  2155. deprecated="not deprecated">
  2156. <param name="other" type="java.lang.Object"/>
  2157. <doc>
  2158. <![CDATA[Return true if both the algorithms and the values are the same.]]>
  2159. </doc>
  2160. </method>
  2161. <method name="hashCode" return="int"
  2162. abstract="false" native="false" synchronized="false"
  2163. static="false" final="false" visibility="public"
  2164. deprecated="not deprecated">
  2165. <doc>
  2166. <![CDATA[{@inheritDoc}]]>
  2167. </doc>
  2168. </method>
  2169. <doc>
  2170. <![CDATA[An abstract class representing file checksums for files.]]>
  2171. </doc>
  2172. </class>
  2173. <!-- end class org.apache.hadoop.fs.FileChecksum -->
  2174. <!-- start class org.apache.hadoop.fs.FileStatus -->
  2175. <class name="FileStatus" extends="java.lang.Object"
  2176. abstract="false"
  2177. static="false" final="false" visibility="public"
  2178. deprecated="not deprecated">
  2179. <implements name="org.apache.hadoop.io.Writable"/>
  2180. <implements name="java.lang.Comparable"/>
  2181. <constructor name="FileStatus"
  2182. static="false" final="false" visibility="public"
  2183. deprecated="not deprecated">
  2184. </constructor>
  2185. <constructor name="FileStatus" type="long, boolean, int, long, long, org.apache.hadoop.fs.Path"
  2186. static="false" final="false" visibility="public"
  2187. deprecated="not deprecated">
  2188. </constructor>
  2189. <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"
  2190. static="false" final="false" visibility="public"
  2191. deprecated="not deprecated">
  2192. </constructor>
  2193. <method name="getLen" return="long"
  2194. abstract="false" native="false" synchronized="false"
  2195. static="false" final="false" visibility="public"
  2196. deprecated="not deprecated">
  2197. </method>
  2198. <method name="isDir" return="boolean"
  2199. abstract="false" native="false" synchronized="false"
  2200. static="false" final="false" visibility="public"
  2201. deprecated="not deprecated">
  2202. <doc>
  2203. <![CDATA[Is this a directory?
  2204. @return true if this is a directory]]>
  2205. </doc>
  2206. </method>
  2207. <method name="getBlockSize" return="long"
  2208. abstract="false" native="false" synchronized="false"
  2209. static="false" final="false" visibility="public"
  2210. deprecated="not deprecated">
  2211. <doc>
  2212. <![CDATA[Get the block size of the file.
  2213. @return the number of bytes]]>
  2214. </doc>
  2215. </method>
  2216. <method name="getReplication" return="short"
  2217. abstract="false" native="false" synchronized="false"
  2218. static="false" final="false" visibility="public"
  2219. deprecated="not deprecated">
  2220. <doc>
  2221. <![CDATA[Get the replication factor of a file.
  2222. @return the replication factor of a file.]]>
  2223. </doc>
  2224. </method>
  2225. <method name="getModificationTime" return="long"
  2226. abstract="false" native="false" synchronized="false"
  2227. static="false" final="false" visibility="public"
  2228. deprecated="not deprecated">
  2229. <doc>
  2230. <![CDATA[Get the modification time of the file.
  2231. @return the modification time of file in milliseconds since January 1, 1970 UTC.]]>
  2232. </doc>
  2233. </method>
  2234. <method name="getAccessTime" return="long"
  2235. abstract="false" native="false" synchronized="false"
  2236. static="false" final="false" visibility="public"
  2237. deprecated="not deprecated">
  2238. <doc>
  2239. <![CDATA[Get the access time of the file.
  2240. @return the access time of file in milliseconds since January 1, 1970 UTC.]]>
  2241. </doc>
  2242. </method>
  2243. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  2244. abstract="false" native="false" synchronized="false"
  2245. static="false" final="false" visibility="public"
  2246. deprecated="not deprecated">
  2247. <doc>
  2248. <![CDATA[Get FsPermission associated with the file.
  2249. @return permssion. If a filesystem does not have a notion of permissions
  2250. or if permissions could not be determined, then default
  2251. permissions equivalent of "rwxrwxrwx" is returned.]]>
  2252. </doc>
  2253. </method>
  2254. <method name="getOwner" return="java.lang.String"
  2255. abstract="false" native="false" synchronized="false"
  2256. static="false" final="false" visibility="public"
  2257. deprecated="not deprecated">
  2258. <doc>
  2259. <![CDATA[Get the owner of the file.
  2260. @return owner of the file. The string could be empty if there is no
  2261. notion of owner of a file in a filesystem or if it could not
  2262. be determined (rare).]]>
  2263. </doc>
  2264. </method>
  2265. <method name="getGroup" return="java.lang.String"
  2266. abstract="false" native="false" synchronized="false"
  2267. static="false" final="false" visibility="public"
  2268. deprecated="not deprecated">
  2269. <doc>
  2270. <![CDATA[Get the group associated with the file.
  2271. @return group for the file. The string could be empty if there is no
  2272. notion of group of a file in a filesystem or if it could not
  2273. be determined (rare).]]>
  2274. </doc>
  2275. </method>
  2276. <method name="getPath" return="org.apache.hadoop.fs.Path"
  2277. abstract="false" native="false" synchronized="false"
  2278. static="false" final="false" visibility="public"
  2279. deprecated="not deprecated">
  2280. </method>
  2281. <method name="setPermission"
  2282. abstract="false" native="false" synchronized="false"
  2283. static="false" final="false" visibility="protected"
  2284. deprecated="not deprecated">
  2285. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2286. <doc>
  2287. <![CDATA[Sets permission.
  2288. @param permission if permission is null, default value is set]]>
  2289. </doc>
  2290. </method>
  2291. <method name="setOwner"
  2292. abstract="false" native="false" synchronized="false"
  2293. static="false" final="false" visibility="protected"
  2294. deprecated="not deprecated">
  2295. <param name="owner" type="java.lang.String"/>
  2296. <doc>
  2297. <![CDATA[Sets owner.
  2298. @param owner if it is null, default value is set]]>
  2299. </doc>
  2300. </method>
  2301. <method name="setGroup"
  2302. abstract="false" native="false" synchronized="false"
  2303. static="false" final="false" visibility="protected"
  2304. deprecated="not deprecated">
  2305. <param name="group" type="java.lang.String"/>
  2306. <doc>
  2307. <![CDATA[Sets group.
  2308. @param group if it is null, default value is set]]>
  2309. </doc>
  2310. </method>
  2311. <method name="write"
  2312. abstract="false" native="false" synchronized="false"
  2313. static="false" final="false" visibility="public"
  2314. deprecated="not deprecated">
  2315. <param name="out" type="java.io.DataOutput"/>
  2316. <exception name="IOException" type="java.io.IOException"/>
  2317. </method>
  2318. <method name="readFields"
  2319. abstract="false" native="false" synchronized="false"
  2320. static="false" final="false" visibility="public"
  2321. deprecated="not deprecated">
  2322. <param name="in" type="java.io.DataInput"/>
  2323. <exception name="IOException" type="java.io.IOException"/>
  2324. </method>
  2325. <method name="compareTo" return="int"
  2326. abstract="false" native="false" synchronized="false"
  2327. static="false" final="false" visibility="public"
  2328. deprecated="not deprecated">
  2329. <param name="o" type="java.lang.Object"/>
  2330. <doc>
  2331. <![CDATA[Compare this object to another object
  2332. @param o the object to be compared.
  2333. @return a negative integer, zero, or a positive integer as this object
  2334. is less than, equal to, or greater than the specified object.
  2335. @throws ClassCastException if the specified object's is not of
  2336. type FileStatus]]>
  2337. </doc>
  2338. </method>
  2339. <method name="equals" return="boolean"
  2340. abstract="false" native="false" synchronized="false"
  2341. static="false" final="false" visibility="public"
  2342. deprecated="not deprecated">
  2343. <param name="o" type="java.lang.Object"/>
  2344. <doc>
  2345. <![CDATA[Compare if this object is equal to another object
  2346. @param o the object to be compared.
  2347. @return true if two file status has the same path name; false if not.]]>
  2348. </doc>
  2349. </method>
  2350. <method name="hashCode" return="int"
  2351. abstract="false" native="false" synchronized="false"
  2352. static="false" final="false" visibility="public"
  2353. deprecated="not deprecated">
  2354. <doc>
  2355. <![CDATA[Returns a hash code value for the object, which is defined as
  2356. the hash code of the path name.
  2357. @return a hash code value for the path name.]]>
  2358. </doc>
  2359. </method>
  2360. <doc>
  2361. <![CDATA[Interface that represents the client side information for a file.]]>
  2362. </doc>
  2363. </class>
  2364. <!-- end class org.apache.hadoop.fs.FileStatus -->
  2365. <!-- start class org.apache.hadoop.fs.FileSystem -->
  2366. <class name="FileSystem" extends="org.apache.hadoop.conf.Configured"
  2367. abstract="true"
  2368. static="false" final="false" visibility="public"
  2369. deprecated="not deprecated">
  2370. <implements name="java.io.Closeable"/>
  2371. <constructor name="FileSystem"
  2372. static="false" final="false" visibility="protected"
  2373. deprecated="not deprecated">
  2374. </constructor>
  2375. <method name="addFileSystemForTesting"
  2376. abstract="false" native="false" synchronized="false"
  2377. static="true" final="false" visibility="public"
  2378. deprecated="not deprecated">
  2379. <param name="uri" type="java.net.URI"/>
  2380. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2381. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  2382. <exception name="IOException" type="java.io.IOException"/>
  2383. <doc>
  2384. <![CDATA[This method adds a file system for testing so that we can find it later.
  2385. It is only for testing.
  2386. @param uri the uri to store it under
  2387. @param conf the configuration to store it under
  2388. @param fs the file system to store
  2389. @throws IOException]]>
  2390. </doc>
  2391. </method>
  2392. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  2393. abstract="false" native="false" synchronized="false"
  2394. static="true" final="false" visibility="public"
  2395. deprecated="not deprecated">
  2396. <param name="uri" type="java.net.URI"/>
  2397. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2398. <param name="user" type="java.lang.String"/>
  2399. <exception name="IOException" type="java.io.IOException"/>
  2400. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  2401. </method>
  2402. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  2403. abstract="false" native="false" synchronized="false"
  2404. static="true" final="false" visibility="public"
  2405. deprecated="not deprecated">
  2406. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2407. <exception name="IOException" type="java.io.IOException"/>
  2408. <doc>
  2409. <![CDATA[Returns the configured filesystem implementation.]]>
  2410. </doc>
  2411. </method>
  2412. <method name="getDefaultUri" return="java.net.URI"
  2413. abstract="false" native="false" synchronized="false"
  2414. static="true" final="false" visibility="public"
  2415. deprecated="not deprecated">
  2416. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2417. <doc>
  2418. <![CDATA[Get the default filesystem URI from a configuration.
  2419. @param conf the configuration to access
  2420. @return the uri of the default filesystem]]>
  2421. </doc>
  2422. </method>
  2423. <method name="setDefaultUri"
  2424. abstract="false" native="false" synchronized="false"
  2425. static="true" final="false" visibility="public"
  2426. deprecated="not deprecated">
  2427. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2428. <param name="uri" type="java.net.URI"/>
  2429. <doc>
  2430. <![CDATA[Set the default filesystem URI in a configuration.
  2431. @param conf the configuration to alter
  2432. @param uri the new default filesystem uri]]>
  2433. </doc>
  2434. </method>
  2435. <method name="setDefaultUri"
  2436. abstract="false" native="false" synchronized="false"
  2437. static="true" final="false" visibility="public"
  2438. deprecated="not deprecated">
  2439. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2440. <param name="uri" type="java.lang.String"/>
  2441. <doc>
  2442. <![CDATA[Set the default filesystem URI in a configuration.
  2443. @param conf the configuration to alter
  2444. @param uri the new default filesystem uri]]>
  2445. </doc>
  2446. </method>
  2447. <method name="initialize"
  2448. abstract="false" native="false" synchronized="false"
  2449. static="false" final="false" visibility="public"
  2450. deprecated="not deprecated">
  2451. <param name="name" type="java.net.URI"/>
  2452. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2453. <exception name="IOException" type="java.io.IOException"/>
  2454. <doc>
  2455. <![CDATA[Called after a new FileSystem instance is constructed.
  2456. @param name a uri whose authority section names the host, port, etc.
  2457. for this FileSystem
  2458. @param conf the configuration]]>
  2459. </doc>
  2460. </method>
  2461. <method name="getUri" return="java.net.URI"
  2462. abstract="true" native="false" synchronized="false"
  2463. static="false" final="false" visibility="public"
  2464. deprecated="not deprecated">
  2465. <doc>
  2466. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.]]>
  2467. </doc>
  2468. </method>
  2469. <method name="getCanonicalUri" return="java.net.URI"
  2470. abstract="false" native="false" synchronized="false"
  2471. static="false" final="false" visibility="protected"
  2472. deprecated="not deprecated">
  2473. <doc>
  2474. <![CDATA[Resolve the uri's hostname and add the default port if not in the uri
  2475. @return URI
  2476. @see NetUtils#getCanonicalUri(URI, int)]]>
  2477. </doc>
  2478. </method>
  2479. <method name="getDefaultPort" return="int"
  2480. abstract="false" native="false" synchronized="false"
  2481. static="false" final="false" visibility="protected"
  2482. deprecated="not deprecated">
  2483. <doc>
  2484. <![CDATA[Get the default port for this file system.
  2485. @return the default port or 0 if there isn't one]]>
  2486. </doc>
  2487. </method>
  2488. <method name="getCanonicalServiceName" return="java.lang.String"
  2489. abstract="false" native="false" synchronized="false"
  2490. static="false" final="false" visibility="public"
  2491. deprecated="not deprecated">
  2492. <doc>
  2493. <![CDATA[Get a canonical service name for this file system. The token cache is
  2494. the only user of this value, and uses it to lookup this filesystem's
  2495. service tokens. The token cache will not attempt to acquire tokens if the
  2496. service is null.
  2497. @return a service string that uniquely identifies this file system, null
  2498. if the filesystem does not implement tokens
  2499. @see SecurityUtil#buildDTServiceName(URI, int)]]>
  2500. </doc>
  2501. </method>
  2502. <method name="getName" return="java.lang.String"
  2503. abstract="false" native="false" synchronized="false"
  2504. static="false" final="false" visibility="public"
  2505. deprecated="call #getUri() instead.">
  2506. <doc>
  2507. <![CDATA[@deprecated call #getUri() instead.]]>
  2508. </doc>
  2509. </method>
  2510. <method name="getNamed" return="org.apache.hadoop.fs.FileSystem"
  2511. abstract="false" native="false" synchronized="false"
  2512. static="true" final="false" visibility="public"
  2513. deprecated="call #get(URI,Configuration) instead.">
  2514. <param name="name" type="java.lang.String"/>
  2515. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2516. <exception name="IOException" type="java.io.IOException"/>
  2517. <doc>
  2518. <![CDATA[@deprecated call #get(URI,Configuration) instead.]]>
  2519. </doc>
  2520. </method>
  2521. <method name="getLocal" return="org.apache.hadoop.fs.LocalFileSystem"
  2522. abstract="false" native="false" synchronized="false"
  2523. static="true" final="false" visibility="public"
  2524. deprecated="not deprecated">
  2525. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2526. <exception name="IOException" type="java.io.IOException"/>
  2527. <doc>
  2528. <![CDATA[Get the local file syste
  2529. @param conf the configuration to configure the file system with
  2530. @return a LocalFileSystem]]>
  2531. </doc>
  2532. </method>
  2533. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  2534. abstract="false" native="false" synchronized="false"
  2535. static="true" final="false" visibility="public"
  2536. deprecated="not deprecated">
  2537. <param name="uri" type="java.net.URI"/>
  2538. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2539. <exception name="IOException" type="java.io.IOException"/>
  2540. <doc>
  2541. <![CDATA[Returns the FileSystem for this URI's scheme and authority. The scheme
  2542. of the URI determines a configuration property name,
  2543. <tt>fs.<i>scheme</i>.class</tt> whose value names the FileSystem class.
  2544. The entire URI is passed to the FileSystem instance's initialize method.]]>
  2545. </doc>
  2546. </method>
  2547. <method name="closeAll"
  2548. abstract="false" native="false" synchronized="false"
  2549. static="true" final="false" visibility="public"
  2550. deprecated="not deprecated">
  2551. <exception name="IOException" type="java.io.IOException"/>
  2552. <doc>
  2553. <![CDATA[Close all cached filesystems. Be sure those filesystems are not
  2554. used anymore.
  2555. @throws IOException]]>
  2556. </doc>
  2557. </method>
  2558. <method name="closeAllForUGI"
  2559. abstract="false" native="false" synchronized="false"
  2560. static="true" final="false" visibility="public"
  2561. deprecated="not deprecated">
  2562. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  2563. <exception name="IOException" type="java.io.IOException"/>
  2564. <doc>
  2565. <![CDATA[Close all cached filesystems for a given UGI. Be sure those filesystems
  2566. are not used anymore.
  2567. @param ugi
  2568. @throws IOException]]>
  2569. </doc>
  2570. </method>
  2571. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  2572. abstract="false" native="false" synchronized="false"
  2573. static="false" final="false" visibility="public"
  2574. deprecated="not deprecated">
  2575. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2576. <doc>
  2577. <![CDATA[Make sure that a path specifies a FileSystem.]]>
  2578. </doc>
  2579. </method>
  2580. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2581. abstract="false" native="false" synchronized="false"
  2582. static="true" final="false" visibility="public"
  2583. deprecated="not deprecated">
  2584. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  2585. <param name="file" type="org.apache.hadoop.fs.Path"/>
  2586. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2587. <exception name="IOException" type="java.io.IOException"/>
  2588. <doc>
  2589. <![CDATA[create a file with the provided permission
  2590. The permission of the file is set to be the provided permission as in
  2591. setPermission, not permission&~umask
  2592. It is implemented using two RPCs. It is understood that it is inefficient,
  2593. but the implementation is thread-safe. The other option is to change the
  2594. value of umask in configuration to be 0, but it is not thread-safe.
  2595. @param fs file system handle
  2596. @param file the name of the file to be created
  2597. @param permission the permission of the file
  2598. @return an output stream
  2599. @throws IOException]]>
  2600. </doc>
  2601. </method>
  2602. <method name="mkdirs" return="boolean"
  2603. abstract="false" native="false" synchronized="false"
  2604. static="true" final="false" visibility="public"
  2605. deprecated="not deprecated">
  2606. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  2607. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  2608. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2609. <exception name="IOException" type="java.io.IOException"/>
  2610. <doc>
  2611. <![CDATA[create a directory with the provided permission
  2612. The permission of the directory is set to be the provided permission as in
  2613. setPermission, not permission&~umask
  2614. @see #create(FileSystem, Path, FsPermission)
  2615. @param fs file system handle
  2616. @param dir the name of the directory to be created
  2617. @param permission the permission of the directory
  2618. @return true if the directory creation succeeds; false otherwise
  2619. @throws IOException]]>
  2620. </doc>
  2621. </method>
  2622. <method name="checkPath"
  2623. abstract="false" native="false" synchronized="false"
  2624. static="false" final="false" visibility="protected"
  2625. deprecated="not deprecated">
  2626. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2627. <doc>
  2628. <![CDATA[Check that a Path belongs to this FileSystem.]]>
  2629. </doc>
  2630. </method>
  2631. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  2632. abstract="false" native="false" synchronized="false"
  2633. static="false" final="false" visibility="public"
  2634. deprecated="not deprecated">
  2635. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  2636. <param name="start" type="long"/>
  2637. <param name="len" type="long"/>
  2638. <exception name="IOException" type="java.io.IOException"/>
  2639. <doc>
  2640. <![CDATA[Return an array containing hostnames, offset and size of
  2641. portions of the given file. For a nonexistent
  2642. file or regions, null will be returned.
  2643. This call is most helpful with DFS, where it returns
  2644. hostnames of machines that contain the given file.
  2645. The FileSystem will simply return an elt containing 'localhost'.]]>
  2646. </doc>
  2647. </method>
  2648. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  2649. abstract="true" native="false" synchronized="false"
  2650. static="false" final="false" visibility="public"
  2651. deprecated="not deprecated">
  2652. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2653. <param name="bufferSize" type="int"/>
  2654. <exception name="IOException" type="java.io.IOException"/>
  2655. <doc>
  2656. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  2657. @param f the file name to open
  2658. @param bufferSize the size of the buffer to be used.]]>
  2659. </doc>
  2660. </method>
  2661. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  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. <exception name="IOException" type="java.io.IOException"/>
  2667. <doc>
  2668. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  2669. @param f the file to open]]>
  2670. </doc>
  2671. </method>
  2672. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2673. abstract="false" native="false" synchronized="false"
  2674. static="false" final="false" visibility="public"
  2675. deprecated="not deprecated">
  2676. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2677. <exception name="IOException" type="java.io.IOException"/>
  2678. <doc>
  2679. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  2680. Files are overwritten by default.]]>
  2681. </doc>
  2682. </method>
  2683. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2684. abstract="false" native="false" synchronized="false"
  2685. static="false" final="false" visibility="public"
  2686. deprecated="not deprecated">
  2687. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2688. <param name="overwrite" type="boolean"/>
  2689. <exception name="IOException" type="java.io.IOException"/>
  2690. <doc>
  2691. <![CDATA[Opens an FSDataOutputStream at the indicated Path.]]>
  2692. </doc>
  2693. </method>
  2694. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2695. abstract="false" native="false" synchronized="false"
  2696. static="false" final="false" visibility="public"
  2697. deprecated="not deprecated">
  2698. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2699. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2700. <exception name="IOException" type="java.io.IOException"/>
  2701. <doc>
  2702. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  2703. reporting.
  2704. Files are overwritten by default.]]>
  2705. </doc>
  2706. </method>
  2707. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2708. abstract="false" native="false" synchronized="false"
  2709. static="false" final="false" visibility="public"
  2710. deprecated="not deprecated">
  2711. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2712. <param name="replication" type="short"/>
  2713. <exception name="IOException" type="java.io.IOException"/>
  2714. <doc>
  2715. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  2716. Files are overwritten by default.]]>
  2717. </doc>
  2718. </method>
  2719. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2720. abstract="false" native="false" synchronized="false"
  2721. static="false" final="false" visibility="public"
  2722. deprecated="not deprecated">
  2723. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2724. <param name="replication" type="short"/>
  2725. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2726. <exception name="IOException" type="java.io.IOException"/>
  2727. <doc>
  2728. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2729. reporting.
  2730. Files are overwritten by default.]]>
  2731. </doc>
  2732. </method>
  2733. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2734. abstract="false" native="false" synchronized="false"
  2735. static="false" final="false" visibility="public"
  2736. deprecated="not deprecated">
  2737. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2738. <param name="overwrite" type="boolean"/>
  2739. <param name="bufferSize" type="int"/>
  2740. <exception name="IOException" type="java.io.IOException"/>
  2741. <doc>
  2742. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  2743. @param f the file name to open
  2744. @param overwrite if a file with this name already exists, then if true,
  2745. the file will be overwritten, and if false an error will be thrown.
  2746. @param bufferSize the size of the buffer to be used.]]>
  2747. </doc>
  2748. </method>
  2749. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2750. abstract="false" native="false" synchronized="false"
  2751. static="false" final="false" visibility="public"
  2752. deprecated="not deprecated">
  2753. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2754. <param name="overwrite" type="boolean"/>
  2755. <param name="bufferSize" type="int"/>
  2756. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2757. <exception name="IOException" type="java.io.IOException"/>
  2758. <doc>
  2759. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2760. reporting.
  2761. @param f the file name to open
  2762. @param overwrite if a file with this name already exists, then if true,
  2763. the file will be overwritten, and if false an error will be thrown.
  2764. @param bufferSize the size of the buffer to be used.]]>
  2765. </doc>
  2766. </method>
  2767. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2768. abstract="false" native="false" synchronized="false"
  2769. static="false" final="false" visibility="public"
  2770. deprecated="not deprecated">
  2771. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2772. <param name="overwrite" type="boolean"/>
  2773. <param name="bufferSize" type="int"/>
  2774. <param name="replication" type="short"/>
  2775. <param name="blockSize" type="long"/>
  2776. <exception name="IOException" type="java.io.IOException"/>
  2777. <doc>
  2778. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  2779. @param f the file name to open
  2780. @param overwrite if a file with this name already exists, then if true,
  2781. the file will be overwritten, and if false an error will be thrown.
  2782. @param bufferSize the size of the buffer to be used.
  2783. @param replication required block replication for the file.]]>
  2784. </doc>
  2785. </method>
  2786. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2787. abstract="false" native="false" synchronized="false"
  2788. static="false" final="false" visibility="public"
  2789. deprecated="not deprecated">
  2790. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2791. <param name="overwrite" type="boolean"/>
  2792. <param name="bufferSize" type="int"/>
  2793. <param name="replication" type="short"/>
  2794. <param name="blockSize" type="long"/>
  2795. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2796. <exception name="IOException" type="java.io.IOException"/>
  2797. <doc>
  2798. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2799. reporting.
  2800. @param f the file name to open
  2801. @param overwrite if a file with this name already exists, then if true,
  2802. the file will be overwritten, and if false an error will be thrown.
  2803. @param bufferSize the size of the buffer to be used.
  2804. @param replication required block replication for the file.]]>
  2805. </doc>
  2806. </method>
  2807. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2808. abstract="true" native="false" synchronized="false"
  2809. static="false" final="false" visibility="public"
  2810. deprecated="not deprecated">
  2811. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2812. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2813. <param name="overwrite" type="boolean"/>
  2814. <param name="bufferSize" type="int"/>
  2815. <param name="replication" type="short"/>
  2816. <param name="blockSize" type="long"/>
  2817. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2818. <exception name="IOException" type="java.io.IOException"/>
  2819. <doc>
  2820. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2821. reporting.
  2822. @param f the file name to open
  2823. @param permission
  2824. @param overwrite if a file with this name already exists, then if true,
  2825. the file will be overwritten, and if false an error will be thrown.
  2826. @param bufferSize the size of the buffer to be used.
  2827. @param replication required block replication for the file.
  2828. @param blockSize
  2829. @param progress
  2830. @throws IOException
  2831. @see #setPermission(Path, FsPermission)]]>
  2832. </doc>
  2833. </method>
  2834. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  2835. abstract="false" native="false" synchronized="false"
  2836. static="false" final="false" visibility="public"
  2837. deprecated="API only for 0.20-append">
  2838. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2839. <param name="overwrite" type="boolean"/>
  2840. <param name="bufferSize" type="int"/>
  2841. <param name="replication" type="short"/>
  2842. <param name="blockSize" type="long"/>
  2843. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2844. <exception name="IOException" type="java.io.IOException"/>
  2845. <doc>
  2846. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2847. reporting. Same as create(), except fails if parent directory doesn't
  2848. already exist.
  2849. @param f the file name to open
  2850. @param overwrite if a file with this name already exists, then if true,
  2851. the file will be overwritten, and if false an error will be thrown.
  2852. @param bufferSize the size of the buffer to be used.
  2853. @param replication required block replication for the file.
  2854. @param blockSize
  2855. @param progress
  2856. @throws IOException
  2857. @see #setPermission(Path, FsPermission)
  2858. @deprecated API only for 0.20-append]]>
  2859. </doc>
  2860. </method>
  2861. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  2862. abstract="false" native="false" synchronized="false"
  2863. static="false" final="false" visibility="public"
  2864. deprecated="API only for 0.20-append">
  2865. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2866. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2867. <param name="overwrite" type="boolean"/>
  2868. <param name="bufferSize" type="int"/>
  2869. <param name="replication" type="short"/>
  2870. <param name="blockSize" type="long"/>
  2871. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2872. <exception name="IOException" type="java.io.IOException"/>
  2873. <doc>
  2874. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2875. reporting. Same as create(), except fails if parent directory doesn't
  2876. already exist.
  2877. @param f the file name to open
  2878. @param permission
  2879. @param overwrite if a file with this name already exists, then if true,
  2880. the file will be overwritten, and if false an error will be thrown.
  2881. @param bufferSize the size of the buffer to be used.
  2882. @param replication required block replication for the file.
  2883. @param blockSize
  2884. @param progress
  2885. @throws IOException
  2886. @see #setPermission(Path, FsPermission)
  2887. @deprecated API only for 0.20-append]]>
  2888. </doc>
  2889. </method>
  2890. <method name="createNewFile" return="boolean"
  2891. abstract="false" native="false" synchronized="false"
  2892. static="false" final="false" visibility="public"
  2893. deprecated="not deprecated">
  2894. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2895. <exception name="IOException" type="java.io.IOException"/>
  2896. <doc>
  2897. <![CDATA[Creates the given Path as a brand-new zero-length file. If
  2898. create fails, or if it already existed, return false.]]>
  2899. </doc>
  2900. </method>
  2901. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  2902. abstract="false" native="false" synchronized="false"
  2903. static="false" final="false" visibility="public"
  2904. deprecated="not deprecated">
  2905. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2906. <exception name="IOException" type="java.io.IOException"/>
  2907. <doc>
  2908. <![CDATA[Append to an existing file (optional operation).
  2909. Same as append(f, getConf().getInt("io.file.buffer.size", 4096), null)
  2910. @param f the existing file to be appended.
  2911. @throws IOException]]>
  2912. </doc>
  2913. </method>
  2914. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  2915. abstract="false" native="false" synchronized="false"
  2916. static="false" final="false" visibility="public"
  2917. deprecated="not deprecated">
  2918. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2919. <param name="bufferSize" type="int"/>
  2920. <exception name="IOException" type="java.io.IOException"/>
  2921. <doc>
  2922. <![CDATA[Append to an existing file (optional operation).
  2923. Same as append(f, bufferSize, null).
  2924. @param f the existing file to be appended.
  2925. @param bufferSize the size of the buffer to be used.
  2926. @throws IOException]]>
  2927. </doc>
  2928. </method>
  2929. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  2930. abstract="true" native="false" synchronized="false"
  2931. static="false" final="false" visibility="public"
  2932. deprecated="not deprecated">
  2933. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2934. <param name="bufferSize" type="int"/>
  2935. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2936. <exception name="IOException" type="java.io.IOException"/>
  2937. <doc>
  2938. <![CDATA[Append to an existing file (optional operation).
  2939. @param f the existing file to be appended.
  2940. @param bufferSize the size of the buffer to be used.
  2941. @param progress for reporting progress if it is not null.
  2942. @throws IOException]]>
  2943. </doc>
  2944. </method>
  2945. <method name="getReplication" return="short"
  2946. abstract="false" native="false" synchronized="false"
  2947. static="false" final="false" visibility="public"
  2948. deprecated="Use getFileStatus() instead">
  2949. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2950. <exception name="IOException" type="java.io.IOException"/>
  2951. <doc>
  2952. <![CDATA[Get replication.
  2953. @deprecated Use getFileStatus() instead
  2954. @param src file name
  2955. @return file replication
  2956. @throws IOException]]>
  2957. </doc>
  2958. </method>
  2959. <method name="setReplication" return="boolean"
  2960. abstract="false" native="false" synchronized="false"
  2961. static="false" final="false" visibility="public"
  2962. deprecated="not deprecated">
  2963. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2964. <param name="replication" type="short"/>
  2965. <exception name="IOException" type="java.io.IOException"/>
  2966. <doc>
  2967. <![CDATA[Set replication for an existing file.
  2968. @param src file name
  2969. @param replication new replication
  2970. @throws IOException
  2971. @return true if successful;
  2972. false if file does not exist or is a directory]]>
  2973. </doc>
  2974. </method>
  2975. <method name="rename" return="boolean"
  2976. abstract="true" native="false" synchronized="false"
  2977. static="false" final="false" visibility="public"
  2978. deprecated="not deprecated">
  2979. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2980. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  2981. <exception name="IOException" type="java.io.IOException"/>
  2982. <doc>
  2983. <![CDATA[Renames Path src to Path dst. Can take place on local fs
  2984. or remote DFS.]]>
  2985. </doc>
  2986. </method>
  2987. <method name="delete" return="boolean"
  2988. abstract="true" native="false" synchronized="false"
  2989. static="false" final="false" visibility="public"
  2990. deprecated="Use delete(Path, boolean) instead">
  2991. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2992. <exception name="IOException" type="java.io.IOException"/>
  2993. <doc>
  2994. <![CDATA[@deprecated Use delete(Path, boolean) instead]]>
  2995. </doc>
  2996. </method>
  2997. <method name="delete" return="boolean"
  2998. abstract="true" native="false" synchronized="false"
  2999. static="false" final="false" visibility="public"
  3000. deprecated="not deprecated">
  3001. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3002. <param name="recursive" type="boolean"/>
  3003. <exception name="IOException" type="java.io.IOException"/>
  3004. <doc>
  3005. <![CDATA[Delete a file.
  3006. @param f the path to delete.
  3007. @param recursive if path is a directory and set to
  3008. true, the directory is deleted else throws an exception. In
  3009. case of a file the recursive can be set to either true or false.
  3010. @return true if delete is successful else false.
  3011. @throws IOException]]>
  3012. </doc>
  3013. </method>
  3014. <method name="deleteOnExit" return="boolean"
  3015. abstract="false" native="false" synchronized="false"
  3016. static="false" final="false" visibility="public"
  3017. deprecated="not deprecated">
  3018. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3019. <exception name="IOException" type="java.io.IOException"/>
  3020. <doc>
  3021. <![CDATA[Mark a path to be deleted when FileSystem is closed.
  3022. When the JVM shuts down,
  3023. all FileSystem objects will be closed automatically.
  3024. Then,
  3025. the marked path will be deleted as a result of closing the FileSystem.
  3026. The path has to exist in the file system.
  3027. @param f the path to delete.
  3028. @return true if deleteOnExit is successful, otherwise false.
  3029. @throws IOException]]>
  3030. </doc>
  3031. </method>
  3032. <method name="processDeleteOnExit"
  3033. abstract="false" native="false" synchronized="false"
  3034. static="false" final="false" visibility="protected"
  3035. deprecated="not deprecated">
  3036. <doc>
  3037. <![CDATA[Delete all files that were marked as delete-on-exit. This recursively
  3038. deletes all files in the specified paths.]]>
  3039. </doc>
  3040. </method>
  3041. <method name="exists" return="boolean"
  3042. abstract="false" native="false" synchronized="false"
  3043. static="false" final="false" visibility="public"
  3044. deprecated="not deprecated">
  3045. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3046. <exception name="IOException" type="java.io.IOException"/>
  3047. <doc>
  3048. <![CDATA[Check if exists.
  3049. @param f source file]]>
  3050. </doc>
  3051. </method>
  3052. <method name="isDirectory" return="boolean"
  3053. abstract="false" native="false" synchronized="false"
  3054. static="false" final="false" visibility="public"
  3055. deprecated="Use getFileStatus() instead">
  3056. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3057. <exception name="IOException" type="java.io.IOException"/>
  3058. <doc>
  3059. <![CDATA[@deprecated Use getFileStatus() instead]]>
  3060. </doc>
  3061. </method>
  3062. <method name="isFile" return="boolean"
  3063. abstract="false" native="false" synchronized="false"
  3064. static="false" final="false" visibility="public"
  3065. deprecated="not deprecated">
  3066. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3067. <exception name="IOException" type="java.io.IOException"/>
  3068. <doc>
  3069. <![CDATA[True iff the named path is a regular file.]]>
  3070. </doc>
  3071. </method>
  3072. <method name="getLength" return="long"
  3073. abstract="false" native="false" synchronized="false"
  3074. static="false" final="false" visibility="public"
  3075. deprecated="Use getFileStatus() instead">
  3076. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3077. <exception name="IOException" type="java.io.IOException"/>
  3078. <doc>
  3079. <![CDATA[@deprecated Use getFileStatus() instead]]>
  3080. </doc>
  3081. </method>
  3082. <method name="getContentSummary" return="org.apache.hadoop.fs.ContentSummary"
  3083. abstract="false" native="false" synchronized="false"
  3084. static="false" final="false" visibility="public"
  3085. deprecated="not deprecated">
  3086. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3087. <exception name="IOException" type="java.io.IOException"/>
  3088. <doc>
  3089. <![CDATA[Return the {@link ContentSummary} of a given {@link Path}.]]>
  3090. </doc>
  3091. </method>
  3092. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3093. abstract="true" native="false" synchronized="false"
  3094. static="false" final="false" visibility="public"
  3095. deprecated="not deprecated">
  3096. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3097. <exception name="IOException" type="java.io.IOException"/>
  3098. <doc>
  3099. <![CDATA[List the statuses of the files/directories in the given path if the path is
  3100. a directory.
  3101. @param f
  3102. given path
  3103. @return the statuses of the files/directories in the given patch
  3104. returns null, if Path f does not exist in the FileSystem
  3105. @throws IOException]]>
  3106. </doc>
  3107. </method>
  3108. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3109. abstract="false" native="false" synchronized="false"
  3110. static="false" final="false" visibility="public"
  3111. deprecated="not deprecated">
  3112. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3113. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  3114. <exception name="IOException" type="java.io.IOException"/>
  3115. <doc>
  3116. <![CDATA[Filter files/directories in the given path using the user-supplied path
  3117. filter.
  3118. @param f
  3119. a path name
  3120. @param filter
  3121. the user-supplied path filter
  3122. @return an array of FileStatus objects for the files under the given path
  3123. after applying the filter
  3124. @throws IOException
  3125. if encounter any problem while fetching the status]]>
  3126. </doc>
  3127. </method>
  3128. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3129. abstract="false" native="false" synchronized="false"
  3130. static="false" final="false" visibility="public"
  3131. deprecated="not deprecated">
  3132. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  3133. <exception name="IOException" type="java.io.IOException"/>
  3134. <doc>
  3135. <![CDATA[Filter files/directories in the given list of paths using default
  3136. path filter.
  3137. @param files
  3138. a list of paths
  3139. @return a list of statuses for the files under the given paths after
  3140. applying the filter default Path filter
  3141. @exception IOException]]>
  3142. </doc>
  3143. </method>
  3144. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3145. abstract="false" native="false" synchronized="false"
  3146. static="false" final="false" visibility="public"
  3147. deprecated="not deprecated">
  3148. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  3149. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  3150. <exception name="IOException" type="java.io.IOException"/>
  3151. <doc>
  3152. <![CDATA[Filter files/directories in the given list of paths using user-supplied
  3153. path filter.
  3154. @param files
  3155. a list of paths
  3156. @param filter
  3157. the user-supplied path filter
  3158. @return a list of statuses for the files under the given paths after
  3159. applying the filter
  3160. @exception IOException]]>
  3161. </doc>
  3162. </method>
  3163. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3164. abstract="false" native="false" synchronized="false"
  3165. static="false" final="false" visibility="public"
  3166. deprecated="not deprecated">
  3167. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  3168. <exception name="IOException" type="java.io.IOException"/>
  3169. <doc>
  3170. <![CDATA[<p>Return all the files that match filePattern and are not checksum
  3171. files. Results are sorted by their names.
  3172. <p>
  3173. A filename pattern is composed of <i>regular</i> characters and
  3174. <i>special pattern matching</i> characters, which are:
  3175. <dl>
  3176. <dd>
  3177. <dl>
  3178. <p>
  3179. <dt> <tt> ? </tt>
  3180. <dd> Matches any single character.
  3181. <p>
  3182. <dt> <tt> * </tt>
  3183. <dd> Matches zero or more characters.
  3184. <p>
  3185. <dt> <tt> [<i>abc</i>] </tt>
  3186. <dd> Matches a single character from character set
  3187. <tt>{<i>a,b,c</i>}</tt>.
  3188. <p>
  3189. <dt> <tt> [<i>a</i>-<i>b</i>] </tt>
  3190. <dd> Matches a single character from the character range
  3191. <tt>{<i>a...b</i>}</tt>. Note that character <tt><i>a</i></tt> must be
  3192. lexicographically less than or equal to character <tt><i>b</i></tt>.
  3193. <p>
  3194. <dt> <tt> [^<i>a</i>] </tt>
  3195. <dd> Matches a single character that is not from character set or range
  3196. <tt>{<i>a</i>}</tt>. Note that the <tt>^</tt> character must occur
  3197. immediately to the right of the opening bracket.
  3198. <p>
  3199. <dt> <tt> \<i>c</i> </tt>
  3200. <dd> Removes (escapes) any special meaning of character <i>c</i>.
  3201. <p>
  3202. <dt> <tt> {ab,cd} </tt>
  3203. <dd> Matches a string from the string set <tt>{<i>ab, cd</i>} </tt>
  3204. <p>
  3205. <dt> <tt> {ab,c{de,fh}} </tt>
  3206. <dd> Matches a string from the string set <tt>{<i>ab, cde, cfh</i>}</tt>
  3207. </dl>
  3208. </dd>
  3209. </dl>
  3210. @param pathPattern a regular expression specifying a pth pattern
  3211. @return an array of paths that match the path pattern
  3212. @throws IOException]]>
  3213. </doc>
  3214. </method>
  3215. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3216. abstract="false" native="false" synchronized="false"
  3217. static="false" final="false" visibility="public"
  3218. deprecated="not deprecated">
  3219. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  3220. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  3221. <exception name="IOException" type="java.io.IOException"/>
  3222. <doc>
  3223. <![CDATA[Return an array of FileStatus objects whose path names match pathPattern
  3224. and is accepted by the user-supplied path filter. Results are sorted by
  3225. their path names.
  3226. Return null if pathPattern has no glob and the path does not exist.
  3227. Return an empty array if pathPattern has a glob and no path matches it.
  3228. @param pathPattern
  3229. a regular expression specifying the path pattern
  3230. @param filter
  3231. a user-supplied path filter
  3232. @return an array of FileStatus objects
  3233. @throws IOException if any I/O error occurs when fetching file status]]>
  3234. </doc>
  3235. </method>
  3236. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  3237. abstract="false" native="false" synchronized="false"
  3238. static="false" final="false" visibility="public"
  3239. deprecated="not deprecated">
  3240. <doc>
  3241. <![CDATA[Return the current user's home directory in this filesystem.
  3242. The default implementation returns "/user/$USER/".]]>
  3243. </doc>
  3244. </method>
  3245. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  3246. abstract="false" native="false" synchronized="false"
  3247. static="false" final="false" visibility="public"
  3248. deprecated="not deprecated">
  3249. <param name="renewer" type="java.lang.String"/>
  3250. <exception name="IOException" type="java.io.IOException"/>
  3251. <doc>
  3252. <![CDATA[Get a new delegation token for this file system.
  3253. @param renewer the account name that is allowed to renew the token.
  3254. @return a new delegation token
  3255. @throws IOException]]>
  3256. </doc>
  3257. </method>
  3258. <method name="setWorkingDirectory"
  3259. abstract="true" native="false" synchronized="false"
  3260. static="false" final="false" visibility="public"
  3261. deprecated="not deprecated">
  3262. <param name="new_dir" type="org.apache.hadoop.fs.Path"/>
  3263. <doc>
  3264. <![CDATA[Set the current working directory for the given file system. All relative
  3265. paths will be resolved relative to it.
  3266. @param new_dir]]>
  3267. </doc>
  3268. </method>
  3269. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  3270. abstract="true" native="false" synchronized="false"
  3271. static="false" final="false" visibility="public"
  3272. deprecated="not deprecated">
  3273. <doc>
  3274. <![CDATA[Get the current working directory for the given file system
  3275. @return the directory pathname]]>
  3276. </doc>
  3277. </method>
  3278. <method name="mkdirs" return="boolean"
  3279. abstract="false" native="false" synchronized="false"
  3280. static="false" final="false" visibility="public"
  3281. deprecated="not deprecated">
  3282. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3283. <exception name="IOException" type="java.io.IOException"/>
  3284. <doc>
  3285. <![CDATA[Call {@link #mkdirs(Path, FsPermission)} with default permission.]]>
  3286. </doc>
  3287. </method>
  3288. <method name="mkdirs" return="boolean"
  3289. abstract="true" native="false" synchronized="false"
  3290. static="false" final="false" visibility="public"
  3291. deprecated="not deprecated">
  3292. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3293. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3294. <exception name="IOException" type="java.io.IOException"/>
  3295. <doc>
  3296. <![CDATA[Make the given file and all non-existent parents into
  3297. directories. Has the semantics of Unix 'mkdir -p'.
  3298. Existence of the directory hierarchy is not an error.]]>
  3299. </doc>
  3300. </method>
  3301. <method name="copyFromLocalFile"
  3302. abstract="false" native="false" synchronized="false"
  3303. static="false" final="false" visibility="public"
  3304. deprecated="not deprecated">
  3305. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3306. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3307. <exception name="IOException" type="java.io.IOException"/>
  3308. <doc>
  3309. <![CDATA[The src file is on the local disk. Add it to FS at
  3310. the given dst name and the source is kept intact afterwards]]>
  3311. </doc>
  3312. </method>
  3313. <method name="moveFromLocalFile"
  3314. abstract="false" native="false" synchronized="false"
  3315. static="false" final="false" visibility="public"
  3316. deprecated="not deprecated">
  3317. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  3318. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3319. <exception name="IOException" type="java.io.IOException"/>
  3320. <doc>
  3321. <![CDATA[The src files is on the local disk. Add it to FS at
  3322. the given dst name, removing the source afterwards.]]>
  3323. </doc>
  3324. </method>
  3325. <method name="moveFromLocalFile"
  3326. abstract="false" native="false" synchronized="false"
  3327. static="false" final="false" visibility="public"
  3328. deprecated="not deprecated">
  3329. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3330. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3331. <exception name="IOException" type="java.io.IOException"/>
  3332. <doc>
  3333. <![CDATA[The src file is on the local disk. Add it to FS at
  3334. the given dst name, removing the source afterwards.]]>
  3335. </doc>
  3336. </method>
  3337. <method name="copyFromLocalFile"
  3338. abstract="false" native="false" synchronized="false"
  3339. static="false" final="false" visibility="public"
  3340. deprecated="not deprecated">
  3341. <param name="delSrc" type="boolean"/>
  3342. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3343. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3344. <exception name="IOException" type="java.io.IOException"/>
  3345. <doc>
  3346. <![CDATA[The src file is on the local disk. Add it to FS at
  3347. the given dst name.
  3348. delSrc indicates if the source should be removed]]>
  3349. </doc>
  3350. </method>
  3351. <method name="copyFromLocalFile"
  3352. abstract="false" native="false" synchronized="false"
  3353. static="false" final="false" visibility="public"
  3354. deprecated="not deprecated">
  3355. <param name="delSrc" type="boolean"/>
  3356. <param name="overwrite" type="boolean"/>
  3357. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  3358. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3359. <exception name="IOException" type="java.io.IOException"/>
  3360. <doc>
  3361. <![CDATA[The src files are on the local disk. Add it to FS at
  3362. the given dst name.
  3363. delSrc indicates if the source should be removed]]>
  3364. </doc>
  3365. </method>
  3366. <method name="copyFromLocalFile"
  3367. abstract="false" native="false" synchronized="false"
  3368. static="false" final="false" visibility="public"
  3369. deprecated="not deprecated">
  3370. <param name="delSrc" type="boolean"/>
  3371. <param name="overwrite" type="boolean"/>
  3372. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3373. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3374. <exception name="IOException" type="java.io.IOException"/>
  3375. <doc>
  3376. <![CDATA[The src file is on the local disk. Add it to FS at
  3377. the given dst name.
  3378. delSrc indicates if the source should be removed]]>
  3379. </doc>
  3380. </method>
  3381. <method name="copyToLocalFile"
  3382. abstract="false" native="false" synchronized="false"
  3383. static="false" final="false" visibility="public"
  3384. deprecated="not deprecated">
  3385. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3386. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3387. <exception name="IOException" type="java.io.IOException"/>
  3388. <doc>
  3389. <![CDATA[The src file is under FS, and the dst is on the local disk.
  3390. Copy it from FS control to the local dst name.]]>
  3391. </doc>
  3392. </method>
  3393. <method name="moveToLocalFile"
  3394. abstract="false" native="false" synchronized="false"
  3395. static="false" final="false" visibility="public"
  3396. deprecated="not deprecated">
  3397. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3398. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3399. <exception name="IOException" type="java.io.IOException"/>
  3400. <doc>
  3401. <![CDATA[The src file is under FS, and the dst is on the local disk.
  3402. Copy it from FS control to the local dst name.
  3403. Remove the source afterwards]]>
  3404. </doc>
  3405. </method>
  3406. <method name="copyToLocalFile"
  3407. abstract="false" native="false" synchronized="false"
  3408. static="false" final="false" visibility="public"
  3409. deprecated="not deprecated">
  3410. <param name="delSrc" type="boolean"/>
  3411. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3412. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3413. <exception name="IOException" type="java.io.IOException"/>
  3414. <doc>
  3415. <![CDATA[The src file is under FS, and the dst is on the local disk.
  3416. Copy it from FS control to the local dst name.
  3417. delSrc indicates if the src will be removed or not.]]>
  3418. </doc>
  3419. </method>
  3420. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  3421. abstract="false" native="false" synchronized="false"
  3422. static="false" final="false" visibility="public"
  3423. deprecated="not deprecated">
  3424. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  3425. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  3426. <exception name="IOException" type="java.io.IOException"/>
  3427. <doc>
  3428. <![CDATA[Returns a local File that the user can write output to. The caller
  3429. provides both the eventual FS target name and the local working
  3430. file. If the FS is local, we write directly into the target. If
  3431. the FS is remote, we write into the tmp local area.]]>
  3432. </doc>
  3433. </method>
  3434. <method name="completeLocalOutput"
  3435. abstract="false" native="false" synchronized="false"
  3436. static="false" final="false" visibility="public"
  3437. deprecated="not deprecated">
  3438. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  3439. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  3440. <exception name="IOException" type="java.io.IOException"/>
  3441. <doc>
  3442. <![CDATA[Called when we're all done writing to the target. A local FS will
  3443. do nothing, because we've written to exactly the right place. A remote
  3444. FS will copy the contents of tmpLocalFile to the correct target at
  3445. fsOutputFile.]]>
  3446. </doc>
  3447. </method>
  3448. <method name="close"
  3449. abstract="false" native="false" synchronized="false"
  3450. static="false" final="false" visibility="public"
  3451. deprecated="not deprecated">
  3452. <exception name="IOException" type="java.io.IOException"/>
  3453. <doc>
  3454. <![CDATA[No more filesystem operations are needed. Will
  3455. release any held locks.]]>
  3456. </doc>
  3457. </method>
  3458. <method name="getUsed" return="long"
  3459. abstract="false" native="false" synchronized="false"
  3460. static="false" final="false" visibility="public"
  3461. deprecated="not deprecated">
  3462. <exception name="IOException" type="java.io.IOException"/>
  3463. <doc>
  3464. <![CDATA[Return the total size of all files in the filesystem.]]>
  3465. </doc>
  3466. </method>
  3467. <method name="getBlockSize" return="long"
  3468. abstract="false" native="false" synchronized="false"
  3469. static="false" final="false" visibility="public"
  3470. deprecated="Use getFileStatus() instead">
  3471. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3472. <exception name="IOException" type="java.io.IOException"/>
  3473. <doc>
  3474. <![CDATA[@deprecated Use getFileStatus() instead]]>
  3475. </doc>
  3476. </method>
  3477. <method name="getDefaultBlockSize" return="long"
  3478. abstract="false" native="false" synchronized="false"
  3479. static="false" final="false" visibility="public"
  3480. deprecated="use {@link #getDefaultBlockSize(Path)} instead">
  3481. <doc>
  3482. <![CDATA[Return the number of bytes that large input files should be optimally
  3483. be split into to minimize i/o time.
  3484. @deprecated use {@link #getDefaultBlockSize(Path)} instead]]>
  3485. </doc>
  3486. </method>
  3487. <method name="getDefaultBlockSize" return="long"
  3488. abstract="false" native="false" synchronized="false"
  3489. static="false" final="false" visibility="public"
  3490. deprecated="not deprecated">
  3491. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3492. <doc>
  3493. <![CDATA[Return the number of bytes that large input files should be optimally
  3494. be split into to minimize i/o time.
  3495. @param f path of file
  3496. @return the default block size for the path's filesystem]]>
  3497. </doc>
  3498. </method>
  3499. <method name="getDefaultReplication" return="short"
  3500. abstract="false" native="false" synchronized="false"
  3501. static="false" final="false" visibility="public"
  3502. deprecated="use {@link #getDefaultReplication(Path)} instead">
  3503. <doc>
  3504. <![CDATA[Get the default replication.
  3505. @deprecated use {@link #getDefaultReplication(Path)} instead]]>
  3506. </doc>
  3507. </method>
  3508. <method name="getDefaultReplication" return="short"
  3509. abstract="false" native="false" synchronized="false"
  3510. static="false" final="false" visibility="public"
  3511. deprecated="not deprecated">
  3512. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3513. <doc>
  3514. <![CDATA[Get the default replication.
  3515. @param path of the file
  3516. @return default replication for the path's filesystem]]>
  3517. </doc>
  3518. </method>
  3519. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  3520. abstract="true" native="false" synchronized="false"
  3521. static="false" final="false" visibility="public"
  3522. deprecated="not deprecated">
  3523. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3524. <exception name="IOException" type="java.io.IOException"/>
  3525. <doc>
  3526. <![CDATA[Return a file status object that represents the path.
  3527. @param f The path we want information from
  3528. @return a FileStatus object
  3529. @throws FileNotFoundException when the path does not exist;
  3530. IOException see specific implementation]]>
  3531. </doc>
  3532. </method>
  3533. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  3534. abstract="false" native="false" synchronized="false"
  3535. static="false" final="false" visibility="public"
  3536. deprecated="not deprecated">
  3537. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3538. <exception name="IOException" type="java.io.IOException"/>
  3539. <doc>
  3540. <![CDATA[Get the checksum of a file.
  3541. @param f The file path
  3542. @return The file checksum. The default return value is null,
  3543. which indicates that no checksum algorithm is implemented
  3544. in the corresponding FileSystem.]]>
  3545. </doc>
  3546. </method>
  3547. <method name="setVerifyChecksum"
  3548. abstract="false" native="false" synchronized="false"
  3549. static="false" final="false" visibility="public"
  3550. deprecated="not deprecated">
  3551. <param name="verifyChecksum" type="boolean"/>
  3552. <doc>
  3553. <![CDATA[Set the verify checksum flag. This is only applicable if the
  3554. corresponding FileSystem supports checksum. By default doesn't do anything.
  3555. @param verifyChecksum]]>
  3556. </doc>
  3557. </method>
  3558. <method name="setPermission"
  3559. abstract="false" native="false" synchronized="false"
  3560. static="false" final="false" visibility="public"
  3561. deprecated="not deprecated">
  3562. <param name="p" type="org.apache.hadoop.fs.Path"/>
  3563. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3564. <exception name="IOException" type="java.io.IOException"/>
  3565. <doc>
  3566. <![CDATA[Set permission of a path.
  3567. @param p
  3568. @param permission]]>
  3569. </doc>
  3570. </method>
  3571. <method name="setOwner"
  3572. abstract="false" native="false" synchronized="false"
  3573. static="false" final="false" visibility="public"
  3574. deprecated="not deprecated">
  3575. <param name="p" type="org.apache.hadoop.fs.Path"/>
  3576. <param name="username" type="java.lang.String"/>
  3577. <param name="groupname" type="java.lang.String"/>
  3578. <exception name="IOException" type="java.io.IOException"/>
  3579. <doc>
  3580. <![CDATA[Set owner of a path (i.e. a file or a directory).
  3581. The parameters username and groupname cannot both be null.
  3582. @param p The path
  3583. @param username If it is null, the original username remains unchanged.
  3584. @param groupname If it is null, the original groupname remains unchanged.]]>
  3585. </doc>
  3586. </method>
  3587. <method name="setTimes"
  3588. abstract="false" native="false" synchronized="false"
  3589. static="false" final="false" visibility="public"
  3590. deprecated="not deprecated">
  3591. <param name="p" type="org.apache.hadoop.fs.Path"/>
  3592. <param name="mtime" type="long"/>
  3593. <param name="atime" type="long"/>
  3594. <exception name="IOException" type="java.io.IOException"/>
  3595. <doc>
  3596. <![CDATA[Set access time of a file
  3597. @param p The path
  3598. @param mtime Set the modification time of this file.
  3599. The number of milliseconds since Jan 1, 1970.
  3600. A value of -1 means that this call should not set modification time.
  3601. @param atime Set the access time of this file.
  3602. The number of milliseconds since Jan 1, 1970.
  3603. A value of -1 means that this call should not set access time.]]>
  3604. </doc>
  3605. </method>
  3606. <method name="getStatistics" return="java.util.Map"
  3607. abstract="false" native="false" synchronized="true"
  3608. static="true" final="false" visibility="public"
  3609. deprecated="use {@link #getAllStatistics} instead">
  3610. <doc>
  3611. <![CDATA[Get the Map of Statistics object indexed by URI Scheme.
  3612. @return a Map having a key as URI scheme and value as Statistics object
  3613. @deprecated use {@link #getAllStatistics} instead]]>
  3614. </doc>
  3615. </method>
  3616. <method name="getAllStatistics" return="java.util.List"
  3617. abstract="false" native="false" synchronized="true"
  3618. static="true" final="false" visibility="public"
  3619. deprecated="not deprecated">
  3620. <doc>
  3621. <![CDATA[Return the FileSystem classes that have Statistics]]>
  3622. </doc>
  3623. </method>
  3624. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  3625. abstract="false" native="false" synchronized="true"
  3626. static="true" final="false" visibility="public"
  3627. deprecated="not deprecated">
  3628. <param name="scheme" type="java.lang.String"/>
  3629. <param name="cls" type="java.lang.Class"/>
  3630. <doc>
  3631. <![CDATA[Get the statistics for a particular file system
  3632. @param cls the class to lookup
  3633. @return a statistics object]]>
  3634. </doc>
  3635. </method>
  3636. <method name="clearStatistics"
  3637. abstract="false" native="false" synchronized="true"
  3638. static="true" final="false" visibility="public"
  3639. deprecated="not deprecated">
  3640. </method>
  3641. <method name="printStatistics"
  3642. abstract="false" native="false" synchronized="true"
  3643. static="true" final="false" visibility="public"
  3644. deprecated="not deprecated">
  3645. <exception name="IOException" type="java.io.IOException"/>
  3646. </method>
  3647. <field name="FS_DEFAULT_NAME_KEY" type="java.lang.String"
  3648. transient="false" volatile="false"
  3649. static="true" final="true" visibility="public"
  3650. deprecated="not deprecated">
  3651. </field>
  3652. <field name="LOG" type="org.apache.commons.logging.Log"
  3653. transient="false" volatile="false"
  3654. static="true" final="true" visibility="public"
  3655. deprecated="not deprecated">
  3656. </field>
  3657. <field name="statistics" type="org.apache.hadoop.fs.FileSystem.Statistics"
  3658. transient="false" volatile="false"
  3659. static="false" final="false" visibility="protected"
  3660. deprecated="not deprecated">
  3661. <doc>
  3662. <![CDATA[The statistics for this file system.]]>
  3663. </doc>
  3664. </field>
  3665. <doc>
  3666. <![CDATA[An abstract base class for a fairly generic filesystem. It
  3667. may be implemented as a distributed filesystem, or as a "local"
  3668. one that reflects the locally-connected disk. The local version
  3669. exists for small Hadoop instances and for testing.
  3670. <p>
  3671. All user code that may potentially use the Hadoop Distributed
  3672. File System should be written to use a FileSystem object. The
  3673. Hadoop DFS is a multi-machine system that appears as a single
  3674. disk. It's useful because of its fault tolerance and potentially
  3675. very large capacity.
  3676. <p>
  3677. The local implementation is {@link LocalFileSystem} and distributed
  3678. implementation is DistributedFileSystem.]]>
  3679. </doc>
  3680. </class>
  3681. <!-- end class org.apache.hadoop.fs.FileSystem -->
  3682. <!-- start class org.apache.hadoop.fs.FileSystem.Statistics -->
  3683. <class name="FileSystem.Statistics" extends="java.lang.Object"
  3684. abstract="false"
  3685. static="true" final="true" visibility="public"
  3686. deprecated="not deprecated">
  3687. <constructor name="FileSystem.Statistics" type="java.lang.String"
  3688. static="false" final="false" visibility="public"
  3689. deprecated="not deprecated">
  3690. </constructor>
  3691. <method name="incrementBytesRead"
  3692. abstract="false" native="false" synchronized="false"
  3693. static="false" final="false" visibility="public"
  3694. deprecated="not deprecated">
  3695. <param name="newBytes" type="long"/>
  3696. <doc>
  3697. <![CDATA[Increment the bytes read in the statistics
  3698. @param newBytes the additional bytes read]]>
  3699. </doc>
  3700. </method>
  3701. <method name="incrementBytesWritten"
  3702. abstract="false" native="false" synchronized="false"
  3703. static="false" final="false" visibility="public"
  3704. deprecated="not deprecated">
  3705. <param name="newBytes" type="long"/>
  3706. <doc>
  3707. <![CDATA[Increment the bytes written in the statistics
  3708. @param newBytes the additional bytes written]]>
  3709. </doc>
  3710. </method>
  3711. <method name="incrementReadOps"
  3712. abstract="false" native="false" synchronized="false"
  3713. static="false" final="false" visibility="public"
  3714. deprecated="not deprecated">
  3715. <param name="count" type="int"/>
  3716. <doc>
  3717. <![CDATA[Increment the number of read operations
  3718. @param count number of read operations]]>
  3719. </doc>
  3720. </method>
  3721. <method name="incrementLargeReadOps"
  3722. abstract="false" native="false" synchronized="false"
  3723. static="false" final="false" visibility="public"
  3724. deprecated="not deprecated">
  3725. <param name="count" type="int"/>
  3726. <doc>
  3727. <![CDATA[Increment the number of large read operations
  3728. @param count number of large read operations]]>
  3729. </doc>
  3730. </method>
  3731. <method name="incrementWriteOps"
  3732. abstract="false" native="false" synchronized="false"
  3733. static="false" final="false" visibility="public"
  3734. deprecated="not deprecated">
  3735. <param name="count" type="int"/>
  3736. <doc>
  3737. <![CDATA[Increment the number of write operations
  3738. @param count number of write operations]]>
  3739. </doc>
  3740. </method>
  3741. <method name="getBytesRead" return="long"
  3742. abstract="false" native="false" synchronized="false"
  3743. static="false" final="false" visibility="public"
  3744. deprecated="not deprecated">
  3745. <doc>
  3746. <![CDATA[Get the total number of bytes read
  3747. @return the number of bytes]]>
  3748. </doc>
  3749. </method>
  3750. <method name="getBytesWritten" return="long"
  3751. abstract="false" native="false" synchronized="false"
  3752. static="false" final="false" visibility="public"
  3753. deprecated="not deprecated">
  3754. <doc>
  3755. <![CDATA[Get the total number of bytes written
  3756. @return the number of bytes]]>
  3757. </doc>
  3758. </method>
  3759. <method name="getReadOps" return="int"
  3760. abstract="false" native="false" synchronized="false"
  3761. static="false" final="false" visibility="public"
  3762. deprecated="not deprecated">
  3763. <doc>
  3764. <![CDATA[Get the number of file system read operations such as list files
  3765. @return number of read operations]]>
  3766. </doc>
  3767. </method>
  3768. <method name="getLargeReadOps" return="int"
  3769. abstract="false" native="false" synchronized="false"
  3770. static="false" final="false" visibility="public"
  3771. deprecated="not deprecated">
  3772. <doc>
  3773. <![CDATA[Get the number of large file system read operations such as list files
  3774. under a large directory
  3775. @return number of large read operations]]>
  3776. </doc>
  3777. </method>
  3778. <method name="getWriteOps" return="int"
  3779. abstract="false" native="false" synchronized="false"
  3780. static="false" final="false" visibility="public"
  3781. deprecated="not deprecated">
  3782. <doc>
  3783. <![CDATA[Get the number of file system write operations such as create, append
  3784. rename etc.
  3785. @return number of write operations]]>
  3786. </doc>
  3787. </method>
  3788. <method name="toString" return="java.lang.String"
  3789. abstract="false" native="false" synchronized="false"
  3790. static="false" final="false" visibility="public"
  3791. deprecated="not deprecated">
  3792. </method>
  3793. <method name="reset"
  3794. abstract="false" native="false" synchronized="false"
  3795. static="false" final="false" visibility="public"
  3796. deprecated="not deprecated">
  3797. <doc>
  3798. <![CDATA[Reset the counts of bytes to 0.]]>
  3799. </doc>
  3800. </method>
  3801. <method name="getScheme" return="java.lang.String"
  3802. abstract="false" native="false" synchronized="false"
  3803. static="false" final="false" visibility="public"
  3804. deprecated="not deprecated">
  3805. <doc>
  3806. <![CDATA[Get the uri scheme associated with this statistics object.
  3807. @return the schema associated with this set of statistics]]>
  3808. </doc>
  3809. </method>
  3810. </class>
  3811. <!-- end class org.apache.hadoop.fs.FileSystem.Statistics -->
  3812. <!-- start class org.apache.hadoop.fs.FileUtil -->
  3813. <class name="FileUtil" extends="java.lang.Object"
  3814. abstract="false"
  3815. static="false" final="false" visibility="public"
  3816. deprecated="not deprecated">
  3817. <constructor name="FileUtil"
  3818. static="false" final="false" visibility="public"
  3819. deprecated="not deprecated">
  3820. </constructor>
  3821. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  3822. abstract="false" native="false" synchronized="false"
  3823. static="true" final="false" visibility="public"
  3824. deprecated="not deprecated">
  3825. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  3826. <doc>
  3827. <![CDATA[convert an array of FileStatus to an array of Path
  3828. @param stats
  3829. an array of FileStatus objects
  3830. @return an array of paths corresponding to the input]]>
  3831. </doc>
  3832. </method>
  3833. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  3834. abstract="false" native="false" synchronized="false"
  3835. static="true" final="false" visibility="public"
  3836. deprecated="not deprecated">
  3837. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  3838. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3839. <doc>
  3840. <![CDATA[convert an array of FileStatus to an array of Path.
  3841. If stats if null, return path
  3842. @param stats
  3843. an array of FileStatus objects
  3844. @param path
  3845. default path to return in stats is null
  3846. @return an array of paths corresponding to the input]]>
  3847. </doc>
  3848. </method>
  3849. <method name="fullyDelete" return="boolean"
  3850. abstract="false" native="false" synchronized="false"
  3851. static="true" final="false" visibility="public"
  3852. deprecated="not deprecated">
  3853. <param name="dir" type="java.io.File"/>
  3854. <exception name="IOException" type="java.io.IOException"/>
  3855. <doc>
  3856. <![CDATA[Delete a directory and all its contents. If
  3857. we return false, the directory may be partially-deleted.]]>
  3858. </doc>
  3859. </method>
  3860. <method name="fullyDeleteContents" return="boolean"
  3861. abstract="false" native="false" synchronized="false"
  3862. static="true" final="false" visibility="public"
  3863. deprecated="not deprecated">
  3864. <param name="dir" type="java.io.File"/>
  3865. <exception name="IOException" type="java.io.IOException"/>
  3866. <doc>
  3867. <![CDATA[Delete the contents of a directory, not the directory itself. If
  3868. we return false, the directory may be partially-deleted.]]>
  3869. </doc>
  3870. </method>
  3871. <method name="fullyDelete"
  3872. abstract="false" native="false" synchronized="false"
  3873. static="true" final="false" visibility="public"
  3874. deprecated="Use {@link FileSystem#delete(Path, boolean)}">
  3875. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  3876. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  3877. <exception name="IOException" type="java.io.IOException"/>
  3878. <doc>
  3879. <![CDATA[Recursively delete a directory.
  3880. @param fs {@link FileSystem} on which the path is present
  3881. @param dir directory to recursively delete
  3882. @throws IOException
  3883. @deprecated Use {@link FileSystem#delete(Path, boolean)}]]>
  3884. </doc>
  3885. </method>
  3886. <method name="copy" return="boolean"
  3887. abstract="false" native="false" synchronized="false"
  3888. static="true" final="false" visibility="public"
  3889. deprecated="not deprecated">
  3890. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3891. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3892. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3893. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3894. <param name="deleteSource" type="boolean"/>
  3895. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3896. <exception name="IOException" type="java.io.IOException"/>
  3897. <doc>
  3898. <![CDATA[Copy files between FileSystems.]]>
  3899. </doc>
  3900. </method>
  3901. <method name="copy" return="boolean"
  3902. abstract="false" native="false" synchronized="false"
  3903. static="true" final="false" visibility="public"
  3904. deprecated="not deprecated">
  3905. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3906. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  3907. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3908. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3909. <param name="deleteSource" type="boolean"/>
  3910. <param name="overwrite" type="boolean"/>
  3911. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3912. <exception name="IOException" type="java.io.IOException"/>
  3913. </method>
  3914. <method name="copy" return="boolean"
  3915. abstract="false" native="false" synchronized="false"
  3916. static="true" final="false" visibility="public"
  3917. deprecated="not deprecated">
  3918. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3919. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3920. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3921. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3922. <param name="deleteSource" type="boolean"/>
  3923. <param name="overwrite" type="boolean"/>
  3924. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3925. <exception name="IOException" type="java.io.IOException"/>
  3926. <doc>
  3927. <![CDATA[Copy files between FileSystems.]]>
  3928. </doc>
  3929. </method>
  3930. <method name="copyMerge" return="boolean"
  3931. abstract="false" native="false" synchronized="false"
  3932. static="true" final="false" visibility="public"
  3933. deprecated="not deprecated">
  3934. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3935. <param name="srcDir" type="org.apache.hadoop.fs.Path"/>
  3936. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3937. <param name="dstFile" type="org.apache.hadoop.fs.Path"/>
  3938. <param name="deleteSource" type="boolean"/>
  3939. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3940. <param name="addString" type="java.lang.String"/>
  3941. <exception name="IOException" type="java.io.IOException"/>
  3942. <doc>
  3943. <![CDATA[Copy all files in a directory to one output file (merge).]]>
  3944. </doc>
  3945. </method>
  3946. <method name="copy" return="boolean"
  3947. abstract="false" native="false" synchronized="false"
  3948. static="true" final="false" visibility="public"
  3949. deprecated="not deprecated">
  3950. <param name="src" type="java.io.File"/>
  3951. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3952. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3953. <param name="deleteSource" type="boolean"/>
  3954. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3955. <exception name="IOException" type="java.io.IOException"/>
  3956. <doc>
  3957. <![CDATA[Copy local files to a FileSystem.]]>
  3958. </doc>
  3959. </method>
  3960. <method name="copy" return="boolean"
  3961. abstract="false" native="false" synchronized="false"
  3962. static="true" final="false" visibility="public"
  3963. deprecated="not deprecated">
  3964. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3965. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3966. <param name="dst" type="java.io.File"/>
  3967. <param name="deleteSource" type="boolean"/>
  3968. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3969. <exception name="IOException" type="java.io.IOException"/>
  3970. <doc>
  3971. <![CDATA[Copy FileSystem files to local files.]]>
  3972. </doc>
  3973. </method>
  3974. <method name="makeShellPath" return="java.lang.String"
  3975. abstract="false" native="false" synchronized="false"
  3976. static="true" final="false" visibility="public"
  3977. deprecated="not deprecated">
  3978. <param name="filename" type="java.lang.String"/>
  3979. <exception name="IOException" type="java.io.IOException"/>
  3980. <doc>
  3981. <![CDATA[Convert a os-native filename to a path that works for the shell.
  3982. @param filename The filename to convert
  3983. @return The unix pathname
  3984. @throws IOException on windows, there can be problems with the subprocess]]>
  3985. </doc>
  3986. </method>
  3987. <method name="makeShellPath" return="java.lang.String"
  3988. abstract="false" native="false" synchronized="false"
  3989. static="true" final="false" visibility="public"
  3990. deprecated="not deprecated">
  3991. <param name="file" type="java.io.File"/>
  3992. <exception name="IOException" type="java.io.IOException"/>
  3993. <doc>
  3994. <![CDATA[Convert a os-native filename to a path that works for the shell.
  3995. @param file The filename to convert
  3996. @return The unix pathname
  3997. @throws IOException on windows, there can be problems with the subprocess]]>
  3998. </doc>
  3999. </method>
  4000. <method name="makeShellPath" return="java.lang.String"
  4001. abstract="false" native="false" synchronized="false"
  4002. static="true" final="false" visibility="public"
  4003. deprecated="not deprecated">
  4004. <param name="file" type="java.io.File"/>
  4005. <param name="makeCanonicalPath" type="boolean"/>
  4006. <exception name="IOException" type="java.io.IOException"/>
  4007. <doc>
  4008. <![CDATA[Convert a os-native filename to a path that works for the shell.
  4009. @param file The filename to convert
  4010. @param makeCanonicalPath
  4011. Whether to make canonical path for the file passed
  4012. @return The unix pathname
  4013. @throws IOException on windows, there can be problems with the subprocess]]>
  4014. </doc>
  4015. </method>
  4016. <method name="getDU" return="long"
  4017. abstract="false" native="false" synchronized="false"
  4018. static="true" final="false" visibility="public"
  4019. deprecated="not deprecated">
  4020. <param name="dir" type="java.io.File"/>
  4021. <doc>
  4022. <![CDATA[Takes an input dir and returns the du on that local directory. Very basic
  4023. implementation.
  4024. @param dir
  4025. The input dir to get the disk space of this local dir
  4026. @return The total disk space of the input local directory]]>
  4027. </doc>
  4028. </method>
  4029. <method name="unZip"
  4030. abstract="false" native="false" synchronized="false"
  4031. static="true" final="false" visibility="public"
  4032. deprecated="not deprecated">
  4033. <param name="inFile" type="java.io.File"/>
  4034. <param name="unzipDir" type="java.io.File"/>
  4035. <exception name="IOException" type="java.io.IOException"/>
  4036. <doc>
  4037. <![CDATA[Given a File input it will unzip the file in a the unzip directory
  4038. passed as the second parameter
  4039. @param inFile The zip file as input
  4040. @param unzipDir The unzip directory where to unzip the zip file.
  4041. @throws IOException]]>
  4042. </doc>
  4043. </method>
  4044. <method name="unTar"
  4045. abstract="false" native="false" synchronized="false"
  4046. static="true" final="false" visibility="public"
  4047. deprecated="not deprecated">
  4048. <param name="inFile" type="java.io.File"/>
  4049. <param name="untarDir" type="java.io.File"/>
  4050. <exception name="IOException" type="java.io.IOException"/>
  4051. <doc>
  4052. <![CDATA[Given a Tar File as input it will untar the file in a the untar directory
  4053. passed as the second parameter
  4054. This utility will untar ".tar" files and ".tar.gz","tgz" files.
  4055. @param inFile The tar file as input.
  4056. @param untarDir The untar directory where to untar the tar file.
  4057. @throws IOException]]>
  4058. </doc>
  4059. </method>
  4060. <method name="symLink" return="int"
  4061. abstract="false" native="false" synchronized="false"
  4062. static="true" final="false" visibility="public"
  4063. deprecated="not deprecated">
  4064. <param name="target" type="java.lang.String"/>
  4065. <param name="linkname" type="java.lang.String"/>
  4066. <exception name="IOException" type="java.io.IOException"/>
  4067. <doc>
  4068. <![CDATA[Create a soft link between a src and destination
  4069. only on a local disk. HDFS does not support this
  4070. @param target the target for symlink
  4071. @param linkname the symlink
  4072. @return value returned by the command]]>
  4073. </doc>
  4074. </method>
  4075. <method name="chmod" return="int"
  4076. abstract="false" native="false" synchronized="false"
  4077. static="true" final="false" visibility="public"
  4078. deprecated="not deprecated">
  4079. <param name="filename" type="java.lang.String"/>
  4080. <param name="perm" type="java.lang.String"/>
  4081. <exception name="IOException" type="java.io.IOException"/>
  4082. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  4083. <doc>
  4084. <![CDATA[Change the permissions on a filename.
  4085. @param filename the name of the file to change
  4086. @param perm the permission string
  4087. @return the exit code from the command
  4088. @throws IOException
  4089. @throws InterruptedException]]>
  4090. </doc>
  4091. </method>
  4092. <method name="chmod" return="int"
  4093. abstract="false" native="false" synchronized="false"
  4094. static="true" final="false" visibility="public"
  4095. deprecated="not deprecated">
  4096. <param name="filename" type="java.lang.String"/>
  4097. <param name="perm" type="java.lang.String"/>
  4098. <param name="recursive" type="boolean"/>
  4099. <exception name="IOException" type="java.io.IOException"/>
  4100. <doc>
  4101. <![CDATA[Change the permissions on a file / directory, recursively, if
  4102. needed.
  4103. @param filename name of the file whose permissions are to change
  4104. @param perm permission string
  4105. @param recursive true, if permissions should be changed recursively
  4106. @return the exit code from the command.
  4107. @throws IOException
  4108. @throws InterruptedException]]>
  4109. </doc>
  4110. </method>
  4111. <method name="setPermission"
  4112. abstract="false" native="false" synchronized="false"
  4113. static="true" final="false" visibility="public"
  4114. deprecated="not deprecated">
  4115. <param name="f" type="java.io.File"/>
  4116. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4117. <exception name="IOException" type="java.io.IOException"/>
  4118. <doc>
  4119. <![CDATA[Set permissions to the required value. Uses the java primitives instead
  4120. of forking if group == other.
  4121. @param f the file to change
  4122. @param permission the new permissions
  4123. @throws IOException]]>
  4124. </doc>
  4125. </method>
  4126. <method name="createLocalTempFile" return="java.io.File"
  4127. abstract="false" native="false" synchronized="false"
  4128. static="true" final="true" visibility="public"
  4129. deprecated="not deprecated">
  4130. <param name="basefile" type="java.io.File"/>
  4131. <param name="prefix" type="java.lang.String"/>
  4132. <param name="isDeleteOnExit" type="boolean"/>
  4133. <exception name="IOException" type="java.io.IOException"/>
  4134. <doc>
  4135. <![CDATA[Create a tmp file for a base file.
  4136. @param basefile the base file of the tmp
  4137. @param prefix file name prefix of tmp
  4138. @param isDeleteOnExit if true, the tmp will be deleted when the VM exits
  4139. @return a newly created tmp file
  4140. @exception IOException If a tmp file cannot created
  4141. @see java.io.File#createTempFile(String, String, File)
  4142. @see java.io.File#deleteOnExit()]]>
  4143. </doc>
  4144. </method>
  4145. <method name="replaceFile"
  4146. abstract="false" native="false" synchronized="false"
  4147. static="true" final="false" visibility="public"
  4148. deprecated="not deprecated">
  4149. <param name="src" type="java.io.File"/>
  4150. <param name="target" type="java.io.File"/>
  4151. <exception name="IOException" type="java.io.IOException"/>
  4152. <doc>
  4153. <![CDATA[Move the src file to the name specified by target.
  4154. @param src the source file
  4155. @param target the target file
  4156. @exception IOException If this operation fails]]>
  4157. </doc>
  4158. </method>
  4159. <method name="listFiles" return="java.io.File[]"
  4160. abstract="false" native="false" synchronized="false"
  4161. static="true" final="false" visibility="public"
  4162. deprecated="not deprecated">
  4163. <param name="dir" type="java.io.File"/>
  4164. <exception name="IOException" type="java.io.IOException"/>
  4165. <doc>
  4166. <![CDATA[A wrapper for {@link File#listFiles()}. This java.io API returns null
  4167. when a dir is not a directory or for any I/O error. Instead of having
  4168. null check everywhere File#listFiles() is used, we will add utility API
  4169. to get around this problem. For the majority of cases where we prefer
  4170. an IOException to be thrown.
  4171. @param dir directory for which listing should be performed
  4172. @return list of files or empty list
  4173. @exception IOException for invalid directory or for a bad disk.]]>
  4174. </doc>
  4175. </method>
  4176. <method name="list" return="java.lang.String[]"
  4177. abstract="false" native="false" synchronized="false"
  4178. static="true" final="false" visibility="public"
  4179. deprecated="not deprecated">
  4180. <param name="dir" type="java.io.File"/>
  4181. <exception name="IOException" type="java.io.IOException"/>
  4182. <doc>
  4183. <![CDATA[A wrapper for {@link File#list()}. This java.io API returns null
  4184. when a dir is not a directory or for any I/O error. Instead of having
  4185. null check everywhere File#list() is used, we will add utility API
  4186. to get around this problem. For the majority of cases where we prefer
  4187. an IOException to be thrown.
  4188. @param dir directory for which listing should be performed
  4189. @return list of file names or empty string list
  4190. @exception IOException for invalid directory or for a bad disk.]]>
  4191. </doc>
  4192. </method>
  4193. <doc>
  4194. <![CDATA[A collection of file-processing util methods]]>
  4195. </doc>
  4196. </class>
  4197. <!-- end class org.apache.hadoop.fs.FileUtil -->
  4198. <!-- start class org.apache.hadoop.fs.FilterFileSystem -->
  4199. <class name="FilterFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  4200. abstract="false"
  4201. static="false" final="false" visibility="public"
  4202. deprecated="not deprecated">
  4203. <constructor name="FilterFileSystem"
  4204. static="false" final="false" visibility="public"
  4205. deprecated="not deprecated">
  4206. </constructor>
  4207. <constructor name="FilterFileSystem" type="org.apache.hadoop.fs.FileSystem"
  4208. static="false" final="false" visibility="public"
  4209. deprecated="not deprecated">
  4210. </constructor>
  4211. <method name="initialize"
  4212. abstract="false" native="false" synchronized="false"
  4213. static="false" final="false" visibility="public"
  4214. deprecated="not deprecated">
  4215. <param name="name" type="java.net.URI"/>
  4216. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  4217. <exception name="IOException" type="java.io.IOException"/>
  4218. <doc>
  4219. <![CDATA[Called after a new FileSystem instance is constructed.
  4220. @param name a uri whose authority section names the host, port, etc.
  4221. for this FileSystem
  4222. @param conf the configuration]]>
  4223. </doc>
  4224. </method>
  4225. <method name="getUri" return="java.net.URI"
  4226. abstract="false" native="false" synchronized="false"
  4227. static="false" final="false" visibility="public"
  4228. deprecated="not deprecated">
  4229. <doc>
  4230. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.]]>
  4231. </doc>
  4232. </method>
  4233. <method name="getCanonicalServiceName" return="java.lang.String"
  4234. abstract="false" native="false" synchronized="false"
  4235. static="false" final="false" visibility="public"
  4236. deprecated="not deprecated">
  4237. </method>
  4238. <method name="getName" return="java.lang.String"
  4239. abstract="false" native="false" synchronized="false"
  4240. static="false" final="false" visibility="public"
  4241. deprecated="call #getUri() instead.">
  4242. <doc>
  4243. <![CDATA[@deprecated call #getUri() instead.]]>
  4244. </doc>
  4245. </method>
  4246. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  4247. abstract="false" native="false" synchronized="false"
  4248. static="false" final="false" visibility="public"
  4249. deprecated="not deprecated">
  4250. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4251. <doc>
  4252. <![CDATA[Make sure that a path specifies a FileSystem.]]>
  4253. </doc>
  4254. </method>
  4255. <method name="checkPath"
  4256. abstract="false" native="false" synchronized="false"
  4257. static="false" final="false" visibility="protected"
  4258. deprecated="not deprecated">
  4259. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4260. <doc>
  4261. <![CDATA[Check that a Path belongs to this FileSystem.]]>
  4262. </doc>
  4263. </method>
  4264. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  4265. abstract="false" native="false" synchronized="false"
  4266. static="false" final="false" visibility="public"
  4267. deprecated="not deprecated">
  4268. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  4269. <param name="start" type="long"/>
  4270. <param name="len" type="long"/>
  4271. <exception name="IOException" type="java.io.IOException"/>
  4272. </method>
  4273. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  4274. abstract="false" native="false" synchronized="false"
  4275. static="false" final="false" visibility="public"
  4276. deprecated="not deprecated">
  4277. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4278. <param name="bufferSize" type="int"/>
  4279. <exception name="IOException" type="java.io.IOException"/>
  4280. <doc>
  4281. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  4282. @param f the file name to open
  4283. @param bufferSize the size of the buffer to be used.]]>
  4284. </doc>
  4285. </method>
  4286. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  4287. abstract="false" native="false" synchronized="false"
  4288. static="false" final="false" visibility="public"
  4289. deprecated="not deprecated">
  4290. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4291. <param name="bufferSize" type="int"/>
  4292. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  4293. <exception name="IOException" type="java.io.IOException"/>
  4294. <doc>
  4295. <![CDATA[{@inheritDoc}]]>
  4296. </doc>
  4297. </method>
  4298. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  4299. abstract="false" native="false" synchronized="false"
  4300. static="false" final="false" visibility="public"
  4301. deprecated="not deprecated">
  4302. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4303. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4304. <param name="overwrite" type="boolean"/>
  4305. <param name="bufferSize" type="int"/>
  4306. <param name="replication" type="short"/>
  4307. <param name="blockSize" type="long"/>
  4308. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  4309. <exception name="IOException" type="java.io.IOException"/>
  4310. <doc>
  4311. <![CDATA[{@inheritDoc}]]>
  4312. </doc>
  4313. </method>
  4314. <method name="setReplication" return="boolean"
  4315. abstract="false" native="false" synchronized="false"
  4316. static="false" final="false" visibility="public"
  4317. deprecated="not deprecated">
  4318. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4319. <param name="replication" type="short"/>
  4320. <exception name="IOException" type="java.io.IOException"/>
  4321. <doc>
  4322. <![CDATA[Set replication for an existing file.
  4323. @param src file name
  4324. @param replication new replication
  4325. @throws IOException
  4326. @return true if successful;
  4327. false if file does not exist or is a directory]]>
  4328. </doc>
  4329. </method>
  4330. <method name="rename" return="boolean"
  4331. abstract="false" native="false" synchronized="false"
  4332. static="false" final="false" visibility="public"
  4333. deprecated="not deprecated">
  4334. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4335. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4336. <exception name="IOException" type="java.io.IOException"/>
  4337. <doc>
  4338. <![CDATA[Renames Path src to Path dst. Can take place on local fs
  4339. or remote DFS.]]>
  4340. </doc>
  4341. </method>
  4342. <method name="delete" return="boolean"
  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[Delete a file]]>
  4350. </doc>
  4351. </method>
  4352. <method name="delete" return="boolean"
  4353. abstract="false" native="false" synchronized="false"
  4354. static="false" final="false" visibility="public"
  4355. deprecated="not deprecated">
  4356. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4357. <param name="recursive" type="boolean"/>
  4358. <exception name="IOException" type="java.io.IOException"/>
  4359. <doc>
  4360. <![CDATA[Delete a file]]>
  4361. </doc>
  4362. </method>
  4363. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  4364. abstract="false" native="false" synchronized="false"
  4365. static="false" final="false" visibility="public"
  4366. deprecated="not deprecated">
  4367. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4368. <exception name="IOException" type="java.io.IOException"/>
  4369. <doc>
  4370. <![CDATA[List files in a directory.]]>
  4371. </doc>
  4372. </method>
  4373. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  4374. abstract="false" native="false" synchronized="false"
  4375. static="false" final="false" visibility="public"
  4376. deprecated="not deprecated">
  4377. </method>
  4378. <method name="setWorkingDirectory"
  4379. abstract="false" native="false" synchronized="false"
  4380. static="false" final="false" visibility="public"
  4381. deprecated="not deprecated">
  4382. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  4383. <doc>
  4384. <![CDATA[Set the current working directory for the given file system. All relative
  4385. paths will be resolved relative to it.
  4386. @param newDir]]>
  4387. </doc>
  4388. </method>
  4389. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  4390. abstract="false" native="false" synchronized="false"
  4391. static="false" final="false" visibility="public"
  4392. deprecated="not deprecated">
  4393. <doc>
  4394. <![CDATA[Get the current working directory for the given file system
  4395. @return the directory pathname]]>
  4396. </doc>
  4397. </method>
  4398. <method name="mkdirs" return="boolean"
  4399. abstract="false" native="false" synchronized="false"
  4400. static="false" final="false" visibility="public"
  4401. deprecated="not deprecated">
  4402. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4403. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4404. <exception name="IOException" type="java.io.IOException"/>
  4405. <doc>
  4406. <![CDATA[{@inheritDoc}]]>
  4407. </doc>
  4408. </method>
  4409. <method name="copyFromLocalFile"
  4410. abstract="false" native="false" synchronized="false"
  4411. static="false" final="false" visibility="public"
  4412. deprecated="not deprecated">
  4413. <param name="delSrc" type="boolean"/>
  4414. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4415. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4416. <exception name="IOException" type="java.io.IOException"/>
  4417. <doc>
  4418. <![CDATA[The src file is on the local disk. Add it to FS at
  4419. the given dst name.
  4420. delSrc indicates if the source should be removed]]>
  4421. </doc>
  4422. </method>
  4423. <method name="copyToLocalFile"
  4424. abstract="false" native="false" synchronized="false"
  4425. static="false" final="false" visibility="public"
  4426. deprecated="not deprecated">
  4427. <param name="delSrc" type="boolean"/>
  4428. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4429. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4430. <exception name="IOException" type="java.io.IOException"/>
  4431. <doc>
  4432. <![CDATA[The src file is under FS, and the dst is on the local disk.
  4433. Copy it from FS control to the local dst name.
  4434. delSrc indicates if the src will be removed or not.]]>
  4435. </doc>
  4436. </method>
  4437. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  4438. abstract="false" native="false" synchronized="false"
  4439. static="false" final="false" visibility="public"
  4440. deprecated="not deprecated">
  4441. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  4442. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  4443. <exception name="IOException" type="java.io.IOException"/>
  4444. <doc>
  4445. <![CDATA[Returns a local File that the user can write output to. The caller
  4446. provides both the eventual FS target name and the local working
  4447. file. If the FS is local, we write directly into the target. If
  4448. the FS is remote, we write into the tmp local area.]]>
  4449. </doc>
  4450. </method>
  4451. <method name="completeLocalOutput"
  4452. abstract="false" native="false" synchronized="false"
  4453. static="false" final="false" visibility="public"
  4454. deprecated="not deprecated">
  4455. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  4456. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  4457. <exception name="IOException" type="java.io.IOException"/>
  4458. <doc>
  4459. <![CDATA[Called when we're all done writing to the target. A local FS will
  4460. do nothing, because we've written to exactly the right place. A remote
  4461. FS will copy the contents of tmpLocalFile to the correct target at
  4462. fsOutputFile.]]>
  4463. </doc>
  4464. </method>
  4465. <method name="getDefaultBlockSize" return="long"
  4466. abstract="false" native="false" synchronized="false"
  4467. static="false" final="false" visibility="public"
  4468. deprecated="not deprecated">
  4469. <doc>
  4470. <![CDATA[Return the number of bytes that large input files should be optimally
  4471. be split into to minimize i/o time.]]>
  4472. </doc>
  4473. </method>
  4474. <method name="getDefaultReplication" return="short"
  4475. abstract="false" native="false" synchronized="false"
  4476. static="false" final="false" visibility="public"
  4477. deprecated="not deprecated">
  4478. <doc>
  4479. <![CDATA[Get the default replication.]]>
  4480. </doc>
  4481. </method>
  4482. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  4483. abstract="false" native="false" synchronized="false"
  4484. static="false" final="false" visibility="public"
  4485. deprecated="not deprecated">
  4486. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4487. <exception name="IOException" type="java.io.IOException"/>
  4488. <doc>
  4489. <![CDATA[Get file status.]]>
  4490. </doc>
  4491. </method>
  4492. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  4493. abstract="false" native="false" synchronized="false"
  4494. static="false" final="false" visibility="public"
  4495. deprecated="not deprecated">
  4496. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4497. <exception name="IOException" type="java.io.IOException"/>
  4498. <doc>
  4499. <![CDATA[{@inheritDoc}]]>
  4500. </doc>
  4501. </method>
  4502. <method name="setVerifyChecksum"
  4503. abstract="false" native="false" synchronized="false"
  4504. static="false" final="false" visibility="public"
  4505. deprecated="not deprecated">
  4506. <param name="verifyChecksum" type="boolean"/>
  4507. <doc>
  4508. <![CDATA[{@inheritDoc}]]>
  4509. </doc>
  4510. </method>
  4511. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  4512. abstract="false" native="false" synchronized="false"
  4513. static="false" final="false" visibility="public"
  4514. deprecated="not deprecated">
  4515. </method>
  4516. <method name="close"
  4517. abstract="false" native="false" synchronized="false"
  4518. static="false" final="false" visibility="public"
  4519. deprecated="not deprecated">
  4520. <exception name="IOException" type="java.io.IOException"/>
  4521. </method>
  4522. <method name="setOwner"
  4523. abstract="false" native="false" synchronized="false"
  4524. static="false" final="false" visibility="public"
  4525. deprecated="not deprecated">
  4526. <param name="p" type="org.apache.hadoop.fs.Path"/>
  4527. <param name="username" type="java.lang.String"/>
  4528. <param name="groupname" type="java.lang.String"/>
  4529. <exception name="IOException" type="java.io.IOException"/>
  4530. <doc>
  4531. <![CDATA[{@inheritDoc}]]>
  4532. </doc>
  4533. </method>
  4534. <method name="setPermission"
  4535. abstract="false" native="false" synchronized="false"
  4536. static="false" final="false" visibility="public"
  4537. deprecated="not deprecated">
  4538. <param name="p" type="org.apache.hadoop.fs.Path"/>
  4539. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4540. <exception name="IOException" type="java.io.IOException"/>
  4541. <doc>
  4542. <![CDATA[{@inheritDoc}]]>
  4543. </doc>
  4544. </method>
  4545. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  4546. transient="false" volatile="false"
  4547. static="false" final="false" visibility="protected"
  4548. deprecated="not deprecated">
  4549. </field>
  4550. <doc>
  4551. <![CDATA[A <code>FilterFileSystem</code> contains
  4552. some other file system, which it uses as
  4553. its basic file system, possibly transforming
  4554. the data along the way or providing additional
  4555. functionality. The class <code>FilterFileSystem</code>
  4556. itself simply overrides all methods of
  4557. <code>FileSystem</code> with versions that
  4558. pass all requests to the contained file
  4559. system. Subclasses of <code>FilterFileSystem</code>
  4560. may further override some of these methods
  4561. and may also provide additional methods
  4562. and fields.]]>
  4563. </doc>
  4564. </class>
  4565. <!-- end class org.apache.hadoop.fs.FilterFileSystem -->
  4566. <!-- start class org.apache.hadoop.fs.FSDataInputStream -->
  4567. <class name="FSDataInputStream" extends="java.io.DataInputStream"
  4568. abstract="false"
  4569. static="false" final="false" visibility="public"
  4570. deprecated="not deprecated">
  4571. <implements name="org.apache.hadoop.fs.Seekable"/>
  4572. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  4573. <implements name="java.io.Closeable"/>
  4574. <constructor name="FSDataInputStream" type="java.io.InputStream"
  4575. static="false" final="false" visibility="public"
  4576. deprecated="not deprecated">
  4577. <exception name="IOException" type="java.io.IOException"/>
  4578. </constructor>
  4579. <method name="seek"
  4580. abstract="false" native="false" synchronized="true"
  4581. static="false" final="false" visibility="public"
  4582. deprecated="not deprecated">
  4583. <param name="desired" type="long"/>
  4584. <exception name="IOException" type="java.io.IOException"/>
  4585. </method>
  4586. <method name="getPos" return="long"
  4587. abstract="false" native="false" synchronized="false"
  4588. static="false" final="false" visibility="public"
  4589. deprecated="not deprecated">
  4590. <exception name="IOException" type="java.io.IOException"/>
  4591. </method>
  4592. <method name="read" return="int"
  4593. abstract="false" native="false" synchronized="false"
  4594. static="false" final="false" visibility="public"
  4595. deprecated="not deprecated">
  4596. <param name="position" type="long"/>
  4597. <param name="buffer" type="byte[]"/>
  4598. <param name="offset" type="int"/>
  4599. <param name="length" type="int"/>
  4600. <exception name="IOException" type="java.io.IOException"/>
  4601. </method>
  4602. <method name="readFully"
  4603. abstract="false" native="false" synchronized="false"
  4604. static="false" final="false" visibility="public"
  4605. deprecated="not deprecated">
  4606. <param name="position" type="long"/>
  4607. <param name="buffer" type="byte[]"/>
  4608. <param name="offset" type="int"/>
  4609. <param name="length" type="int"/>
  4610. <exception name="IOException" type="java.io.IOException"/>
  4611. </method>
  4612. <method name="readFully"
  4613. abstract="false" native="false" synchronized="false"
  4614. static="false" final="false" visibility="public"
  4615. deprecated="not deprecated">
  4616. <param name="position" type="long"/>
  4617. <param name="buffer" type="byte[]"/>
  4618. <exception name="IOException" type="java.io.IOException"/>
  4619. </method>
  4620. <method name="seekToNewSource" return="boolean"
  4621. abstract="false" native="false" synchronized="false"
  4622. static="false" final="false" visibility="public"
  4623. deprecated="not deprecated">
  4624. <param name="targetPos" type="long"/>
  4625. <exception name="IOException" type="java.io.IOException"/>
  4626. </method>
  4627. <doc>
  4628. <![CDATA[Utility that wraps a {@link FSInputStream} in a {@link DataInputStream}
  4629. and buffers input through a {@link BufferedInputStream}.]]>
  4630. </doc>
  4631. </class>
  4632. <!-- end class org.apache.hadoop.fs.FSDataInputStream -->
  4633. <!-- start class org.apache.hadoop.fs.FSDataOutputStream -->
  4634. <class name="FSDataOutputStream" extends="java.io.DataOutputStream"
  4635. abstract="false"
  4636. static="false" final="false" visibility="public"
  4637. deprecated="not deprecated">
  4638. <implements name="org.apache.hadoop.fs.Syncable"/>
  4639. <constructor name="FSDataOutputStream" type="java.io.OutputStream"
  4640. static="false" final="false" visibility="public"
  4641. deprecated="not deprecated">
  4642. <exception name="IOException" type="java.io.IOException"/>
  4643. </constructor>
  4644. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics"
  4645. static="false" final="false" visibility="public"
  4646. deprecated="not deprecated">
  4647. <exception name="IOException" type="java.io.IOException"/>
  4648. </constructor>
  4649. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics, long"
  4650. static="false" final="false" visibility="public"
  4651. deprecated="not deprecated">
  4652. <exception name="IOException" type="java.io.IOException"/>
  4653. </constructor>
  4654. <method name="getPos" return="long"
  4655. abstract="false" native="false" synchronized="false"
  4656. static="false" final="false" visibility="public"
  4657. deprecated="not deprecated">
  4658. <exception name="IOException" type="java.io.IOException"/>
  4659. </method>
  4660. <method name="close"
  4661. abstract="false" native="false" synchronized="false"
  4662. static="false" final="false" visibility="public"
  4663. deprecated="not deprecated">
  4664. <exception name="IOException" type="java.io.IOException"/>
  4665. </method>
  4666. <method name="getWrappedStream" return="java.io.OutputStream"
  4667. abstract="false" native="false" synchronized="false"
  4668. static="false" final="false" visibility="public"
  4669. deprecated="not deprecated">
  4670. </method>
  4671. <method name="sync"
  4672. abstract="false" native="false" synchronized="false"
  4673. static="false" final="false" visibility="public"
  4674. deprecated="not deprecated">
  4675. <exception name="IOException" type="java.io.IOException"/>
  4676. <doc>
  4677. <![CDATA[{@inheritDoc}]]>
  4678. </doc>
  4679. </method>
  4680. <doc>
  4681. <![CDATA[Utility that wraps a {@link OutputStream} in a {@link DataOutputStream},
  4682. buffers output through a {@link BufferedOutputStream} and creates a checksum
  4683. file.]]>
  4684. </doc>
  4685. </class>
  4686. <!-- end class org.apache.hadoop.fs.FSDataOutputStream -->
  4687. <!-- start class org.apache.hadoop.fs.FSError -->
  4688. <class name="FSError" extends="java.lang.Error"
  4689. abstract="false"
  4690. static="false" final="false" visibility="public"
  4691. deprecated="not deprecated">
  4692. <doc>
  4693. <![CDATA[Thrown for unexpected filesystem errors, presumed to reflect disk errors
  4694. in the native filesystem.]]>
  4695. </doc>
  4696. </class>
  4697. <!-- end class org.apache.hadoop.fs.FSError -->
  4698. <!-- start class org.apache.hadoop.fs.FSInputChecker -->
  4699. <class name="FSInputChecker" extends="org.apache.hadoop.fs.FSInputStream"
  4700. abstract="true"
  4701. static="false" final="false" visibility="public"
  4702. deprecated="not deprecated">
  4703. <constructor name="FSInputChecker" type="org.apache.hadoop.fs.Path, int"
  4704. static="false" final="false" visibility="protected"
  4705. deprecated="not deprecated">
  4706. <doc>
  4707. <![CDATA[Constructor
  4708. @param file The name of the file to be read
  4709. @param numOfRetries Number of read retries when ChecksumError occurs]]>
  4710. </doc>
  4711. </constructor>
  4712. <constructor name="FSInputChecker" type="org.apache.hadoop.fs.Path, int, boolean, java.util.zip.Checksum, int, int"
  4713. static="false" final="false" visibility="protected"
  4714. deprecated="not deprecated">
  4715. <doc>
  4716. <![CDATA[Constructor
  4717. @param file The name of the file to be read
  4718. @param numOfRetries Number of read retries when ChecksumError occurs
  4719. @param sum the type of Checksum engine
  4720. @param chunkSize maximun chunk size
  4721. @param checksumSize the number byte of each checksum]]>
  4722. </doc>
  4723. </constructor>
  4724. <method name="readChunk" return="int"
  4725. abstract="true" native="false" synchronized="false"
  4726. static="false" final="false" visibility="protected"
  4727. deprecated="not deprecated">
  4728. <param name="pos" type="long"/>
  4729. <param name="buf" type="byte[]"/>
  4730. <param name="offset" type="int"/>
  4731. <param name="len" type="int"/>
  4732. <param name="checksum" type="byte[]"/>
  4733. <exception name="IOException" type="java.io.IOException"/>
  4734. <doc>
  4735. <![CDATA[Reads in next checksum chunk data into <code>buf</code> at <code>offset</code>
  4736. and checksum into <code>checksum</code>.
  4737. The method is used for implementing read, therefore, it should be optimized
  4738. for sequential reading
  4739. @param pos chunkPos
  4740. @param buf desitination buffer
  4741. @param offset offset in buf at which to store data
  4742. @param len maximun number of bytes to read
  4743. @return number of bytes read]]>
  4744. </doc>
  4745. </method>
  4746. <method name="getChunkPosition" return="long"
  4747. abstract="true" native="false" synchronized="false"
  4748. static="false" final="false" visibility="protected"
  4749. deprecated="not deprecated">
  4750. <param name="pos" type="long"/>
  4751. <doc>
  4752. <![CDATA[Return position of beginning of chunk containing pos.
  4753. @param pos a postion in the file
  4754. @return the starting position of the chunk which contains the byte]]>
  4755. </doc>
  4756. </method>
  4757. <method name="needChecksum" return="boolean"
  4758. abstract="false" native="false" synchronized="true"
  4759. static="false" final="false" visibility="protected"
  4760. deprecated="not deprecated">
  4761. <doc>
  4762. <![CDATA[Return true if there is a need for checksum verification]]>
  4763. </doc>
  4764. </method>
  4765. <method name="read" return="int"
  4766. abstract="false" native="false" synchronized="true"
  4767. static="false" final="false" visibility="public"
  4768. deprecated="not deprecated">
  4769. <exception name="IOException" type="java.io.IOException"/>
  4770. <doc>
  4771. <![CDATA[Read one checksum-verified byte
  4772. @return the next byte of data, or <code>-1</code> if the end of the
  4773. stream is reached.
  4774. @exception IOException if an I/O error occurs.]]>
  4775. </doc>
  4776. </method>
  4777. <method name="read" return="int"
  4778. abstract="false" native="false" synchronized="true"
  4779. static="false" final="false" visibility="public"
  4780. deprecated="not deprecated">
  4781. <param name="b" type="byte[]"/>
  4782. <param name="off" type="int"/>
  4783. <param name="len" type="int"/>
  4784. <exception name="IOException" type="java.io.IOException"/>
  4785. <doc>
  4786. <![CDATA[Read checksum verified bytes from this byte-input stream into
  4787. the specified byte array, starting at the given offset.
  4788. <p> This method implements the general contract of the corresponding
  4789. <code>{@link InputStream#read(byte[], int, int) read}</code> method of
  4790. the <code>{@link InputStream}</code> class. As an additional
  4791. convenience, it attempts to read as many bytes as possible by repeatedly
  4792. invoking the <code>read</code> method of the underlying stream. This
  4793. iterated <code>read</code> continues until one of the following
  4794. conditions becomes true: <ul>
  4795. <li> The specified number of bytes have been read,
  4796. <li> The <code>read</code> method of the underlying stream returns
  4797. <code>-1</code>, indicating end-of-file.
  4798. </ul> If the first <code>read</code> on the underlying stream returns
  4799. <code>-1</code> to indicate end-of-file then this method returns
  4800. <code>-1</code>. Otherwise this method returns the number of bytes
  4801. actually read.
  4802. @param b destination buffer.
  4803. @param off offset at which to start storing bytes.
  4804. @param len maximum number of bytes to read.
  4805. @return the number of bytes read, or <code>-1</code> if the end of
  4806. the stream has been reached.
  4807. @exception IOException if an I/O error occurs.
  4808. ChecksumException if any checksum error occurs]]>
  4809. </doc>
  4810. </method>
  4811. <method name="checksum2long" return="long"
  4812. abstract="false" native="false" synchronized="false"
  4813. static="true" final="false" visibility="public"
  4814. deprecated="not deprecated">
  4815. <param name="checksum" type="byte[]"/>
  4816. <doc>
  4817. <![CDATA[Convert a checksum byte array to a long]]>
  4818. </doc>
  4819. </method>
  4820. <method name="getPos" return="long"
  4821. abstract="false" native="false" synchronized="true"
  4822. static="false" final="false" visibility="public"
  4823. deprecated="not deprecated">
  4824. <exception name="IOException" type="java.io.IOException"/>
  4825. </method>
  4826. <method name="available" return="int"
  4827. abstract="false" native="false" synchronized="true"
  4828. static="false" final="false" visibility="public"
  4829. deprecated="not deprecated">
  4830. <exception name="IOException" type="java.io.IOException"/>
  4831. </method>
  4832. <method name="skip" return="long"
  4833. abstract="false" native="false" synchronized="true"
  4834. static="false" final="false" visibility="public"
  4835. deprecated="not deprecated">
  4836. <param name="n" type="long"/>
  4837. <exception name="IOException" type="java.io.IOException"/>
  4838. <doc>
  4839. <![CDATA[Skips over and discards <code>n</code> bytes of data from the
  4840. input stream.
  4841. <p>This method may skip more bytes than are remaining in the backing
  4842. file. This produces no exception and the number of bytes skipped
  4843. may include some number of bytes that were beyond the EOF of the
  4844. backing file. Attempting to read from the stream after skipping past
  4845. the end will result in -1 indicating the end of the file.
  4846. <p>If <code>n</code> is negative, no bytes are skipped.
  4847. @param n the number of bytes to be skipped.
  4848. @return the actual number of bytes skipped.
  4849. @exception IOException if an I/O error occurs.
  4850. ChecksumException if the chunk to skip to is corrupted]]>
  4851. </doc>
  4852. </method>
  4853. <method name="seek"
  4854. abstract="false" native="false" synchronized="true"
  4855. static="false" final="false" visibility="public"
  4856. deprecated="not deprecated">
  4857. <param name="pos" type="long"/>
  4858. <exception name="IOException" type="java.io.IOException"/>
  4859. <doc>
  4860. <![CDATA[Seek to the given position in the stream.
  4861. The next read() will be from that position.
  4862. <p>This method may seek past the end of the file.
  4863. This produces no exception and an attempt to read from
  4864. the stream will result in -1 indicating the end of the file.
  4865. @param pos the postion to seek to.
  4866. @exception IOException if an I/O error occurs.
  4867. ChecksumException if the chunk to seek to is corrupted]]>
  4868. </doc>
  4869. </method>
  4870. <method name="readFully" return="int"
  4871. abstract="false" native="false" synchronized="false"
  4872. static="true" final="false" visibility="protected"
  4873. deprecated="not deprecated">
  4874. <param name="stm" type="java.io.InputStream"/>
  4875. <param name="buf" type="byte[]"/>
  4876. <param name="offset" type="int"/>
  4877. <param name="len" type="int"/>
  4878. <exception name="IOException" type="java.io.IOException"/>
  4879. <doc>
  4880. <![CDATA[A utility function that tries to read up to <code>len</code> bytes from
  4881. <code>stm</code>
  4882. @param stm an input stream
  4883. @param buf destiniation buffer
  4884. @param offset offset at which to store data
  4885. @param len number of bytes to read
  4886. @return actual number of bytes read
  4887. @throws IOException if there is any IO error]]>
  4888. </doc>
  4889. </method>
  4890. <method name="set"
  4891. abstract="false" native="false" synchronized="true"
  4892. static="false" final="true" visibility="protected"
  4893. deprecated="not deprecated">
  4894. <param name="verifyChecksum" type="boolean"/>
  4895. <param name="sum" type="java.util.zip.Checksum"/>
  4896. <param name="maxChunkSize" type="int"/>
  4897. <param name="checksumSize" type="int"/>
  4898. <doc>
  4899. <![CDATA[Set the checksum related parameters
  4900. @param verifyChecksum whether to verify checksum
  4901. @param sum which type of checksum to use
  4902. @param maxChunkSize maximun chunk size
  4903. @param checksumSize checksum size]]>
  4904. </doc>
  4905. </method>
  4906. <method name="markSupported" return="boolean"
  4907. abstract="false" native="false" synchronized="false"
  4908. static="false" final="true" visibility="public"
  4909. deprecated="not deprecated">
  4910. </method>
  4911. <method name="mark"
  4912. abstract="false" native="false" synchronized="false"
  4913. static="false" final="true" visibility="public"
  4914. deprecated="not deprecated">
  4915. <param name="readlimit" type="int"/>
  4916. </method>
  4917. <method name="reset"
  4918. abstract="false" native="false" synchronized="false"
  4919. static="false" final="true" visibility="public"
  4920. deprecated="not deprecated">
  4921. <exception name="IOException" type="java.io.IOException"/>
  4922. </method>
  4923. <field name="LOG" type="org.apache.commons.logging.Log"
  4924. transient="false" volatile="false"
  4925. static="true" final="true" visibility="public"
  4926. deprecated="not deprecated">
  4927. </field>
  4928. <field name="file" type="org.apache.hadoop.fs.Path"
  4929. transient="false" volatile="false"
  4930. static="false" final="false" visibility="protected"
  4931. deprecated="not deprecated">
  4932. <doc>
  4933. <![CDATA[The file name from which data is read from]]>
  4934. </doc>
  4935. </field>
  4936. <doc>
  4937. <![CDATA[This is a generic input stream for verifying checksums for
  4938. data before it is read by a user.]]>
  4939. </doc>
  4940. </class>
  4941. <!-- end class org.apache.hadoop.fs.FSInputChecker -->
  4942. <!-- start class org.apache.hadoop.fs.FSInputStream -->
  4943. <class name="FSInputStream" extends="java.io.InputStream"
  4944. abstract="true"
  4945. static="false" final="false" visibility="public"
  4946. deprecated="not deprecated">
  4947. <implements name="org.apache.hadoop.fs.Seekable"/>
  4948. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  4949. <constructor name="FSInputStream"
  4950. static="false" final="false" visibility="public"
  4951. deprecated="not deprecated">
  4952. </constructor>
  4953. <method name="seek"
  4954. abstract="true" native="false" synchronized="false"
  4955. static="false" final="false" visibility="public"
  4956. deprecated="not deprecated">
  4957. <param name="pos" type="long"/>
  4958. <exception name="IOException" type="java.io.IOException"/>
  4959. <doc>
  4960. <![CDATA[Seek to the given offset from the start of the file.
  4961. The next read() will be from that location. Can't
  4962. seek past the end of the file.]]>
  4963. </doc>
  4964. </method>
  4965. <method name="getPos" return="long"
  4966. abstract="true" native="false" synchronized="false"
  4967. static="false" final="false" visibility="public"
  4968. deprecated="not deprecated">
  4969. <exception name="IOException" type="java.io.IOException"/>
  4970. <doc>
  4971. <![CDATA[Return the current offset from the start of the file]]>
  4972. </doc>
  4973. </method>
  4974. <method name="seekToNewSource" return="boolean"
  4975. abstract="true" native="false" synchronized="false"
  4976. static="false" final="false" visibility="public"
  4977. deprecated="not deprecated">
  4978. <param name="targetPos" type="long"/>
  4979. <exception name="IOException" type="java.io.IOException"/>
  4980. <doc>
  4981. <![CDATA[Seeks a different copy of the data. Returns true if
  4982. found a new source, false otherwise.]]>
  4983. </doc>
  4984. </method>
  4985. <method name="read" return="int"
  4986. abstract="false" native="false" synchronized="false"
  4987. static="false" final="false" visibility="public"
  4988. deprecated="not deprecated">
  4989. <param name="position" type="long"/>
  4990. <param name="buffer" type="byte[]"/>
  4991. <param name="offset" type="int"/>
  4992. <param name="length" type="int"/>
  4993. <exception name="IOException" type="java.io.IOException"/>
  4994. </method>
  4995. <method name="readFully"
  4996. abstract="false" native="false" synchronized="false"
  4997. static="false" final="false" visibility="public"
  4998. deprecated="not deprecated">
  4999. <param name="position" type="long"/>
  5000. <param name="buffer" type="byte[]"/>
  5001. <param name="offset" type="int"/>
  5002. <param name="length" type="int"/>
  5003. <exception name="IOException" type="java.io.IOException"/>
  5004. </method>
  5005. <method name="readFully"
  5006. abstract="false" native="false" synchronized="false"
  5007. static="false" final="false" visibility="public"
  5008. deprecated="not deprecated">
  5009. <param name="position" type="long"/>
  5010. <param name="buffer" type="byte[]"/>
  5011. <exception name="IOException" type="java.io.IOException"/>
  5012. </method>
  5013. <doc>
  5014. <![CDATA[FSInputStream is a generic old InputStream with a little bit
  5015. of RAF-style seek ability.]]>
  5016. </doc>
  5017. </class>
  5018. <!-- end class org.apache.hadoop.fs.FSInputStream -->
  5019. <!-- start class org.apache.hadoop.fs.FSOutputSummer -->
  5020. <class name="FSOutputSummer" extends="java.io.OutputStream"
  5021. abstract="true"
  5022. static="false" final="false" visibility="public"
  5023. deprecated="not deprecated">
  5024. <constructor name="FSOutputSummer" type="java.util.zip.Checksum, int, int"
  5025. static="false" final="false" visibility="protected"
  5026. deprecated="not deprecated">
  5027. </constructor>
  5028. <method name="writeChunk"
  5029. abstract="true" native="false" synchronized="false"
  5030. static="false" final="false" visibility="protected"
  5031. deprecated="not deprecated">
  5032. <param name="b" type="byte[]"/>
  5033. <param name="offset" type="int"/>
  5034. <param name="len" type="int"/>
  5035. <param name="checksum" type="byte[]"/>
  5036. <exception name="IOException" type="java.io.IOException"/>
  5037. </method>
  5038. <method name="write"
  5039. abstract="false" native="false" synchronized="true"
  5040. static="false" final="false" visibility="public"
  5041. deprecated="not deprecated">
  5042. <param name="b" type="int"/>
  5043. <exception name="IOException" type="java.io.IOException"/>
  5044. <doc>
  5045. <![CDATA[Write one byte]]>
  5046. </doc>
  5047. </method>
  5048. <method name="write"
  5049. abstract="false" native="false" synchronized="true"
  5050. static="false" final="false" visibility="public"
  5051. deprecated="not deprecated">
  5052. <param name="b" type="byte[]"/>
  5053. <param name="off" type="int"/>
  5054. <param name="len" type="int"/>
  5055. <exception name="IOException" type="java.io.IOException"/>
  5056. <doc>
  5057. <![CDATA[Writes <code>len</code> bytes from the specified byte array
  5058. starting at offset <code>off</code> and generate a checksum for
  5059. each data chunk.
  5060. <p> This method stores bytes from the given array into this
  5061. stream's buffer before it gets checksumed. The buffer gets checksumed
  5062. and flushed to the underlying output stream when all data
  5063. in a checksum chunk are in the buffer. If the buffer is empty and
  5064. requested length is at least as large as the size of next checksum chunk
  5065. size, this method will checksum and write the chunk directly
  5066. to the underlying output stream. Thus it avoids uneccessary data copy.
  5067. @param b the data.
  5068. @param off the start offset in the data.
  5069. @param len the number of bytes to write.
  5070. @exception IOException if an I/O error occurs.]]>
  5071. </doc>
  5072. </method>
  5073. <method name="flushBuffer"
  5074. abstract="false" native="false" synchronized="true"
  5075. static="false" final="false" visibility="protected"
  5076. deprecated="not deprecated">
  5077. <exception name="IOException" type="java.io.IOException"/>
  5078. </method>
  5079. <method name="flushBuffer"
  5080. abstract="false" native="false" synchronized="true"
  5081. static="false" final="false" visibility="protected"
  5082. deprecated="not deprecated">
  5083. <param name="keep" type="boolean"/>
  5084. <exception name="IOException" type="java.io.IOException"/>
  5085. </method>
  5086. <method name="convertToByteStream" return="byte[]"
  5087. abstract="false" native="false" synchronized="false"
  5088. static="true" final="false" visibility="public"
  5089. deprecated="not deprecated">
  5090. <param name="sum" type="java.util.zip.Checksum"/>
  5091. <param name="checksumSize" type="int"/>
  5092. <doc>
  5093. <![CDATA[Converts a checksum integer value to a byte stream]]>
  5094. </doc>
  5095. </method>
  5096. <method name="resetChecksumChunk"
  5097. abstract="false" native="false" synchronized="true"
  5098. static="false" final="false" visibility="protected"
  5099. deprecated="not deprecated">
  5100. <param name="size" type="int"/>
  5101. <doc>
  5102. <![CDATA[Resets existing buffer with a new one of the specified size.]]>
  5103. </doc>
  5104. </method>
  5105. <doc>
  5106. <![CDATA[This is a generic output stream for generating checksums for
  5107. data before it is written to the underlying stream]]>
  5108. </doc>
  5109. </class>
  5110. <!-- end class org.apache.hadoop.fs.FSOutputSummer -->
  5111. <!-- start class org.apache.hadoop.fs.FsShell -->
  5112. <class name="FsShell" extends="org.apache.hadoop.conf.Configured"
  5113. abstract="false"
  5114. static="false" final="false" visibility="public"
  5115. deprecated="not deprecated">
  5116. <implements name="org.apache.hadoop.util.Tool"/>
  5117. <constructor name="FsShell"
  5118. static="false" final="false" visibility="public"
  5119. deprecated="not deprecated">
  5120. </constructor>
  5121. <constructor name="FsShell" type="org.apache.hadoop.conf.Configuration"
  5122. static="false" final="false" visibility="public"
  5123. deprecated="not deprecated">
  5124. </constructor>
  5125. <method name="init"
  5126. abstract="false" native="false" synchronized="false"
  5127. static="false" final="false" visibility="protected"
  5128. deprecated="not deprecated">
  5129. <exception name="IOException" type="java.io.IOException"/>
  5130. </method>
  5131. <method name="getCurrentTrashDir" return="org.apache.hadoop.fs.Path"
  5132. abstract="false" native="false" synchronized="false"
  5133. static="false" final="false" visibility="public"
  5134. deprecated="not deprecated">
  5135. <doc>
  5136. <![CDATA[Returns the Trash object associated with this shell.]]>
  5137. </doc>
  5138. </method>
  5139. <method name="byteDesc" return="java.lang.String"
  5140. abstract="false" native="false" synchronized="false"
  5141. static="true" final="false" visibility="public"
  5142. deprecated="Consider using {@link org.apache.hadoop.util.StringUtils#byteDesc} instead.">
  5143. <param name="len" type="long"/>
  5144. <doc>
  5145. <![CDATA[Return an abbreviated English-language desc of the byte length
  5146. @deprecated Consider using {@link org.apache.hadoop.util.StringUtils#byteDesc} instead.]]>
  5147. </doc>
  5148. </method>
  5149. <method name="limitDecimalTo2" return="java.lang.String"
  5150. abstract="false" native="false" synchronized="true"
  5151. static="true" final="false" visibility="public"
  5152. deprecated="Consider using {@link org.apache.hadoop.util.StringUtils#limitDecimalTo2} instead.">
  5153. <param name="d" type="double"/>
  5154. <doc>
  5155. <![CDATA[@deprecated Consider using {@link org.apache.hadoop.util.StringUtils#limitDecimalTo2} instead.]]>
  5156. </doc>
  5157. </method>
  5158. <method name="run" return="int"
  5159. abstract="false" native="false" synchronized="false"
  5160. static="false" final="false" visibility="public"
  5161. deprecated="not deprecated">
  5162. <param name="argv" type="java.lang.String[]"/>
  5163. <exception name="Exception" type="java.lang.Exception"/>
  5164. <doc>
  5165. <![CDATA[run]]>
  5166. </doc>
  5167. </method>
  5168. <method name="close"
  5169. abstract="false" native="false" synchronized="false"
  5170. static="false" final="false" visibility="public"
  5171. deprecated="not deprecated">
  5172. <exception name="IOException" type="java.io.IOException"/>
  5173. </method>
  5174. <method name="main"
  5175. abstract="false" native="false" synchronized="false"
  5176. static="true" final="false" visibility="public"
  5177. deprecated="not deprecated">
  5178. <param name="argv" type="java.lang.String[]"/>
  5179. <exception name="Exception" type="java.lang.Exception"/>
  5180. <doc>
  5181. <![CDATA[main() has some simple utility methods]]>
  5182. </doc>
  5183. </method>
  5184. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  5185. transient="false" volatile="false"
  5186. static="false" final="false" visibility="protected"
  5187. deprecated="not deprecated">
  5188. </field>
  5189. <field name="dateForm" type="java.text.SimpleDateFormat"
  5190. transient="false" volatile="false"
  5191. static="true" final="true" visibility="public"
  5192. deprecated="not deprecated">
  5193. </field>
  5194. <field name="modifFmt" type="java.text.SimpleDateFormat"
  5195. transient="false" volatile="false"
  5196. static="true" final="true" visibility="protected"
  5197. deprecated="not deprecated">
  5198. </field>
  5199. <doc>
  5200. <![CDATA[Provide command line access to a FileSystem.]]>
  5201. </doc>
  5202. </class>
  5203. <!-- end class org.apache.hadoop.fs.FsShell -->
  5204. <!-- start class org.apache.hadoop.fs.FsUrlStreamHandlerFactory -->
  5205. <class name="FsUrlStreamHandlerFactory" extends="java.lang.Object"
  5206. abstract="false"
  5207. static="false" final="false" visibility="public"
  5208. deprecated="not deprecated">
  5209. <implements name="java.net.URLStreamHandlerFactory"/>
  5210. <constructor name="FsUrlStreamHandlerFactory"
  5211. static="false" final="false" visibility="public"
  5212. deprecated="not deprecated">
  5213. </constructor>
  5214. <constructor name="FsUrlStreamHandlerFactory" type="org.apache.hadoop.conf.Configuration"
  5215. static="false" final="false" visibility="public"
  5216. deprecated="not deprecated">
  5217. </constructor>
  5218. <method name="createURLStreamHandler" return="java.net.URLStreamHandler"
  5219. abstract="false" native="false" synchronized="false"
  5220. static="false" final="false" visibility="public"
  5221. deprecated="not deprecated">
  5222. <param name="protocol" type="java.lang.String"/>
  5223. </method>
  5224. <doc>
  5225. <![CDATA[Factory for URL stream handlers.
  5226. There is only one handler whose job is to create UrlConnections. A
  5227. FsUrlConnection relies on FileSystem to choose the appropriate FS
  5228. implementation.
  5229. Before returning our handler, we make sure that FileSystem knows an
  5230. implementation for the requested scheme/protocol.]]>
  5231. </doc>
  5232. </class>
  5233. <!-- end class org.apache.hadoop.fs.FsUrlStreamHandlerFactory -->
  5234. <!-- start class org.apache.hadoop.fs.GlobPattern -->
  5235. <class name="GlobPattern" extends="java.lang.Object"
  5236. abstract="false"
  5237. static="false" final="false" visibility="public"
  5238. deprecated="not deprecated">
  5239. <constructor name="GlobPattern" type="java.lang.String"
  5240. static="false" final="false" visibility="public"
  5241. deprecated="not deprecated">
  5242. <doc>
  5243. <![CDATA[Construct the glob pattern object with a glob pattern string
  5244. @param globPattern the glob pattern string]]>
  5245. </doc>
  5246. </constructor>
  5247. <method name="compiled" return="java.util.regex.Pattern"
  5248. abstract="false" native="false" synchronized="false"
  5249. static="false" final="false" visibility="public"
  5250. deprecated="not deprecated">
  5251. <doc>
  5252. <![CDATA[@return the compiled pattern]]>
  5253. </doc>
  5254. </method>
  5255. <method name="compile" return="java.util.regex.Pattern"
  5256. abstract="false" native="false" synchronized="false"
  5257. static="true" final="false" visibility="public"
  5258. deprecated="not deprecated">
  5259. <param name="globPattern" type="java.lang.String"/>
  5260. <doc>
  5261. <![CDATA[Compile glob pattern string
  5262. @param globPattern the glob pattern
  5263. @return the pattern object]]>
  5264. </doc>
  5265. </method>
  5266. <method name="matches" return="boolean"
  5267. abstract="false" native="false" synchronized="false"
  5268. static="false" final="false" visibility="public"
  5269. deprecated="not deprecated">
  5270. <param name="s" type="java.lang.CharSequence"/>
  5271. <doc>
  5272. <![CDATA[Match input against the compiled glob pattern
  5273. @param s input chars
  5274. @return true for successful matches]]>
  5275. </doc>
  5276. </method>
  5277. <method name="set"
  5278. abstract="false" native="false" synchronized="false"
  5279. static="false" final="false" visibility="public"
  5280. deprecated="not deprecated">
  5281. <param name="glob" type="java.lang.String"/>
  5282. <doc>
  5283. <![CDATA[Set and compile a glob pattern
  5284. @param glob the glob pattern string]]>
  5285. </doc>
  5286. </method>
  5287. <method name="hasWildcard" return="boolean"
  5288. abstract="false" native="false" synchronized="false"
  5289. static="false" final="false" visibility="public"
  5290. deprecated="not deprecated">
  5291. <doc>
  5292. <![CDATA[@return true if this is a wildcard pattern (with special chars)]]>
  5293. </doc>
  5294. </method>
  5295. <doc>
  5296. <![CDATA[A class for POSIX glob pattern with brace expansions.]]>
  5297. </doc>
  5298. </class>
  5299. <!-- end class org.apache.hadoop.fs.GlobPattern -->
  5300. <!-- start class org.apache.hadoop.fs.HardLink -->
  5301. <class name="HardLink" extends="java.lang.Object"
  5302. abstract="false"
  5303. static="false" final="false" visibility="public"
  5304. deprecated="not deprecated">
  5305. <constructor name="HardLink"
  5306. static="false" final="false" visibility="public"
  5307. deprecated="not deprecated">
  5308. </constructor>
  5309. <method name="getLinkMultArgLength" return="int"
  5310. abstract="false" native="false" synchronized="false"
  5311. static="true" final="false" visibility="protected"
  5312. deprecated="not deprecated">
  5313. <param name="fileDir" type="java.io.File"/>
  5314. <param name="fileBaseNames" type="java.lang.String[]"/>
  5315. <param name="linkDir" type="java.io.File"/>
  5316. <exception name="IOException" type="java.io.IOException"/>
  5317. <doc>
  5318. <![CDATA[Calculate the nominal length of all contributors to the total
  5319. commandstring length, including fixed overhead of the OS-dependent
  5320. command. It's protected rather than private, to assist unit testing,
  5321. but real clients are not expected to need it -- see the way
  5322. createHardLinkMult() uses it internally so the user doesn't need to worry
  5323. about it.
  5324. @param fileDir - source directory, parent of fileBaseNames
  5325. @param fileBaseNames - array of path-less file names, relative
  5326. to the source directory
  5327. @param linkDir - target directory where the hardlinks will be put
  5328. @return - total data length (must not exceed maxAllowedCmdArgLength)
  5329. @throws IOException]]>
  5330. </doc>
  5331. </method>
  5332. <method name="getMaxAllowedCmdArgLength" return="int"
  5333. abstract="false" native="false" synchronized="false"
  5334. static="true" final="false" visibility="protected"
  5335. deprecated="not deprecated">
  5336. <doc>
  5337. <![CDATA[Return this private value for use by unit tests.
  5338. Shell commands are not allowed to have a total string length
  5339. exceeding this size.]]>
  5340. </doc>
  5341. </method>
  5342. <method name="createHardLink"
  5343. abstract="false" native="false" synchronized="false"
  5344. static="true" final="false" visibility="public"
  5345. deprecated="not deprecated">
  5346. <param name="file" type="java.io.File"/>
  5347. <param name="linkName" type="java.io.File"/>
  5348. <exception name="IOException" type="java.io.IOException"/>
  5349. <doc>
  5350. <![CDATA[Creates a hardlink
  5351. @param file - existing source file
  5352. @param linkName - desired target link file]]>
  5353. </doc>
  5354. </method>
  5355. <method name="createHardLinkMult"
  5356. abstract="false" native="false" synchronized="false"
  5357. static="true" final="false" visibility="public"
  5358. deprecated="not deprecated">
  5359. <param name="parentDir" type="java.io.File"/>
  5360. <param name="fileBaseNames" type="java.lang.String[]"/>
  5361. <param name="linkDir" type="java.io.File"/>
  5362. <exception name="IOException" type="java.io.IOException"/>
  5363. <doc>
  5364. <![CDATA[Creates hardlinks from multiple existing files within one parent
  5365. directory, into one target directory.
  5366. @param parentDir - directory containing source files
  5367. @param fileBaseNames - list of path-less file names, as returned by
  5368. parentDir.list()
  5369. @param linkDir - where the hardlinks should be put. It must already exist.
  5370. If the list of files is too long (overflows maxAllowedCmdArgLength),
  5371. we will automatically split it into multiple invocations of the
  5372. underlying method.]]>
  5373. </doc>
  5374. </method>
  5375. <method name="createHardLinkMult" return="int"
  5376. abstract="false" native="false" synchronized="false"
  5377. static="true" final="false" visibility="protected"
  5378. deprecated="not deprecated">
  5379. <param name="parentDir" type="java.io.File"/>
  5380. <param name="fileBaseNames" type="java.lang.String[]"/>
  5381. <param name="linkDir" type="java.io.File"/>
  5382. <param name="maxLength" type="int"/>
  5383. <exception name="IOException" type="java.io.IOException"/>
  5384. </method>
  5385. <method name="getLinkCount" return="int"
  5386. abstract="false" native="false" synchronized="false"
  5387. static="true" final="false" visibility="public"
  5388. deprecated="not deprecated">
  5389. <param name="fileName" type="java.io.File"/>
  5390. <exception name="IOException" type="java.io.IOException"/>
  5391. <doc>
  5392. <![CDATA[Retrieves the number of links to the specified file.]]>
  5393. </doc>
  5394. </method>
  5395. <field name="osType" type="org.apache.hadoop.fs.HardLink.OSType"
  5396. transient="false" volatile="false"
  5397. static="true" final="false" visibility="public"
  5398. deprecated="not deprecated">
  5399. </field>
  5400. <field name="linkStats" type="org.apache.hadoop.fs.HardLink.LinkStats"
  5401. transient="false" volatile="false"
  5402. static="false" final="true" visibility="public"
  5403. deprecated="not deprecated">
  5404. </field>
  5405. <doc>
  5406. <![CDATA[Class for creating hardlinks.
  5407. Supports Unix/Linux, WinXP/2003/Vista via Cygwin, and Mac OS X.
  5408. The HardLink class was formerly a static inner class of FSUtil,
  5409. and the methods provided were blatantly non-thread-safe.
  5410. To enable volume-parallel Update snapshots, we now provide static
  5411. threadsafe methods that allocate new buffer string arrays
  5412. upon each call. We also provide an API to hardlink all files in a
  5413. directory with a single command, which is up to 128 times more
  5414. efficient - and minimizes the impact of the extra buffer creations.]]>
  5415. </doc>
  5416. </class>
  5417. <!-- end class org.apache.hadoop.fs.HardLink -->
  5418. <!-- start class org.apache.hadoop.fs.HardLink.LinkStats -->
  5419. <class name="HardLink.LinkStats" extends="java.lang.Object"
  5420. abstract="false"
  5421. static="true" final="false" visibility="public"
  5422. deprecated="not deprecated">
  5423. <constructor name="HardLink.LinkStats"
  5424. static="false" final="false" visibility="public"
  5425. deprecated="not deprecated">
  5426. </constructor>
  5427. <method name="clear"
  5428. abstract="false" native="false" synchronized="false"
  5429. static="false" final="false" visibility="public"
  5430. deprecated="not deprecated">
  5431. </method>
  5432. <method name="report" return="java.lang.String"
  5433. abstract="false" native="false" synchronized="false"
  5434. static="false" final="false" visibility="public"
  5435. deprecated="not deprecated">
  5436. </method>
  5437. <field name="countDirs" type="int"
  5438. transient="false" volatile="false"
  5439. static="false" final="false" visibility="public"
  5440. deprecated="not deprecated">
  5441. </field>
  5442. <field name="countSingleLinks" type="int"
  5443. transient="false" volatile="false"
  5444. static="false" final="false" visibility="public"
  5445. deprecated="not deprecated">
  5446. </field>
  5447. <field name="countMultLinks" type="int"
  5448. transient="false" volatile="false"
  5449. static="false" final="false" visibility="public"
  5450. deprecated="not deprecated">
  5451. </field>
  5452. <field name="countFilesMultLinks" type="int"
  5453. transient="false" volatile="false"
  5454. static="false" final="false" visibility="public"
  5455. deprecated="not deprecated">
  5456. </field>
  5457. <field name="countEmptyDirs" type="int"
  5458. transient="false" volatile="false"
  5459. static="false" final="false" visibility="public"
  5460. deprecated="not deprecated">
  5461. </field>
  5462. <field name="countPhysicalFileCopies" type="int"
  5463. transient="false" volatile="false"
  5464. static="false" final="false" visibility="public"
  5465. deprecated="not deprecated">
  5466. </field>
  5467. <doc>
  5468. <![CDATA[HardLink statistics counters and methods.
  5469. Not multi-thread safe, obviously.
  5470. Init is called during HardLink instantiation, above.
  5471. These are intended for use by knowledgeable clients, not internally,
  5472. because many of the internal methods are static and can't update these
  5473. per-instance counters.]]>
  5474. </doc>
  5475. </class>
  5476. <!-- end class org.apache.hadoop.fs.HardLink.LinkStats -->
  5477. <!-- start class org.apache.hadoop.fs.HardLink.OSType -->
  5478. <class name="HardLink.OSType" extends="java.lang.Enum"
  5479. abstract="false"
  5480. static="true" final="true" visibility="public"
  5481. deprecated="not deprecated">
  5482. <method name="values" return="org.apache.hadoop.fs.HardLink.OSType[]"
  5483. abstract="false" native="false" synchronized="false"
  5484. static="true" final="false" visibility="public"
  5485. deprecated="not deprecated">
  5486. </method>
  5487. <method name="valueOf" return="org.apache.hadoop.fs.HardLink.OSType"
  5488. abstract="false" native="false" synchronized="false"
  5489. static="true" final="false" visibility="public"
  5490. deprecated="not deprecated">
  5491. <param name="name" type="java.lang.String"/>
  5492. </method>
  5493. <field name="OS_TYPE_UNIX" type="org.apache.hadoop.fs.HardLink.OSType"
  5494. transient="false" volatile="false"
  5495. static="true" final="true" visibility="public"
  5496. deprecated="not deprecated">
  5497. </field>
  5498. <field name="OS_TYPE_WINXP" type="org.apache.hadoop.fs.HardLink.OSType"
  5499. transient="false" volatile="false"
  5500. static="true" final="true" visibility="public"
  5501. deprecated="not deprecated">
  5502. </field>
  5503. <field name="OS_TYPE_SOLARIS" type="org.apache.hadoop.fs.HardLink.OSType"
  5504. transient="false" volatile="false"
  5505. static="true" final="true" visibility="public"
  5506. deprecated="not deprecated">
  5507. </field>
  5508. <field name="OS_TYPE_MAC" type="org.apache.hadoop.fs.HardLink.OSType"
  5509. transient="false" volatile="false"
  5510. static="true" final="true" visibility="public"
  5511. deprecated="not deprecated">
  5512. </field>
  5513. </class>
  5514. <!-- end class org.apache.hadoop.fs.HardLink.OSType -->
  5515. <!-- start class org.apache.hadoop.fs.HarFileSystem -->
  5516. <class name="HarFileSystem" extends="org.apache.hadoop.fs.FilterFileSystem"
  5517. abstract="false"
  5518. static="false" final="false" visibility="public"
  5519. deprecated="not deprecated">
  5520. <constructor name="HarFileSystem"
  5521. static="false" final="false" visibility="public"
  5522. deprecated="not deprecated">
  5523. <doc>
  5524. <![CDATA[public construction of harfilesystem]]>
  5525. </doc>
  5526. </constructor>
  5527. <constructor name="HarFileSystem" type="org.apache.hadoop.fs.FileSystem"
  5528. static="false" final="false" visibility="public"
  5529. deprecated="not deprecated">
  5530. <doc>
  5531. <![CDATA[Constructor to create a HarFileSystem with an
  5532. underlying filesystem.
  5533. @param fs]]>
  5534. </doc>
  5535. </constructor>
  5536. <method name="initialize"
  5537. abstract="false" native="false" synchronized="false"
  5538. static="false" final="false" visibility="public"
  5539. deprecated="not deprecated">
  5540. <param name="name" type="java.net.URI"/>
  5541. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5542. <exception name="IOException" type="java.io.IOException"/>
  5543. <doc>
  5544. <![CDATA[Initialize a Har filesystem per har archive. The
  5545. archive home directory is the top level directory
  5546. in the filesystem that contains the HAR archive.
  5547. Be careful with this method, you do not want to go
  5548. on creating new Filesystem instances per call to
  5549. path.getFileSystem().
  5550. the uri of Har is
  5551. har://underlyingfsscheme-host:port/archivepath.
  5552. or
  5553. har:///archivepath. This assumes the underlying filesystem
  5554. to be used in case not specified.]]>
  5555. </doc>
  5556. </method>
  5557. <method name="getHarVersion" return="int"
  5558. abstract="false" native="false" synchronized="false"
  5559. static="false" final="false" visibility="public"
  5560. deprecated="not deprecated">
  5561. <exception name="IOException" type="java.io.IOException"/>
  5562. </method>
  5563. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  5564. abstract="false" native="false" synchronized="false"
  5565. static="false" final="false" visibility="public"
  5566. deprecated="not deprecated">
  5567. <doc>
  5568. <![CDATA[return the top level archive.]]>
  5569. </doc>
  5570. </method>
  5571. <method name="getUri" return="java.net.URI"
  5572. abstract="false" native="false" synchronized="false"
  5573. static="false" final="false" visibility="public"
  5574. deprecated="not deprecated">
  5575. <doc>
  5576. <![CDATA[Returns the uri of this filesystem.
  5577. The uri is of the form
  5578. har://underlyingfsschema-host:port/pathintheunderlyingfs]]>
  5579. </doc>
  5580. </method>
  5581. <method name="getCanonicalServiceName" return="java.lang.String"
  5582. abstract="false" native="false" synchronized="false"
  5583. static="false" final="false" visibility="public"
  5584. deprecated="not deprecated">
  5585. </method>
  5586. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  5587. abstract="false" native="false" synchronized="false"
  5588. static="false" final="false" visibility="public"
  5589. deprecated="not deprecated">
  5590. <param name="path" type="org.apache.hadoop.fs.Path"/>
  5591. </method>
  5592. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  5593. abstract="false" native="false" synchronized="false"
  5594. static="false" final="false" visibility="public"
  5595. deprecated="not deprecated">
  5596. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  5597. <param name="start" type="long"/>
  5598. <param name="len" type="long"/>
  5599. <exception name="IOException" type="java.io.IOException"/>
  5600. <doc>
  5601. <![CDATA[Get block locations from the underlying fs and fix their
  5602. offsets and lengths.
  5603. @param file the input filestatus to get block locations
  5604. @param start the start of the desired range in the contained file
  5605. @param len the length of the desired range
  5606. @return block locations for this segment of file
  5607. @throws IOException]]>
  5608. </doc>
  5609. </method>
  5610. <method name="getHarHash" return="int"
  5611. abstract="false" native="false" synchronized="false"
  5612. static="true" final="false" visibility="public"
  5613. deprecated="not deprecated">
  5614. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5615. <doc>
  5616. <![CDATA[the hash of the path p inside iniside
  5617. the filesystem
  5618. @param p the path in the harfilesystem
  5619. @return the hash code of the path.]]>
  5620. </doc>
  5621. </method>
  5622. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  5623. abstract="false" native="false" synchronized="false"
  5624. static="false" final="false" visibility="public"
  5625. deprecated="not deprecated">
  5626. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5627. <exception name="IOException" type="java.io.IOException"/>
  5628. <doc>
  5629. <![CDATA[return the filestatus of files in har archive.
  5630. The permission returned are that of the archive
  5631. index files. The permissions are not persisted
  5632. while creating a hadoop archive.
  5633. @param f the path in har filesystem
  5634. @return filestatus.
  5635. @throws IOException]]>
  5636. </doc>
  5637. </method>
  5638. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  5639. abstract="false" native="false" synchronized="false"
  5640. static="false" final="false" visibility="public"
  5641. deprecated="not deprecated">
  5642. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5643. <doc>
  5644. <![CDATA[@return null since no checksum algorithm is implemented.]]>
  5645. </doc>
  5646. </method>
  5647. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  5648. abstract="false" native="false" synchronized="false"
  5649. static="false" final="false" visibility="public"
  5650. deprecated="not deprecated">
  5651. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5652. <param name="bufferSize" type="int"/>
  5653. <exception name="IOException" type="java.io.IOException"/>
  5654. <doc>
  5655. <![CDATA[Returns a har input stream which fakes end of
  5656. file. It reads the index files to get the part
  5657. file name and the size and start of the file.]]>
  5658. </doc>
  5659. </method>
  5660. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  5661. abstract="false" native="false" synchronized="false"
  5662. static="false" final="false" visibility="public"
  5663. deprecated="not deprecated">
  5664. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5665. <param name="bufferSize" type="int"/>
  5666. <exception name="IOException" type="java.io.IOException"/>
  5667. </method>
  5668. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  5669. abstract="false" native="false" synchronized="false"
  5670. static="false" final="false" visibility="public"
  5671. deprecated="not deprecated">
  5672. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5673. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5674. <param name="overwrite" type="boolean"/>
  5675. <param name="bufferSize" type="int"/>
  5676. <param name="replication" type="short"/>
  5677. <param name="blockSize" type="long"/>
  5678. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  5679. <exception name="IOException" type="java.io.IOException"/>
  5680. </method>
  5681. <method name="close"
  5682. abstract="false" native="false" synchronized="false"
  5683. static="false" final="false" visibility="public"
  5684. deprecated="not deprecated">
  5685. <exception name="IOException" type="java.io.IOException"/>
  5686. </method>
  5687. <method name="setReplication" return="boolean"
  5688. abstract="false" native="false" synchronized="false"
  5689. static="false" final="false" visibility="public"
  5690. deprecated="not deprecated">
  5691. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5692. <param name="replication" type="short"/>
  5693. <exception name="IOException" type="java.io.IOException"/>
  5694. <doc>
  5695. <![CDATA[Not implemented.]]>
  5696. </doc>
  5697. </method>
  5698. <method name="delete" return="boolean"
  5699. abstract="false" native="false" synchronized="false"
  5700. static="false" final="false" visibility="public"
  5701. deprecated="not deprecated">
  5702. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5703. <param name="recursive" type="boolean"/>
  5704. <exception name="IOException" type="java.io.IOException"/>
  5705. <doc>
  5706. <![CDATA[Not implemented.]]>
  5707. </doc>
  5708. </method>
  5709. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  5710. abstract="false" native="false" synchronized="false"
  5711. static="false" final="false" visibility="public"
  5712. deprecated="not deprecated">
  5713. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5714. <exception name="IOException" type="java.io.IOException"/>
  5715. <doc>
  5716. <![CDATA[liststatus returns the children of a directory
  5717. after looking up the index files.]]>
  5718. </doc>
  5719. </method>
  5720. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  5721. abstract="false" native="false" synchronized="false"
  5722. static="false" final="false" visibility="public"
  5723. deprecated="not deprecated">
  5724. <doc>
  5725. <![CDATA[return the top level archive path.]]>
  5726. </doc>
  5727. </method>
  5728. <method name="setWorkingDirectory"
  5729. abstract="false" native="false" synchronized="false"
  5730. static="false" final="false" visibility="public"
  5731. deprecated="not deprecated">
  5732. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  5733. </method>
  5734. <method name="mkdirs" return="boolean"
  5735. abstract="false" native="false" synchronized="false"
  5736. static="false" final="false" visibility="public"
  5737. deprecated="not deprecated">
  5738. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5739. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5740. <exception name="IOException" type="java.io.IOException"/>
  5741. <doc>
  5742. <![CDATA[not implemented.]]>
  5743. </doc>
  5744. </method>
  5745. <method name="copyFromLocalFile"
  5746. abstract="false" native="false" synchronized="false"
  5747. static="false" final="false" visibility="public"
  5748. deprecated="not deprecated">
  5749. <param name="delSrc" type="boolean"/>
  5750. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5751. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5752. <exception name="IOException" type="java.io.IOException"/>
  5753. <doc>
  5754. <![CDATA[not implemented.]]>
  5755. </doc>
  5756. </method>
  5757. <method name="copyToLocalFile"
  5758. abstract="false" native="false" synchronized="false"
  5759. static="false" final="false" visibility="public"
  5760. deprecated="not deprecated">
  5761. <param name="delSrc" type="boolean"/>
  5762. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5763. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5764. <exception name="IOException" type="java.io.IOException"/>
  5765. <doc>
  5766. <![CDATA[copies the file in the har filesystem to a local file.]]>
  5767. </doc>
  5768. </method>
  5769. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  5770. abstract="false" native="false" synchronized="false"
  5771. static="false" final="false" visibility="public"
  5772. deprecated="not deprecated">
  5773. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  5774. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  5775. <exception name="IOException" type="java.io.IOException"/>
  5776. <doc>
  5777. <![CDATA[not implemented.]]>
  5778. </doc>
  5779. </method>
  5780. <method name="completeLocalOutput"
  5781. abstract="false" native="false" synchronized="false"
  5782. static="false" final="false" visibility="public"
  5783. deprecated="not deprecated">
  5784. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  5785. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  5786. <exception name="IOException" type="java.io.IOException"/>
  5787. <doc>
  5788. <![CDATA[not implemented.]]>
  5789. </doc>
  5790. </method>
  5791. <method name="setOwner"
  5792. abstract="false" native="false" synchronized="false"
  5793. static="false" final="false" visibility="public"
  5794. deprecated="not deprecated">
  5795. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5796. <param name="username" type="java.lang.String"/>
  5797. <param name="groupname" type="java.lang.String"/>
  5798. <exception name="IOException" type="java.io.IOException"/>
  5799. <doc>
  5800. <![CDATA[not implemented.]]>
  5801. </doc>
  5802. </method>
  5803. <method name="setPermission"
  5804. abstract="false" native="false" synchronized="false"
  5805. static="false" final="false" visibility="public"
  5806. deprecated="not deprecated">
  5807. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5808. <param name="permisssion" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5809. <exception name="IOException" type="java.io.IOException"/>
  5810. <doc>
  5811. <![CDATA[Not implemented.]]>
  5812. </doc>
  5813. </method>
  5814. <field name="VERSION" type="int"
  5815. transient="false" volatile="false"
  5816. static="true" final="true" visibility="public"
  5817. deprecated="not deprecated">
  5818. </field>
  5819. <doc>
  5820. <![CDATA[This is an implementation of the Hadoop Archive
  5821. Filesystem. This archive Filesystem has index files
  5822. of the form _index* and has contents of the form
  5823. part-*. The index files store the indexes of the
  5824. real files. The index files are of the form _masterindex
  5825. and _index. The master index is a level of indirection
  5826. in to the index file to make the look ups faster. the index
  5827. file is sorted with hash code of the paths that it contains
  5828. and the master index contains pointers to the positions in
  5829. index for ranges of hashcodes.]]>
  5830. </doc>
  5831. </class>
  5832. <!-- end class org.apache.hadoop.fs.HarFileSystem -->
  5833. <!-- start class org.apache.hadoop.fs.InMemoryFileSystem -->
  5834. <class name="InMemoryFileSystem" extends="org.apache.hadoop.fs.ChecksumFileSystem"
  5835. abstract="false"
  5836. static="false" final="false" visibility="public"
  5837. deprecated="not deprecated">
  5838. <constructor name="InMemoryFileSystem"
  5839. static="false" final="false" visibility="public"
  5840. deprecated="not deprecated">
  5841. </constructor>
  5842. <constructor name="InMemoryFileSystem" type="java.net.URI, org.apache.hadoop.conf.Configuration"
  5843. static="false" final="false" visibility="public"
  5844. deprecated="not deprecated">
  5845. </constructor>
  5846. <method name="reserveSpaceWithCheckSum" return="boolean"
  5847. abstract="false" native="false" synchronized="false"
  5848. static="false" final="false" visibility="public"
  5849. deprecated="not deprecated">
  5850. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5851. <param name="size" type="long"/>
  5852. <doc>
  5853. <![CDATA[Register a file with its size. This will also register a checksum for the
  5854. file that the user is trying to create. This is required since none of
  5855. the FileSystem APIs accept the size of the file as argument. But since it
  5856. is required for us to apriori know the size of the file we are going to
  5857. create, the user must call this method for each file he wants to create
  5858. and reserve memory for that file. We either succeed in reserving memory
  5859. for both the main file and the checksum file and return true, or return
  5860. false.]]>
  5861. </doc>
  5862. </method>
  5863. <method name="getFiles" return="org.apache.hadoop.fs.Path[]"
  5864. abstract="false" native="false" synchronized="false"
  5865. static="false" final="false" visibility="public"
  5866. deprecated="not deprecated">
  5867. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  5868. </method>
  5869. <method name="getNumFiles" return="int"
  5870. abstract="false" native="false" synchronized="false"
  5871. static="false" final="false" visibility="public"
  5872. deprecated="not deprecated">
  5873. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  5874. </method>
  5875. <method name="getFSSize" return="long"
  5876. abstract="false" native="false" synchronized="false"
  5877. static="false" final="false" visibility="public"
  5878. deprecated="not deprecated">
  5879. </method>
  5880. <method name="getPercentUsed" return="float"
  5881. abstract="false" native="false" synchronized="false"
  5882. static="false" final="false" visibility="public"
  5883. deprecated="not deprecated">
  5884. </method>
  5885. <doc>
  5886. <![CDATA[An implementation of the in-memory filesystem. This implementation assumes
  5887. that the file lengths are known ahead of time and the total lengths of all
  5888. the files is below a certain number (like 100 MB, configurable). Use the API
  5889. reserveSpaceWithCheckSum(Path f, int size) (see below for a description of
  5890. the API for reserving space in the FS. The uri of this filesystem starts with
  5891. ramfs:// .]]>
  5892. </doc>
  5893. </class>
  5894. <!-- end class org.apache.hadoop.fs.InMemoryFileSystem -->
  5895. <!-- start class org.apache.hadoop.fs.LocalDirAllocator -->
  5896. <class name="LocalDirAllocator" extends="java.lang.Object"
  5897. abstract="false"
  5898. static="false" final="false" visibility="public"
  5899. deprecated="not deprecated">
  5900. <constructor name="LocalDirAllocator" type="java.lang.String"
  5901. static="false" final="false" visibility="public"
  5902. deprecated="not deprecated">
  5903. <doc>
  5904. <![CDATA[Create an allocator object
  5905. @param contextCfgItemName]]>
  5906. </doc>
  5907. </constructor>
  5908. <method name="getLocalPathForWrite" return="org.apache.hadoop.fs.Path"
  5909. abstract="false" native="false" synchronized="false"
  5910. static="false" final="false" visibility="public"
  5911. deprecated="not deprecated">
  5912. <param name="pathStr" type="java.lang.String"/>
  5913. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5914. <exception name="IOException" type="java.io.IOException"/>
  5915. <doc>
  5916. <![CDATA[Get a path from the local FS. This method should be used if the size of
  5917. the file is not known apriori. We go round-robin over the set of disks
  5918. (via the configured dirs) and return the first complete path where
  5919. we could create the parent directory of the passed path.
  5920. @param pathStr the requested path (this will be created on the first
  5921. available disk)
  5922. @param conf the Configuration object
  5923. @return the complete path to the file on a local disk
  5924. @throws IOException]]>
  5925. </doc>
  5926. </method>
  5927. <method name="getLocalPathForWrite" return="org.apache.hadoop.fs.Path"
  5928. abstract="false" native="false" synchronized="false"
  5929. static="false" final="false" visibility="public"
  5930. deprecated="not deprecated">
  5931. <param name="pathStr" type="java.lang.String"/>
  5932. <param name="size" type="long"/>
  5933. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5934. <exception name="IOException" type="java.io.IOException"/>
  5935. <doc>
  5936. <![CDATA[Get a path from the local FS. Pass size as
  5937. SIZE_UNKNOWN if not known apriori. We
  5938. round-robin over the set of disks (via the configured dirs) and return
  5939. the first complete path which has enough space
  5940. @param pathStr the requested path (this will be created on the first
  5941. available disk)
  5942. @param size the size of the file that is going to be written
  5943. @param conf the Configuration object
  5944. @return the complete path to the file on a local disk
  5945. @throws IOException]]>
  5946. </doc>
  5947. </method>
  5948. <method name="getLocalPathForWrite" return="org.apache.hadoop.fs.Path"
  5949. abstract="false" native="false" synchronized="false"
  5950. static="false" final="false" visibility="public"
  5951. deprecated="not deprecated">
  5952. <param name="pathStr" type="java.lang.String"/>
  5953. <param name="size" type="long"/>
  5954. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5955. <param name="checkWrite" type="boolean"/>
  5956. <exception name="IOException" type="java.io.IOException"/>
  5957. <doc>
  5958. <![CDATA[Get a path from the local FS. Pass size as
  5959. SIZE_UNKNOWN if not known apriori. We
  5960. round-robin over the set of disks (via the configured dirs) and return
  5961. the first complete path which has enough space
  5962. @param pathStr the requested path (this will be created on the first
  5963. available disk)
  5964. @param size the size of the file that is going to be written
  5965. @param conf the Configuration object
  5966. @param checkWrite ensure that the path is writable
  5967. @return the complete path to the file on a local disk
  5968. @throws IOException]]>
  5969. </doc>
  5970. </method>
  5971. <method name="getLocalPathToRead" return="org.apache.hadoop.fs.Path"
  5972. abstract="false" native="false" synchronized="false"
  5973. static="false" final="false" visibility="public"
  5974. deprecated="not deprecated">
  5975. <param name="pathStr" type="java.lang.String"/>
  5976. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5977. <exception name="IOException" type="java.io.IOException"/>
  5978. <doc>
  5979. <![CDATA[Get a path from the local FS for reading. We search through all the
  5980. configured dirs for the file's existence and return the complete
  5981. path to the file when we find one
  5982. @param pathStr the requested file (this will be searched)
  5983. @param conf the Configuration object
  5984. @return the complete path to the file on a local disk
  5985. @throws IOException]]>
  5986. </doc>
  5987. </method>
  5988. <method name="getAllLocalPathsToRead" return="java.lang.Iterable"
  5989. abstract="false" native="false" synchronized="false"
  5990. static="false" final="false" visibility="public"
  5991. deprecated="not deprecated">
  5992. <param name="pathStr" type="java.lang.String"/>
  5993. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5994. <exception name="IOException" type="java.io.IOException"/>
  5995. <doc>
  5996. <![CDATA[Get all of the paths that currently exist in the working directories.
  5997. @param pathStr the path underneath the roots
  5998. @param conf the configuration to look up the roots in
  5999. @return all of the paths that exist under any of the roots
  6000. @throws IOException]]>
  6001. </doc>
  6002. </method>
  6003. <method name="createTmpFileForWrite" return="java.io.File"
  6004. abstract="false" native="false" synchronized="false"
  6005. static="false" final="false" visibility="public"
  6006. deprecated="not deprecated">
  6007. <param name="pathStr" type="java.lang.String"/>
  6008. <param name="size" type="long"/>
  6009. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6010. <exception name="IOException" type="java.io.IOException"/>
  6011. <doc>
  6012. <![CDATA[Creates a temporary file in the local FS. Pass size as -1 if not known
  6013. apriori. We round-robin over the set of disks (via the configured dirs)
  6014. and select the first complete path which has enough space. A file is
  6015. created on this directory. The file is guaranteed to go away when the
  6016. JVM exits.
  6017. @param pathStr prefix for the temporary file
  6018. @param size the size of the file that is going to be written
  6019. @param conf the Configuration object
  6020. @return a unique temporary file
  6021. @throws IOException]]>
  6022. </doc>
  6023. </method>
  6024. <method name="isContextValid" return="boolean"
  6025. abstract="false" native="false" synchronized="false"
  6026. static="true" final="false" visibility="public"
  6027. deprecated="not deprecated">
  6028. <param name="contextCfgItemName" type="java.lang.String"/>
  6029. <doc>
  6030. <![CDATA[Method to check whether a context is valid
  6031. @param contextCfgItemName
  6032. @return true/false]]>
  6033. </doc>
  6034. </method>
  6035. <method name="ifExists" return="boolean"
  6036. abstract="false" native="false" synchronized="false"
  6037. static="false" final="false" visibility="public"
  6038. deprecated="not deprecated">
  6039. <param name="pathStr" type="java.lang.String"/>
  6040. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6041. <doc>
  6042. <![CDATA[We search through all the configured dirs for the file's existence
  6043. and return true when we find
  6044. @param pathStr the requested file (this will be searched)
  6045. @param conf the Configuration object
  6046. @return true if files exist. false otherwise
  6047. @throws IOException]]>
  6048. </doc>
  6049. </method>
  6050. <field name="SIZE_UNKNOWN" type="int"
  6051. transient="false" volatile="false"
  6052. static="true" final="true" visibility="public"
  6053. deprecated="not deprecated">
  6054. <doc>
  6055. <![CDATA[Used when size of file to be allocated is unknown.]]>
  6056. </doc>
  6057. </field>
  6058. <doc>
  6059. <![CDATA[An implementation of a round-robin scheme for disk allocation for creating
  6060. files. The way it works is that it is kept track what disk was last
  6061. allocated for a file write. For the current request, the next disk from
  6062. the set of disks would be allocated if the free space on the disk is
  6063. sufficient enough to accommodate the file that is being considered for
  6064. creation. If the space requirements cannot be met, the next disk in order
  6065. would be tried and so on till a disk is found with sufficient capacity.
  6066. Once a disk with sufficient space is identified, a check is done to make
  6067. sure that the disk is writable. Also, there is an API provided that doesn't
  6068. take the space requirements into consideration but just checks whether the
  6069. disk under consideration is writable (this should be used for cases where
  6070. the file size is not known apriori). An API is provided to read a path that
  6071. was created earlier. That API works by doing a scan of all the disks for the
  6072. input pathname.
  6073. This implementation also provides the functionality of having multiple
  6074. allocators per JVM (one for each unique functionality or context, like
  6075. mapred, dfs-client, etc.). It ensures that there is only one instance of
  6076. an allocator per context per JVM.
  6077. Note:
  6078. 1. The contexts referred above are actually the configuration items defined
  6079. in the Configuration class like "mapred.local.dir" (for which we want to
  6080. control the dir allocations). The context-strings are exactly those
  6081. configuration items.
  6082. 2. This implementation does not take into consideration cases where
  6083. a disk becomes read-only or goes out of space while a file is being written
  6084. to (disks are shared between multiple processes, and so the latter situation
  6085. is probable).
  6086. 3. In the class implementation, "Disk" is referred to as "Dir", which
  6087. actually points to the configured directory on the Disk which will be the
  6088. parent for all file write/read allocations.]]>
  6089. </doc>
  6090. </class>
  6091. <!-- end class org.apache.hadoop.fs.LocalDirAllocator -->
  6092. <!-- start class org.apache.hadoop.fs.LocalFileSystem -->
  6093. <class name="LocalFileSystem" extends="org.apache.hadoop.fs.ChecksumFileSystem"
  6094. abstract="false"
  6095. static="false" final="false" visibility="public"
  6096. deprecated="not deprecated">
  6097. <constructor name="LocalFileSystem"
  6098. static="false" final="false" visibility="public"
  6099. deprecated="not deprecated">
  6100. </constructor>
  6101. <constructor name="LocalFileSystem" type="org.apache.hadoop.fs.FileSystem"
  6102. static="false" final="false" visibility="public"
  6103. deprecated="not deprecated">
  6104. </constructor>
  6105. <method name="getRaw" return="org.apache.hadoop.fs.FileSystem"
  6106. abstract="false" native="false" synchronized="false"
  6107. static="false" final="false" visibility="public"
  6108. deprecated="not deprecated">
  6109. </method>
  6110. <method name="exists" return="boolean"
  6111. abstract="false" native="false" synchronized="false"
  6112. static="false" final="false" visibility="public"
  6113. deprecated="not deprecated">
  6114. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6115. <exception name="IOException" type="java.io.IOException"/>
  6116. <doc>
  6117. <![CDATA[Get file status.]]>
  6118. </doc>
  6119. </method>
  6120. <method name="pathToFile" return="java.io.File"
  6121. abstract="false" native="false" synchronized="false"
  6122. static="false" final="false" visibility="public"
  6123. deprecated="not deprecated">
  6124. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6125. <doc>
  6126. <![CDATA[Convert a path to a File.]]>
  6127. </doc>
  6128. </method>
  6129. <method name="copyFromLocalFile"
  6130. abstract="false" native="false" synchronized="false"
  6131. static="false" final="false" visibility="public"
  6132. deprecated="not deprecated">
  6133. <param name="delSrc" type="boolean"/>
  6134. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6135. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6136. <exception name="IOException" type="java.io.IOException"/>
  6137. </method>
  6138. <method name="copyToLocalFile"
  6139. abstract="false" native="false" synchronized="false"
  6140. static="false" final="false" visibility="public"
  6141. deprecated="not deprecated">
  6142. <param name="delSrc" type="boolean"/>
  6143. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6144. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6145. <exception name="IOException" type="java.io.IOException"/>
  6146. </method>
  6147. <method name="reportChecksumFailure" return="boolean"
  6148. abstract="false" native="false" synchronized="false"
  6149. static="false" final="false" visibility="public"
  6150. deprecated="not deprecated">
  6151. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6152. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  6153. <param name="inPos" type="long"/>
  6154. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  6155. <param name="sumsPos" type="long"/>
  6156. <doc>
  6157. <![CDATA[Moves files to a bad file directory on the same device, so that their
  6158. storage will not be reused.]]>
  6159. </doc>
  6160. </method>
  6161. <doc>
  6162. <![CDATA[Implement the FileSystem API for the checksumed local filesystem.]]>
  6163. </doc>
  6164. </class>
  6165. <!-- end class org.apache.hadoop.fs.LocalFileSystem -->
  6166. <!-- start class org.apache.hadoop.fs.MD5MD5CRC32FileChecksum -->
  6167. <class name="MD5MD5CRC32FileChecksum" extends="org.apache.hadoop.fs.FileChecksum"
  6168. abstract="false"
  6169. static="false" final="false" visibility="public"
  6170. deprecated="not deprecated">
  6171. <constructor name="MD5MD5CRC32FileChecksum"
  6172. static="false" final="false" visibility="public"
  6173. deprecated="not deprecated">
  6174. <doc>
  6175. <![CDATA[Same as this(0, 0, null)]]>
  6176. </doc>
  6177. </constructor>
  6178. <constructor name="MD5MD5CRC32FileChecksum" type="int, long, org.apache.hadoop.io.MD5Hash"
  6179. static="false" final="false" visibility="public"
  6180. deprecated="not deprecated">
  6181. <doc>
  6182. <![CDATA[Create a MD5FileChecksum]]>
  6183. </doc>
  6184. </constructor>
  6185. <method name="getAlgorithmName" return="java.lang.String"
  6186. abstract="false" native="false" synchronized="false"
  6187. static="false" final="false" visibility="public"
  6188. deprecated="not deprecated">
  6189. <doc>
  6190. <![CDATA[{@inheritDoc}]]>
  6191. </doc>
  6192. </method>
  6193. <method name="getLength" return="int"
  6194. abstract="false" native="false" synchronized="false"
  6195. static="false" final="false" visibility="public"
  6196. deprecated="not deprecated">
  6197. <doc>
  6198. <![CDATA[{@inheritDoc}]]>
  6199. </doc>
  6200. </method>
  6201. <method name="getBytes" return="byte[]"
  6202. abstract="false" native="false" synchronized="false"
  6203. static="false" final="false" visibility="public"
  6204. deprecated="not deprecated">
  6205. <doc>
  6206. <![CDATA[{@inheritDoc}]]>
  6207. </doc>
  6208. </method>
  6209. <method name="readFields"
  6210. abstract="false" native="false" synchronized="false"
  6211. static="false" final="false" visibility="public"
  6212. deprecated="not deprecated">
  6213. <param name="in" type="java.io.DataInput"/>
  6214. <exception name="IOException" type="java.io.IOException"/>
  6215. <doc>
  6216. <![CDATA[{@inheritDoc}]]>
  6217. </doc>
  6218. </method>
  6219. <method name="write"
  6220. abstract="false" native="false" synchronized="false"
  6221. static="false" final="false" visibility="public"
  6222. deprecated="not deprecated">
  6223. <param name="out" type="java.io.DataOutput"/>
  6224. <exception name="IOException" type="java.io.IOException"/>
  6225. <doc>
  6226. <![CDATA[{@inheritDoc}]]>
  6227. </doc>
  6228. </method>
  6229. <method name="write"
  6230. abstract="false" native="false" synchronized="false"
  6231. static="true" final="false" visibility="public"
  6232. deprecated="not deprecated">
  6233. <param name="xml" type="org.znerd.xmlenc.XMLOutputter"/>
  6234. <param name="that" type="org.apache.hadoop.fs.MD5MD5CRC32FileChecksum"/>
  6235. <exception name="IOException" type="java.io.IOException"/>
  6236. <doc>
  6237. <![CDATA[Write that object to xml output.]]>
  6238. </doc>
  6239. </method>
  6240. <method name="valueOf" return="org.apache.hadoop.fs.MD5MD5CRC32FileChecksum"
  6241. abstract="false" native="false" synchronized="false"
  6242. static="true" final="false" visibility="public"
  6243. deprecated="not deprecated">
  6244. <param name="attrs" type="org.xml.sax.Attributes"/>
  6245. <exception name="SAXException" type="org.xml.sax.SAXException"/>
  6246. <doc>
  6247. <![CDATA[Return the object represented in the attributes.]]>
  6248. </doc>
  6249. </method>
  6250. <method name="toString" return="java.lang.String"
  6251. abstract="false" native="false" synchronized="false"
  6252. static="false" final="false" visibility="public"
  6253. deprecated="not deprecated">
  6254. <doc>
  6255. <![CDATA[{@inheritDoc}]]>
  6256. </doc>
  6257. </method>
  6258. <field name="LENGTH" type="int"
  6259. transient="false" volatile="false"
  6260. static="true" final="true" visibility="public"
  6261. deprecated="not deprecated">
  6262. </field>
  6263. <doc>
  6264. <![CDATA[MD5 of MD5 of CRC32.]]>
  6265. </doc>
  6266. </class>
  6267. <!-- end class org.apache.hadoop.fs.MD5MD5CRC32FileChecksum -->
  6268. <!-- start class org.apache.hadoop.fs.Path -->
  6269. <class name="Path" extends="java.lang.Object"
  6270. abstract="false"
  6271. static="false" final="false" visibility="public"
  6272. deprecated="not deprecated">
  6273. <implements name="java.lang.Comparable"/>
  6274. <constructor name="Path" type="java.lang.String, java.lang.String"
  6275. static="false" final="false" visibility="public"
  6276. deprecated="not deprecated">
  6277. <doc>
  6278. <![CDATA[Resolve a child path against a parent path.]]>
  6279. </doc>
  6280. </constructor>
  6281. <constructor name="Path" type="org.apache.hadoop.fs.Path, java.lang.String"
  6282. static="false" final="false" visibility="public"
  6283. deprecated="not deprecated">
  6284. <doc>
  6285. <![CDATA[Resolve a child path against a parent path.]]>
  6286. </doc>
  6287. </constructor>
  6288. <constructor name="Path" type="java.lang.String, org.apache.hadoop.fs.Path"
  6289. static="false" final="false" visibility="public"
  6290. deprecated="not deprecated">
  6291. <doc>
  6292. <![CDATA[Resolve a child path against a parent path.]]>
  6293. </doc>
  6294. </constructor>
  6295. <constructor name="Path" type="org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path"
  6296. static="false" final="false" visibility="public"
  6297. deprecated="not deprecated">
  6298. <doc>
  6299. <![CDATA[Resolve a child path against a parent path.]]>
  6300. </doc>
  6301. </constructor>
  6302. <constructor name="Path" type="java.lang.String"
  6303. static="false" final="false" visibility="public"
  6304. deprecated="not deprecated">
  6305. <doc>
  6306. <![CDATA[Construct a path from a String. Path strings are URIs, but with
  6307. unescaped elements and some additional normalization.]]>
  6308. </doc>
  6309. </constructor>
  6310. <constructor name="Path" type="java.lang.String, java.lang.String, java.lang.String"
  6311. static="false" final="false" visibility="public"
  6312. deprecated="not deprecated">
  6313. <doc>
  6314. <![CDATA[Construct a Path from components.]]>
  6315. </doc>
  6316. </constructor>
  6317. <constructor name="Path" type="java.net.URI"
  6318. static="false" final="false" visibility="public"
  6319. deprecated="not deprecated">
  6320. <doc>
  6321. <![CDATA[Construct a path from a URI]]>
  6322. </doc>
  6323. </constructor>
  6324. <method name="toUri" return="java.net.URI"
  6325. abstract="false" native="false" synchronized="false"
  6326. static="false" final="false" visibility="public"
  6327. deprecated="not deprecated">
  6328. <doc>
  6329. <![CDATA[Convert this to a URI.]]>
  6330. </doc>
  6331. </method>
  6332. <method name="getFileSystem" return="org.apache.hadoop.fs.FileSystem"
  6333. abstract="false" native="false" synchronized="false"
  6334. static="false" final="false" visibility="public"
  6335. deprecated="not deprecated">
  6336. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6337. <exception name="IOException" type="java.io.IOException"/>
  6338. <doc>
  6339. <![CDATA[Return the FileSystem that owns this Path.]]>
  6340. </doc>
  6341. </method>
  6342. <method name="isAbsolute" return="boolean"
  6343. abstract="false" native="false" synchronized="false"
  6344. static="false" final="false" visibility="public"
  6345. deprecated="not deprecated">
  6346. <doc>
  6347. <![CDATA[True if the directory of this path is absolute.]]>
  6348. </doc>
  6349. </method>
  6350. <method name="getName" return="java.lang.String"
  6351. abstract="false" native="false" synchronized="false"
  6352. static="false" final="false" visibility="public"
  6353. deprecated="not deprecated">
  6354. <doc>
  6355. <![CDATA[Returns the final component of this path.]]>
  6356. </doc>
  6357. </method>
  6358. <method name="getParent" return="org.apache.hadoop.fs.Path"
  6359. abstract="false" native="false" synchronized="false"
  6360. static="false" final="false" visibility="public"
  6361. deprecated="not deprecated">
  6362. <doc>
  6363. <![CDATA[Returns the parent of a path or null if at root.]]>
  6364. </doc>
  6365. </method>
  6366. <method name="suffix" return="org.apache.hadoop.fs.Path"
  6367. abstract="false" native="false" synchronized="false"
  6368. static="false" final="false" visibility="public"
  6369. deprecated="not deprecated">
  6370. <param name="suffix" type="java.lang.String"/>
  6371. <doc>
  6372. <![CDATA[Adds a suffix to the final name in the path.]]>
  6373. </doc>
  6374. </method>
  6375. <method name="toString" return="java.lang.String"
  6376. abstract="false" native="false" synchronized="false"
  6377. static="false" final="false" visibility="public"
  6378. deprecated="not deprecated">
  6379. </method>
  6380. <method name="equals" return="boolean"
  6381. abstract="false" native="false" synchronized="false"
  6382. static="false" final="false" visibility="public"
  6383. deprecated="not deprecated">
  6384. <param name="o" type="java.lang.Object"/>
  6385. </method>
  6386. <method name="hashCode" return="int"
  6387. abstract="false" native="false" synchronized="false"
  6388. static="false" final="false" visibility="public"
  6389. deprecated="not deprecated">
  6390. </method>
  6391. <method name="compareTo" return="int"
  6392. abstract="false" native="false" synchronized="false"
  6393. static="false" final="false" visibility="public"
  6394. deprecated="not deprecated">
  6395. <param name="o" type="java.lang.Object"/>
  6396. </method>
  6397. <method name="depth" return="int"
  6398. abstract="false" native="false" synchronized="false"
  6399. static="false" final="false" visibility="public"
  6400. deprecated="not deprecated">
  6401. <doc>
  6402. <![CDATA[Return the number of elements in this path.]]>
  6403. </doc>
  6404. </method>
  6405. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  6406. abstract="false" native="false" synchronized="false"
  6407. static="false" final="false" visibility="public"
  6408. deprecated="not deprecated">
  6409. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  6410. <doc>
  6411. <![CDATA[Returns a qualified path object.]]>
  6412. </doc>
  6413. </method>
  6414. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  6415. abstract="false" native="false" synchronized="false"
  6416. static="false" final="false" visibility="public"
  6417. deprecated="not deprecated">
  6418. <param name="defaultUri" type="java.net.URI"/>
  6419. <param name="workingDir" type="org.apache.hadoop.fs.Path"/>
  6420. <doc>
  6421. <![CDATA[Returns a qualified path object.]]>
  6422. </doc>
  6423. </method>
  6424. <field name="SEPARATOR" type="java.lang.String"
  6425. transient="false" volatile="false"
  6426. static="true" final="true" visibility="public"
  6427. deprecated="not deprecated">
  6428. <doc>
  6429. <![CDATA[The directory separator, a slash.]]>
  6430. </doc>
  6431. </field>
  6432. <field name="SEPARATOR_CHAR" type="char"
  6433. transient="false" volatile="false"
  6434. static="true" final="true" visibility="public"
  6435. deprecated="not deprecated">
  6436. </field>
  6437. <field name="CUR_DIR" type="java.lang.String"
  6438. transient="false" volatile="false"
  6439. static="true" final="true" visibility="public"
  6440. deprecated="not deprecated">
  6441. </field>
  6442. <doc>
  6443. <![CDATA[Names a file or directory in a {@link FileSystem}.
  6444. Path strings use slash as the directory separator. A path string is
  6445. absolute if it begins with a slash.]]>
  6446. </doc>
  6447. </class>
  6448. <!-- end class org.apache.hadoop.fs.Path -->
  6449. <!-- start interface org.apache.hadoop.fs.PathFilter -->
  6450. <interface name="PathFilter" abstract="true"
  6451. static="false" final="false" visibility="public"
  6452. deprecated="not deprecated">
  6453. <method name="accept" return="boolean"
  6454. abstract="false" native="false" synchronized="false"
  6455. static="false" final="false" visibility="public"
  6456. deprecated="not deprecated">
  6457. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6458. <doc>
  6459. <![CDATA[Tests whether or not the specified abstract pathname should be
  6460. included in a pathname list.
  6461. @param path The abstract pathname to be tested
  6462. @return <code>true</code> if and only if <code>pathname</code>
  6463. should be included]]>
  6464. </doc>
  6465. </method>
  6466. </interface>
  6467. <!-- end interface org.apache.hadoop.fs.PathFilter -->
  6468. <!-- start interface org.apache.hadoop.fs.PositionedReadable -->
  6469. <interface name="PositionedReadable" abstract="true"
  6470. static="false" final="false" visibility="public"
  6471. deprecated="not deprecated">
  6472. <method name="read" return="int"
  6473. abstract="false" native="false" synchronized="false"
  6474. static="false" final="false" visibility="public"
  6475. deprecated="not deprecated">
  6476. <param name="position" type="long"/>
  6477. <param name="buffer" type="byte[]"/>
  6478. <param name="offset" type="int"/>
  6479. <param name="length" type="int"/>
  6480. <exception name="IOException" type="java.io.IOException"/>
  6481. <doc>
  6482. <![CDATA[Read upto the specified number of bytes, from a given
  6483. position within a file, and return the number of bytes read. This does not
  6484. change the current offset of a file, and is thread-safe.]]>
  6485. </doc>
  6486. </method>
  6487. <method name="readFully"
  6488. abstract="false" native="false" synchronized="false"
  6489. static="false" final="false" visibility="public"
  6490. deprecated="not deprecated">
  6491. <param name="position" type="long"/>
  6492. <param name="buffer" type="byte[]"/>
  6493. <param name="offset" type="int"/>
  6494. <param name="length" type="int"/>
  6495. <exception name="IOException" type="java.io.IOException"/>
  6496. <doc>
  6497. <![CDATA[Read the specified number of bytes, from a given
  6498. position within a file. This does not
  6499. change the current offset of a file, and is thread-safe.]]>
  6500. </doc>
  6501. </method>
  6502. <method name="readFully"
  6503. abstract="false" native="false" synchronized="false"
  6504. static="false" final="false" visibility="public"
  6505. deprecated="not deprecated">
  6506. <param name="position" type="long"/>
  6507. <param name="buffer" type="byte[]"/>
  6508. <exception name="IOException" type="java.io.IOException"/>
  6509. <doc>
  6510. <![CDATA[Read number of bytes equalt to the length of the buffer, from a given
  6511. position within a file. This does not
  6512. change the current offset of a file, and is thread-safe.]]>
  6513. </doc>
  6514. </method>
  6515. <doc>
  6516. <![CDATA[Stream that permits positional reading.]]>
  6517. </doc>
  6518. </interface>
  6519. <!-- end interface org.apache.hadoop.fs.PositionedReadable -->
  6520. <!-- start class org.apache.hadoop.fs.RawLocalFileSystem -->
  6521. <class name="RawLocalFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  6522. abstract="false"
  6523. static="false" final="false" visibility="public"
  6524. deprecated="not deprecated">
  6525. <constructor name="RawLocalFileSystem"
  6526. static="false" final="false" visibility="public"
  6527. deprecated="not deprecated">
  6528. </constructor>
  6529. <method name="pathToFile" return="java.io.File"
  6530. abstract="false" native="false" synchronized="false"
  6531. static="false" final="false" visibility="public"
  6532. deprecated="not deprecated">
  6533. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6534. <doc>
  6535. <![CDATA[Convert a path to a File.]]>
  6536. </doc>
  6537. </method>
  6538. <method name="getUri" return="java.net.URI"
  6539. abstract="false" native="false" synchronized="false"
  6540. static="false" final="false" visibility="public"
  6541. deprecated="not deprecated">
  6542. </method>
  6543. <method name="initialize"
  6544. abstract="false" native="false" synchronized="false"
  6545. static="false" final="false" visibility="public"
  6546. deprecated="not deprecated">
  6547. <param name="uri" type="java.net.URI"/>
  6548. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6549. <exception name="IOException" type="java.io.IOException"/>
  6550. </method>
  6551. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  6552. abstract="false" native="false" synchronized="false"
  6553. static="false" final="false" visibility="public"
  6554. deprecated="not deprecated">
  6555. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6556. <param name="bufferSize" type="int"/>
  6557. <exception name="IOException" type="java.io.IOException"/>
  6558. </method>
  6559. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  6560. abstract="false" native="false" synchronized="false"
  6561. static="false" final="false" visibility="public"
  6562. deprecated="not deprecated">
  6563. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6564. <param name="bufferSize" type="int"/>
  6565. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6566. <exception name="IOException" type="java.io.IOException"/>
  6567. <doc>
  6568. <![CDATA[{@inheritDoc}]]>
  6569. </doc>
  6570. </method>
  6571. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6572. abstract="false" native="false" synchronized="false"
  6573. static="false" final="false" visibility="public"
  6574. deprecated="not deprecated">
  6575. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6576. <param name="overwrite" type="boolean"/>
  6577. <param name="bufferSize" type="int"/>
  6578. <param name="replication" type="short"/>
  6579. <param name="blockSize" type="long"/>
  6580. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6581. <exception name="IOException" type="java.io.IOException"/>
  6582. <doc>
  6583. <![CDATA[{@inheritDoc}]]>
  6584. </doc>
  6585. </method>
  6586. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6587. abstract="false" native="false" synchronized="false"
  6588. static="false" final="false" visibility="public"
  6589. deprecated="not deprecated">
  6590. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6591. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6592. <param name="overwrite" type="boolean"/>
  6593. <param name="bufferSize" type="int"/>
  6594. <param name="replication" type="short"/>
  6595. <param name="blockSize" type="long"/>
  6596. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6597. <exception name="IOException" type="java.io.IOException"/>
  6598. <doc>
  6599. <![CDATA[{@inheritDoc}]]>
  6600. </doc>
  6601. </method>
  6602. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  6603. abstract="false" native="false" synchronized="false"
  6604. static="false" final="false" visibility="public"
  6605. deprecated="not deprecated">
  6606. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6607. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6608. <param name="overwrite" type="boolean"/>
  6609. <param name="bufferSize" type="int"/>
  6610. <param name="replication" type="short"/>
  6611. <param name="blockSize" type="long"/>
  6612. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6613. <exception name="IOException" type="java.io.IOException"/>
  6614. <doc>
  6615. <![CDATA[{@inheritDoc}]]>
  6616. </doc>
  6617. </method>
  6618. <method name="rename" return="boolean"
  6619. abstract="false" native="false" synchronized="false"
  6620. static="false" final="false" visibility="public"
  6621. deprecated="not deprecated">
  6622. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6623. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6624. <exception name="IOException" type="java.io.IOException"/>
  6625. </method>
  6626. <method name="delete" return="boolean"
  6627. abstract="false" native="false" synchronized="false"
  6628. static="false" final="false" visibility="public"
  6629. deprecated="not deprecated">
  6630. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6631. <exception name="IOException" type="java.io.IOException"/>
  6632. </method>
  6633. <method name="delete" return="boolean"
  6634. abstract="false" native="false" synchronized="false"
  6635. static="false" final="false" visibility="public"
  6636. deprecated="not deprecated">
  6637. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6638. <param name="recursive" type="boolean"/>
  6639. <exception name="IOException" type="java.io.IOException"/>
  6640. </method>
  6641. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  6642. abstract="false" native="false" synchronized="false"
  6643. static="false" final="false" visibility="public"
  6644. deprecated="not deprecated">
  6645. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6646. <exception name="IOException" type="java.io.IOException"/>
  6647. </method>
  6648. <method name="mkdirs" return="boolean"
  6649. abstract="false" native="false" synchronized="false"
  6650. static="false" final="false" visibility="public"
  6651. deprecated="not deprecated">
  6652. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6653. <exception name="IOException" type="java.io.IOException"/>
  6654. <doc>
  6655. <![CDATA[Creates the specified directory hierarchy. Does not
  6656. treat existence as an error.]]>
  6657. </doc>
  6658. </method>
  6659. <method name="mkdirs" return="boolean"
  6660. abstract="false" native="false" synchronized="false"
  6661. static="false" final="false" visibility="public"
  6662. deprecated="not deprecated">
  6663. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6664. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6665. <exception name="IOException" type="java.io.IOException"/>
  6666. <doc>
  6667. <![CDATA[{@inheritDoc}]]>
  6668. </doc>
  6669. </method>
  6670. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  6671. abstract="false" native="false" synchronized="false"
  6672. static="false" final="false" visibility="public"
  6673. deprecated="not deprecated">
  6674. </method>
  6675. <method name="setWorkingDirectory"
  6676. abstract="false" native="false" synchronized="false"
  6677. static="false" final="false" visibility="public"
  6678. deprecated="not deprecated">
  6679. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  6680. <doc>
  6681. <![CDATA[Set the working directory to the given directory.]]>
  6682. </doc>
  6683. </method>
  6684. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  6685. abstract="false" native="false" synchronized="false"
  6686. static="false" final="false" visibility="public"
  6687. deprecated="not deprecated">
  6688. </method>
  6689. <method name="moveFromLocalFile"
  6690. abstract="false" native="false" synchronized="false"
  6691. static="false" final="false" visibility="public"
  6692. deprecated="not deprecated">
  6693. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6694. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6695. <exception name="IOException" type="java.io.IOException"/>
  6696. </method>
  6697. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  6698. abstract="false" native="false" synchronized="false"
  6699. static="false" final="false" visibility="public"
  6700. deprecated="not deprecated">
  6701. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  6702. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  6703. <exception name="IOException" type="java.io.IOException"/>
  6704. </method>
  6705. <method name="completeLocalOutput"
  6706. abstract="false" native="false" synchronized="false"
  6707. static="false" final="false" visibility="public"
  6708. deprecated="not deprecated">
  6709. <param name="fsWorkingFile" type="org.apache.hadoop.fs.Path"/>
  6710. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  6711. <exception name="IOException" type="java.io.IOException"/>
  6712. </method>
  6713. <method name="close"
  6714. abstract="false" native="false" synchronized="false"
  6715. static="false" final="false" visibility="public"
  6716. deprecated="not deprecated">
  6717. <exception name="IOException" type="java.io.IOException"/>
  6718. </method>
  6719. <method name="toString" return="java.lang.String"
  6720. abstract="false" native="false" synchronized="false"
  6721. static="false" final="false" visibility="public"
  6722. deprecated="not deprecated">
  6723. </method>
  6724. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  6725. abstract="false" native="false" synchronized="false"
  6726. static="false" final="false" visibility="public"
  6727. deprecated="not deprecated">
  6728. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6729. <exception name="IOException" type="java.io.IOException"/>
  6730. </method>
  6731. <method name="setOwner"
  6732. abstract="false" native="false" synchronized="false"
  6733. static="false" final="false" visibility="public"
  6734. deprecated="not deprecated">
  6735. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6736. <param name="username" type="java.lang.String"/>
  6737. <param name="groupname" type="java.lang.String"/>
  6738. <exception name="IOException" type="java.io.IOException"/>
  6739. <doc>
  6740. <![CDATA[Use the command chown to set owner.]]>
  6741. </doc>
  6742. </method>
  6743. <method name="setPermission"
  6744. abstract="false" native="false" synchronized="false"
  6745. static="false" final="false" visibility="public"
  6746. deprecated="not deprecated">
  6747. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6748. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6749. <exception name="IOException" type="java.io.IOException"/>
  6750. <doc>
  6751. <![CDATA[Use the command chmod to set permission.]]>
  6752. </doc>
  6753. </method>
  6754. <doc>
  6755. <![CDATA[Implement the FileSystem API for the raw local filesystem.]]>
  6756. </doc>
  6757. </class>
  6758. <!-- end class org.apache.hadoop.fs.RawLocalFileSystem -->
  6759. <!-- start interface org.apache.hadoop.fs.Seekable -->
  6760. <interface name="Seekable" abstract="true"
  6761. static="false" final="false" visibility="public"
  6762. deprecated="not deprecated">
  6763. <method name="seek"
  6764. abstract="false" native="false" synchronized="false"
  6765. static="false" final="false" visibility="public"
  6766. deprecated="not deprecated">
  6767. <param name="pos" type="long"/>
  6768. <exception name="IOException" type="java.io.IOException"/>
  6769. <doc>
  6770. <![CDATA[Seek to the given offset from the start of the file.
  6771. The next read() will be from that location. Can't
  6772. seek past the end of the file.]]>
  6773. </doc>
  6774. </method>
  6775. <method name="getPos" return="long"
  6776. abstract="false" native="false" synchronized="false"
  6777. static="false" final="false" visibility="public"
  6778. deprecated="not deprecated">
  6779. <exception name="IOException" type="java.io.IOException"/>
  6780. <doc>
  6781. <![CDATA[Return the current offset from the start of the file]]>
  6782. </doc>
  6783. </method>
  6784. <method name="seekToNewSource" return="boolean"
  6785. abstract="false" native="false" synchronized="false"
  6786. static="false" final="false" visibility="public"
  6787. deprecated="not deprecated">
  6788. <param name="targetPos" type="long"/>
  6789. <exception name="IOException" type="java.io.IOException"/>
  6790. <doc>
  6791. <![CDATA[Seeks a different copy of the data. Returns true if
  6792. found a new source, false otherwise.]]>
  6793. </doc>
  6794. </method>
  6795. <doc>
  6796. <![CDATA[Stream that permits seeking.]]>
  6797. </doc>
  6798. </interface>
  6799. <!-- end interface org.apache.hadoop.fs.Seekable -->
  6800. <!-- start interface org.apache.hadoop.fs.Syncable -->
  6801. <interface name="Syncable" abstract="true"
  6802. static="false" final="false" visibility="public"
  6803. deprecated="not deprecated">
  6804. <method name="sync"
  6805. abstract="false" native="false" synchronized="false"
  6806. static="false" final="false" visibility="public"
  6807. deprecated="not deprecated">
  6808. <exception name="IOException" type="java.io.IOException"/>
  6809. <doc>
  6810. <![CDATA[Synchronize all buffer with the underlying devices.
  6811. @throws IOException]]>
  6812. </doc>
  6813. </method>
  6814. <doc>
  6815. <![CDATA[This interface declare the sync() operation.]]>
  6816. </doc>
  6817. </interface>
  6818. <!-- end interface org.apache.hadoop.fs.Syncable -->
  6819. <!-- start class org.apache.hadoop.fs.Trash -->
  6820. <class name="Trash" extends="org.apache.hadoop.conf.Configured"
  6821. abstract="false"
  6822. static="false" final="false" visibility="public"
  6823. deprecated="not deprecated">
  6824. <constructor name="Trash" type="org.apache.hadoop.conf.Configuration"
  6825. static="false" final="false" visibility="public"
  6826. deprecated="not deprecated">
  6827. <exception name="IOException" type="java.io.IOException"/>
  6828. <doc>
  6829. <![CDATA[Construct a trash can accessor.
  6830. @param conf a Configuration]]>
  6831. </doc>
  6832. </constructor>
  6833. <constructor name="Trash" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration"
  6834. static="false" final="false" visibility="public"
  6835. deprecated="not deprecated">
  6836. <exception name="IOException" type="java.io.IOException"/>
  6837. <doc>
  6838. <![CDATA[Construct a trash can accessor for the FileSystem provided.]]>
  6839. </doc>
  6840. </constructor>
  6841. <method name="moveToTrash" return="boolean"
  6842. abstract="false" native="false" synchronized="false"
  6843. static="false" final="false" visibility="public"
  6844. deprecated="not deprecated">
  6845. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6846. <exception name="IOException" type="java.io.IOException"/>
  6847. <doc>
  6848. <![CDATA[Move a file or directory to the current trash directory.
  6849. @return false if the item is already in the trash or trash is disabled]]>
  6850. </doc>
  6851. </method>
  6852. <method name="checkpoint"
  6853. abstract="false" native="false" synchronized="false"
  6854. static="false" final="false" visibility="public"
  6855. deprecated="not deprecated">
  6856. <exception name="IOException" type="java.io.IOException"/>
  6857. <doc>
  6858. <![CDATA[Create a trash checkpoint.]]>
  6859. </doc>
  6860. </method>
  6861. <method name="expunge"
  6862. abstract="false" native="false" synchronized="false"
  6863. static="false" final="false" visibility="public"
  6864. deprecated="not deprecated">
  6865. <exception name="IOException" type="java.io.IOException"/>
  6866. <doc>
  6867. <![CDATA[Delete old checkpoints.]]>
  6868. </doc>
  6869. </method>
  6870. <method name="getEmptier" return="java.lang.Runnable"
  6871. abstract="false" native="false" synchronized="false"
  6872. static="false" final="false" visibility="public"
  6873. deprecated="not deprecated">
  6874. <exception name="IOException" type="java.io.IOException"/>
  6875. <doc>
  6876. <![CDATA[Return a {@link Runnable} that periodically empties the trash of all
  6877. users, intended to be run by the superuser. Only one checkpoint is kept
  6878. at a time.]]>
  6879. </doc>
  6880. </method>
  6881. <method name="main"
  6882. abstract="false" native="false" synchronized="false"
  6883. static="true" final="false" visibility="public"
  6884. deprecated="not deprecated">
  6885. <param name="args" type="java.lang.String[]"/>
  6886. <exception name="Exception" type="java.lang.Exception"/>
  6887. <doc>
  6888. <![CDATA[Run an emptier.]]>
  6889. </doc>
  6890. </method>
  6891. <doc>
  6892. <![CDATA[Provides a <i>trash</i> feature. Files are moved to a user's trash
  6893. directory, a subdirectory of their home directory named ".Trash". Files are
  6894. initially moved to a <i>current</i> sub-directory of the trash directory.
  6895. Within that sub-directory their original path is preserved. Periodically
  6896. one may checkpoint the current trash and remove older checkpoints. (This
  6897. design permits trash management without enumeration of the full trash
  6898. content, without date support in the filesystem, and without clock
  6899. synchronization.)]]>
  6900. </doc>
  6901. </class>
  6902. <!-- end class org.apache.hadoop.fs.Trash -->
  6903. </package>
  6904. <package name="org.apache.hadoop.fs.ftp">
  6905. <!-- start class org.apache.hadoop.fs.ftp.FTPException -->
  6906. <class name="FTPException" extends="java.lang.RuntimeException"
  6907. abstract="false"
  6908. static="false" final="false" visibility="public"
  6909. deprecated="not deprecated">
  6910. <constructor name="FTPException" type="java.lang.String"
  6911. static="false" final="false" visibility="public"
  6912. deprecated="not deprecated">
  6913. </constructor>
  6914. <constructor name="FTPException" type="java.lang.Throwable"
  6915. static="false" final="false" visibility="public"
  6916. deprecated="not deprecated">
  6917. </constructor>
  6918. <constructor name="FTPException" type="java.lang.String, java.lang.Throwable"
  6919. static="false" final="false" visibility="public"
  6920. deprecated="not deprecated">
  6921. </constructor>
  6922. <doc>
  6923. <![CDATA[A class to wrap a {@link Throwable} into a Runtime Exception.]]>
  6924. </doc>
  6925. </class>
  6926. <!-- end class org.apache.hadoop.fs.ftp.FTPException -->
  6927. <!-- start class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  6928. <class name="FTPFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  6929. abstract="false"
  6930. static="false" final="false" visibility="public"
  6931. deprecated="not deprecated">
  6932. <constructor name="FTPFileSystem"
  6933. static="false" final="false" visibility="public"
  6934. deprecated="not deprecated">
  6935. </constructor>
  6936. <method name="initialize"
  6937. abstract="false" native="false" synchronized="false"
  6938. static="false" final="false" visibility="public"
  6939. deprecated="not deprecated">
  6940. <param name="uri" type="java.net.URI"/>
  6941. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6942. <exception name="IOException" type="java.io.IOException"/>
  6943. </method>
  6944. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  6945. abstract="false" native="false" synchronized="false"
  6946. static="false" final="false" visibility="public"
  6947. deprecated="not deprecated">
  6948. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6949. <param name="bufferSize" type="int"/>
  6950. <exception name="IOException" type="java.io.IOException"/>
  6951. </method>
  6952. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6953. abstract="false" native="false" synchronized="false"
  6954. static="false" final="false" visibility="public"
  6955. deprecated="not deprecated">
  6956. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6957. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6958. <param name="overwrite" type="boolean"/>
  6959. <param name="bufferSize" type="int"/>
  6960. <param name="replication" type="short"/>
  6961. <param name="blockSize" type="long"/>
  6962. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6963. <exception name="IOException" type="java.io.IOException"/>
  6964. <doc>
  6965. <![CDATA[A stream obtained via this call must be closed before using other APIs of
  6966. this class or else the invocation will block.]]>
  6967. </doc>
  6968. </method>
  6969. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  6970. abstract="false" native="false" synchronized="false"
  6971. static="false" final="false" visibility="public"
  6972. deprecated="not deprecated">
  6973. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6974. <param name="bufferSize" type="int"/>
  6975. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6976. <exception name="IOException" type="java.io.IOException"/>
  6977. <doc>
  6978. <![CDATA[This optional operation is not yet supported.]]>
  6979. </doc>
  6980. </method>
  6981. <method name="delete" return="boolean"
  6982. abstract="false" native="false" synchronized="false"
  6983. static="false" final="false" visibility="public"
  6984. deprecated="Use delete(Path, boolean) instead">
  6985. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6986. <exception name="IOException" type="java.io.IOException"/>
  6987. <doc>
  6988. <![CDATA[@deprecated Use delete(Path, boolean) instead]]>
  6989. </doc>
  6990. </method>
  6991. <method name="delete" return="boolean"
  6992. abstract="false" native="false" synchronized="false"
  6993. static="false" final="false" visibility="public"
  6994. deprecated="not deprecated">
  6995. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6996. <param name="recursive" type="boolean"/>
  6997. <exception name="IOException" type="java.io.IOException"/>
  6998. </method>
  6999. <method name="getUri" return="java.net.URI"
  7000. abstract="false" native="false" synchronized="false"
  7001. static="false" final="false" visibility="public"
  7002. deprecated="not deprecated">
  7003. </method>
  7004. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  7005. abstract="false" native="false" synchronized="false"
  7006. static="false" final="false" visibility="public"
  7007. deprecated="not deprecated">
  7008. <param name="file" type="org.apache.hadoop.fs.Path"/>
  7009. <exception name="IOException" type="java.io.IOException"/>
  7010. </method>
  7011. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  7012. abstract="false" native="false" synchronized="false"
  7013. static="false" final="false" visibility="public"
  7014. deprecated="not deprecated">
  7015. <param name="file" type="org.apache.hadoop.fs.Path"/>
  7016. <exception name="IOException" type="java.io.IOException"/>
  7017. </method>
  7018. <method name="mkdirs" return="boolean"
  7019. abstract="false" native="false" synchronized="false"
  7020. static="false" final="false" visibility="public"
  7021. deprecated="not deprecated">
  7022. <param name="file" type="org.apache.hadoop.fs.Path"/>
  7023. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7024. <exception name="IOException" type="java.io.IOException"/>
  7025. </method>
  7026. <method name="rename" return="boolean"
  7027. abstract="false" native="false" synchronized="false"
  7028. static="false" final="false" visibility="public"
  7029. deprecated="not deprecated">
  7030. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7031. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7032. <exception name="IOException" type="java.io.IOException"/>
  7033. </method>
  7034. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  7035. abstract="false" native="false" synchronized="false"
  7036. static="false" final="false" visibility="public"
  7037. deprecated="not deprecated">
  7038. </method>
  7039. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  7040. abstract="false" native="false" synchronized="false"
  7041. static="false" final="false" visibility="public"
  7042. deprecated="not deprecated">
  7043. </method>
  7044. <method name="setWorkingDirectory"
  7045. abstract="false" native="false" synchronized="false"
  7046. static="false" final="false" visibility="public"
  7047. deprecated="not deprecated">
  7048. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  7049. </method>
  7050. <field name="LOG" type="org.apache.commons.logging.Log"
  7051. transient="false" volatile="false"
  7052. static="true" final="true" visibility="public"
  7053. deprecated="not deprecated">
  7054. </field>
  7055. <field name="DEFAULT_BUFFER_SIZE" type="int"
  7056. transient="false" volatile="false"
  7057. static="true" final="true" visibility="public"
  7058. deprecated="not deprecated">
  7059. </field>
  7060. <field name="DEFAULT_BLOCK_SIZE" type="int"
  7061. transient="false" volatile="false"
  7062. static="true" final="true" visibility="public"
  7063. deprecated="not deprecated">
  7064. </field>
  7065. <doc>
  7066. <![CDATA[<p>
  7067. A {@link FileSystem} backed by an FTP client provided by <a
  7068. href="http://commons.apache.org/net/">Apache Commons Net</a>.
  7069. </p>]]>
  7070. </doc>
  7071. </class>
  7072. <!-- end class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  7073. <!-- start class org.apache.hadoop.fs.ftp.FTPInputStream -->
  7074. <class name="FTPInputStream" extends="org.apache.hadoop.fs.FSInputStream"
  7075. abstract="false"
  7076. static="false" final="false" visibility="public"
  7077. deprecated="not deprecated">
  7078. <constructor name="FTPInputStream" type="java.io.InputStream, org.apache.commons.net.ftp.FTPClient, org.apache.hadoop.fs.FileSystem.Statistics"
  7079. static="false" final="false" visibility="public"
  7080. deprecated="not deprecated">
  7081. </constructor>
  7082. <method name="getPos" return="long"
  7083. abstract="false" native="false" synchronized="false"
  7084. static="false" final="false" visibility="public"
  7085. deprecated="not deprecated">
  7086. <exception name="IOException" type="java.io.IOException"/>
  7087. </method>
  7088. <method name="seek"
  7089. abstract="false" native="false" synchronized="false"
  7090. static="false" final="false" visibility="public"
  7091. deprecated="not deprecated">
  7092. <param name="pos" type="long"/>
  7093. <exception name="IOException" type="java.io.IOException"/>
  7094. </method>
  7095. <method name="seekToNewSource" return="boolean"
  7096. abstract="false" native="false" synchronized="false"
  7097. static="false" final="false" visibility="public"
  7098. deprecated="not deprecated">
  7099. <param name="targetPos" type="long"/>
  7100. <exception name="IOException" type="java.io.IOException"/>
  7101. </method>
  7102. <method name="read" return="int"
  7103. abstract="false" native="false" synchronized="true"
  7104. static="false" final="false" visibility="public"
  7105. deprecated="not deprecated">
  7106. <exception name="IOException" type="java.io.IOException"/>
  7107. </method>
  7108. <method name="read" return="int"
  7109. abstract="false" native="false" synchronized="true"
  7110. static="false" final="false" visibility="public"
  7111. deprecated="not deprecated">
  7112. <param name="buf" type="byte[]"/>
  7113. <param name="off" type="int"/>
  7114. <param name="len" type="int"/>
  7115. <exception name="IOException" type="java.io.IOException"/>
  7116. </method>
  7117. <method name="close"
  7118. abstract="false" native="false" synchronized="true"
  7119. static="false" final="false" visibility="public"
  7120. deprecated="not deprecated">
  7121. <exception name="IOException" type="java.io.IOException"/>
  7122. </method>
  7123. <method name="markSupported" return="boolean"
  7124. abstract="false" native="false" synchronized="false"
  7125. static="false" final="false" visibility="public"
  7126. deprecated="not deprecated">
  7127. </method>
  7128. <method name="mark"
  7129. abstract="false" native="false" synchronized="false"
  7130. static="false" final="false" visibility="public"
  7131. deprecated="not deprecated">
  7132. <param name="readLimit" type="int"/>
  7133. </method>
  7134. <method name="reset"
  7135. abstract="false" native="false" synchronized="false"
  7136. static="false" final="false" visibility="public"
  7137. deprecated="not deprecated">
  7138. <exception name="IOException" type="java.io.IOException"/>
  7139. </method>
  7140. </class>
  7141. <!-- end class org.apache.hadoop.fs.ftp.FTPInputStream -->
  7142. </package>
  7143. <package name="org.apache.hadoop.fs.kfs">
  7144. <!-- start class org.apache.hadoop.fs.kfs.KosmosFileSystem -->
  7145. <class name="KosmosFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  7146. abstract="false"
  7147. static="false" final="false" visibility="public"
  7148. deprecated="not deprecated">
  7149. <constructor name="KosmosFileSystem"
  7150. static="false" final="false" visibility="public"
  7151. deprecated="not deprecated">
  7152. </constructor>
  7153. <method name="getUri" return="java.net.URI"
  7154. abstract="false" native="false" synchronized="false"
  7155. static="false" final="false" visibility="public"
  7156. deprecated="not deprecated">
  7157. </method>
  7158. <method name="initialize"
  7159. abstract="false" native="false" synchronized="false"
  7160. static="false" final="false" visibility="public"
  7161. deprecated="not deprecated">
  7162. <param name="uri" type="java.net.URI"/>
  7163. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7164. <exception name="IOException" type="java.io.IOException"/>
  7165. </method>
  7166. <method name="getName" return="java.lang.String"
  7167. abstract="false" native="false" synchronized="false"
  7168. static="false" final="false" visibility="public"
  7169. deprecated="not deprecated">
  7170. </method>
  7171. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  7172. abstract="false" native="false" synchronized="false"
  7173. static="false" final="false" visibility="public"
  7174. deprecated="not deprecated">
  7175. </method>
  7176. <method name="setWorkingDirectory"
  7177. abstract="false" native="false" synchronized="false"
  7178. static="false" final="false" visibility="public"
  7179. deprecated="not deprecated">
  7180. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  7181. </method>
  7182. <method name="mkdirs" return="boolean"
  7183. abstract="false" native="false" synchronized="false"
  7184. static="false" final="false" visibility="public"
  7185. deprecated="not deprecated">
  7186. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7187. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7188. <exception name="IOException" type="java.io.IOException"/>
  7189. </method>
  7190. <method name="isDirectory" return="boolean"
  7191. abstract="false" native="false" synchronized="false"
  7192. static="false" final="false" visibility="public"
  7193. deprecated="not deprecated">
  7194. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7195. <exception name="IOException" type="java.io.IOException"/>
  7196. </method>
  7197. <method name="isFile" return="boolean"
  7198. abstract="false" native="false" synchronized="false"
  7199. static="false" final="false" visibility="public"
  7200. deprecated="not deprecated">
  7201. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7202. <exception name="IOException" type="java.io.IOException"/>
  7203. </method>
  7204. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  7205. abstract="false" native="false" synchronized="false"
  7206. static="false" final="false" visibility="public"
  7207. deprecated="not deprecated">
  7208. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7209. <exception name="IOException" type="java.io.IOException"/>
  7210. </method>
  7211. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  7212. abstract="false" native="false" synchronized="false"
  7213. static="false" final="false" visibility="public"
  7214. deprecated="not deprecated">
  7215. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7216. <exception name="IOException" type="java.io.IOException"/>
  7217. </method>
  7218. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  7219. abstract="false" native="false" synchronized="false"
  7220. static="false" final="false" visibility="public"
  7221. deprecated="not deprecated">
  7222. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7223. <param name="bufferSize" type="int"/>
  7224. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7225. <exception name="IOException" type="java.io.IOException"/>
  7226. <doc>
  7227. <![CDATA[This optional operation is not yet supported.]]>
  7228. </doc>
  7229. </method>
  7230. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7231. abstract="false" native="false" synchronized="false"
  7232. static="false" final="false" visibility="public"
  7233. deprecated="not deprecated">
  7234. <param name="file" type="org.apache.hadoop.fs.Path"/>
  7235. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7236. <param name="overwrite" type="boolean"/>
  7237. <param name="bufferSize" type="int"/>
  7238. <param name="replication" type="short"/>
  7239. <param name="blockSize" type="long"/>
  7240. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7241. <exception name="IOException" type="java.io.IOException"/>
  7242. </method>
  7243. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  7244. abstract="false" native="false" synchronized="false"
  7245. static="false" final="false" visibility="public"
  7246. deprecated="not deprecated">
  7247. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7248. <param name="bufferSize" type="int"/>
  7249. <exception name="IOException" type="java.io.IOException"/>
  7250. </method>
  7251. <method name="rename" return="boolean"
  7252. abstract="false" native="false" synchronized="false"
  7253. static="false" final="false" visibility="public"
  7254. deprecated="not deprecated">
  7255. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7256. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7257. <exception name="IOException" type="java.io.IOException"/>
  7258. </method>
  7259. <method name="delete" return="boolean"
  7260. abstract="false" native="false" synchronized="false"
  7261. static="false" final="false" visibility="public"
  7262. deprecated="not deprecated">
  7263. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7264. <param name="recursive" type="boolean"/>
  7265. <exception name="IOException" type="java.io.IOException"/>
  7266. </method>
  7267. <method name="delete" return="boolean"
  7268. abstract="false" native="false" synchronized="false"
  7269. static="false" final="false" visibility="public"
  7270. deprecated="not deprecated">
  7271. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7272. <exception name="IOException" type="java.io.IOException"/>
  7273. </method>
  7274. <method name="getLength" return="long"
  7275. abstract="false" native="false" synchronized="false"
  7276. static="false" final="false" visibility="public"
  7277. deprecated="not deprecated">
  7278. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7279. <exception name="IOException" type="java.io.IOException"/>
  7280. </method>
  7281. <method name="getReplication" return="short"
  7282. abstract="false" native="false" synchronized="false"
  7283. static="false" final="false" visibility="public"
  7284. deprecated="not deprecated">
  7285. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7286. <exception name="IOException" type="java.io.IOException"/>
  7287. </method>
  7288. <method name="getDefaultReplication" return="short"
  7289. abstract="false" native="false" synchronized="false"
  7290. static="false" final="false" visibility="public"
  7291. deprecated="not deprecated">
  7292. </method>
  7293. <method name="setReplication" return="boolean"
  7294. abstract="false" native="false" synchronized="false"
  7295. static="false" final="false" visibility="public"
  7296. deprecated="not deprecated">
  7297. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7298. <param name="replication" type="short"/>
  7299. <exception name="IOException" type="java.io.IOException"/>
  7300. </method>
  7301. <method name="getDefaultBlockSize" return="long"
  7302. abstract="false" native="false" synchronized="false"
  7303. static="false" final="false" visibility="public"
  7304. deprecated="not deprecated">
  7305. </method>
  7306. <method name="lock"
  7307. abstract="false" native="false" synchronized="false"
  7308. static="false" final="false" visibility="public"
  7309. deprecated="not deprecated">
  7310. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7311. <param name="shared" type="boolean"/>
  7312. <exception name="IOException" type="java.io.IOException"/>
  7313. </method>
  7314. <method name="release"
  7315. abstract="false" native="false" synchronized="false"
  7316. static="false" final="false" visibility="public"
  7317. deprecated="not deprecated">
  7318. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7319. <exception name="IOException" type="java.io.IOException"/>
  7320. </method>
  7321. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  7322. abstract="false" native="false" synchronized="false"
  7323. static="false" final="false" visibility="public"
  7324. deprecated="not deprecated">
  7325. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  7326. <param name="start" type="long"/>
  7327. <param name="len" type="long"/>
  7328. <exception name="IOException" type="java.io.IOException"/>
  7329. <doc>
  7330. <![CDATA[Return null if the file doesn't exist; otherwise, get the
  7331. locations of the various chunks of the file file from KFS.]]>
  7332. </doc>
  7333. </method>
  7334. <method name="copyFromLocalFile"
  7335. abstract="false" native="false" synchronized="false"
  7336. static="false" final="false" visibility="public"
  7337. deprecated="not deprecated">
  7338. <param name="delSrc" type="boolean"/>
  7339. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7340. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7341. <exception name="IOException" type="java.io.IOException"/>
  7342. </method>
  7343. <method name="copyToLocalFile"
  7344. abstract="false" native="false" synchronized="false"
  7345. static="false" final="false" visibility="public"
  7346. deprecated="not deprecated">
  7347. <param name="delSrc" type="boolean"/>
  7348. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7349. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7350. <exception name="IOException" type="java.io.IOException"/>
  7351. </method>
  7352. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  7353. abstract="false" native="false" synchronized="false"
  7354. static="false" final="false" visibility="public"
  7355. deprecated="not deprecated">
  7356. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  7357. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  7358. <exception name="IOException" type="java.io.IOException"/>
  7359. </method>
  7360. <method name="completeLocalOutput"
  7361. abstract="false" native="false" synchronized="false"
  7362. static="false" final="false" visibility="public"
  7363. deprecated="not deprecated">
  7364. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  7365. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  7366. <exception name="IOException" type="java.io.IOException"/>
  7367. </method>
  7368. <doc>
  7369. <![CDATA[A FileSystem backed by KFS.]]>
  7370. </doc>
  7371. </class>
  7372. <!-- end class org.apache.hadoop.fs.kfs.KosmosFileSystem -->
  7373. </package>
  7374. <package name="org.apache.hadoop.fs.permission">
  7375. <!-- start class org.apache.hadoop.fs.permission.AccessControlException -->
  7376. <class name="AccessControlException" extends="java.io.IOException"
  7377. abstract="false"
  7378. static="false" final="false" visibility="public"
  7379. deprecated="Use {@link org.apache.hadoop.security.AccessControlException}
  7380. instead.">
  7381. <constructor name="AccessControlException"
  7382. static="false" final="false" visibility="public"
  7383. deprecated="not deprecated">
  7384. <doc>
  7385. <![CDATA[Default constructor is needed for unwrapping from
  7386. {@link org.apache.hadoop.ipc.RemoteException}.]]>
  7387. </doc>
  7388. </constructor>
  7389. <constructor name="AccessControlException" type="java.lang.String"
  7390. static="false" final="false" visibility="public"
  7391. deprecated="not deprecated">
  7392. <doc>
  7393. <![CDATA[Constructs an {@link AccessControlException}
  7394. with the specified detail message.
  7395. @param s the detail message.]]>
  7396. </doc>
  7397. </constructor>
  7398. <constructor name="AccessControlException" type="java.lang.Throwable"
  7399. static="false" final="false" visibility="public"
  7400. deprecated="not deprecated">
  7401. <doc>
  7402. <![CDATA[Constructs a new exception with the specified cause and a detail
  7403. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  7404. typically contains the class and detail message of <tt>cause</tt>).
  7405. @param cause the cause (which is saved for later retrieval by the
  7406. {@link #getCause()} method). (A <tt>null</tt> value is
  7407. permitted, and indicates that the cause is nonexistent or
  7408. unknown.)]]>
  7409. </doc>
  7410. </constructor>
  7411. <doc>
  7412. <![CDATA[An exception class for access control related issues.
  7413. @deprecated Use {@link org.apache.hadoop.security.AccessControlException}
  7414. instead.]]>
  7415. </doc>
  7416. </class>
  7417. <!-- end class org.apache.hadoop.fs.permission.AccessControlException -->
  7418. <!-- start class org.apache.hadoop.fs.permission.ChmodParser -->
  7419. <class name="ChmodParser" extends="org.apache.hadoop.fs.permission.PermissionParser"
  7420. abstract="false"
  7421. static="false" final="false" visibility="public"
  7422. deprecated="not deprecated">
  7423. <constructor name="ChmodParser" type="java.lang.String"
  7424. static="false" final="false" visibility="public"
  7425. deprecated="not deprecated">
  7426. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  7427. </constructor>
  7428. <method name="applyNewPermission" return="short"
  7429. abstract="false" native="false" synchronized="false"
  7430. static="false" final="false" visibility="public"
  7431. deprecated="not deprecated">
  7432. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  7433. <doc>
  7434. <![CDATA[Apply permission against specified file and determine what the
  7435. new mode would be
  7436. @param file File against which to apply mode
  7437. @return File's new mode if applied.]]>
  7438. </doc>
  7439. </method>
  7440. <doc>
  7441. <![CDATA[Parse a permission mode passed in from a chmod command and apply that
  7442. mode against an existing file.]]>
  7443. </doc>
  7444. </class>
  7445. <!-- end class org.apache.hadoop.fs.permission.ChmodParser -->
  7446. <!-- start class org.apache.hadoop.fs.permission.FsAction -->
  7447. <class name="FsAction" extends="java.lang.Enum"
  7448. abstract="false"
  7449. static="false" final="true" visibility="public"
  7450. deprecated="not deprecated">
  7451. <method name="values" return="org.apache.hadoop.fs.permission.FsAction[]"
  7452. abstract="false" native="false" synchronized="false"
  7453. static="true" final="false" visibility="public"
  7454. deprecated="not deprecated">
  7455. </method>
  7456. <method name="valueOf" return="org.apache.hadoop.fs.permission.FsAction"
  7457. abstract="false" native="false" synchronized="false"
  7458. static="true" final="false" visibility="public"
  7459. deprecated="not deprecated">
  7460. <param name="name" type="java.lang.String"/>
  7461. </method>
  7462. <method name="implies" return="boolean"
  7463. abstract="false" native="false" synchronized="false"
  7464. static="false" final="false" visibility="public"
  7465. deprecated="not deprecated">
  7466. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  7467. <doc>
  7468. <![CDATA[Return true if this action implies that action.
  7469. @param that]]>
  7470. </doc>
  7471. </method>
  7472. <method name="and" return="org.apache.hadoop.fs.permission.FsAction"
  7473. abstract="false" native="false" synchronized="false"
  7474. static="false" final="false" visibility="public"
  7475. deprecated="not deprecated">
  7476. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  7477. <doc>
  7478. <![CDATA[AND operation.]]>
  7479. </doc>
  7480. </method>
  7481. <method name="or" return="org.apache.hadoop.fs.permission.FsAction"
  7482. abstract="false" native="false" synchronized="false"
  7483. static="false" final="false" visibility="public"
  7484. deprecated="not deprecated">
  7485. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  7486. <doc>
  7487. <![CDATA[OR operation.]]>
  7488. </doc>
  7489. </method>
  7490. <method name="not" return="org.apache.hadoop.fs.permission.FsAction"
  7491. abstract="false" native="false" synchronized="false"
  7492. static="false" final="false" visibility="public"
  7493. deprecated="not deprecated">
  7494. <doc>
  7495. <![CDATA[NOT operation.]]>
  7496. </doc>
  7497. </method>
  7498. <field name="NONE" type="org.apache.hadoop.fs.permission.FsAction"
  7499. transient="false" volatile="false"
  7500. static="true" final="true" visibility="public"
  7501. deprecated="not deprecated">
  7502. </field>
  7503. <field name="EXECUTE" type="org.apache.hadoop.fs.permission.FsAction"
  7504. transient="false" volatile="false"
  7505. static="true" final="true" visibility="public"
  7506. deprecated="not deprecated">
  7507. </field>
  7508. <field name="WRITE" type="org.apache.hadoop.fs.permission.FsAction"
  7509. transient="false" volatile="false"
  7510. static="true" final="true" visibility="public"
  7511. deprecated="not deprecated">
  7512. </field>
  7513. <field name="WRITE_EXECUTE" type="org.apache.hadoop.fs.permission.FsAction"
  7514. transient="false" volatile="false"
  7515. static="true" final="true" visibility="public"
  7516. deprecated="not deprecated">
  7517. </field>
  7518. <field name="READ" type="org.apache.hadoop.fs.permission.FsAction"
  7519. transient="false" volatile="false"
  7520. static="true" final="true" visibility="public"
  7521. deprecated="not deprecated">
  7522. </field>
  7523. <field name="READ_EXECUTE" type="org.apache.hadoop.fs.permission.FsAction"
  7524. transient="false" volatile="false"
  7525. static="true" final="true" visibility="public"
  7526. deprecated="not deprecated">
  7527. </field>
  7528. <field name="READ_WRITE" type="org.apache.hadoop.fs.permission.FsAction"
  7529. transient="false" volatile="false"
  7530. static="true" final="true" visibility="public"
  7531. deprecated="not deprecated">
  7532. </field>
  7533. <field name="ALL" type="org.apache.hadoop.fs.permission.FsAction"
  7534. transient="false" volatile="false"
  7535. static="true" final="true" visibility="public"
  7536. deprecated="not deprecated">
  7537. </field>
  7538. <field name="SYMBOL" type="java.lang.String"
  7539. transient="false" volatile="false"
  7540. static="false" final="true" visibility="public"
  7541. deprecated="not deprecated">
  7542. <doc>
  7543. <![CDATA[Symbolic representation]]>
  7544. </doc>
  7545. </field>
  7546. <doc>
  7547. <![CDATA[File system actions, e.g. read, write, etc.]]>
  7548. </doc>
  7549. </class>
  7550. <!-- end class org.apache.hadoop.fs.permission.FsAction -->
  7551. <!-- start class org.apache.hadoop.fs.permission.FsPermission -->
  7552. <class name="FsPermission" extends="java.lang.Object"
  7553. abstract="false"
  7554. static="false" final="false" visibility="public"
  7555. deprecated="not deprecated">
  7556. <implements name="org.apache.hadoop.io.Writable"/>
  7557. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction"
  7558. static="false" final="false" visibility="public"
  7559. deprecated="not deprecated">
  7560. <doc>
  7561. <![CDATA[Construct by the given {@link FsAction}.
  7562. @param u user action
  7563. @param g group action
  7564. @param o other action]]>
  7565. </doc>
  7566. </constructor>
  7567. <constructor name="FsPermission" type="short"
  7568. static="false" final="false" visibility="public"
  7569. deprecated="not deprecated">
  7570. <doc>
  7571. <![CDATA[Construct by the given mode.
  7572. @param mode
  7573. @see #toShort()]]>
  7574. </doc>
  7575. </constructor>
  7576. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsPermission"
  7577. static="false" final="false" visibility="public"
  7578. deprecated="not deprecated">
  7579. <doc>
  7580. <![CDATA[Copy constructor
  7581. @param other other permission]]>
  7582. </doc>
  7583. </constructor>
  7584. <constructor name="FsPermission" type="java.lang.String"
  7585. static="false" final="false" visibility="public"
  7586. deprecated="not deprecated">
  7587. <doc>
  7588. <![CDATA[Construct by given mode, either in octal or symbolic format.
  7589. @param mode mode as a string, either in octal or symbolic format
  7590. @throws IllegalArgumentException if <code>mode</code> is invalid]]>
  7591. </doc>
  7592. </constructor>
  7593. <method name="createImmutable" return="org.apache.hadoop.fs.permission.FsPermission"
  7594. abstract="false" native="false" synchronized="false"
  7595. static="true" final="false" visibility="public"
  7596. deprecated="not deprecated">
  7597. <param name="permission" type="short"/>
  7598. <doc>
  7599. <![CDATA[Create an immutable {@link FsPermission} object.]]>
  7600. </doc>
  7601. </method>
  7602. <method name="getUserAction" return="org.apache.hadoop.fs.permission.FsAction"
  7603. abstract="false" native="false" synchronized="false"
  7604. static="false" final="false" visibility="public"
  7605. deprecated="not deprecated">
  7606. <doc>
  7607. <![CDATA[Return user {@link FsAction}.]]>
  7608. </doc>
  7609. </method>
  7610. <method name="getGroupAction" return="org.apache.hadoop.fs.permission.FsAction"
  7611. abstract="false" native="false" synchronized="false"
  7612. static="false" final="false" visibility="public"
  7613. deprecated="not deprecated">
  7614. <doc>
  7615. <![CDATA[Return group {@link FsAction}.]]>
  7616. </doc>
  7617. </method>
  7618. <method name="getOtherAction" return="org.apache.hadoop.fs.permission.FsAction"
  7619. abstract="false" native="false" synchronized="false"
  7620. static="false" final="false" visibility="public"
  7621. deprecated="not deprecated">
  7622. <doc>
  7623. <![CDATA[Return other {@link FsAction}.]]>
  7624. </doc>
  7625. </method>
  7626. <method name="fromShort"
  7627. abstract="false" native="false" synchronized="false"
  7628. static="false" final="false" visibility="public"
  7629. deprecated="not deprecated">
  7630. <param name="n" type="short"/>
  7631. </method>
  7632. <method name="write"
  7633. abstract="false" native="false" synchronized="false"
  7634. static="false" final="false" visibility="public"
  7635. deprecated="not deprecated">
  7636. <param name="out" type="java.io.DataOutput"/>
  7637. <exception name="IOException" type="java.io.IOException"/>
  7638. <doc>
  7639. <![CDATA[{@inheritDoc}]]>
  7640. </doc>
  7641. </method>
  7642. <method name="readFields"
  7643. abstract="false" native="false" synchronized="false"
  7644. static="false" final="false" visibility="public"
  7645. deprecated="not deprecated">
  7646. <param name="in" type="java.io.DataInput"/>
  7647. <exception name="IOException" type="java.io.IOException"/>
  7648. <doc>
  7649. <![CDATA[{@inheritDoc}]]>
  7650. </doc>
  7651. </method>
  7652. <method name="read" return="org.apache.hadoop.fs.permission.FsPermission"
  7653. abstract="false" native="false" synchronized="false"
  7654. static="true" final="false" visibility="public"
  7655. deprecated="not deprecated">
  7656. <param name="in" type="java.io.DataInput"/>
  7657. <exception name="IOException" type="java.io.IOException"/>
  7658. <doc>
  7659. <![CDATA[Create and initialize a {@link FsPermission} from {@link DataInput}.]]>
  7660. </doc>
  7661. </method>
  7662. <method name="toShort" return="short"
  7663. abstract="false" native="false" synchronized="false"
  7664. static="false" final="false" visibility="public"
  7665. deprecated="not deprecated">
  7666. <doc>
  7667. <![CDATA[Encode the object to a short.]]>
  7668. </doc>
  7669. </method>
  7670. <method name="equals" return="boolean"
  7671. abstract="false" native="false" synchronized="false"
  7672. static="false" final="false" visibility="public"
  7673. deprecated="not deprecated">
  7674. <param name="obj" type="java.lang.Object"/>
  7675. <doc>
  7676. <![CDATA[{@inheritDoc}]]>
  7677. </doc>
  7678. </method>
  7679. <method name="hashCode" return="int"
  7680. abstract="false" native="false" synchronized="false"
  7681. static="false" final="false" visibility="public"
  7682. deprecated="not deprecated">
  7683. <doc>
  7684. <![CDATA[{@inheritDoc}]]>
  7685. </doc>
  7686. </method>
  7687. <method name="toString" return="java.lang.String"
  7688. abstract="false" native="false" synchronized="false"
  7689. static="false" final="false" visibility="public"
  7690. deprecated="not deprecated">
  7691. <doc>
  7692. <![CDATA[{@inheritDoc}]]>
  7693. </doc>
  7694. </method>
  7695. <method name="applyUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  7696. abstract="false" native="false" synchronized="false"
  7697. static="false" final="false" visibility="public"
  7698. deprecated="not deprecated">
  7699. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7700. <doc>
  7701. <![CDATA[Apply a umask to this permission and return a new one]]>
  7702. </doc>
  7703. </method>
  7704. <method name="getUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  7705. abstract="false" native="false" synchronized="false"
  7706. static="true" final="false" visibility="public"
  7707. deprecated="not deprecated">
  7708. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7709. <doc>
  7710. <![CDATA[Get the user file creation mask (umask)
  7711. {@code UMASK_LABEL} config param has umask value that is either symbolic
  7712. or octal.
  7713. Symbolic umask is applied relative to file mode creation mask;
  7714. the permission op characters '+' clears the corresponding bit in the mask,
  7715. '-' sets bits in the mask.
  7716. Octal umask, the specified bits are set in the file mode creation mask.
  7717. {@code DEPRECATED_UMASK_LABEL} config param has umask value set to decimal.]]>
  7718. </doc>
  7719. </method>
  7720. <method name="setUMask"
  7721. abstract="false" native="false" synchronized="false"
  7722. static="true" final="false" visibility="public"
  7723. deprecated="not deprecated">
  7724. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7725. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7726. <doc>
  7727. <![CDATA[Set the user file creation mask (umask)]]>
  7728. </doc>
  7729. </method>
  7730. <method name="getDefault" return="org.apache.hadoop.fs.permission.FsPermission"
  7731. abstract="false" native="false" synchronized="false"
  7732. static="true" final="false" visibility="public"
  7733. deprecated="not deprecated">
  7734. <doc>
  7735. <![CDATA[Get the default permission.]]>
  7736. </doc>
  7737. </method>
  7738. <method name="valueOf" return="org.apache.hadoop.fs.permission.FsPermission"
  7739. abstract="false" native="false" synchronized="false"
  7740. static="true" final="false" visibility="public"
  7741. deprecated="not deprecated">
  7742. <param name="unixSymbolicPermission" type="java.lang.String"/>
  7743. <doc>
  7744. <![CDATA[Create a FsPermission from a Unix symbolic permission string
  7745. @param unixSymbolicPermission e.g. "-rw-rw-rw-"]]>
  7746. </doc>
  7747. </method>
  7748. <field name="DEPRECATED_UMASK_LABEL" type="java.lang.String"
  7749. transient="false" volatile="false"
  7750. static="true" final="true" visibility="public"
  7751. deprecated="not deprecated">
  7752. <doc>
  7753. <![CDATA[umask property label]]>
  7754. </doc>
  7755. </field>
  7756. <field name="UMASK_LABEL" type="java.lang.String"
  7757. transient="false" volatile="false"
  7758. static="true" final="true" visibility="public"
  7759. deprecated="not deprecated">
  7760. </field>
  7761. <field name="DEFAULT_UMASK" type="int"
  7762. transient="false" volatile="false"
  7763. static="true" final="true" visibility="public"
  7764. deprecated="not deprecated">
  7765. </field>
  7766. <doc>
  7767. <![CDATA[A class for file/directory permissions.]]>
  7768. </doc>
  7769. </class>
  7770. <!-- end class org.apache.hadoop.fs.permission.FsPermission -->
  7771. <!-- start class org.apache.hadoop.fs.permission.PermissionStatus -->
  7772. <class name="PermissionStatus" extends="java.lang.Object"
  7773. abstract="false"
  7774. static="false" final="false" visibility="public"
  7775. deprecated="not deprecated">
  7776. <implements name="org.apache.hadoop.io.Writable"/>
  7777. <constructor name="PermissionStatus" type="java.lang.String, java.lang.String, org.apache.hadoop.fs.permission.FsPermission"
  7778. static="false" final="false" visibility="public"
  7779. deprecated="not deprecated">
  7780. <doc>
  7781. <![CDATA[Constructor]]>
  7782. </doc>
  7783. </constructor>
  7784. <method name="createImmutable" return="org.apache.hadoop.fs.permission.PermissionStatus"
  7785. abstract="false" native="false" synchronized="false"
  7786. static="true" final="false" visibility="public"
  7787. deprecated="not deprecated">
  7788. <param name="user" type="java.lang.String"/>
  7789. <param name="group" type="java.lang.String"/>
  7790. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7791. <doc>
  7792. <![CDATA[Create an immutable {@link PermissionStatus} object.]]>
  7793. </doc>
  7794. </method>
  7795. <method name="getUserName" return="java.lang.String"
  7796. abstract="false" native="false" synchronized="false"
  7797. static="false" final="false" visibility="public"
  7798. deprecated="not deprecated">
  7799. <doc>
  7800. <![CDATA[Return user name]]>
  7801. </doc>
  7802. </method>
  7803. <method name="getGroupName" return="java.lang.String"
  7804. abstract="false" native="false" synchronized="false"
  7805. static="false" final="false" visibility="public"
  7806. deprecated="not deprecated">
  7807. <doc>
  7808. <![CDATA[Return group name]]>
  7809. </doc>
  7810. </method>
  7811. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  7812. abstract="false" native="false" synchronized="false"
  7813. static="false" final="false" visibility="public"
  7814. deprecated="not deprecated">
  7815. <doc>
  7816. <![CDATA[Return permission]]>
  7817. </doc>
  7818. </method>
  7819. <method name="applyUMask" return="org.apache.hadoop.fs.permission.PermissionStatus"
  7820. abstract="false" native="false" synchronized="false"
  7821. static="false" final="false" visibility="public"
  7822. deprecated="not deprecated">
  7823. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7824. <doc>
  7825. <![CDATA[Apply umask.
  7826. @see FsPermission#applyUMask(FsPermission)]]>
  7827. </doc>
  7828. </method>
  7829. <method name="readFields"
  7830. abstract="false" native="false" synchronized="false"
  7831. static="false" final="false" visibility="public"
  7832. deprecated="not deprecated">
  7833. <param name="in" type="java.io.DataInput"/>
  7834. <exception name="IOException" type="java.io.IOException"/>
  7835. <doc>
  7836. <![CDATA[{@inheritDoc}]]>
  7837. </doc>
  7838. </method>
  7839. <method name="write"
  7840. abstract="false" native="false" synchronized="false"
  7841. static="false" final="false" visibility="public"
  7842. deprecated="not deprecated">
  7843. <param name="out" type="java.io.DataOutput"/>
  7844. <exception name="IOException" type="java.io.IOException"/>
  7845. <doc>
  7846. <![CDATA[{@inheritDoc}]]>
  7847. </doc>
  7848. </method>
  7849. <method name="read" return="org.apache.hadoop.fs.permission.PermissionStatus"
  7850. abstract="false" native="false" synchronized="false"
  7851. static="true" final="false" visibility="public"
  7852. deprecated="not deprecated">
  7853. <param name="in" type="java.io.DataInput"/>
  7854. <exception name="IOException" type="java.io.IOException"/>
  7855. <doc>
  7856. <![CDATA[Create and initialize a {@link PermissionStatus} from {@link DataInput}.]]>
  7857. </doc>
  7858. </method>
  7859. <method name="write"
  7860. abstract="false" native="false" synchronized="false"
  7861. static="true" final="false" visibility="public"
  7862. deprecated="not deprecated">
  7863. <param name="out" type="java.io.DataOutput"/>
  7864. <param name="username" type="java.lang.String"/>
  7865. <param name="groupname" type="java.lang.String"/>
  7866. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7867. <exception name="IOException" type="java.io.IOException"/>
  7868. <doc>
  7869. <![CDATA[Serialize a {@link PermissionStatus} from its base components.]]>
  7870. </doc>
  7871. </method>
  7872. <method name="toString" return="java.lang.String"
  7873. abstract="false" native="false" synchronized="false"
  7874. static="false" final="false" visibility="public"
  7875. deprecated="not deprecated">
  7876. <doc>
  7877. <![CDATA[{@inheritDoc}]]>
  7878. </doc>
  7879. </method>
  7880. <doc>
  7881. <![CDATA[Store permission related information.]]>
  7882. </doc>
  7883. </class>
  7884. <!-- end class org.apache.hadoop.fs.permission.PermissionStatus -->
  7885. </package>
  7886. <package name="org.apache.hadoop.fs.s3">
  7887. <!-- start class org.apache.hadoop.fs.s3.Block -->
  7888. <class name="Block" extends="java.lang.Object"
  7889. abstract="false"
  7890. static="false" final="false" visibility="public"
  7891. deprecated="not deprecated">
  7892. <constructor name="Block" type="long, long"
  7893. static="false" final="false" visibility="public"
  7894. deprecated="not deprecated">
  7895. </constructor>
  7896. <method name="getId" return="long"
  7897. abstract="false" native="false" synchronized="false"
  7898. static="false" final="false" visibility="public"
  7899. deprecated="not deprecated">
  7900. </method>
  7901. <method name="getLength" return="long"
  7902. abstract="false" native="false" synchronized="false"
  7903. static="false" final="false" visibility="public"
  7904. deprecated="not deprecated">
  7905. </method>
  7906. <method name="toString" return="java.lang.String"
  7907. abstract="false" native="false" synchronized="false"
  7908. static="false" final="false" visibility="public"
  7909. deprecated="not deprecated">
  7910. </method>
  7911. <doc>
  7912. <![CDATA[Holds metadata about a block of data being stored in a {@link FileSystemStore}.]]>
  7913. </doc>
  7914. </class>
  7915. <!-- end class org.apache.hadoop.fs.s3.Block -->
  7916. <!-- start interface org.apache.hadoop.fs.s3.FileSystemStore -->
  7917. <interface name="FileSystemStore" abstract="true"
  7918. static="false" final="false" visibility="public"
  7919. deprecated="not deprecated">
  7920. <method name="initialize"
  7921. abstract="false" native="false" synchronized="false"
  7922. static="false" final="false" visibility="public"
  7923. deprecated="not deprecated">
  7924. <param name="uri" type="java.net.URI"/>
  7925. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7926. <exception name="IOException" type="java.io.IOException"/>
  7927. </method>
  7928. <method name="getVersion" return="java.lang.String"
  7929. abstract="false" native="false" synchronized="false"
  7930. static="false" final="false" visibility="public"
  7931. deprecated="not deprecated">
  7932. <exception name="IOException" type="java.io.IOException"/>
  7933. </method>
  7934. <method name="storeINode"
  7935. abstract="false" native="false" synchronized="false"
  7936. static="false" final="false" visibility="public"
  7937. deprecated="not deprecated">
  7938. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7939. <param name="inode" type="org.apache.hadoop.fs.s3.INode"/>
  7940. <exception name="IOException" type="java.io.IOException"/>
  7941. </method>
  7942. <method name="storeBlock"
  7943. abstract="false" native="false" synchronized="false"
  7944. static="false" final="false" visibility="public"
  7945. deprecated="not deprecated">
  7946. <param name="block" type="org.apache.hadoop.fs.s3.Block"/>
  7947. <param name="file" type="java.io.File"/>
  7948. <exception name="IOException" type="java.io.IOException"/>
  7949. </method>
  7950. <method name="inodeExists" return="boolean"
  7951. abstract="false" native="false" synchronized="false"
  7952. static="false" final="false" visibility="public"
  7953. deprecated="not deprecated">
  7954. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7955. <exception name="IOException" type="java.io.IOException"/>
  7956. </method>
  7957. <method name="blockExists" return="boolean"
  7958. abstract="false" native="false" synchronized="false"
  7959. static="false" final="false" visibility="public"
  7960. deprecated="not deprecated">
  7961. <param name="blockId" type="long"/>
  7962. <exception name="IOException" type="java.io.IOException"/>
  7963. </method>
  7964. <method name="retrieveINode" return="org.apache.hadoop.fs.s3.INode"
  7965. abstract="false" native="false" synchronized="false"
  7966. static="false" final="false" visibility="public"
  7967. deprecated="not deprecated">
  7968. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7969. <exception name="IOException" type="java.io.IOException"/>
  7970. </method>
  7971. <method name="retrieveBlock" return="java.io.File"
  7972. abstract="false" native="false" synchronized="false"
  7973. static="false" final="false" visibility="public"
  7974. deprecated="not deprecated">
  7975. <param name="block" type="org.apache.hadoop.fs.s3.Block"/>
  7976. <param name="byteRangeStart" type="long"/>
  7977. <exception name="IOException" type="java.io.IOException"/>
  7978. </method>
  7979. <method name="deleteINode"
  7980. abstract="false" native="false" synchronized="false"
  7981. static="false" final="false" visibility="public"
  7982. deprecated="not deprecated">
  7983. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7984. <exception name="IOException" type="java.io.IOException"/>
  7985. </method>
  7986. <method name="deleteBlock"
  7987. abstract="false" native="false" synchronized="false"
  7988. static="false" final="false" visibility="public"
  7989. deprecated="not deprecated">
  7990. <param name="block" type="org.apache.hadoop.fs.s3.Block"/>
  7991. <exception name="IOException" type="java.io.IOException"/>
  7992. </method>
  7993. <method name="listSubPaths" return="java.util.Set"
  7994. abstract="false" native="false" synchronized="false"
  7995. static="false" final="false" visibility="public"
  7996. deprecated="not deprecated">
  7997. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7998. <exception name="IOException" type="java.io.IOException"/>
  7999. </method>
  8000. <method name="listDeepSubPaths" return="java.util.Set"
  8001. abstract="false" native="false" synchronized="false"
  8002. static="false" final="false" visibility="public"
  8003. deprecated="not deprecated">
  8004. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8005. <exception name="IOException" type="java.io.IOException"/>
  8006. </method>
  8007. <method name="purge"
  8008. abstract="false" native="false" synchronized="false"
  8009. static="false" final="false" visibility="public"
  8010. deprecated="not deprecated">
  8011. <exception name="IOException" type="java.io.IOException"/>
  8012. <doc>
  8013. <![CDATA[Delete everything. Used for testing.
  8014. @throws IOException]]>
  8015. </doc>
  8016. </method>
  8017. <method name="dump"
  8018. abstract="false" native="false" synchronized="false"
  8019. static="false" final="false" visibility="public"
  8020. deprecated="not deprecated">
  8021. <exception name="IOException" type="java.io.IOException"/>
  8022. <doc>
  8023. <![CDATA[Diagnostic method to dump all INodes to the console.
  8024. @throws IOException]]>
  8025. </doc>
  8026. </method>
  8027. <doc>
  8028. <![CDATA[A facility for storing and retrieving {@link INode}s and {@link Block}s.]]>
  8029. </doc>
  8030. </interface>
  8031. <!-- end interface org.apache.hadoop.fs.s3.FileSystemStore -->
  8032. <!-- start class org.apache.hadoop.fs.s3.INode -->
  8033. <class name="INode" extends="java.lang.Object"
  8034. abstract="false"
  8035. static="false" final="false" visibility="public"
  8036. deprecated="not deprecated">
  8037. <constructor name="INode" type="org.apache.hadoop.fs.s3.INode.FileType, org.apache.hadoop.fs.s3.Block[]"
  8038. static="false" final="false" visibility="public"
  8039. deprecated="not deprecated">
  8040. </constructor>
  8041. <method name="getBlocks" return="org.apache.hadoop.fs.s3.Block[]"
  8042. abstract="false" native="false" synchronized="false"
  8043. static="false" final="false" visibility="public"
  8044. deprecated="not deprecated">
  8045. </method>
  8046. <method name="getFileType" return="org.apache.hadoop.fs.s3.INode.FileType"
  8047. abstract="false" native="false" synchronized="false"
  8048. static="false" final="false" visibility="public"
  8049. deprecated="not deprecated">
  8050. </method>
  8051. <method name="isDirectory" return="boolean"
  8052. abstract="false" native="false" synchronized="false"
  8053. static="false" final="false" visibility="public"
  8054. deprecated="not deprecated">
  8055. </method>
  8056. <method name="isFile" return="boolean"
  8057. abstract="false" native="false" synchronized="false"
  8058. static="false" final="false" visibility="public"
  8059. deprecated="not deprecated">
  8060. </method>
  8061. <method name="getSerializedLength" return="long"
  8062. abstract="false" native="false" synchronized="false"
  8063. static="false" final="false" visibility="public"
  8064. deprecated="not deprecated">
  8065. </method>
  8066. <method name="serialize" return="java.io.InputStream"
  8067. abstract="false" native="false" synchronized="false"
  8068. static="false" final="false" visibility="public"
  8069. deprecated="not deprecated">
  8070. <exception name="IOException" type="java.io.IOException"/>
  8071. </method>
  8072. <method name="deserialize" return="org.apache.hadoop.fs.s3.INode"
  8073. abstract="false" native="false" synchronized="false"
  8074. static="true" final="false" visibility="public"
  8075. deprecated="not deprecated">
  8076. <param name="in" type="java.io.InputStream"/>
  8077. <exception name="IOException" type="java.io.IOException"/>
  8078. </method>
  8079. <field name="FILE_TYPES" type="org.apache.hadoop.fs.s3.INode.FileType[]"
  8080. transient="false" volatile="false"
  8081. static="true" final="true" visibility="public"
  8082. deprecated="not deprecated">
  8083. </field>
  8084. <field name="DIRECTORY_INODE" type="org.apache.hadoop.fs.s3.INode"
  8085. transient="false" volatile="false"
  8086. static="true" final="true" visibility="public"
  8087. deprecated="not deprecated">
  8088. </field>
  8089. <doc>
  8090. <![CDATA[Holds file metadata including type (regular file, or directory),
  8091. and the list of blocks that are pointers to the data.]]>
  8092. </doc>
  8093. </class>
  8094. <!-- end class org.apache.hadoop.fs.s3.INode -->
  8095. <!-- start class org.apache.hadoop.fs.s3.MigrationTool -->
  8096. <class name="MigrationTool" extends="org.apache.hadoop.conf.Configured"
  8097. abstract="false"
  8098. static="false" final="false" visibility="public"
  8099. deprecated="not deprecated">
  8100. <implements name="org.apache.hadoop.util.Tool"/>
  8101. <constructor name="MigrationTool"
  8102. static="false" final="false" visibility="public"
  8103. deprecated="not deprecated">
  8104. </constructor>
  8105. <method name="main"
  8106. abstract="false" native="false" synchronized="false"
  8107. static="true" final="false" visibility="public"
  8108. deprecated="not deprecated">
  8109. <param name="args" type="java.lang.String[]"/>
  8110. <exception name="Exception" type="java.lang.Exception"/>
  8111. </method>
  8112. <method name="run" return="int"
  8113. abstract="false" native="false" synchronized="false"
  8114. static="false" final="false" visibility="public"
  8115. deprecated="not deprecated">
  8116. <param name="args" type="java.lang.String[]"/>
  8117. <exception name="Exception" type="java.lang.Exception"/>
  8118. </method>
  8119. <method name="initialize"
  8120. abstract="false" native="false" synchronized="false"
  8121. static="false" final="false" visibility="public"
  8122. deprecated="not deprecated">
  8123. <param name="uri" type="java.net.URI"/>
  8124. <exception name="IOException" type="java.io.IOException"/>
  8125. </method>
  8126. <doc>
  8127. <![CDATA[<p>
  8128. This class is a tool for migrating data from an older to a newer version
  8129. of an S3 filesystem.
  8130. </p>
  8131. <p>
  8132. All files in the filesystem are migrated by re-writing the block metadata
  8133. - no datafiles are touched.
  8134. </p>]]>
  8135. </doc>
  8136. </class>
  8137. <!-- end class org.apache.hadoop.fs.s3.MigrationTool -->
  8138. <!-- start class org.apache.hadoop.fs.s3.S3Credentials -->
  8139. <class name="S3Credentials" extends="java.lang.Object"
  8140. abstract="false"
  8141. static="false" final="false" visibility="public"
  8142. deprecated="not deprecated">
  8143. <constructor name="S3Credentials"
  8144. static="false" final="false" visibility="public"
  8145. deprecated="not deprecated">
  8146. </constructor>
  8147. <method name="initialize"
  8148. abstract="false" native="false" synchronized="false"
  8149. static="false" final="false" visibility="public"
  8150. deprecated="not deprecated">
  8151. <param name="uri" type="java.net.URI"/>
  8152. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8153. <doc>
  8154. <![CDATA[@throws IllegalArgumentException if credentials for S3 cannot be
  8155. determined.]]>
  8156. </doc>
  8157. </method>
  8158. <method name="getAccessKey" return="java.lang.String"
  8159. abstract="false" native="false" synchronized="false"
  8160. static="false" final="false" visibility="public"
  8161. deprecated="not deprecated">
  8162. </method>
  8163. <method name="getSecretAccessKey" return="java.lang.String"
  8164. abstract="false" native="false" synchronized="false"
  8165. static="false" final="false" visibility="public"
  8166. deprecated="not deprecated">
  8167. </method>
  8168. <doc>
  8169. <![CDATA[<p>
  8170. Extracts AWS credentials from the filesystem URI or configuration.
  8171. </p>]]>
  8172. </doc>
  8173. </class>
  8174. <!-- end class org.apache.hadoop.fs.s3.S3Credentials -->
  8175. <!-- start class org.apache.hadoop.fs.s3.S3Exception -->
  8176. <class name="S3Exception" extends="java.lang.RuntimeException"
  8177. abstract="false"
  8178. static="false" final="false" visibility="public"
  8179. deprecated="not deprecated">
  8180. <constructor name="S3Exception" type="java.lang.Throwable"
  8181. static="false" final="false" visibility="public"
  8182. deprecated="not deprecated">
  8183. </constructor>
  8184. <doc>
  8185. <![CDATA[Thrown if there is a problem communicating with Amazon S3.]]>
  8186. </doc>
  8187. </class>
  8188. <!-- end class org.apache.hadoop.fs.s3.S3Exception -->
  8189. <!-- start class org.apache.hadoop.fs.s3.S3FileSystem -->
  8190. <class name="S3FileSystem" extends="org.apache.hadoop.fs.FileSystem"
  8191. abstract="false"
  8192. static="false" final="false" visibility="public"
  8193. deprecated="not deprecated">
  8194. <constructor name="S3FileSystem"
  8195. static="false" final="false" visibility="public"
  8196. deprecated="not deprecated">
  8197. </constructor>
  8198. <constructor name="S3FileSystem" type="org.apache.hadoop.fs.s3.FileSystemStore"
  8199. static="false" final="false" visibility="public"
  8200. deprecated="not deprecated">
  8201. </constructor>
  8202. <method name="getUri" return="java.net.URI"
  8203. abstract="false" native="false" synchronized="false"
  8204. static="false" final="false" visibility="public"
  8205. deprecated="not deprecated">
  8206. </method>
  8207. <method name="initialize"
  8208. abstract="false" native="false" synchronized="false"
  8209. static="false" final="false" visibility="public"
  8210. deprecated="not deprecated">
  8211. <param name="uri" type="java.net.URI"/>
  8212. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8213. <exception name="IOException" type="java.io.IOException"/>
  8214. </method>
  8215. <method name="getName" return="java.lang.String"
  8216. abstract="false" native="false" synchronized="false"
  8217. static="false" final="false" visibility="public"
  8218. deprecated="not deprecated">
  8219. </method>
  8220. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  8221. abstract="false" native="false" synchronized="false"
  8222. static="false" final="false" visibility="public"
  8223. deprecated="not deprecated">
  8224. </method>
  8225. <method name="setWorkingDirectory"
  8226. abstract="false" native="false" synchronized="false"
  8227. static="false" final="false" visibility="public"
  8228. deprecated="not deprecated">
  8229. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  8230. </method>
  8231. <method name="mkdirs" return="boolean"
  8232. abstract="false" native="false" synchronized="false"
  8233. static="false" final="false" visibility="public"
  8234. deprecated="not deprecated">
  8235. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8236. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8237. <exception name="IOException" type="java.io.IOException"/>
  8238. <doc>
  8239. <![CDATA[@param permission Currently ignored.]]>
  8240. </doc>
  8241. </method>
  8242. <method name="isFile" return="boolean"
  8243. abstract="false" native="false" synchronized="false"
  8244. static="false" final="false" visibility="public"
  8245. deprecated="not deprecated">
  8246. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8247. <exception name="IOException" type="java.io.IOException"/>
  8248. </method>
  8249. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  8250. abstract="false" native="false" synchronized="false"
  8251. static="false" final="false" visibility="public"
  8252. deprecated="not deprecated">
  8253. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8254. <exception name="IOException" type="java.io.IOException"/>
  8255. </method>
  8256. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  8257. abstract="false" native="false" synchronized="false"
  8258. static="false" final="false" visibility="public"
  8259. deprecated="not deprecated">
  8260. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8261. <param name="bufferSize" type="int"/>
  8262. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8263. <exception name="IOException" type="java.io.IOException"/>
  8264. <doc>
  8265. <![CDATA[This optional operation is not yet supported.]]>
  8266. </doc>
  8267. </method>
  8268. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8269. abstract="false" native="false" synchronized="false"
  8270. static="false" final="false" visibility="public"
  8271. deprecated="not deprecated">
  8272. <param name="file" type="org.apache.hadoop.fs.Path"/>
  8273. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8274. <param name="overwrite" type="boolean"/>
  8275. <param name="bufferSize" type="int"/>
  8276. <param name="replication" type="short"/>
  8277. <param name="blockSize" type="long"/>
  8278. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8279. <exception name="IOException" type="java.io.IOException"/>
  8280. <doc>
  8281. <![CDATA[@param permission Currently ignored.]]>
  8282. </doc>
  8283. </method>
  8284. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  8285. abstract="false" native="false" synchronized="false"
  8286. static="false" final="false" visibility="public"
  8287. deprecated="not deprecated">
  8288. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8289. <param name="bufferSize" type="int"/>
  8290. <exception name="IOException" type="java.io.IOException"/>
  8291. </method>
  8292. <method name="rename" return="boolean"
  8293. abstract="false" native="false" synchronized="false"
  8294. static="false" final="false" visibility="public"
  8295. deprecated="not deprecated">
  8296. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8297. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8298. <exception name="IOException" type="java.io.IOException"/>
  8299. </method>
  8300. <method name="delete" return="boolean"
  8301. abstract="false" native="false" synchronized="false"
  8302. static="false" final="false" visibility="public"
  8303. deprecated="not deprecated">
  8304. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8305. <param name="recursive" type="boolean"/>
  8306. <exception name="IOException" type="java.io.IOException"/>
  8307. </method>
  8308. <method name="delete" return="boolean"
  8309. abstract="false" native="false" synchronized="false"
  8310. static="false" final="false" visibility="public"
  8311. deprecated="not deprecated">
  8312. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8313. <exception name="IOException" type="java.io.IOException"/>
  8314. </method>
  8315. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  8316. abstract="false" native="false" synchronized="false"
  8317. static="false" final="false" visibility="public"
  8318. deprecated="not deprecated">
  8319. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8320. <exception name="IOException" type="java.io.IOException"/>
  8321. <doc>
  8322. <![CDATA[FileStatus for S3 file systems.]]>
  8323. </doc>
  8324. </method>
  8325. <doc>
  8326. <![CDATA[<p>
  8327. A block-based {@link FileSystem} backed by
  8328. <a href="http://aws.amazon.com/s3">Amazon S3</a>.
  8329. </p>
  8330. @see NativeS3FileSystem]]>
  8331. </doc>
  8332. </class>
  8333. <!-- end class org.apache.hadoop.fs.s3.S3FileSystem -->
  8334. <!-- start class org.apache.hadoop.fs.s3.S3FileSystemException -->
  8335. <class name="S3FileSystemException" extends="java.io.IOException"
  8336. abstract="false"
  8337. static="false" final="false" visibility="public"
  8338. deprecated="not deprecated">
  8339. <constructor name="S3FileSystemException" type="java.lang.String"
  8340. static="false" final="false" visibility="public"
  8341. deprecated="not deprecated">
  8342. </constructor>
  8343. <doc>
  8344. <![CDATA[Thrown when there is a fatal exception while using {@link S3FileSystem}.]]>
  8345. </doc>
  8346. </class>
  8347. <!-- end class org.apache.hadoop.fs.s3.S3FileSystemException -->
  8348. <!-- start class org.apache.hadoop.fs.s3.VersionMismatchException -->
  8349. <class name="VersionMismatchException" extends="org.apache.hadoop.fs.s3.S3FileSystemException"
  8350. abstract="false"
  8351. static="false" final="false" visibility="public"
  8352. deprecated="not deprecated">
  8353. <constructor name="VersionMismatchException" type="java.lang.String, java.lang.String"
  8354. static="false" final="false" visibility="public"
  8355. deprecated="not deprecated">
  8356. </constructor>
  8357. <doc>
  8358. <![CDATA[Thrown when Hadoop cannot read the version of the data stored
  8359. in {@link S3FileSystem}.]]>
  8360. </doc>
  8361. </class>
  8362. <!-- end class org.apache.hadoop.fs.s3.VersionMismatchException -->
  8363. </package>
  8364. <package name="org.apache.hadoop.fs.s3native">
  8365. <!-- start class org.apache.hadoop.fs.s3native.NativeS3FileSystem -->
  8366. <class name="NativeS3FileSystem" extends="org.apache.hadoop.fs.FileSystem"
  8367. abstract="false"
  8368. static="false" final="false" visibility="public"
  8369. deprecated="not deprecated">
  8370. <constructor name="NativeS3FileSystem"
  8371. static="false" final="false" visibility="public"
  8372. deprecated="not deprecated">
  8373. </constructor>
  8374. <constructor name="NativeS3FileSystem" type="org.apache.hadoop.fs.s3native.NativeFileSystemStore"
  8375. static="false" final="false" visibility="public"
  8376. deprecated="not deprecated">
  8377. </constructor>
  8378. <method name="initialize"
  8379. abstract="false" native="false" synchronized="false"
  8380. static="false" final="false" visibility="public"
  8381. deprecated="not deprecated">
  8382. <param name="uri" type="java.net.URI"/>
  8383. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8384. <exception name="IOException" type="java.io.IOException"/>
  8385. </method>
  8386. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  8387. abstract="false" native="false" synchronized="false"
  8388. static="false" final="false" visibility="public"
  8389. deprecated="not deprecated">
  8390. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8391. <param name="bufferSize" type="int"/>
  8392. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8393. <exception name="IOException" type="java.io.IOException"/>
  8394. <doc>
  8395. <![CDATA[This optional operation is not yet supported.]]>
  8396. </doc>
  8397. </method>
  8398. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8399. abstract="false" native="false" synchronized="false"
  8400. static="false" final="false" visibility="public"
  8401. deprecated="not deprecated">
  8402. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8403. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8404. <param name="overwrite" type="boolean"/>
  8405. <param name="bufferSize" type="int"/>
  8406. <param name="replication" type="short"/>
  8407. <param name="blockSize" type="long"/>
  8408. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8409. <exception name="IOException" type="java.io.IOException"/>
  8410. </method>
  8411. <method name="delete" return="boolean"
  8412. abstract="false" native="false" synchronized="false"
  8413. static="false" final="false" visibility="public"
  8414. deprecated="not deprecated">
  8415. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8416. <exception name="IOException" type="java.io.IOException"/>
  8417. </method>
  8418. <method name="delete" return="boolean"
  8419. abstract="false" native="false" synchronized="false"
  8420. static="false" final="false" visibility="public"
  8421. deprecated="not deprecated">
  8422. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8423. <param name="recurse" type="boolean"/>
  8424. <exception name="IOException" type="java.io.IOException"/>
  8425. </method>
  8426. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  8427. abstract="false" native="false" synchronized="false"
  8428. static="false" final="false" visibility="public"
  8429. deprecated="not deprecated">
  8430. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8431. <exception name="IOException" type="java.io.IOException"/>
  8432. </method>
  8433. <method name="getUri" return="java.net.URI"
  8434. abstract="false" native="false" synchronized="false"
  8435. static="false" final="false" visibility="public"
  8436. deprecated="not deprecated">
  8437. </method>
  8438. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  8439. abstract="false" native="false" synchronized="false"
  8440. static="false" final="false" visibility="public"
  8441. deprecated="not deprecated">
  8442. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8443. <exception name="IOException" type="java.io.IOException"/>
  8444. <doc>
  8445. <![CDATA[<p>
  8446. If <code>f</code> is a file, this method will make a single call to S3.
  8447. If <code>f</code> is a directory, this method will make a maximum of
  8448. (<i>n</i> / 1000) + 2 calls to S3, where <i>n</i> is the total number of
  8449. files and directories contained directly in <code>f</code>.
  8450. </p>]]>
  8451. </doc>
  8452. </method>
  8453. <method name="mkdirs" return="boolean"
  8454. abstract="false" native="false" synchronized="false"
  8455. static="false" final="false" visibility="public"
  8456. deprecated="not deprecated">
  8457. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8458. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8459. <exception name="IOException" type="java.io.IOException"/>
  8460. </method>
  8461. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  8462. abstract="false" native="false" synchronized="false"
  8463. static="false" final="false" visibility="public"
  8464. deprecated="not deprecated">
  8465. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8466. <param name="bufferSize" type="int"/>
  8467. <exception name="IOException" type="java.io.IOException"/>
  8468. </method>
  8469. <method name="rename" return="boolean"
  8470. abstract="false" native="false" synchronized="false"
  8471. static="false" final="false" visibility="public"
  8472. deprecated="not deprecated">
  8473. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8474. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8475. <exception name="IOException" type="java.io.IOException"/>
  8476. </method>
  8477. <method name="setWorkingDirectory"
  8478. abstract="false" native="false" synchronized="false"
  8479. static="false" final="false" visibility="public"
  8480. deprecated="not deprecated">
  8481. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  8482. <doc>
  8483. <![CDATA[Set the working directory to the given directory.]]>
  8484. </doc>
  8485. </method>
  8486. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  8487. abstract="false" native="false" synchronized="false"
  8488. static="false" final="false" visibility="public"
  8489. deprecated="not deprecated">
  8490. </method>
  8491. <field name="LOG" type="org.apache.commons.logging.Log"
  8492. transient="false" volatile="false"
  8493. static="true" final="true" visibility="public"
  8494. deprecated="not deprecated">
  8495. </field>
  8496. <doc>
  8497. <![CDATA[<p>
  8498. A {@link FileSystem} for reading and writing files stored on
  8499. <a href="http://aws.amazon.com/s3">Amazon S3</a>.
  8500. Unlike {@link org.apache.hadoop.fs.s3.S3FileSystem} this implementation
  8501. stores files on S3 in their
  8502. native form so they can be read by other S3 tools.
  8503. A note about directories. S3 of course has no "native" support for them.
  8504. The idiom we choose then is: for any directory created by this class,
  8505. we use an empty object "#{dirpath}_$folder$" as a marker.
  8506. Further, to interoperate with other S3 tools, we also accept the following:
  8507. - an object "#{dirpath}/' denoting a directory marker
  8508. - if there exists any objects with the prefix "#{dirpath}/", then the
  8509. directory is said to exist
  8510. - if both a file with the name of a directory and a marker for that
  8511. directory exists, then the *file masks the directory*, and the directory
  8512. is never returned.
  8513. </p>
  8514. @see org.apache.hadoop.fs.s3.S3FileSystem]]>
  8515. </doc>
  8516. </class>
  8517. <!-- end class org.apache.hadoop.fs.s3native.NativeS3FileSystem -->
  8518. </package>
  8519. <package name="org.apache.hadoop.fs.shell">
  8520. <!-- start class org.apache.hadoop.fs.shell.Command -->
  8521. <class name="Command" extends="org.apache.hadoop.conf.Configured"
  8522. abstract="true"
  8523. static="false" final="false" visibility="public"
  8524. deprecated="not deprecated">
  8525. <constructor name="Command" type="org.apache.hadoop.conf.Configuration"
  8526. static="false" final="false" visibility="protected"
  8527. deprecated="not deprecated">
  8528. <doc>
  8529. <![CDATA[Constructor]]>
  8530. </doc>
  8531. </constructor>
  8532. <method name="getCommandName" return="java.lang.String"
  8533. abstract="true" native="false" synchronized="false"
  8534. static="false" final="false" visibility="public"
  8535. deprecated="not deprecated">
  8536. <doc>
  8537. <![CDATA[Return the command's name excluding the leading character -]]>
  8538. </doc>
  8539. </method>
  8540. <method name="run"
  8541. abstract="true" native="false" synchronized="false"
  8542. static="false" final="false" visibility="protected"
  8543. deprecated="not deprecated">
  8544. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8545. <exception name="IOException" type="java.io.IOException"/>
  8546. <doc>
  8547. <![CDATA[Execute the command on the input path
  8548. @param path the input path
  8549. @throws IOException if any error occurs]]>
  8550. </doc>
  8551. </method>
  8552. <method name="runAll" return="int"
  8553. abstract="false" native="false" synchronized="false"
  8554. static="false" final="false" visibility="public"
  8555. deprecated="not deprecated">
  8556. <doc>
  8557. <![CDATA[For each source path, execute the command
  8558. @return 0 if it runs successfully; -1 if it fails]]>
  8559. </doc>
  8560. </method>
  8561. <field name="args" type="java.lang.String[]"
  8562. transient="false" volatile="false"
  8563. static="false" final="false" visibility="protected"
  8564. deprecated="not deprecated">
  8565. </field>
  8566. <doc>
  8567. <![CDATA[An abstract class for the execution of a file system command]]>
  8568. </doc>
  8569. </class>
  8570. <!-- end class org.apache.hadoop.fs.shell.Command -->
  8571. <!-- start class org.apache.hadoop.fs.shell.CommandFormat -->
  8572. <class name="CommandFormat" extends="java.lang.Object"
  8573. abstract="false"
  8574. static="false" final="false" visibility="public"
  8575. deprecated="not deprecated">
  8576. <constructor name="CommandFormat" type="java.lang.String, int, int, java.lang.String[]"
  8577. static="false" final="false" visibility="public"
  8578. deprecated="not deprecated">
  8579. <doc>
  8580. <![CDATA[constructor]]>
  8581. </doc>
  8582. </constructor>
  8583. <method name="parse" return="java.util.List"
  8584. abstract="false" native="false" synchronized="false"
  8585. static="false" final="false" visibility="public"
  8586. deprecated="not deprecated">
  8587. <param name="args" type="java.lang.String[]"/>
  8588. <param name="pos" type="int"/>
  8589. <doc>
  8590. <![CDATA[Parse parameters starting from the given position
  8591. @param args an array of input arguments
  8592. @param pos the position at which starts to parse
  8593. @return a list of parameters]]>
  8594. </doc>
  8595. </method>
  8596. <method name="getOpt" return="boolean"
  8597. abstract="false" native="false" synchronized="false"
  8598. static="false" final="false" visibility="public"
  8599. deprecated="not deprecated">
  8600. <param name="option" type="java.lang.String"/>
  8601. <doc>
  8602. <![CDATA[Return if the option is set or not
  8603. @param option String representation of an option
  8604. @return true is the option is set; false otherwise]]>
  8605. </doc>
  8606. </method>
  8607. <doc>
  8608. <![CDATA[Parse the args of a command and check the format of args.]]>
  8609. </doc>
  8610. </class>
  8611. <!-- end class org.apache.hadoop.fs.shell.CommandFormat -->
  8612. <!-- start class org.apache.hadoop.fs.shell.Count -->
  8613. <class name="Count" extends="org.apache.hadoop.fs.shell.Command"
  8614. abstract="false"
  8615. static="false" final="false" visibility="public"
  8616. deprecated="not deprecated">
  8617. <constructor name="Count" type="java.lang.String[], int, org.apache.hadoop.conf.Configuration"
  8618. static="false" final="false" visibility="public"
  8619. deprecated="not deprecated">
  8620. <doc>
  8621. <![CDATA[Constructor
  8622. @param cmd the count command
  8623. @param pos the starting index of the arguments]]>
  8624. </doc>
  8625. </constructor>
  8626. <method name="matches" return="boolean"
  8627. abstract="false" native="false" synchronized="false"
  8628. static="true" final="false" visibility="public"
  8629. deprecated="not deprecated">
  8630. <param name="cmd" type="java.lang.String"/>
  8631. <doc>
  8632. <![CDATA[Check if a command is the count command
  8633. @param cmd A string representation of a command starting with "-"
  8634. @return true if this is a count command; false otherwise]]>
  8635. </doc>
  8636. </method>
  8637. <method name="getCommandName" return="java.lang.String"
  8638. abstract="false" native="false" synchronized="false"
  8639. static="false" final="false" visibility="public"
  8640. deprecated="not deprecated">
  8641. </method>
  8642. <method name="run"
  8643. abstract="false" native="false" synchronized="false"
  8644. static="false" final="false" visibility="protected"
  8645. deprecated="not deprecated">
  8646. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8647. <exception name="IOException" type="java.io.IOException"/>
  8648. </method>
  8649. <field name="NAME" type="java.lang.String"
  8650. transient="false" volatile="false"
  8651. static="true" final="true" visibility="public"
  8652. deprecated="not deprecated">
  8653. </field>
  8654. <field name="USAGE" type="java.lang.String"
  8655. transient="false" volatile="false"
  8656. static="true" final="true" visibility="public"
  8657. deprecated="not deprecated">
  8658. </field>
  8659. <field name="DESCRIPTION" type="java.lang.String"
  8660. transient="false" volatile="false"
  8661. static="true" final="true" visibility="public"
  8662. deprecated="not deprecated">
  8663. </field>
  8664. <doc>
  8665. <![CDATA[Count the number of directories, files, bytes, quota, and remaining quota.]]>
  8666. </doc>
  8667. </class>
  8668. <!-- end class org.apache.hadoop.fs.shell.Count -->
  8669. </package>
  8670. <package name="org.apache.hadoop.http">
  8671. <!-- start class org.apache.hadoop.http.AdminAuthorizedServlet -->
  8672. <class name="AdminAuthorizedServlet" extends="org.mortbay.jetty.servlet.DefaultServlet"
  8673. abstract="false"
  8674. static="false" final="false" visibility="public"
  8675. deprecated="not deprecated">
  8676. <constructor name="AdminAuthorizedServlet"
  8677. static="false" final="false" visibility="public"
  8678. deprecated="not deprecated">
  8679. </constructor>
  8680. <method name="doGet"
  8681. abstract="false" native="false" synchronized="false"
  8682. static="false" final="false" visibility="protected"
  8683. deprecated="not deprecated">
  8684. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  8685. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  8686. <exception name="ServletException" type="javax.servlet.ServletException"/>
  8687. <exception name="IOException" type="java.io.IOException"/>
  8688. </method>
  8689. <doc>
  8690. <![CDATA[General servlet which is admin-authorized.]]>
  8691. </doc>
  8692. </class>
  8693. <!-- end class org.apache.hadoop.http.AdminAuthorizedServlet -->
  8694. <!-- start interface org.apache.hadoop.http.FilterContainer -->
  8695. <interface name="FilterContainer" abstract="true"
  8696. static="false" final="false" visibility="public"
  8697. deprecated="not deprecated">
  8698. <method name="addFilter"
  8699. abstract="false" native="false" synchronized="false"
  8700. static="false" final="false" visibility="public"
  8701. deprecated="not deprecated">
  8702. <param name="name" type="java.lang.String"/>
  8703. <param name="classname" type="java.lang.String"/>
  8704. <param name="parameters" type="java.util.Map"/>
  8705. <doc>
  8706. <![CDATA[Add a filter to the container.
  8707. @param name Filter name
  8708. @param classname Filter class name
  8709. @param parameters a map from parameter names to initial values]]>
  8710. </doc>
  8711. </method>
  8712. <method name="addGlobalFilter"
  8713. abstract="false" native="false" synchronized="false"
  8714. static="false" final="false" visibility="public"
  8715. deprecated="not deprecated">
  8716. <param name="name" type="java.lang.String"/>
  8717. <param name="classname" type="java.lang.String"/>
  8718. <param name="parameters" type="java.util.Map"/>
  8719. <doc>
  8720. <![CDATA[Add a global filter to the container.
  8721. @param name filter name
  8722. @param classname filter class name
  8723. @param parameters a map from parameter names to initial values]]>
  8724. </doc>
  8725. </method>
  8726. <doc>
  8727. <![CDATA[A container class for javax.servlet.Filter.]]>
  8728. </doc>
  8729. </interface>
  8730. <!-- end interface org.apache.hadoop.http.FilterContainer -->
  8731. <!-- start class org.apache.hadoop.http.FilterInitializer -->
  8732. <class name="FilterInitializer" extends="java.lang.Object"
  8733. abstract="true"
  8734. static="false" final="false" visibility="public"
  8735. deprecated="not deprecated">
  8736. <constructor name="FilterInitializer"
  8737. static="false" final="false" visibility="public"
  8738. deprecated="not deprecated">
  8739. </constructor>
  8740. <method name="initFilter"
  8741. abstract="true" native="false" synchronized="false"
  8742. static="false" final="false" visibility="public"
  8743. deprecated="not deprecated">
  8744. <param name="container" type="org.apache.hadoop.http.FilterContainer"/>
  8745. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8746. <doc>
  8747. <![CDATA[Initialize a Filter to a FilterContainer.
  8748. @param container The filter container
  8749. @param conf Configuration for run-time parameters]]>
  8750. </doc>
  8751. </method>
  8752. <doc>
  8753. <![CDATA[Initialize a javax.servlet.Filter.]]>
  8754. </doc>
  8755. </class>
  8756. <!-- end class org.apache.hadoop.http.FilterInitializer -->
  8757. <!-- start class org.apache.hadoop.http.HtmlQuoting -->
  8758. <class name="HtmlQuoting" extends="java.lang.Object"
  8759. abstract="false"
  8760. static="false" final="false" visibility="public"
  8761. deprecated="not deprecated">
  8762. <constructor name="HtmlQuoting"
  8763. static="false" final="false" visibility="public"
  8764. deprecated="not deprecated">
  8765. </constructor>
  8766. <method name="needsQuoting" return="boolean"
  8767. abstract="false" native="false" synchronized="false"
  8768. static="true" final="false" visibility="public"
  8769. deprecated="not deprecated">
  8770. <param name="data" type="byte[]"/>
  8771. <param name="off" type="int"/>
  8772. <param name="len" type="int"/>
  8773. <doc>
  8774. <![CDATA[Does the given string need to be quoted?
  8775. @param data the string to check
  8776. @param off the starting position
  8777. @param len the number of bytes to check
  8778. @return does the string contain any of the active html characters?]]>
  8779. </doc>
  8780. </method>
  8781. <method name="needsQuoting" return="boolean"
  8782. abstract="false" native="false" synchronized="false"
  8783. static="true" final="false" visibility="public"
  8784. deprecated="not deprecated">
  8785. <param name="str" type="java.lang.String"/>
  8786. <doc>
  8787. <![CDATA[Does the given string need to be quoted?
  8788. @param str the string to check
  8789. @return does the string contain any of the active html characters?]]>
  8790. </doc>
  8791. </method>
  8792. <method name="quoteHtmlChars"
  8793. abstract="false" native="false" synchronized="false"
  8794. static="true" final="false" visibility="public"
  8795. deprecated="not deprecated">
  8796. <param name="output" type="java.io.OutputStream"/>
  8797. <param name="buffer" type="byte[]"/>
  8798. <param name="off" type="int"/>
  8799. <param name="len" type="int"/>
  8800. <exception name="IOException" type="java.io.IOException"/>
  8801. <doc>
  8802. <![CDATA[Quote all of the active HTML characters in the given string as they
  8803. are added to the buffer.
  8804. @param output the stream to write the output to
  8805. @param buffer the byte array to take the characters from
  8806. @param off the index of the first byte to quote
  8807. @param len the number of bytes to quote]]>
  8808. </doc>
  8809. </method>
  8810. <method name="quoteHtmlChars" return="java.lang.String"
  8811. abstract="false" native="false" synchronized="false"
  8812. static="true" final="false" visibility="public"
  8813. deprecated="not deprecated">
  8814. <param name="item" type="java.lang.String"/>
  8815. <doc>
  8816. <![CDATA[Quote the given item to make it html-safe.
  8817. @param item the string to quote
  8818. @return the quoted string]]>
  8819. </doc>
  8820. </method>
  8821. <method name="quoteOutputStream" return="java.io.OutputStream"
  8822. abstract="false" native="false" synchronized="false"
  8823. static="true" final="false" visibility="public"
  8824. deprecated="not deprecated">
  8825. <param name="out" type="java.io.OutputStream"/>
  8826. <exception name="IOException" type="java.io.IOException"/>
  8827. <doc>
  8828. <![CDATA[Return an output stream that quotes all of the output.
  8829. @param out the stream to write the quoted output to
  8830. @return a new stream that the application show write to
  8831. @throws IOException if the underlying output fails]]>
  8832. </doc>
  8833. </method>
  8834. <method name="unquoteHtmlChars" return="java.lang.String"
  8835. abstract="false" native="false" synchronized="false"
  8836. static="true" final="false" visibility="public"
  8837. deprecated="not deprecated">
  8838. <param name="item" type="java.lang.String"/>
  8839. <doc>
  8840. <![CDATA[Remove HTML quoting from a string.
  8841. @param item the string to unquote
  8842. @return the unquoted string]]>
  8843. </doc>
  8844. </method>
  8845. <method name="main"
  8846. abstract="false" native="false" synchronized="false"
  8847. static="true" final="false" visibility="public"
  8848. deprecated="not deprecated">
  8849. <param name="args" type="java.lang.String[]"/>
  8850. <exception name="Exception" type="java.lang.Exception"/>
  8851. </method>
  8852. <doc>
  8853. <![CDATA[This class is responsible for quoting HTML characters.]]>
  8854. </doc>
  8855. </class>
  8856. <!-- end class org.apache.hadoop.http.HtmlQuoting -->
  8857. <!-- start class org.apache.hadoop.http.HttpServer -->
  8858. <class name="HttpServer" extends="java.lang.Object"
  8859. abstract="false"
  8860. static="false" final="false" visibility="public"
  8861. deprecated="not deprecated">
  8862. <implements name="org.apache.hadoop.http.FilterContainer"/>
  8863. <constructor name="HttpServer" type="java.lang.String, java.lang.String, int, boolean"
  8864. static="false" final="false" visibility="public"
  8865. deprecated="not deprecated">
  8866. <exception name="IOException" type="java.io.IOException"/>
  8867. <doc>
  8868. <![CDATA[Same as this(name, bindAddress, port, findPort, null);]]>
  8869. </doc>
  8870. </constructor>
  8871. <constructor name="HttpServer" type="java.lang.String, java.lang.String, int, boolean, org.apache.hadoop.conf.Configuration"
  8872. static="false" final="false" visibility="public"
  8873. deprecated="not deprecated">
  8874. <exception name="IOException" type="java.io.IOException"/>
  8875. </constructor>
  8876. <constructor name="HttpServer" type="java.lang.String, java.lang.String, int, boolean, org.apache.hadoop.conf.Configuration, org.mortbay.jetty.Connector"
  8877. static="false" final="false" visibility="public"
  8878. deprecated="not deprecated">
  8879. <exception name="IOException" type="java.io.IOException"/>
  8880. </constructor>
  8881. <constructor name="HttpServer" type="java.lang.String, java.lang.String, int, boolean, org.apache.hadoop.conf.Configuration, org.apache.hadoop.security.authorize.AccessControlList"
  8882. static="false" final="false" visibility="public"
  8883. deprecated="not deprecated">
  8884. <exception name="IOException" type="java.io.IOException"/>
  8885. <doc>
  8886. <![CDATA[Create a status server on the given port.
  8887. The jsp scripts are taken from src/webapps/<name>.
  8888. @param name The name of the server
  8889. @param port The port to use on the server
  8890. @param findPort whether the server should start at the given port and
  8891. increment by 1 until it finds a free port.
  8892. @param conf Configuration
  8893. @param adminsAcl {@link AccessControlList} of the admins]]>
  8894. </doc>
  8895. </constructor>
  8896. <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"
  8897. static="false" final="false" visibility="public"
  8898. deprecated="not deprecated">
  8899. <exception name="IOException" type="java.io.IOException"/>
  8900. </constructor>
  8901. <method name="createBaseListener" return="org.mortbay.jetty.Connector"
  8902. abstract="false" native="false" synchronized="false"
  8903. static="false" final="false" visibility="public"
  8904. deprecated="not deprecated">
  8905. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8906. <exception name="IOException" type="java.io.IOException"/>
  8907. <doc>
  8908. <![CDATA[Create a required listener for the Jetty instance listening on the port
  8909. provided. This wrapper and all subclasses must create at least one
  8910. listener.]]>
  8911. </doc>
  8912. </method>
  8913. <method name="createDefaultChannelConnector" return="org.mortbay.jetty.Connector"
  8914. abstract="false" native="false" synchronized="false"
  8915. static="true" final="false" visibility="public"
  8916. deprecated="not deprecated">
  8917. </method>
  8918. <method name="addDefaultApps"
  8919. abstract="false" native="false" synchronized="false"
  8920. static="false" final="false" visibility="protected"
  8921. deprecated="not deprecated">
  8922. <param name="parent" type="org.mortbay.jetty.handler.ContextHandlerCollection"/>
  8923. <param name="appDir" type="java.lang.String"/>
  8924. <exception name="IOException" type="java.io.IOException"/>
  8925. <doc>
  8926. <![CDATA[Add default apps.
  8927. @param appDir The application directory
  8928. @throws IOException]]>
  8929. </doc>
  8930. </method>
  8931. <method name="addDefaultServlets"
  8932. abstract="false" native="false" synchronized="false"
  8933. static="false" final="false" visibility="protected"
  8934. deprecated="not deprecated">
  8935. <doc>
  8936. <![CDATA[Add default servlets.]]>
  8937. </doc>
  8938. </method>
  8939. <method name="addContext"
  8940. abstract="false" native="false" synchronized="false"
  8941. static="false" final="false" visibility="public"
  8942. deprecated="not deprecated">
  8943. <param name="ctxt" type="org.mortbay.jetty.servlet.Context"/>
  8944. <param name="isFiltered" type="boolean"/>
  8945. <exception name="IOException" type="java.io.IOException"/>
  8946. </method>
  8947. <method name="addContext"
  8948. abstract="false" native="false" synchronized="false"
  8949. static="false" final="false" visibility="protected"
  8950. deprecated="not deprecated">
  8951. <param name="pathSpec" type="java.lang.String"/>
  8952. <param name="dir" type="java.lang.String"/>
  8953. <param name="isFiltered" type="boolean"/>
  8954. <exception name="IOException" type="java.io.IOException"/>
  8955. <doc>
  8956. <![CDATA[Add a context
  8957. @param pathSpec The path spec for the context
  8958. @param dir The directory containing the context
  8959. @param isFiltered if true, the servlet is added to the filter path mapping
  8960. @throws IOException]]>
  8961. </doc>
  8962. </method>
  8963. <method name="setAttribute"
  8964. abstract="false" native="false" synchronized="false"
  8965. static="false" final="false" visibility="public"
  8966. deprecated="not deprecated">
  8967. <param name="name" type="java.lang.String"/>
  8968. <param name="value" type="java.lang.Object"/>
  8969. <doc>
  8970. <![CDATA[Set a value in the webapp context. These values are available to the jsp
  8971. pages as "application.getAttribute(name)".
  8972. @param name The name of the attribute
  8973. @param value The value of the attribute]]>
  8974. </doc>
  8975. </method>
  8976. <method name="setAttribute"
  8977. abstract="false" native="false" synchronized="false"
  8978. static="false" final="false" visibility="public"
  8979. deprecated="not deprecated">
  8980. <param name="context" type="org.mortbay.jetty.servlet.Context"/>
  8981. <param name="name" type="java.lang.String"/>
  8982. <param name="value" type="java.lang.Object"/>
  8983. <doc>
  8984. <![CDATA[Set a value in the webapp context. These values are available to the jsp
  8985. pages as "application.getAttribute(name)".
  8986. @param context Context to add attribute
  8987. @param name The name of the attribute
  8988. @param value The value of the attribute]]>
  8989. </doc>
  8990. </method>
  8991. <method name="addJerseyResourcePackage"
  8992. abstract="false" native="false" synchronized="false"
  8993. static="false" final="false" visibility="public"
  8994. deprecated="not deprecated">
  8995. <param name="packageName" type="java.lang.String"/>
  8996. <param name="pathSpec" type="java.lang.String"/>
  8997. <doc>
  8998. <![CDATA[Add a Jersey resource package.
  8999. @param packageName The Java package name containing the Jersey resource.
  9000. @param pathSpec The path spec for the servlet]]>
  9001. </doc>
  9002. </method>
  9003. <method name="addServlet"
  9004. abstract="false" native="false" synchronized="false"
  9005. static="false" final="false" visibility="public"
  9006. deprecated="not deprecated">
  9007. <param name="name" type="java.lang.String"/>
  9008. <param name="pathSpec" type="java.lang.String"/>
  9009. <param name="clazz" type="java.lang.Class"/>
  9010. <doc>
  9011. <![CDATA[Add a servlet in the server.
  9012. @param name The name of the servlet (can be passed as null)
  9013. @param pathSpec The path spec for the servlet
  9014. @param clazz The servlet class]]>
  9015. </doc>
  9016. </method>
  9017. <method name="addInternalServlet"
  9018. abstract="false" native="false" synchronized="false"
  9019. static="false" final="false" visibility="public"
  9020. deprecated="this is a temporary method">
  9021. <param name="name" type="java.lang.String"/>
  9022. <param name="pathSpec" type="java.lang.String"/>
  9023. <param name="clazz" type="java.lang.Class"/>
  9024. <doc>
  9025. <![CDATA[Add an internal servlet in the server.
  9026. @param name The name of the servlet (can be passed as null)
  9027. @param pathSpec The path spec for the servlet
  9028. @param clazz The servlet class
  9029. @deprecated this is a temporary method]]>
  9030. </doc>
  9031. </method>
  9032. <method name="addInternalServlet"
  9033. abstract="false" native="false" synchronized="false"
  9034. static="false" final="false" visibility="public"
  9035. deprecated="not deprecated">
  9036. <param name="name" type="java.lang.String"/>
  9037. <param name="pathSpec" type="java.lang.String"/>
  9038. <param name="clazz" type="java.lang.Class"/>
  9039. <param name="requireAuth" type="boolean"/>
  9040. <param name="useKsslForAuth" type="boolean"/>
  9041. <doc>
  9042. <![CDATA[Add an internal servlet in the server, specifying whether or not to
  9043. protect with Kerberos authentication.
  9044. Note: This method is to be used for adding servlets that facilitate
  9045. internal communication and not for user facing functionality. For
  9046. servlets added using this method, filters (except internal Kerberos
  9047. filters) are not enabled.
  9048. @param name The name of the servlet (can be passed as null)
  9049. @param pathSpec The path spec for the servlet
  9050. @param clazz The servlet class
  9051. @param requireAuth Require Kerberos authenticate to access servlet
  9052. @param useKsslForAuth true to use KSSL for auth, false to use SPNEGO]]>
  9053. </doc>
  9054. </method>
  9055. <method name="addFilter"
  9056. abstract="false" native="false" synchronized="false"
  9057. static="false" final="false" visibility="public"
  9058. deprecated="not deprecated">
  9059. <param name="name" type="java.lang.String"/>
  9060. <param name="classname" type="java.lang.String"/>
  9061. <param name="parameters" type="java.util.Map"/>
  9062. <doc>
  9063. <![CDATA[{@inheritDoc}]]>
  9064. </doc>
  9065. </method>
  9066. <method name="addGlobalFilter"
  9067. abstract="false" native="false" synchronized="false"
  9068. static="false" final="false" visibility="public"
  9069. deprecated="not deprecated">
  9070. <param name="name" type="java.lang.String"/>
  9071. <param name="classname" type="java.lang.String"/>
  9072. <param name="parameters" type="java.util.Map"/>
  9073. <doc>
  9074. <![CDATA[{@inheritDoc}]]>
  9075. </doc>
  9076. </method>
  9077. <method name="defineFilter"
  9078. abstract="false" native="false" synchronized="false"
  9079. static="false" final="false" visibility="protected"
  9080. deprecated="not deprecated">
  9081. <param name="ctx" type="org.mortbay.jetty.servlet.Context"/>
  9082. <param name="name" type="java.lang.String"/>
  9083. <param name="classname" type="java.lang.String"/>
  9084. <param name="parameters" type="java.util.Map"/>
  9085. <param name="urls" type="java.lang.String[]"/>
  9086. <doc>
  9087. <![CDATA[Define a filter for a context and set up default url mappings.]]>
  9088. </doc>
  9089. </method>
  9090. <method name="addFilterPathMapping"
  9091. abstract="false" native="false" synchronized="false"
  9092. static="false" final="false" visibility="protected"
  9093. deprecated="not deprecated">
  9094. <param name="pathSpec" type="java.lang.String"/>
  9095. <param name="webAppCtx" type="org.mortbay.jetty.servlet.Context"/>
  9096. <doc>
  9097. <![CDATA[Add the path spec to the filter path mapping.
  9098. @param pathSpec The path spec
  9099. @param webAppCtx The WebApplicationContext to add to]]>
  9100. </doc>
  9101. </method>
  9102. <method name="getAttribute" return="java.lang.Object"
  9103. abstract="false" native="false" synchronized="false"
  9104. static="false" final="false" visibility="public"
  9105. deprecated="not deprecated">
  9106. <param name="name" type="java.lang.String"/>
  9107. <doc>
  9108. <![CDATA[Get the value in the webapp context.
  9109. @param name The name of the attribute
  9110. @return The value of the attribute]]>
  9111. </doc>
  9112. </method>
  9113. <method name="getWebAppsPath" return="java.lang.String"
  9114. abstract="false" native="false" synchronized="false"
  9115. static="false" final="false" visibility="protected"
  9116. deprecated="not deprecated">
  9117. <exception name="IOException" type="java.io.IOException"/>
  9118. <doc>
  9119. <![CDATA[Get the pathname to the webapps files.
  9120. @return the pathname as a URL
  9121. @throws IOException if 'webapps' directory cannot be found on CLASSPATH.]]>
  9122. </doc>
  9123. </method>
  9124. <method name="getPort" return="int"
  9125. abstract="false" native="false" synchronized="false"
  9126. static="false" final="false" visibility="public"
  9127. deprecated="not deprecated">
  9128. <doc>
  9129. <![CDATA[Get the port that the server is on
  9130. @return the port]]>
  9131. </doc>
  9132. </method>
  9133. <method name="setThreads"
  9134. abstract="false" native="false" synchronized="false"
  9135. static="false" final="false" visibility="public"
  9136. deprecated="not deprecated">
  9137. <param name="min" type="int"/>
  9138. <param name="max" type="int"/>
  9139. <doc>
  9140. <![CDATA[Set the min, max number of worker threads (simultaneous connections).]]>
  9141. </doc>
  9142. </method>
  9143. <method name="addSslListener"
  9144. abstract="false" native="false" synchronized="false"
  9145. static="false" final="false" visibility="public"
  9146. deprecated="Use {@link #addSslListener(InetSocketAddress, Configuration, boolean)}">
  9147. <param name="addr" type="java.net.InetSocketAddress"/>
  9148. <param name="keystore" type="java.lang.String"/>
  9149. <param name="storPass" type="java.lang.String"/>
  9150. <param name="keyPass" type="java.lang.String"/>
  9151. <exception name="IOException" type="java.io.IOException"/>
  9152. <doc>
  9153. <![CDATA[Configure an ssl listener on the server.
  9154. @param addr address to listen on
  9155. @param keystore location of the keystore
  9156. @param storPass password for the keystore
  9157. @param keyPass password for the key
  9158. @deprecated Use {@link #addSslListener(InetSocketAddress, Configuration, boolean)}]]>
  9159. </doc>
  9160. </method>
  9161. <method name="addSslListener"
  9162. abstract="false" native="false" synchronized="false"
  9163. static="false" final="false" visibility="public"
  9164. deprecated="not deprecated">
  9165. <param name="addr" type="java.net.InetSocketAddress"/>
  9166. <param name="sslConf" type="org.apache.hadoop.conf.Configuration"/>
  9167. <param name="needClientAuth" type="boolean"/>
  9168. <exception name="IOException" type="java.io.IOException"/>
  9169. <doc>
  9170. <![CDATA[Configure an ssl listener on the server.
  9171. @param addr address to listen on
  9172. @param sslConf conf to retrieve ssl options
  9173. @param needClientAuth whether client authentication is required]]>
  9174. </doc>
  9175. </method>
  9176. <method name="addSslListener"
  9177. abstract="false" native="false" synchronized="false"
  9178. static="false" final="false" visibility="public"
  9179. deprecated="not deprecated">
  9180. <param name="addr" type="java.net.InetSocketAddress"/>
  9181. <param name="sslConf" type="org.apache.hadoop.conf.Configuration"/>
  9182. <param name="needCertsAuth" type="boolean"/>
  9183. <param name="needKrbAuth" type="boolean"/>
  9184. <exception name="IOException" type="java.io.IOException"/>
  9185. <doc>
  9186. <![CDATA[Configure an ssl listener on the server.
  9187. @param addr address to listen on
  9188. @param sslConf conf to retrieve ssl options
  9189. @param needCertsAuth whether x509 certificate authentication is required
  9190. @param needKrbAuth whether to allow kerberos auth]]>
  9191. </doc>
  9192. </method>
  9193. <method name="start"
  9194. abstract="false" native="false" synchronized="false"
  9195. static="false" final="false" visibility="public"
  9196. deprecated="not deprecated">
  9197. <exception name="IOException" type="java.io.IOException"/>
  9198. <doc>
  9199. <![CDATA[Start the server. Does not wait for the server to start.]]>
  9200. </doc>
  9201. </method>
  9202. <method name="stop"
  9203. abstract="false" native="false" synchronized="false"
  9204. static="false" final="false" visibility="public"
  9205. deprecated="not deprecated">
  9206. <exception name="Exception" type="java.lang.Exception"/>
  9207. <doc>
  9208. <![CDATA[stop the server]]>
  9209. </doc>
  9210. </method>
  9211. <method name="join"
  9212. abstract="false" native="false" synchronized="false"
  9213. static="false" final="false" visibility="public"
  9214. deprecated="not deprecated">
  9215. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  9216. </method>
  9217. <method name="hasAdministratorAccess" return="boolean"
  9218. abstract="false" native="false" synchronized="false"
  9219. static="true" final="false" visibility="public"
  9220. deprecated="not deprecated">
  9221. <param name="servletContext" type="javax.servlet.ServletContext"/>
  9222. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  9223. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  9224. <exception name="IOException" type="java.io.IOException"/>
  9225. <doc>
  9226. <![CDATA[Does the user sending the HttpServletRequest has the administrator ACLs? If
  9227. it isn't the case, response will be modified to send an error to the user.
  9228. @param servletContext
  9229. @param request
  9230. @param response
  9231. @return true if admin-authorized, false otherwise
  9232. @throws IOException]]>
  9233. </doc>
  9234. </method>
  9235. <field name="LOG" type="org.apache.commons.logging.Log"
  9236. transient="false" volatile="false"
  9237. static="true" final="true" visibility="public"
  9238. deprecated="not deprecated">
  9239. </field>
  9240. <field name="CONF_CONTEXT_ATTRIBUTE" type="java.lang.String"
  9241. transient="false" volatile="false"
  9242. static="true" final="true" visibility="public"
  9243. deprecated="not deprecated">
  9244. </field>
  9245. <field name="SPNEGO_FILTER" type="java.lang.String"
  9246. transient="false" volatile="false"
  9247. static="true" final="true" visibility="public"
  9248. deprecated="not deprecated">
  9249. </field>
  9250. <field name="KRB5_FILTER" type="java.lang.String"
  9251. transient="false" volatile="false"
  9252. static="true" final="true" visibility="public"
  9253. deprecated="not deprecated">
  9254. </field>
  9255. <field name="webServer" type="org.mortbay.jetty.Server"
  9256. transient="false" volatile="false"
  9257. static="false" final="true" visibility="protected"
  9258. deprecated="not deprecated">
  9259. </field>
  9260. <field name="listener" type="org.mortbay.jetty.Connector"
  9261. transient="false" volatile="false"
  9262. static="false" final="true" visibility="protected"
  9263. deprecated="not deprecated">
  9264. </field>
  9265. <field name="webAppContext" type="org.mortbay.jetty.webapp.WebAppContext"
  9266. transient="false" volatile="false"
  9267. static="false" final="true" visibility="protected"
  9268. deprecated="not deprecated">
  9269. </field>
  9270. <field name="findPort" type="boolean"
  9271. transient="false" volatile="false"
  9272. static="false" final="true" visibility="protected"
  9273. deprecated="not deprecated">
  9274. </field>
  9275. <field name="defaultContexts" type="java.util.Map"
  9276. transient="false" volatile="false"
  9277. static="false" final="true" visibility="protected"
  9278. deprecated="not deprecated">
  9279. </field>
  9280. <field name="filterNames" type="java.util.List"
  9281. transient="false" volatile="false"
  9282. static="false" final="true" visibility="protected"
  9283. deprecated="not deprecated">
  9284. </field>
  9285. <doc>
  9286. <![CDATA[Create a Jetty embedded server to answer http requests. The primary goal
  9287. is to serve up status information for the server.
  9288. There are three contexts:
  9289. "/logs/" -> points to the log directory
  9290. "/static/" -> points to common static files (src/webapps/static)
  9291. "/" -> the jsp server code from (src/webapps/<name>)]]>
  9292. </doc>
  9293. </class>
  9294. <!-- end class org.apache.hadoop.http.HttpServer -->
  9295. <!-- start class org.apache.hadoop.http.HttpServer.QuotingInputFilter -->
  9296. <class name="HttpServer.QuotingInputFilter" extends="java.lang.Object"
  9297. abstract="false"
  9298. static="true" final="false" visibility="public"
  9299. deprecated="not deprecated">
  9300. <implements name="javax.servlet.Filter"/>
  9301. <constructor name="HttpServer.QuotingInputFilter"
  9302. static="false" final="false" visibility="public"
  9303. deprecated="not deprecated">
  9304. </constructor>
  9305. <method name="init"
  9306. abstract="false" native="false" synchronized="false"
  9307. static="false" final="false" visibility="public"
  9308. deprecated="not deprecated">
  9309. <param name="config" type="javax.servlet.FilterConfig"/>
  9310. <exception name="ServletException" type="javax.servlet.ServletException"/>
  9311. </method>
  9312. <method name="destroy"
  9313. abstract="false" native="false" synchronized="false"
  9314. static="false" final="false" visibility="public"
  9315. deprecated="not deprecated">
  9316. </method>
  9317. <method name="doFilter"
  9318. abstract="false" native="false" synchronized="false"
  9319. static="false" final="false" visibility="public"
  9320. deprecated="not deprecated">
  9321. <param name="request" type="javax.servlet.ServletRequest"/>
  9322. <param name="response" type="javax.servlet.ServletResponse"/>
  9323. <param name="chain" type="javax.servlet.FilterChain"/>
  9324. <exception name="IOException" type="java.io.IOException"/>
  9325. <exception name="ServletException" type="javax.servlet.ServletException"/>
  9326. </method>
  9327. <doc>
  9328. <![CDATA[A Servlet input filter that quotes all HTML active characters in the
  9329. parameter names and values. The goal is to quote the characters to make
  9330. all of the servlets resistant to cross-site scripting attacks.]]>
  9331. </doc>
  9332. </class>
  9333. <!-- end class org.apache.hadoop.http.HttpServer.QuotingInputFilter -->
  9334. <!-- start class org.apache.hadoop.http.HttpServer.QuotingInputFilter.RequestQuoter -->
  9335. <class name="HttpServer.QuotingInputFilter.RequestQuoter" extends="javax.servlet.http.HttpServletRequestWrapper"
  9336. abstract="false"
  9337. static="true" final="false" visibility="public"
  9338. deprecated="not deprecated">
  9339. <constructor name="HttpServer.QuotingInputFilter.RequestQuoter" type="javax.servlet.http.HttpServletRequest"
  9340. static="false" final="false" visibility="public"
  9341. deprecated="not deprecated">
  9342. </constructor>
  9343. <method name="getParameterNames" return="java.util.Enumeration"
  9344. abstract="false" native="false" synchronized="false"
  9345. static="false" final="false" visibility="public"
  9346. deprecated="not deprecated">
  9347. <doc>
  9348. <![CDATA[Return the set of parameter names, quoting each name.]]>
  9349. </doc>
  9350. </method>
  9351. <method name="getParameter" return="java.lang.String"
  9352. abstract="false" native="false" synchronized="false"
  9353. static="false" final="false" visibility="public"
  9354. deprecated="not deprecated">
  9355. <param name="name" type="java.lang.String"/>
  9356. <doc>
  9357. <![CDATA[Unquote the name and quote the value.]]>
  9358. </doc>
  9359. </method>
  9360. <method name="getParameterValues" return="java.lang.String[]"
  9361. abstract="false" native="false" synchronized="false"
  9362. static="false" final="false" visibility="public"
  9363. deprecated="not deprecated">
  9364. <param name="name" type="java.lang.String"/>
  9365. </method>
  9366. <method name="getParameterMap" return="java.util.Map"
  9367. abstract="false" native="false" synchronized="false"
  9368. static="false" final="false" visibility="public"
  9369. deprecated="not deprecated">
  9370. </method>
  9371. <method name="getRequestURL" return="java.lang.StringBuffer"
  9372. abstract="false" native="false" synchronized="false"
  9373. static="false" final="false" visibility="public"
  9374. deprecated="not deprecated">
  9375. <doc>
  9376. <![CDATA[Quote the url so that users specifying the HOST HTTP header
  9377. can't inject attacks.]]>
  9378. </doc>
  9379. </method>
  9380. <method name="getServerName" return="java.lang.String"
  9381. abstract="false" native="false" synchronized="false"
  9382. static="false" final="false" visibility="public"
  9383. deprecated="not deprecated">
  9384. <doc>
  9385. <![CDATA[Quote the server name so that users specifying the HOST HTTP header
  9386. can't inject attacks.]]>
  9387. </doc>
  9388. </method>
  9389. </class>
  9390. <!-- end class org.apache.hadoop.http.HttpServer.QuotingInputFilter.RequestQuoter -->
  9391. <!-- start class org.apache.hadoop.http.HttpServer.StackServlet -->
  9392. <class name="HttpServer.StackServlet" extends="javax.servlet.http.HttpServlet"
  9393. abstract="false"
  9394. static="true" final="false" visibility="public"
  9395. deprecated="not deprecated">
  9396. <constructor name="HttpServer.StackServlet"
  9397. static="false" final="false" visibility="public"
  9398. deprecated="not deprecated">
  9399. </constructor>
  9400. <method name="doGet"
  9401. abstract="false" native="false" synchronized="false"
  9402. static="false" final="false" visibility="public"
  9403. deprecated="not deprecated">
  9404. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  9405. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  9406. <exception name="ServletException" type="javax.servlet.ServletException"/>
  9407. <exception name="IOException" type="java.io.IOException"/>
  9408. </method>
  9409. <doc>
  9410. <![CDATA[A very simple servlet to serve up a text representation of the current
  9411. stack traces. It both returns the stacks to the caller and logs them.
  9412. Currently the stack traces are done sequentially rather than exactly the
  9413. same data.]]>
  9414. </doc>
  9415. </class>
  9416. <!-- end class org.apache.hadoop.http.HttpServer.StackServlet -->
  9417. </package>
  9418. <package name="org.apache.hadoop.http.lib">
  9419. <!-- start class org.apache.hadoop.http.lib.StaticUserWebFilter -->
  9420. <class name="StaticUserWebFilter" extends="org.apache.hadoop.http.FilterInitializer"
  9421. abstract="false"
  9422. static="false" final="false" visibility="public"
  9423. deprecated="not deprecated">
  9424. <constructor name="StaticUserWebFilter"
  9425. static="false" final="false" visibility="public"
  9426. deprecated="not deprecated">
  9427. </constructor>
  9428. <method name="initFilter"
  9429. abstract="false" native="false" synchronized="false"
  9430. static="false" final="false" visibility="public"
  9431. deprecated="not deprecated">
  9432. <param name="container" type="org.apache.hadoop.http.FilterContainer"/>
  9433. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9434. </method>
  9435. <doc>
  9436. <![CDATA[Provides a servlet filter that pretends to authenticate a fake user (Dr.Who)
  9437. so that the web UI is usable for a secure cluster without authentication.]]>
  9438. </doc>
  9439. </class>
  9440. <!-- end class org.apache.hadoop.http.lib.StaticUserWebFilter -->
  9441. <!-- start class org.apache.hadoop.http.lib.StaticUserWebFilter.StaticUserFilter -->
  9442. <class name="StaticUserWebFilter.StaticUserFilter" extends="java.lang.Object"
  9443. abstract="false"
  9444. static="true" final="false" visibility="public"
  9445. deprecated="not deprecated">
  9446. <implements name="javax.servlet.Filter"/>
  9447. <constructor name="StaticUserWebFilter.StaticUserFilter"
  9448. static="false" final="false" visibility="public"
  9449. deprecated="not deprecated">
  9450. </constructor>
  9451. <method name="destroy"
  9452. abstract="false" native="false" synchronized="false"
  9453. static="false" final="false" visibility="public"
  9454. deprecated="not deprecated">
  9455. </method>
  9456. <method name="doFilter"
  9457. abstract="false" native="false" synchronized="false"
  9458. static="false" final="false" visibility="public"
  9459. deprecated="not deprecated">
  9460. <param name="request" type="javax.servlet.ServletRequest"/>
  9461. <param name="response" type="javax.servlet.ServletResponse"/>
  9462. <param name="chain" type="javax.servlet.FilterChain"/>
  9463. <exception name="IOException" type="java.io.IOException"/>
  9464. <exception name="ServletException" type="javax.servlet.ServletException"/>
  9465. </method>
  9466. <method name="init"
  9467. abstract="false" native="false" synchronized="false"
  9468. static="false" final="false" visibility="public"
  9469. deprecated="not deprecated">
  9470. <param name="conf" type="javax.servlet.FilterConfig"/>
  9471. <exception name="ServletException" type="javax.servlet.ServletException"/>
  9472. </method>
  9473. </class>
  9474. <!-- end class org.apache.hadoop.http.lib.StaticUserWebFilter.StaticUserFilter -->
  9475. </package>
  9476. <package name="org.apache.hadoop.io">
  9477. <!-- start class org.apache.hadoop.io.AbstractMapWritable -->
  9478. <class name="AbstractMapWritable" extends="java.lang.Object"
  9479. abstract="true"
  9480. static="false" final="false" visibility="public"
  9481. deprecated="not deprecated">
  9482. <implements name="org.apache.hadoop.io.Writable"/>
  9483. <implements name="org.apache.hadoop.conf.Configurable"/>
  9484. <constructor name="AbstractMapWritable"
  9485. static="false" final="false" visibility="protected"
  9486. deprecated="not deprecated">
  9487. <doc>
  9488. <![CDATA[constructor.]]>
  9489. </doc>
  9490. </constructor>
  9491. <method name="addToMap"
  9492. abstract="false" native="false" synchronized="true"
  9493. static="false" final="false" visibility="protected"
  9494. deprecated="not deprecated">
  9495. <param name="clazz" type="java.lang.Class"/>
  9496. <doc>
  9497. <![CDATA[Add a Class to the maps if it is not already present.]]>
  9498. </doc>
  9499. </method>
  9500. <method name="getClass" return="java.lang.Class"
  9501. abstract="false" native="false" synchronized="false"
  9502. static="false" final="false" visibility="protected"
  9503. deprecated="not deprecated">
  9504. <param name="id" type="byte"/>
  9505. <doc>
  9506. <![CDATA[@return the Class class for the specified id]]>
  9507. </doc>
  9508. </method>
  9509. <method name="getId" return="byte"
  9510. abstract="false" native="false" synchronized="false"
  9511. static="false" final="false" visibility="protected"
  9512. deprecated="not deprecated">
  9513. <param name="clazz" type="java.lang.Class"/>
  9514. <doc>
  9515. <![CDATA[@return the id for the specified Class]]>
  9516. </doc>
  9517. </method>
  9518. <method name="copy"
  9519. abstract="false" native="false" synchronized="true"
  9520. static="false" final="false" visibility="protected"
  9521. deprecated="not deprecated">
  9522. <param name="other" type="org.apache.hadoop.io.Writable"/>
  9523. <doc>
  9524. <![CDATA[Used by child copy constructors.]]>
  9525. </doc>
  9526. </method>
  9527. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  9528. abstract="false" native="false" synchronized="false"
  9529. static="false" final="false" visibility="public"
  9530. deprecated="not deprecated">
  9531. <doc>
  9532. <![CDATA[@return the conf]]>
  9533. </doc>
  9534. </method>
  9535. <method name="setConf"
  9536. abstract="false" native="false" synchronized="false"
  9537. static="false" final="false" visibility="public"
  9538. deprecated="not deprecated">
  9539. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9540. <doc>
  9541. <![CDATA[@param conf the conf to set]]>
  9542. </doc>
  9543. </method>
  9544. <method name="write"
  9545. abstract="false" native="false" synchronized="false"
  9546. static="false" final="false" visibility="public"
  9547. deprecated="not deprecated">
  9548. <param name="out" type="java.io.DataOutput"/>
  9549. <exception name="IOException" type="java.io.IOException"/>
  9550. <doc>
  9551. <![CDATA[{@inheritDoc}]]>
  9552. </doc>
  9553. </method>
  9554. <method name="readFields"
  9555. abstract="false" native="false" synchronized="false"
  9556. static="false" final="false" visibility="public"
  9557. deprecated="not deprecated">
  9558. <param name="in" type="java.io.DataInput"/>
  9559. <exception name="IOException" type="java.io.IOException"/>
  9560. <doc>
  9561. <![CDATA[{@inheritDoc}]]>
  9562. </doc>
  9563. </method>
  9564. <doc>
  9565. <![CDATA[Abstract base class for MapWritable and SortedMapWritable
  9566. Unlike org.apache.nutch.crawl.MapWritable, this class allows creation of
  9567. MapWritable&lt;Writable, MapWritable&gt; so the CLASS_TO_ID and ID_TO_CLASS
  9568. maps travel with the class instead of being static.
  9569. Class ids range from 1 to 127 so there can be at most 127 distinct classes
  9570. in any specific map instance.]]>
  9571. </doc>
  9572. </class>
  9573. <!-- end class org.apache.hadoop.io.AbstractMapWritable -->
  9574. <!-- start class org.apache.hadoop.io.ArrayFile -->
  9575. <class name="ArrayFile" extends="org.apache.hadoop.io.MapFile"
  9576. abstract="false"
  9577. static="false" final="false" visibility="public"
  9578. deprecated="not deprecated">
  9579. <constructor name="ArrayFile"
  9580. static="false" final="false" visibility="protected"
  9581. deprecated="not deprecated">
  9582. </constructor>
  9583. <doc>
  9584. <![CDATA[A dense file-based mapping from integers to values.]]>
  9585. </doc>
  9586. </class>
  9587. <!-- end class org.apache.hadoop.io.ArrayFile -->
  9588. <!-- start class org.apache.hadoop.io.ArrayFile.Reader -->
  9589. <class name="ArrayFile.Reader" extends="org.apache.hadoop.io.MapFile.Reader"
  9590. abstract="false"
  9591. static="true" final="false" visibility="public"
  9592. deprecated="not deprecated">
  9593. <constructor name="ArrayFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  9594. static="false" final="false" visibility="public"
  9595. deprecated="not deprecated">
  9596. <exception name="IOException" type="java.io.IOException"/>
  9597. <doc>
  9598. <![CDATA[Construct an array reader for the named file.]]>
  9599. </doc>
  9600. </constructor>
  9601. <method name="seek"
  9602. abstract="false" native="false" synchronized="true"
  9603. static="false" final="false" visibility="public"
  9604. deprecated="not deprecated">
  9605. <param name="n" type="long"/>
  9606. <exception name="IOException" type="java.io.IOException"/>
  9607. <doc>
  9608. <![CDATA[Positions the reader before its <code>n</code>th value.]]>
  9609. </doc>
  9610. </method>
  9611. <method name="next" return="org.apache.hadoop.io.Writable"
  9612. abstract="false" native="false" synchronized="true"
  9613. static="false" final="false" visibility="public"
  9614. deprecated="not deprecated">
  9615. <param name="value" type="org.apache.hadoop.io.Writable"/>
  9616. <exception name="IOException" type="java.io.IOException"/>
  9617. <doc>
  9618. <![CDATA[Read and return the next value in the file.]]>
  9619. </doc>
  9620. </method>
  9621. <method name="key" return="long"
  9622. abstract="false" native="false" synchronized="true"
  9623. static="false" final="false" visibility="public"
  9624. deprecated="not deprecated">
  9625. <exception name="IOException" type="java.io.IOException"/>
  9626. <doc>
  9627. <![CDATA[Returns the key associated with the most recent call to {@link
  9628. #seek(long)}, {@link #next(Writable)}, or {@link
  9629. #get(long,Writable)}.]]>
  9630. </doc>
  9631. </method>
  9632. <method name="get" return="org.apache.hadoop.io.Writable"
  9633. abstract="false" native="false" synchronized="true"
  9634. static="false" final="false" visibility="public"
  9635. deprecated="not deprecated">
  9636. <param name="n" type="long"/>
  9637. <param name="value" type="org.apache.hadoop.io.Writable"/>
  9638. <exception name="IOException" type="java.io.IOException"/>
  9639. <doc>
  9640. <![CDATA[Return the <code>n</code>th value in the file.]]>
  9641. </doc>
  9642. </method>
  9643. <doc>
  9644. <![CDATA[Provide access to an existing array file.]]>
  9645. </doc>
  9646. </class>
  9647. <!-- end class org.apache.hadoop.io.ArrayFile.Reader -->
  9648. <!-- start class org.apache.hadoop.io.ArrayFile.Writer -->
  9649. <class name="ArrayFile.Writer" extends="org.apache.hadoop.io.MapFile.Writer"
  9650. abstract="false"
  9651. static="true" final="false" visibility="public"
  9652. deprecated="not deprecated">
  9653. <constructor name="ArrayFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class"
  9654. static="false" final="false" visibility="public"
  9655. deprecated="not deprecated">
  9656. <exception name="IOException" type="java.io.IOException"/>
  9657. <doc>
  9658. <![CDATA[Create the named file for values of the named class.]]>
  9659. </doc>
  9660. </constructor>
  9661. <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"
  9662. static="false" final="false" visibility="public"
  9663. deprecated="not deprecated">
  9664. <exception name="IOException" type="java.io.IOException"/>
  9665. <doc>
  9666. <![CDATA[Create the named file for values of the named class.]]>
  9667. </doc>
  9668. </constructor>
  9669. <method name="append"
  9670. abstract="false" native="false" synchronized="true"
  9671. static="false" final="false" visibility="public"
  9672. deprecated="not deprecated">
  9673. <param name="value" type="org.apache.hadoop.io.Writable"/>
  9674. <exception name="IOException" type="java.io.IOException"/>
  9675. <doc>
  9676. <![CDATA[Append a value to the file.]]>
  9677. </doc>
  9678. </method>
  9679. <doc>
  9680. <![CDATA[Write a new array file.]]>
  9681. </doc>
  9682. </class>
  9683. <!-- end class org.apache.hadoop.io.ArrayFile.Writer -->
  9684. <!-- start class org.apache.hadoop.io.ArrayWritable -->
  9685. <class name="ArrayWritable" extends="java.lang.Object"
  9686. abstract="false"
  9687. static="false" final="false" visibility="public"
  9688. deprecated="not deprecated">
  9689. <implements name="org.apache.hadoop.io.Writable"/>
  9690. <constructor name="ArrayWritable" type="java.lang.Class"
  9691. static="false" final="false" visibility="public"
  9692. deprecated="not deprecated">
  9693. </constructor>
  9694. <constructor name="ArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[]"
  9695. static="false" final="false" visibility="public"
  9696. deprecated="not deprecated">
  9697. </constructor>
  9698. <constructor name="ArrayWritable" type="java.lang.String[]"
  9699. static="false" final="false" visibility="public"
  9700. deprecated="not deprecated">
  9701. </constructor>
  9702. <method name="getValueClass" return="java.lang.Class"
  9703. abstract="false" native="false" synchronized="false"
  9704. static="false" final="false" visibility="public"
  9705. deprecated="not deprecated">
  9706. </method>
  9707. <method name="toStrings" return="java.lang.String[]"
  9708. abstract="false" native="false" synchronized="false"
  9709. static="false" final="false" visibility="public"
  9710. deprecated="not deprecated">
  9711. </method>
  9712. <method name="toArray" return="java.lang.Object"
  9713. abstract="false" native="false" synchronized="false"
  9714. static="false" final="false" visibility="public"
  9715. deprecated="not deprecated">
  9716. </method>
  9717. <method name="set"
  9718. abstract="false" native="false" synchronized="false"
  9719. static="false" final="false" visibility="public"
  9720. deprecated="not deprecated">
  9721. <param name="values" type="org.apache.hadoop.io.Writable[]"/>
  9722. </method>
  9723. <method name="get" return="org.apache.hadoop.io.Writable[]"
  9724. abstract="false" native="false" synchronized="false"
  9725. static="false" final="false" visibility="public"
  9726. deprecated="not deprecated">
  9727. </method>
  9728. <method name="readFields"
  9729. abstract="false" native="false" synchronized="false"
  9730. static="false" final="false" visibility="public"
  9731. deprecated="not deprecated">
  9732. <param name="in" type="java.io.DataInput"/>
  9733. <exception name="IOException" type="java.io.IOException"/>
  9734. </method>
  9735. <method name="write"
  9736. abstract="false" native="false" synchronized="false"
  9737. static="false" final="false" visibility="public"
  9738. deprecated="not deprecated">
  9739. <param name="out" type="java.io.DataOutput"/>
  9740. <exception name="IOException" type="java.io.IOException"/>
  9741. </method>
  9742. <doc>
  9743. <![CDATA[A Writable for arrays containing instances of a class. The elements of this
  9744. writable must all be instances of the same class. If this writable will be
  9745. the input for a Reducer, you will need to create a subclass that sets the
  9746. value to be of the proper type.
  9747. For example:
  9748. <code>
  9749. public class IntArrayWritable extends ArrayWritable {
  9750. public IntArrayWritable() {
  9751. super(IntWritable.class);
  9752. }
  9753. }
  9754. </code>]]>
  9755. </doc>
  9756. </class>
  9757. <!-- end class org.apache.hadoop.io.ArrayWritable -->
  9758. <!-- start class org.apache.hadoop.io.BinaryComparable -->
  9759. <class name="BinaryComparable" extends="java.lang.Object"
  9760. abstract="true"
  9761. static="false" final="false" visibility="public"
  9762. deprecated="not deprecated">
  9763. <implements name="java.lang.Comparable"/>
  9764. <constructor name="BinaryComparable"
  9765. static="false" final="false" visibility="public"
  9766. deprecated="not deprecated">
  9767. </constructor>
  9768. <method name="getLength" return="int"
  9769. abstract="true" native="false" synchronized="false"
  9770. static="false" final="false" visibility="public"
  9771. deprecated="not deprecated">
  9772. <doc>
  9773. <![CDATA[Return n st bytes 0..n-1 from {#getBytes()} are valid.]]>
  9774. </doc>
  9775. </method>
  9776. <method name="getBytes" return="byte[]"
  9777. abstract="true" native="false" synchronized="false"
  9778. static="false" final="false" visibility="public"
  9779. deprecated="not deprecated">
  9780. <doc>
  9781. <![CDATA[Return representative byte array for this instance.]]>
  9782. </doc>
  9783. </method>
  9784. <method name="compareTo" return="int"
  9785. abstract="false" native="false" synchronized="false"
  9786. static="false" final="false" visibility="public"
  9787. deprecated="not deprecated">
  9788. <param name="other" type="org.apache.hadoop.io.BinaryComparable"/>
  9789. <doc>
  9790. <![CDATA[Compare bytes from {#getBytes()}.
  9791. @see org.apache.hadoop.io.WritableComparator#compareBytes(byte[],int,int,byte[],int,int)]]>
  9792. </doc>
  9793. </method>
  9794. <method name="compareTo" return="int"
  9795. abstract="false" native="false" synchronized="false"
  9796. static="false" final="false" visibility="public"
  9797. deprecated="not deprecated">
  9798. <param name="other" type="byte[]"/>
  9799. <param name="off" type="int"/>
  9800. <param name="len" type="int"/>
  9801. <doc>
  9802. <![CDATA[Compare bytes from {#getBytes()} to those provided.]]>
  9803. </doc>
  9804. </method>
  9805. <method name="equals" return="boolean"
  9806. abstract="false" native="false" synchronized="false"
  9807. static="false" final="false" visibility="public"
  9808. deprecated="not deprecated">
  9809. <param name="other" type="java.lang.Object"/>
  9810. <doc>
  9811. <![CDATA[Return true if bytes from {#getBytes()} match.]]>
  9812. </doc>
  9813. </method>
  9814. <method name="hashCode" return="int"
  9815. abstract="false" native="false" synchronized="false"
  9816. static="false" final="false" visibility="public"
  9817. deprecated="not deprecated">
  9818. <doc>
  9819. <![CDATA[Return a hash of the bytes returned from {#getBytes()}.
  9820. @see org.apache.hadoop.io.WritableComparator#hashBytes(byte[],int)]]>
  9821. </doc>
  9822. </method>
  9823. <doc>
  9824. <![CDATA[Interface supported by {@link org.apache.hadoop.io.WritableComparable}
  9825. types supporting ordering/permutation by a representative set of bytes.]]>
  9826. </doc>
  9827. </class>
  9828. <!-- end class org.apache.hadoop.io.BinaryComparable -->
  9829. <!-- start class org.apache.hadoop.io.BloomMapFile -->
  9830. <class name="BloomMapFile" extends="java.lang.Object"
  9831. abstract="false"
  9832. static="false" final="false" visibility="public"
  9833. deprecated="not deprecated">
  9834. <constructor name="BloomMapFile"
  9835. static="false" final="false" visibility="public"
  9836. deprecated="not deprecated">
  9837. </constructor>
  9838. <method name="delete"
  9839. abstract="false" native="false" synchronized="false"
  9840. static="true" final="false" visibility="public"
  9841. deprecated="not deprecated">
  9842. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  9843. <param name="name" type="java.lang.String"/>
  9844. <exception name="IOException" type="java.io.IOException"/>
  9845. </method>
  9846. <field name="BLOOM_FILE_NAME" type="java.lang.String"
  9847. transient="false" volatile="false"
  9848. static="true" final="true" visibility="public"
  9849. deprecated="not deprecated">
  9850. </field>
  9851. <field name="HASH_COUNT" type="int"
  9852. transient="false" volatile="false"
  9853. static="true" final="true" visibility="public"
  9854. deprecated="not deprecated">
  9855. </field>
  9856. <doc>
  9857. <![CDATA[This class extends {@link MapFile} and provides very much the same
  9858. functionality. However, it uses dynamic Bloom filters to provide
  9859. quick membership test for keys, and it offers a fast version of
  9860. {@link Reader#get(WritableComparable, Writable)} operation, especially in
  9861. case of sparsely populated MapFile-s.]]>
  9862. </doc>
  9863. </class>
  9864. <!-- end class org.apache.hadoop.io.BloomMapFile -->
  9865. <!-- start class org.apache.hadoop.io.BloomMapFile.Reader -->
  9866. <class name="BloomMapFile.Reader" extends="org.apache.hadoop.io.MapFile.Reader"
  9867. abstract="false"
  9868. static="true" final="false" visibility="public"
  9869. deprecated="not deprecated">
  9870. <constructor name="BloomMapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  9871. static="false" final="false" visibility="public"
  9872. deprecated="not deprecated">
  9873. <exception name="IOException" type="java.io.IOException"/>
  9874. </constructor>
  9875. <constructor name="BloomMapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration, boolean"
  9876. static="false" final="false" visibility="public"
  9877. deprecated="not deprecated">
  9878. <exception name="IOException" type="java.io.IOException"/>
  9879. </constructor>
  9880. <constructor name="BloomMapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration"
  9881. static="false" final="false" visibility="public"
  9882. deprecated="not deprecated">
  9883. <exception name="IOException" type="java.io.IOException"/>
  9884. </constructor>
  9885. <method name="probablyHasKey" return="boolean"
  9886. abstract="false" native="false" synchronized="false"
  9887. static="false" final="false" visibility="public"
  9888. deprecated="not deprecated">
  9889. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  9890. <exception name="IOException" type="java.io.IOException"/>
  9891. <doc>
  9892. <![CDATA[Checks if this MapFile has the indicated key. The membership test is
  9893. performed using a Bloom filter, so the result has always non-zero
  9894. probability of false positives.
  9895. @param key key to check
  9896. @return false iff key doesn't exist, true if key probably exists.
  9897. @throws IOException]]>
  9898. </doc>
  9899. </method>
  9900. <method name="get" return="org.apache.hadoop.io.Writable"
  9901. abstract="false" native="false" synchronized="true"
  9902. static="false" final="false" visibility="public"
  9903. deprecated="not deprecated">
  9904. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  9905. <param name="val" type="org.apache.hadoop.io.Writable"/>
  9906. <exception name="IOException" type="java.io.IOException"/>
  9907. <doc>
  9908. <![CDATA[Fast version of the
  9909. {@link MapFile.Reader#get(WritableComparable, Writable)} method. First
  9910. it checks the Bloom filter for the existence of the key, and only if
  9911. present it performs the real get operation. This yields significant
  9912. performance improvements for get operations on sparsely populated files.]]>
  9913. </doc>
  9914. </method>
  9915. <method name="getBloomFilter" return="org.apache.hadoop.util.bloom.Filter"
  9916. abstract="false" native="false" synchronized="false"
  9917. static="false" final="false" visibility="public"
  9918. deprecated="not deprecated">
  9919. <doc>
  9920. <![CDATA[Retrieve the Bloom filter used by this instance of the Reader.
  9921. @return a Bloom filter (see {@link Filter})]]>
  9922. </doc>
  9923. </method>
  9924. </class>
  9925. <!-- end class org.apache.hadoop.io.BloomMapFile.Reader -->
  9926. <!-- start class org.apache.hadoop.io.BloomMapFile.Writer -->
  9927. <class name="BloomMapFile.Writer" extends="org.apache.hadoop.io.MapFile.Writer"
  9928. abstract="false"
  9929. static="true" final="false" visibility="public"
  9930. deprecated="not deprecated">
  9931. <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"
  9932. static="false" final="false" visibility="public"
  9933. deprecated="not deprecated">
  9934. <exception name="IOException" type="java.io.IOException"/>
  9935. </constructor>
  9936. <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"
  9937. static="false" final="false" visibility="public"
  9938. deprecated="not deprecated">
  9939. <exception name="IOException" type="java.io.IOException"/>
  9940. </constructor>
  9941. <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"
  9942. static="false" final="false" visibility="public"
  9943. deprecated="not deprecated">
  9944. <exception name="IOException" type="java.io.IOException"/>
  9945. </constructor>
  9946. <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"
  9947. static="false" final="false" visibility="public"
  9948. deprecated="not deprecated">
  9949. <exception name="IOException" type="java.io.IOException"/>
  9950. </constructor>
  9951. <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"
  9952. static="false" final="false" visibility="public"
  9953. deprecated="not deprecated">
  9954. <exception name="IOException" type="java.io.IOException"/>
  9955. </constructor>
  9956. <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"
  9957. static="false" final="false" visibility="public"
  9958. deprecated="not deprecated">
  9959. <exception name="IOException" type="java.io.IOException"/>
  9960. </constructor>
  9961. <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"
  9962. static="false" final="false" visibility="public"
  9963. deprecated="not deprecated">
  9964. <exception name="IOException" type="java.io.IOException"/>
  9965. </constructor>
  9966. <constructor name="BloomMapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class"
  9967. static="false" final="false" visibility="public"
  9968. deprecated="not deprecated">
  9969. <exception name="IOException" type="java.io.IOException"/>
  9970. </constructor>
  9971. <method name="append"
  9972. abstract="false" native="false" synchronized="true"
  9973. static="false" final="false" visibility="public"
  9974. deprecated="not deprecated">
  9975. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  9976. <param name="val" type="org.apache.hadoop.io.Writable"/>
  9977. <exception name="IOException" type="java.io.IOException"/>
  9978. </method>
  9979. <method name="close"
  9980. abstract="false" native="false" synchronized="true"
  9981. static="false" final="false" visibility="public"
  9982. deprecated="not deprecated">
  9983. <exception name="IOException" type="java.io.IOException"/>
  9984. </method>
  9985. </class>
  9986. <!-- end class org.apache.hadoop.io.BloomMapFile.Writer -->
  9987. <!-- start class org.apache.hadoop.io.BooleanWritable -->
  9988. <class name="BooleanWritable" extends="java.lang.Object"
  9989. abstract="false"
  9990. static="false" final="false" visibility="public"
  9991. deprecated="not deprecated">
  9992. <implements name="org.apache.hadoop.io.WritableComparable"/>
  9993. <constructor name="BooleanWritable"
  9994. static="false" final="false" visibility="public"
  9995. deprecated="not deprecated">
  9996. </constructor>
  9997. <constructor name="BooleanWritable" type="boolean"
  9998. static="false" final="false" visibility="public"
  9999. deprecated="not deprecated">
  10000. </constructor>
  10001. <method name="set"
  10002. abstract="false" native="false" synchronized="false"
  10003. static="false" final="false" visibility="public"
  10004. deprecated="not deprecated">
  10005. <param name="value" type="boolean"/>
  10006. <doc>
  10007. <![CDATA[Set the value of the BooleanWritable]]>
  10008. </doc>
  10009. </method>
  10010. <method name="get" return="boolean"
  10011. abstract="false" native="false" synchronized="false"
  10012. static="false" final="false" visibility="public"
  10013. deprecated="not deprecated">
  10014. <doc>
  10015. <![CDATA[Returns the value of the BooleanWritable]]>
  10016. </doc>
  10017. </method>
  10018. <method name="readFields"
  10019. abstract="false" native="false" synchronized="false"
  10020. static="false" final="false" visibility="public"
  10021. deprecated="not deprecated">
  10022. <param name="in" type="java.io.DataInput"/>
  10023. <exception name="IOException" type="java.io.IOException"/>
  10024. </method>
  10025. <method name="write"
  10026. abstract="false" native="false" synchronized="false"
  10027. static="false" final="false" visibility="public"
  10028. deprecated="not deprecated">
  10029. <param name="out" type="java.io.DataOutput"/>
  10030. <exception name="IOException" type="java.io.IOException"/>
  10031. </method>
  10032. <method name="equals" return="boolean"
  10033. abstract="false" native="false" synchronized="false"
  10034. static="false" final="false" visibility="public"
  10035. deprecated="not deprecated">
  10036. <param name="o" type="java.lang.Object"/>
  10037. </method>
  10038. <method name="hashCode" return="int"
  10039. abstract="false" native="false" synchronized="false"
  10040. static="false" final="false" visibility="public"
  10041. deprecated="not deprecated">
  10042. </method>
  10043. <method name="compareTo" return="int"
  10044. abstract="false" native="false" synchronized="false"
  10045. static="false" final="false" visibility="public"
  10046. deprecated="not deprecated">
  10047. <param name="o" type="java.lang.Object"/>
  10048. </method>
  10049. <method name="toString" return="java.lang.String"
  10050. abstract="false" native="false" synchronized="false"
  10051. static="false" final="false" visibility="public"
  10052. deprecated="not deprecated">
  10053. </method>
  10054. <doc>
  10055. <![CDATA[A WritableComparable for booleans.]]>
  10056. </doc>
  10057. </class>
  10058. <!-- end class org.apache.hadoop.io.BooleanWritable -->
  10059. <!-- start class org.apache.hadoop.io.BooleanWritable.Comparator -->
  10060. <class name="BooleanWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  10061. abstract="false"
  10062. static="true" final="false" visibility="public"
  10063. deprecated="not deprecated">
  10064. <constructor name="BooleanWritable.Comparator"
  10065. static="false" final="false" visibility="public"
  10066. deprecated="not deprecated">
  10067. </constructor>
  10068. <method name="compare" return="int"
  10069. abstract="false" native="false" synchronized="false"
  10070. static="false" final="false" visibility="public"
  10071. deprecated="not deprecated">
  10072. <param name="b1" type="byte[]"/>
  10073. <param name="s1" type="int"/>
  10074. <param name="l1" type="int"/>
  10075. <param name="b2" type="byte[]"/>
  10076. <param name="s2" type="int"/>
  10077. <param name="l2" type="int"/>
  10078. </method>
  10079. <doc>
  10080. <![CDATA[A Comparator optimized for BooleanWritable.]]>
  10081. </doc>
  10082. </class>
  10083. <!-- end class org.apache.hadoop.io.BooleanWritable.Comparator -->
  10084. <!-- start class org.apache.hadoop.io.BytesWritable -->
  10085. <class name="BytesWritable" extends="org.apache.hadoop.io.BinaryComparable"
  10086. abstract="false"
  10087. static="false" final="false" visibility="public"
  10088. deprecated="not deprecated">
  10089. <implements name="org.apache.hadoop.io.WritableComparable"/>
  10090. <constructor name="BytesWritable"
  10091. static="false" final="false" visibility="public"
  10092. deprecated="not deprecated">
  10093. <doc>
  10094. <![CDATA[Create a zero-size sequence.]]>
  10095. </doc>
  10096. </constructor>
  10097. <constructor name="BytesWritable" type="byte[]"
  10098. static="false" final="false" visibility="public"
  10099. deprecated="not deprecated">
  10100. <doc>
  10101. <![CDATA[Create a BytesWritable using the byte array as the initial value.
  10102. @param bytes This array becomes the backing storage for the object.]]>
  10103. </doc>
  10104. </constructor>
  10105. <method name="getBytes" return="byte[]"
  10106. abstract="false" native="false" synchronized="false"
  10107. static="false" final="false" visibility="public"
  10108. deprecated="not deprecated">
  10109. <doc>
  10110. <![CDATA[Get the data from the BytesWritable.
  10111. @return The data is only valid between 0 and getLength() - 1.]]>
  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="Use {@link #getBytes()} instead.">
  10118. <doc>
  10119. <![CDATA[Get the data from the BytesWritable.
  10120. @deprecated Use {@link #getBytes()} instead.]]>
  10121. </doc>
  10122. </method>
  10123. <method name="getLength" return="int"
  10124. abstract="false" native="false" synchronized="false"
  10125. static="false" final="false" visibility="public"
  10126. deprecated="not deprecated">
  10127. <doc>
  10128. <![CDATA[Get the current size of the buffer.]]>
  10129. </doc>
  10130. </method>
  10131. <method name="getSize" return="int"
  10132. abstract="false" native="false" synchronized="false"
  10133. static="false" final="false" visibility="public"
  10134. deprecated="Use {@link #getLength()} instead.">
  10135. <doc>
  10136. <![CDATA[Get the current size of the buffer.
  10137. @deprecated Use {@link #getLength()} instead.]]>
  10138. </doc>
  10139. </method>
  10140. <method name="setSize"
  10141. abstract="false" native="false" synchronized="false"
  10142. static="false" final="false" visibility="public"
  10143. deprecated="not deprecated">
  10144. <param name="size" type="int"/>
  10145. <doc>
  10146. <![CDATA[Change the size of the buffer. The values in the old range are preserved
  10147. and any new values are undefined. The capacity is changed if it is
  10148. necessary.
  10149. @param size The new number of bytes]]>
  10150. </doc>
  10151. </method>
  10152. <method name="getCapacity" return="int"
  10153. abstract="false" native="false" synchronized="false"
  10154. static="false" final="false" visibility="public"
  10155. deprecated="not deprecated">
  10156. <doc>
  10157. <![CDATA[Get the capacity, which is the maximum size that could handled without
  10158. resizing the backing storage.
  10159. @return The number of bytes]]>
  10160. </doc>
  10161. </method>
  10162. <method name="setCapacity"
  10163. abstract="false" native="false" synchronized="false"
  10164. static="false" final="false" visibility="public"
  10165. deprecated="not deprecated">
  10166. <param name="new_cap" type="int"/>
  10167. <doc>
  10168. <![CDATA[Change the capacity of the backing storage.
  10169. The data is preserved.
  10170. @param new_cap The new capacity in bytes.]]>
  10171. </doc>
  10172. </method>
  10173. <method name="set"
  10174. abstract="false" native="false" synchronized="false"
  10175. static="false" final="false" visibility="public"
  10176. deprecated="not deprecated">
  10177. <param name="newData" type="org.apache.hadoop.io.BytesWritable"/>
  10178. <doc>
  10179. <![CDATA[Set the BytesWritable to the contents of the given newData.
  10180. @param newData the value to set this BytesWritable to.]]>
  10181. </doc>
  10182. </method>
  10183. <method name="set"
  10184. abstract="false" native="false" synchronized="false"
  10185. static="false" final="false" visibility="public"
  10186. deprecated="not deprecated">
  10187. <param name="newData" type="byte[]"/>
  10188. <param name="offset" type="int"/>
  10189. <param name="length" type="int"/>
  10190. <doc>
  10191. <![CDATA[Set the value to a copy of the given byte range
  10192. @param newData the new values to copy in
  10193. @param offset the offset in newData to start at
  10194. @param length the number of bytes to copy]]>
  10195. </doc>
  10196. </method>
  10197. <method name="readFields"
  10198. abstract="false" native="false" synchronized="false"
  10199. static="false" final="false" visibility="public"
  10200. deprecated="not deprecated">
  10201. <param name="in" type="java.io.DataInput"/>
  10202. <exception name="IOException" type="java.io.IOException"/>
  10203. </method>
  10204. <method name="write"
  10205. abstract="false" native="false" synchronized="false"
  10206. static="false" final="false" visibility="public"
  10207. deprecated="not deprecated">
  10208. <param name="out" type="java.io.DataOutput"/>
  10209. <exception name="IOException" type="java.io.IOException"/>
  10210. </method>
  10211. <method name="hashCode" return="int"
  10212. abstract="false" native="false" synchronized="false"
  10213. static="false" final="false" visibility="public"
  10214. deprecated="not deprecated">
  10215. </method>
  10216. <method name="equals" return="boolean"
  10217. abstract="false" native="false" synchronized="false"
  10218. static="false" final="false" visibility="public"
  10219. deprecated="not deprecated">
  10220. <param name="right_obj" type="java.lang.Object"/>
  10221. <doc>
  10222. <![CDATA[Are the two byte sequences equal?]]>
  10223. </doc>
  10224. </method>
  10225. <method name="toString" return="java.lang.String"
  10226. abstract="false" native="false" synchronized="false"
  10227. static="false" final="false" visibility="public"
  10228. deprecated="not deprecated">
  10229. <doc>
  10230. <![CDATA[Generate the stream of bytes as hex pairs separated by ' '.]]>
  10231. </doc>
  10232. </method>
  10233. <doc>
  10234. <![CDATA[A byte sequence that is usable as a key or value.
  10235. It is resizable and distinguishes between the size of the seqeunce and
  10236. the current capacity. The hash function is the front of the md5 of the
  10237. buffer. The sort order is the same as memcmp.]]>
  10238. </doc>
  10239. </class>
  10240. <!-- end class org.apache.hadoop.io.BytesWritable -->
  10241. <!-- start class org.apache.hadoop.io.BytesWritable.Comparator -->
  10242. <class name="BytesWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  10243. abstract="false"
  10244. static="true" final="false" visibility="public"
  10245. deprecated="not deprecated">
  10246. <constructor name="BytesWritable.Comparator"
  10247. static="false" final="false" visibility="public"
  10248. deprecated="not deprecated">
  10249. </constructor>
  10250. <method name="compare" return="int"
  10251. abstract="false" native="false" synchronized="false"
  10252. static="false" final="false" visibility="public"
  10253. deprecated="not deprecated">
  10254. <param name="b1" type="byte[]"/>
  10255. <param name="s1" type="int"/>
  10256. <param name="l1" type="int"/>
  10257. <param name="b2" type="byte[]"/>
  10258. <param name="s2" type="int"/>
  10259. <param name="l2" type="int"/>
  10260. <doc>
  10261. <![CDATA[Compare the buffers in serialized form.]]>
  10262. </doc>
  10263. </method>
  10264. <doc>
  10265. <![CDATA[A Comparator optimized for BytesWritable.]]>
  10266. </doc>
  10267. </class>
  10268. <!-- end class org.apache.hadoop.io.BytesWritable.Comparator -->
  10269. <!-- start class org.apache.hadoop.io.ByteWritable -->
  10270. <class name="ByteWritable" extends="java.lang.Object"
  10271. abstract="false"
  10272. static="false" final="false" visibility="public"
  10273. deprecated="not deprecated">
  10274. <implements name="org.apache.hadoop.io.WritableComparable"/>
  10275. <constructor name="ByteWritable"
  10276. static="false" final="false" visibility="public"
  10277. deprecated="not deprecated">
  10278. </constructor>
  10279. <constructor name="ByteWritable" type="byte"
  10280. static="false" final="false" visibility="public"
  10281. deprecated="not deprecated">
  10282. </constructor>
  10283. <method name="set"
  10284. abstract="false" native="false" synchronized="false"
  10285. static="false" final="false" visibility="public"
  10286. deprecated="not deprecated">
  10287. <param name="value" type="byte"/>
  10288. <doc>
  10289. <![CDATA[Set the value of this ByteWritable.]]>
  10290. </doc>
  10291. </method>
  10292. <method name="get" return="byte"
  10293. abstract="false" native="false" synchronized="false"
  10294. static="false" final="false" visibility="public"
  10295. deprecated="not deprecated">
  10296. <doc>
  10297. <![CDATA[Return the value of this ByteWritable.]]>
  10298. </doc>
  10299. </method>
  10300. <method name="readFields"
  10301. abstract="false" native="false" synchronized="false"
  10302. static="false" final="false" visibility="public"
  10303. deprecated="not deprecated">
  10304. <param name="in" type="java.io.DataInput"/>
  10305. <exception name="IOException" type="java.io.IOException"/>
  10306. </method>
  10307. <method name="write"
  10308. abstract="false" native="false" synchronized="false"
  10309. static="false" final="false" visibility="public"
  10310. deprecated="not deprecated">
  10311. <param name="out" type="java.io.DataOutput"/>
  10312. <exception name="IOException" type="java.io.IOException"/>
  10313. </method>
  10314. <method name="equals" return="boolean"
  10315. abstract="false" native="false" synchronized="false"
  10316. static="false" final="false" visibility="public"
  10317. deprecated="not deprecated">
  10318. <param name="o" type="java.lang.Object"/>
  10319. <doc>
  10320. <![CDATA[Returns true iff <code>o</code> is a ByteWritable with the same value.]]>
  10321. </doc>
  10322. </method>
  10323. <method name="hashCode" return="int"
  10324. abstract="false" native="false" synchronized="false"
  10325. static="false" final="false" visibility="public"
  10326. deprecated="not deprecated">
  10327. </method>
  10328. <method name="compareTo" return="int"
  10329. abstract="false" native="false" synchronized="false"
  10330. static="false" final="false" visibility="public"
  10331. deprecated="not deprecated">
  10332. <param name="o" type="java.lang.Object"/>
  10333. <doc>
  10334. <![CDATA[Compares two ByteWritables.]]>
  10335. </doc>
  10336. </method>
  10337. <method name="toString" return="java.lang.String"
  10338. abstract="false" native="false" synchronized="false"
  10339. static="false" final="false" visibility="public"
  10340. deprecated="not deprecated">
  10341. </method>
  10342. <doc>
  10343. <![CDATA[A WritableComparable for a single byte.]]>
  10344. </doc>
  10345. </class>
  10346. <!-- end class org.apache.hadoop.io.ByteWritable -->
  10347. <!-- start class org.apache.hadoop.io.ByteWritable.Comparator -->
  10348. <class name="ByteWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  10349. abstract="false"
  10350. static="true" final="false" visibility="public"
  10351. deprecated="not deprecated">
  10352. <constructor name="ByteWritable.Comparator"
  10353. static="false" final="false" visibility="public"
  10354. deprecated="not deprecated">
  10355. </constructor>
  10356. <method name="compare" return="int"
  10357. abstract="false" native="false" synchronized="false"
  10358. static="false" final="false" visibility="public"
  10359. deprecated="not deprecated">
  10360. <param name="b1" type="byte[]"/>
  10361. <param name="s1" type="int"/>
  10362. <param name="l1" type="int"/>
  10363. <param name="b2" type="byte[]"/>
  10364. <param name="s2" type="int"/>
  10365. <param name="l2" type="int"/>
  10366. </method>
  10367. <doc>
  10368. <![CDATA[A Comparator optimized for ByteWritable.]]>
  10369. </doc>
  10370. </class>
  10371. <!-- end class org.apache.hadoop.io.ByteWritable.Comparator -->
  10372. <!-- start interface org.apache.hadoop.io.Closeable -->
  10373. <interface name="Closeable" abstract="true"
  10374. static="false" final="false" visibility="public"
  10375. deprecated="use java.io.Closeable">
  10376. <implements name="java.io.Closeable"/>
  10377. <doc>
  10378. <![CDATA[@deprecated use java.io.Closeable]]>
  10379. </doc>
  10380. </interface>
  10381. <!-- end interface org.apache.hadoop.io.Closeable -->
  10382. <!-- start class org.apache.hadoop.io.CompressedWritable -->
  10383. <class name="CompressedWritable" extends="java.lang.Object"
  10384. abstract="true"
  10385. static="false" final="false" visibility="public"
  10386. deprecated="not deprecated">
  10387. <implements name="org.apache.hadoop.io.Writable"/>
  10388. <constructor name="CompressedWritable"
  10389. static="false" final="false" visibility="public"
  10390. deprecated="not deprecated">
  10391. </constructor>
  10392. <method name="readFields"
  10393. abstract="false" native="false" synchronized="false"
  10394. static="false" final="true" visibility="public"
  10395. deprecated="not deprecated">
  10396. <param name="in" type="java.io.DataInput"/>
  10397. <exception name="IOException" type="java.io.IOException"/>
  10398. </method>
  10399. <method name="ensureInflated"
  10400. abstract="false" native="false" synchronized="false"
  10401. static="false" final="false" visibility="protected"
  10402. deprecated="not deprecated">
  10403. <doc>
  10404. <![CDATA[Must be called by all methods which access fields to ensure that the data
  10405. has been uncompressed.]]>
  10406. </doc>
  10407. </method>
  10408. <method name="readFieldsCompressed"
  10409. abstract="true" native="false" synchronized="false"
  10410. static="false" final="false" visibility="protected"
  10411. deprecated="not deprecated">
  10412. <param name="in" type="java.io.DataInput"/>
  10413. <exception name="IOException" type="java.io.IOException"/>
  10414. <doc>
  10415. <![CDATA[Subclasses implement this instead of {@link #readFields(DataInput)}.]]>
  10416. </doc>
  10417. </method>
  10418. <method name="write"
  10419. abstract="false" native="false" synchronized="false"
  10420. static="false" final="true" visibility="public"
  10421. deprecated="not deprecated">
  10422. <param name="out" type="java.io.DataOutput"/>
  10423. <exception name="IOException" type="java.io.IOException"/>
  10424. </method>
  10425. <method name="writeCompressed"
  10426. abstract="true" native="false" synchronized="false"
  10427. static="false" final="false" visibility="protected"
  10428. deprecated="not deprecated">
  10429. <param name="out" type="java.io.DataOutput"/>
  10430. <exception name="IOException" type="java.io.IOException"/>
  10431. <doc>
  10432. <![CDATA[Subclasses implement this instead of {@link #write(DataOutput)}.]]>
  10433. </doc>
  10434. </method>
  10435. <doc>
  10436. <![CDATA[A base-class for Writables which store themselves compressed and lazily
  10437. inflate on field access. This is useful for large objects whose fields are
  10438. not be altered during a map or reduce operation: leaving the field data
  10439. compressed makes copying the instance from one file to another much
  10440. faster.]]>
  10441. </doc>
  10442. </class>
  10443. <!-- end class org.apache.hadoop.io.CompressedWritable -->
  10444. <!-- start class org.apache.hadoop.io.DataInputBuffer -->
  10445. <class name="DataInputBuffer" extends="java.io.DataInputStream"
  10446. abstract="false"
  10447. static="false" final="false" visibility="public"
  10448. deprecated="not deprecated">
  10449. <constructor name="DataInputBuffer"
  10450. static="false" final="false" visibility="public"
  10451. deprecated="not deprecated">
  10452. <doc>
  10453. <![CDATA[Constructs a new empty buffer.]]>
  10454. </doc>
  10455. </constructor>
  10456. <method name="reset"
  10457. abstract="false" native="false" synchronized="false"
  10458. static="false" final="false" visibility="public"
  10459. deprecated="not deprecated">
  10460. <param name="input" type="byte[]"/>
  10461. <param name="length" type="int"/>
  10462. <doc>
  10463. <![CDATA[Resets the data that the buffer reads.]]>
  10464. </doc>
  10465. </method>
  10466. <method name="reset"
  10467. abstract="false" native="false" synchronized="false"
  10468. static="false" final="false" visibility="public"
  10469. deprecated="not deprecated">
  10470. <param name="input" type="byte[]"/>
  10471. <param name="start" type="int"/>
  10472. <param name="length" type="int"/>
  10473. <doc>
  10474. <![CDATA[Resets the data that the buffer reads.]]>
  10475. </doc>
  10476. </method>
  10477. <method name="getData" return="byte[]"
  10478. abstract="false" native="false" synchronized="false"
  10479. static="false" final="false" visibility="public"
  10480. deprecated="not deprecated">
  10481. </method>
  10482. <method name="getPosition" return="int"
  10483. abstract="false" native="false" synchronized="false"
  10484. static="false" final="false" visibility="public"
  10485. deprecated="not deprecated">
  10486. <doc>
  10487. <![CDATA[Returns the current position in the input.]]>
  10488. </doc>
  10489. </method>
  10490. <method name="getLength" return="int"
  10491. abstract="false" native="false" synchronized="false"
  10492. static="false" final="false" visibility="public"
  10493. deprecated="not deprecated">
  10494. <doc>
  10495. <![CDATA[Returns the length of the input.]]>
  10496. </doc>
  10497. </method>
  10498. <doc>
  10499. <![CDATA[A reusable {@link DataInput} implementation that reads from an in-memory
  10500. buffer.
  10501. <p>This saves memory over creating a new DataInputStream and
  10502. ByteArrayInputStream each time data is read.
  10503. <p>Typical usage is something like the following:<pre>
  10504. DataInputBuffer buffer = new DataInputBuffer();
  10505. while (... loop condition ...) {
  10506. byte[] data = ... get data ...;
  10507. int dataLength = ... get data length ...;
  10508. buffer.reset(data, dataLength);
  10509. ... read buffer using DataInput methods ...
  10510. }
  10511. </pre>]]>
  10512. </doc>
  10513. </class>
  10514. <!-- end class org.apache.hadoop.io.DataInputBuffer -->
  10515. <!-- start class org.apache.hadoop.io.DataOutputBuffer -->
  10516. <class name="DataOutputBuffer" extends="java.io.DataOutputStream"
  10517. abstract="false"
  10518. static="false" final="false" visibility="public"
  10519. deprecated="not deprecated">
  10520. <constructor name="DataOutputBuffer"
  10521. static="false" final="false" visibility="public"
  10522. deprecated="not deprecated">
  10523. <doc>
  10524. <![CDATA[Constructs a new empty buffer.]]>
  10525. </doc>
  10526. </constructor>
  10527. <constructor name="DataOutputBuffer" type="int"
  10528. static="false" final="false" visibility="public"
  10529. deprecated="not deprecated">
  10530. </constructor>
  10531. <method name="getData" return="byte[]"
  10532. abstract="false" native="false" synchronized="false"
  10533. static="false" final="false" visibility="public"
  10534. deprecated="not deprecated">
  10535. <doc>
  10536. <![CDATA[Returns the current contents of the buffer.
  10537. Data is only valid to {@link #getLength()}.]]>
  10538. </doc>
  10539. </method>
  10540. <method name="getLength" return="int"
  10541. abstract="false" native="false" synchronized="false"
  10542. static="false" final="false" visibility="public"
  10543. deprecated="not deprecated">
  10544. <doc>
  10545. <![CDATA[Returns the length of the valid data currently in the buffer.]]>
  10546. </doc>
  10547. </method>
  10548. <method name="reset" return="org.apache.hadoop.io.DataOutputBuffer"
  10549. abstract="false" native="false" synchronized="false"
  10550. static="false" final="false" visibility="public"
  10551. deprecated="not deprecated">
  10552. <doc>
  10553. <![CDATA[Resets the buffer to empty.]]>
  10554. </doc>
  10555. </method>
  10556. <method name="write"
  10557. abstract="false" native="false" synchronized="false"
  10558. static="false" final="false" visibility="public"
  10559. deprecated="not deprecated">
  10560. <param name="in" type="java.io.DataInput"/>
  10561. <param name="length" type="int"/>
  10562. <exception name="IOException" type="java.io.IOException"/>
  10563. <doc>
  10564. <![CDATA[Writes bytes from a DataInput directly into the buffer.]]>
  10565. </doc>
  10566. </method>
  10567. <method name="writeTo"
  10568. abstract="false" native="false" synchronized="false"
  10569. static="false" final="false" visibility="public"
  10570. deprecated="not deprecated">
  10571. <param name="out" type="java.io.OutputStream"/>
  10572. <exception name="IOException" type="java.io.IOException"/>
  10573. <doc>
  10574. <![CDATA[Write to a file stream]]>
  10575. </doc>
  10576. </method>
  10577. <doc>
  10578. <![CDATA[A reusable {@link DataOutput} implementation that writes to an in-memory
  10579. buffer.
  10580. <p>This saves memory over creating a new DataOutputStream and
  10581. ByteArrayOutputStream each time data is written.
  10582. <p>Typical usage is something like the following:<pre>
  10583. DataOutputBuffer buffer = new DataOutputBuffer();
  10584. while (... loop condition ...) {
  10585. buffer.reset();
  10586. ... write buffer using DataOutput methods ...
  10587. byte[] data = buffer.getData();
  10588. int dataLength = buffer.getLength();
  10589. ... write data to its ultimate destination ...
  10590. }
  10591. </pre>]]>
  10592. </doc>
  10593. </class>
  10594. <!-- end class org.apache.hadoop.io.DataOutputBuffer -->
  10595. <!-- start class org.apache.hadoop.io.DefaultStringifier -->
  10596. <class name="DefaultStringifier" extends="java.lang.Object"
  10597. abstract="false"
  10598. static="false" final="false" visibility="public"
  10599. deprecated="not deprecated">
  10600. <implements name="org.apache.hadoop.io.Stringifier"/>
  10601. <constructor name="DefaultStringifier" type="org.apache.hadoop.conf.Configuration, java.lang.Class"
  10602. static="false" final="false" visibility="public"
  10603. deprecated="not deprecated">
  10604. </constructor>
  10605. <method name="fromString" return="java.lang.Object"
  10606. abstract="false" native="false" synchronized="false"
  10607. static="false" final="false" visibility="public"
  10608. deprecated="not deprecated">
  10609. <param name="str" type="java.lang.String"/>
  10610. <exception name="IOException" type="java.io.IOException"/>
  10611. </method>
  10612. <method name="toString" return="java.lang.String"
  10613. abstract="false" native="false" synchronized="false"
  10614. static="false" final="false" visibility="public"
  10615. deprecated="not deprecated">
  10616. <param name="obj" type="java.lang.Object"/>
  10617. <exception name="IOException" type="java.io.IOException"/>
  10618. </method>
  10619. <method name="close"
  10620. abstract="false" native="false" synchronized="false"
  10621. static="false" final="false" visibility="public"
  10622. deprecated="not deprecated">
  10623. <exception name="IOException" type="java.io.IOException"/>
  10624. </method>
  10625. <method name="store"
  10626. abstract="false" native="false" synchronized="false"
  10627. static="true" final="false" visibility="public"
  10628. deprecated="not deprecated">
  10629. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10630. <param name="item" type="java.lang.Object"/>
  10631. <param name="keyName" type="java.lang.String"/>
  10632. <exception name="IOException" type="java.io.IOException"/>
  10633. <doc>
  10634. <![CDATA[Stores the item in the configuration with the given keyName.
  10635. @param <K> the class of the item
  10636. @param conf the configuration to store
  10637. @param item the object to be stored
  10638. @param keyName the name of the key to use
  10639. @throws IOException : forwards Exceptions from the underlying
  10640. {@link Serialization} classes.]]>
  10641. </doc>
  10642. </method>
  10643. <method name="load" return="java.lang.Object"
  10644. abstract="false" native="false" synchronized="false"
  10645. static="true" final="false" visibility="public"
  10646. deprecated="not deprecated">
  10647. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10648. <param name="keyName" type="java.lang.String"/>
  10649. <param name="itemClass" type="java.lang.Class"/>
  10650. <exception name="IOException" type="java.io.IOException"/>
  10651. <doc>
  10652. <![CDATA[Restores the object from the configuration.
  10653. @param <K> the class of the item
  10654. @param conf the configuration to use
  10655. @param keyName the name of the key to use
  10656. @param itemClass the class of the item
  10657. @return restored object
  10658. @throws IOException : forwards Exceptions from the underlying
  10659. {@link Serialization} classes.]]>
  10660. </doc>
  10661. </method>
  10662. <method name="storeArray"
  10663. abstract="false" native="false" synchronized="false"
  10664. static="true" final="false" visibility="public"
  10665. deprecated="not deprecated">
  10666. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10667. <param name="items" type="java.lang.Object[]"/>
  10668. <param name="keyName" type="java.lang.String"/>
  10669. <exception name="IOException" type="java.io.IOException"/>
  10670. <doc>
  10671. <![CDATA[Stores the array of items in the configuration with the given keyName.
  10672. @param <K> the class of the item
  10673. @param conf the configuration to use
  10674. @param items the objects to be stored
  10675. @param keyName the name of the key to use
  10676. @throws IndexOutOfBoundsException if the items array is empty
  10677. @throws IOException : forwards Exceptions from the underlying
  10678. {@link Serialization} classes.]]>
  10679. </doc>
  10680. </method>
  10681. <method name="loadArray" return="java.lang.Object[]"
  10682. abstract="false" native="false" synchronized="false"
  10683. static="true" final="false" visibility="public"
  10684. deprecated="not deprecated">
  10685. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10686. <param name="keyName" type="java.lang.String"/>
  10687. <param name="itemClass" type="java.lang.Class"/>
  10688. <exception name="IOException" type="java.io.IOException"/>
  10689. <doc>
  10690. <![CDATA[Restores the array of objects from the configuration.
  10691. @param <K> the class of the item
  10692. @param conf the configuration to use
  10693. @param keyName the name of the key to use
  10694. @param itemClass the class of the item
  10695. @return restored object
  10696. @throws IOException : forwards Exceptions from the underlying
  10697. {@link Serialization} classes.]]>
  10698. </doc>
  10699. </method>
  10700. <doc>
  10701. <![CDATA[DefaultStringifier is the default implementation of the {@link Stringifier}
  10702. interface which stringifies the objects using base64 encoding of the
  10703. serialized version of the objects. The {@link Serializer} and
  10704. {@link Deserializer} are obtained from the {@link SerializationFactory}.
  10705. <br>
  10706. DefaultStringifier offers convenience methods to store/load objects to/from
  10707. the configuration.
  10708. @param <T> the class of the objects to stringify]]>
  10709. </doc>
  10710. </class>
  10711. <!-- end class org.apache.hadoop.io.DefaultStringifier -->
  10712. <!-- start class org.apache.hadoop.io.DoubleWritable -->
  10713. <class name="DoubleWritable" extends="java.lang.Object"
  10714. abstract="false"
  10715. static="false" final="false" visibility="public"
  10716. deprecated="not deprecated">
  10717. <implements name="org.apache.hadoop.io.WritableComparable"/>
  10718. <constructor name="DoubleWritable"
  10719. static="false" final="false" visibility="public"
  10720. deprecated="not deprecated">
  10721. </constructor>
  10722. <constructor name="DoubleWritable" type="double"
  10723. static="false" final="false" visibility="public"
  10724. deprecated="not deprecated">
  10725. </constructor>
  10726. <method name="readFields"
  10727. abstract="false" native="false" synchronized="false"
  10728. static="false" final="false" visibility="public"
  10729. deprecated="not deprecated">
  10730. <param name="in" type="java.io.DataInput"/>
  10731. <exception name="IOException" type="java.io.IOException"/>
  10732. </method>
  10733. <method name="write"
  10734. abstract="false" native="false" synchronized="false"
  10735. static="false" final="false" visibility="public"
  10736. deprecated="not deprecated">
  10737. <param name="out" type="java.io.DataOutput"/>
  10738. <exception name="IOException" type="java.io.IOException"/>
  10739. </method>
  10740. <method name="set"
  10741. abstract="false" native="false" synchronized="false"
  10742. static="false" final="false" visibility="public"
  10743. deprecated="not deprecated">
  10744. <param name="value" type="double"/>
  10745. </method>
  10746. <method name="get" return="double"
  10747. abstract="false" native="false" synchronized="false"
  10748. static="false" final="false" visibility="public"
  10749. deprecated="not deprecated">
  10750. </method>
  10751. <method name="equals" return="boolean"
  10752. abstract="false" native="false" synchronized="false"
  10753. static="false" final="false" visibility="public"
  10754. deprecated="not deprecated">
  10755. <param name="o" type="java.lang.Object"/>
  10756. <doc>
  10757. <![CDATA[Returns true iff <code>o</code> is a DoubleWritable with the same value.]]>
  10758. </doc>
  10759. </method>
  10760. <method name="hashCode" return="int"
  10761. abstract="false" native="false" synchronized="false"
  10762. static="false" final="false" visibility="public"
  10763. deprecated="not deprecated">
  10764. </method>
  10765. <method name="compareTo" return="int"
  10766. abstract="false" native="false" synchronized="false"
  10767. static="false" final="false" visibility="public"
  10768. deprecated="not deprecated">
  10769. <param name="o" type="java.lang.Object"/>
  10770. </method>
  10771. <method name="toString" return="java.lang.String"
  10772. abstract="false" native="false" synchronized="false"
  10773. static="false" final="false" visibility="public"
  10774. deprecated="not deprecated">
  10775. </method>
  10776. <doc>
  10777. <![CDATA[Writable for Double values.]]>
  10778. </doc>
  10779. </class>
  10780. <!-- end class org.apache.hadoop.io.DoubleWritable -->
  10781. <!-- start class org.apache.hadoop.io.DoubleWritable.Comparator -->
  10782. <class name="DoubleWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  10783. abstract="false"
  10784. static="true" final="false" visibility="public"
  10785. deprecated="not deprecated">
  10786. <constructor name="DoubleWritable.Comparator"
  10787. static="false" final="false" visibility="public"
  10788. deprecated="not deprecated">
  10789. </constructor>
  10790. <method name="compare" return="int"
  10791. abstract="false" native="false" synchronized="false"
  10792. static="false" final="false" visibility="public"
  10793. deprecated="not deprecated">
  10794. <param name="b1" type="byte[]"/>
  10795. <param name="s1" type="int"/>
  10796. <param name="l1" type="int"/>
  10797. <param name="b2" type="byte[]"/>
  10798. <param name="s2" type="int"/>
  10799. <param name="l2" type="int"/>
  10800. </method>
  10801. <doc>
  10802. <![CDATA[A Comparator optimized for DoubleWritable.]]>
  10803. </doc>
  10804. </class>
  10805. <!-- end class org.apache.hadoop.io.DoubleWritable.Comparator -->
  10806. <!-- start class org.apache.hadoop.io.FloatWritable -->
  10807. <class name="FloatWritable" extends="java.lang.Object"
  10808. abstract="false"
  10809. static="false" final="false" visibility="public"
  10810. deprecated="not deprecated">
  10811. <implements name="org.apache.hadoop.io.WritableComparable"/>
  10812. <constructor name="FloatWritable"
  10813. static="false" final="false" visibility="public"
  10814. deprecated="not deprecated">
  10815. </constructor>
  10816. <constructor name="FloatWritable" type="float"
  10817. static="false" final="false" visibility="public"
  10818. deprecated="not deprecated">
  10819. </constructor>
  10820. <method name="set"
  10821. abstract="false" native="false" synchronized="false"
  10822. static="false" final="false" visibility="public"
  10823. deprecated="not deprecated">
  10824. <param name="value" type="float"/>
  10825. <doc>
  10826. <![CDATA[Set the value of this FloatWritable.]]>
  10827. </doc>
  10828. </method>
  10829. <method name="get" return="float"
  10830. abstract="false" native="false" synchronized="false"
  10831. static="false" final="false" visibility="public"
  10832. deprecated="not deprecated">
  10833. <doc>
  10834. <![CDATA[Return the value of this FloatWritable.]]>
  10835. </doc>
  10836. </method>
  10837. <method name="readFields"
  10838. abstract="false" native="false" synchronized="false"
  10839. static="false" final="false" visibility="public"
  10840. deprecated="not deprecated">
  10841. <param name="in" type="java.io.DataInput"/>
  10842. <exception name="IOException" type="java.io.IOException"/>
  10843. </method>
  10844. <method name="write"
  10845. abstract="false" native="false" synchronized="false"
  10846. static="false" final="false" visibility="public"
  10847. deprecated="not deprecated">
  10848. <param name="out" type="java.io.DataOutput"/>
  10849. <exception name="IOException" type="java.io.IOException"/>
  10850. </method>
  10851. <method name="equals" return="boolean"
  10852. abstract="false" native="false" synchronized="false"
  10853. static="false" final="false" visibility="public"
  10854. deprecated="not deprecated">
  10855. <param name="o" type="java.lang.Object"/>
  10856. <doc>
  10857. <![CDATA[Returns true iff <code>o</code> is a FloatWritable with the same value.]]>
  10858. </doc>
  10859. </method>
  10860. <method name="hashCode" return="int"
  10861. abstract="false" native="false" synchronized="false"
  10862. static="false" final="false" visibility="public"
  10863. deprecated="not deprecated">
  10864. </method>
  10865. <method name="compareTo" return="int"
  10866. abstract="false" native="false" synchronized="false"
  10867. static="false" final="false" visibility="public"
  10868. deprecated="not deprecated">
  10869. <param name="o" type="java.lang.Object"/>
  10870. <doc>
  10871. <![CDATA[Compares two FloatWritables.]]>
  10872. </doc>
  10873. </method>
  10874. <method name="toString" return="java.lang.String"
  10875. abstract="false" native="false" synchronized="false"
  10876. static="false" final="false" visibility="public"
  10877. deprecated="not deprecated">
  10878. </method>
  10879. <doc>
  10880. <![CDATA[A WritableComparable for floats.]]>
  10881. </doc>
  10882. </class>
  10883. <!-- end class org.apache.hadoop.io.FloatWritable -->
  10884. <!-- start class org.apache.hadoop.io.FloatWritable.Comparator -->
  10885. <class name="FloatWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  10886. abstract="false"
  10887. static="true" final="false" visibility="public"
  10888. deprecated="not deprecated">
  10889. <constructor name="FloatWritable.Comparator"
  10890. static="false" final="false" visibility="public"
  10891. deprecated="not deprecated">
  10892. </constructor>
  10893. <method name="compare" return="int"
  10894. abstract="false" native="false" synchronized="false"
  10895. static="false" final="false" visibility="public"
  10896. deprecated="not deprecated">
  10897. <param name="b1" type="byte[]"/>
  10898. <param name="s1" type="int"/>
  10899. <param name="l1" type="int"/>
  10900. <param name="b2" type="byte[]"/>
  10901. <param name="s2" type="int"/>
  10902. <param name="l2" type="int"/>
  10903. </method>
  10904. <doc>
  10905. <![CDATA[A Comparator optimized for FloatWritable.]]>
  10906. </doc>
  10907. </class>
  10908. <!-- end class org.apache.hadoop.io.FloatWritable.Comparator -->
  10909. <!-- start class org.apache.hadoop.io.GenericWritable -->
  10910. <class name="GenericWritable" extends="java.lang.Object"
  10911. abstract="true"
  10912. static="false" final="false" visibility="public"
  10913. deprecated="not deprecated">
  10914. <implements name="org.apache.hadoop.io.Writable"/>
  10915. <implements name="org.apache.hadoop.conf.Configurable"/>
  10916. <constructor name="GenericWritable"
  10917. static="false" final="false" visibility="public"
  10918. deprecated="not deprecated">
  10919. </constructor>
  10920. <method name="set"
  10921. abstract="false" native="false" synchronized="false"
  10922. static="false" final="false" visibility="public"
  10923. deprecated="not deprecated">
  10924. <param name="obj" type="org.apache.hadoop.io.Writable"/>
  10925. <doc>
  10926. <![CDATA[Set the instance that is wrapped.
  10927. @param obj]]>
  10928. </doc>
  10929. </method>
  10930. <method name="get" return="org.apache.hadoop.io.Writable"
  10931. abstract="false" native="false" synchronized="false"
  10932. static="false" final="false" visibility="public"
  10933. deprecated="not deprecated">
  10934. <doc>
  10935. <![CDATA[Return the wrapped instance.]]>
  10936. </doc>
  10937. </method>
  10938. <method name="toString" return="java.lang.String"
  10939. abstract="false" native="false" synchronized="false"
  10940. static="false" final="false" visibility="public"
  10941. deprecated="not deprecated">
  10942. </method>
  10943. <method name="readFields"
  10944. abstract="false" native="false" synchronized="false"
  10945. static="false" final="false" visibility="public"
  10946. deprecated="not deprecated">
  10947. <param name="in" type="java.io.DataInput"/>
  10948. <exception name="IOException" type="java.io.IOException"/>
  10949. </method>
  10950. <method name="write"
  10951. abstract="false" native="false" synchronized="false"
  10952. static="false" final="false" visibility="public"
  10953. deprecated="not deprecated">
  10954. <param name="out" type="java.io.DataOutput"/>
  10955. <exception name="IOException" type="java.io.IOException"/>
  10956. </method>
  10957. <method name="getTypes" return="java.lang.Class[]"
  10958. abstract="true" native="false" synchronized="false"
  10959. static="false" final="false" visibility="protected"
  10960. deprecated="not deprecated">
  10961. <doc>
  10962. <![CDATA[Return all classes that may be wrapped. Subclasses should implement this
  10963. to return a constant array of classes.]]>
  10964. </doc>
  10965. </method>
  10966. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  10967. abstract="false" native="false" synchronized="false"
  10968. static="false" final="false" visibility="public"
  10969. deprecated="not deprecated">
  10970. </method>
  10971. <method name="setConf"
  10972. abstract="false" native="false" synchronized="false"
  10973. static="false" final="false" visibility="public"
  10974. deprecated="not deprecated">
  10975. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10976. </method>
  10977. <doc>
  10978. <![CDATA[A wrapper for Writable instances.
  10979. <p>
  10980. When two sequence files, which have same Key type but different Value
  10981. types, are mapped out to reduce, multiple Value types is not allowed.
  10982. In this case, this class can help you wrap instances with different types.
  10983. </p>
  10984. <p>
  10985. Compared with <code>ObjectWritable</code>, this class is much more effective,
  10986. because <code>ObjectWritable</code> will append the class declaration as a String
  10987. into the output file in every Key-Value pair.
  10988. </p>
  10989. <p>
  10990. Generic Writable implements {@link Configurable} interface, so that it will be
  10991. configured by the framework. The configuration is passed to the wrapped objects
  10992. implementing {@link Configurable} interface <i>before deserialization</i>.
  10993. </p>
  10994. how to use it: <br>
  10995. 1. Write your own class, such as GenericObject, which extends GenericWritable.<br>
  10996. 2. Implements the abstract method <code>getTypes()</code>, defines
  10997. the classes which will be wrapped in GenericObject in application.
  10998. Attention: this classes defined in <code>getTypes()</code> method, must
  10999. implement <code>Writable</code> interface.
  11000. <br><br>
  11001. The code looks like this:
  11002. <blockquote><pre>
  11003. public class GenericObject extends GenericWritable {
  11004. private static Class[] CLASSES = {
  11005. ClassType1.class,
  11006. ClassType2.class,
  11007. ClassType3.class,
  11008. };
  11009. protected Class[] getTypes() {
  11010. return CLASSES;
  11011. }
  11012. }
  11013. </pre></blockquote>
  11014. @since Nov 8, 2006]]>
  11015. </doc>
  11016. </class>
  11017. <!-- end class org.apache.hadoop.io.GenericWritable -->
  11018. <!-- start class org.apache.hadoop.io.InputBuffer -->
  11019. <class name="InputBuffer" extends="java.io.FilterInputStream"
  11020. abstract="false"
  11021. static="false" final="false" visibility="public"
  11022. deprecated="not deprecated">
  11023. <constructor name="InputBuffer"
  11024. static="false" final="false" visibility="public"
  11025. deprecated="not deprecated">
  11026. <doc>
  11027. <![CDATA[Constructs a new empty buffer.]]>
  11028. </doc>
  11029. </constructor>
  11030. <method name="reset"
  11031. abstract="false" native="false" synchronized="false"
  11032. static="false" final="false" visibility="public"
  11033. deprecated="not deprecated">
  11034. <param name="input" type="byte[]"/>
  11035. <param name="length" type="int"/>
  11036. <doc>
  11037. <![CDATA[Resets the data that the buffer reads.]]>
  11038. </doc>
  11039. </method>
  11040. <method name="reset"
  11041. abstract="false" native="false" synchronized="false"
  11042. static="false" final="false" visibility="public"
  11043. deprecated="not deprecated">
  11044. <param name="input" type="byte[]"/>
  11045. <param name="start" type="int"/>
  11046. <param name="length" type="int"/>
  11047. <doc>
  11048. <![CDATA[Resets the data that the buffer reads.]]>
  11049. </doc>
  11050. </method>
  11051. <method name="getPosition" return="int"
  11052. abstract="false" native="false" synchronized="false"
  11053. static="false" final="false" visibility="public"
  11054. deprecated="not deprecated">
  11055. <doc>
  11056. <![CDATA[Returns the current position in the input.]]>
  11057. </doc>
  11058. </method>
  11059. <method name="getLength" return="int"
  11060. abstract="false" native="false" synchronized="false"
  11061. static="false" final="false" visibility="public"
  11062. deprecated="not deprecated">
  11063. <doc>
  11064. <![CDATA[Returns the length of the input.]]>
  11065. </doc>
  11066. </method>
  11067. <doc>
  11068. <![CDATA[A reusable {@link InputStream} implementation that reads from an in-memory
  11069. buffer.
  11070. <p>This saves memory over creating a new InputStream and
  11071. ByteArrayInputStream each time data is read.
  11072. <p>Typical usage is something like the following:<pre>
  11073. InputBuffer buffer = new InputBuffer();
  11074. while (... loop condition ...) {
  11075. byte[] data = ... get data ...;
  11076. int dataLength = ... get data length ...;
  11077. buffer.reset(data, dataLength);
  11078. ... read buffer using InputStream methods ...
  11079. }
  11080. </pre>
  11081. @see DataInputBuffer
  11082. @see DataOutput]]>
  11083. </doc>
  11084. </class>
  11085. <!-- end class org.apache.hadoop.io.InputBuffer -->
  11086. <!-- start class org.apache.hadoop.io.IntWritable -->
  11087. <class name="IntWritable" extends="java.lang.Object"
  11088. abstract="false"
  11089. static="false" final="false" visibility="public"
  11090. deprecated="not deprecated">
  11091. <implements name="org.apache.hadoop.io.WritableComparable"/>
  11092. <constructor name="IntWritable"
  11093. static="false" final="false" visibility="public"
  11094. deprecated="not deprecated">
  11095. </constructor>
  11096. <constructor name="IntWritable" type="int"
  11097. static="false" final="false" visibility="public"
  11098. deprecated="not deprecated">
  11099. </constructor>
  11100. <method name="set"
  11101. abstract="false" native="false" synchronized="false"
  11102. static="false" final="false" visibility="public"
  11103. deprecated="not deprecated">
  11104. <param name="value" type="int"/>
  11105. <doc>
  11106. <![CDATA[Set the value of this IntWritable.]]>
  11107. </doc>
  11108. </method>
  11109. <method name="get" return="int"
  11110. abstract="false" native="false" synchronized="false"
  11111. static="false" final="false" visibility="public"
  11112. deprecated="not deprecated">
  11113. <doc>
  11114. <![CDATA[Return the value of this IntWritable.]]>
  11115. </doc>
  11116. </method>
  11117. <method name="readFields"
  11118. abstract="false" native="false" synchronized="false"
  11119. static="false" final="false" visibility="public"
  11120. deprecated="not deprecated">
  11121. <param name="in" type="java.io.DataInput"/>
  11122. <exception name="IOException" type="java.io.IOException"/>
  11123. </method>
  11124. <method name="write"
  11125. abstract="false" native="false" synchronized="false"
  11126. static="false" final="false" visibility="public"
  11127. deprecated="not deprecated">
  11128. <param name="out" type="java.io.DataOutput"/>
  11129. <exception name="IOException" type="java.io.IOException"/>
  11130. </method>
  11131. <method name="equals" return="boolean"
  11132. abstract="false" native="false" synchronized="false"
  11133. static="false" final="false" visibility="public"
  11134. deprecated="not deprecated">
  11135. <param name="o" type="java.lang.Object"/>
  11136. <doc>
  11137. <![CDATA[Returns true iff <code>o</code> is a IntWritable with the same value.]]>
  11138. </doc>
  11139. </method>
  11140. <method name="hashCode" return="int"
  11141. abstract="false" native="false" synchronized="false"
  11142. static="false" final="false" visibility="public"
  11143. deprecated="not deprecated">
  11144. </method>
  11145. <method name="compareTo" return="int"
  11146. abstract="false" native="false" synchronized="false"
  11147. static="false" final="false" visibility="public"
  11148. deprecated="not deprecated">
  11149. <param name="o" type="java.lang.Object"/>
  11150. <doc>
  11151. <![CDATA[Compares two IntWritables.]]>
  11152. </doc>
  11153. </method>
  11154. <method name="toString" return="java.lang.String"
  11155. abstract="false" native="false" synchronized="false"
  11156. static="false" final="false" visibility="public"
  11157. deprecated="not deprecated">
  11158. </method>
  11159. <doc>
  11160. <![CDATA[A WritableComparable for ints.]]>
  11161. </doc>
  11162. </class>
  11163. <!-- end class org.apache.hadoop.io.IntWritable -->
  11164. <!-- start class org.apache.hadoop.io.IntWritable.Comparator -->
  11165. <class name="IntWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  11166. abstract="false"
  11167. static="true" final="false" visibility="public"
  11168. deprecated="not deprecated">
  11169. <constructor name="IntWritable.Comparator"
  11170. static="false" final="false" visibility="public"
  11171. deprecated="not deprecated">
  11172. </constructor>
  11173. <method name="compare" return="int"
  11174. abstract="false" native="false" synchronized="false"
  11175. static="false" final="false" visibility="public"
  11176. deprecated="not deprecated">
  11177. <param name="b1" type="byte[]"/>
  11178. <param name="s1" type="int"/>
  11179. <param name="l1" type="int"/>
  11180. <param name="b2" type="byte[]"/>
  11181. <param name="s2" type="int"/>
  11182. <param name="l2" type="int"/>
  11183. </method>
  11184. <doc>
  11185. <![CDATA[A Comparator optimized for IntWritable.]]>
  11186. </doc>
  11187. </class>
  11188. <!-- end class org.apache.hadoop.io.IntWritable.Comparator -->
  11189. <!-- start class org.apache.hadoop.io.IOUtils -->
  11190. <class name="IOUtils" extends="java.lang.Object"
  11191. abstract="false"
  11192. static="false" final="false" visibility="public"
  11193. deprecated="not deprecated">
  11194. <constructor name="IOUtils"
  11195. static="false" final="false" visibility="public"
  11196. deprecated="not deprecated">
  11197. </constructor>
  11198. <method name="copyBytes"
  11199. abstract="false" native="false" synchronized="false"
  11200. static="true" final="false" visibility="public"
  11201. deprecated="not deprecated">
  11202. <param name="in" type="java.io.InputStream"/>
  11203. <param name="out" type="java.io.OutputStream"/>
  11204. <param name="buffSize" type="int"/>
  11205. <param name="close" type="boolean"/>
  11206. <exception name="IOException" type="java.io.IOException"/>
  11207. <doc>
  11208. <![CDATA[Copies from one stream to another.
  11209. @param in InputStrem to read from
  11210. @param out OutputStream to write to
  11211. @param buffSize the size of the buffer
  11212. @param close whether or not close the InputStream and
  11213. OutputStream at the end. The streams are closed in the finally clause.]]>
  11214. </doc>
  11215. </method>
  11216. <method name="copyBytes"
  11217. abstract="false" native="false" synchronized="false"
  11218. static="true" final="false" visibility="public"
  11219. deprecated="not deprecated">
  11220. <param name="in" type="java.io.InputStream"/>
  11221. <param name="out" type="java.io.OutputStream"/>
  11222. <param name="buffSize" type="int"/>
  11223. <exception name="IOException" type="java.io.IOException"/>
  11224. <doc>
  11225. <![CDATA[Copies from one stream to another.
  11226. @param in InputStrem to read from
  11227. @param out OutputStream to write to
  11228. @param buffSize the size of the buffer]]>
  11229. </doc>
  11230. </method>
  11231. <method name="copyBytes"
  11232. abstract="false" native="false" synchronized="false"
  11233. static="true" final="false" visibility="public"
  11234. deprecated="not deprecated">
  11235. <param name="in" type="java.io.InputStream"/>
  11236. <param name="out" type="java.io.OutputStream"/>
  11237. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11238. <exception name="IOException" type="java.io.IOException"/>
  11239. <doc>
  11240. <![CDATA[Copies from one stream to another. <strong>closes the input and output streams
  11241. at the end</strong>.
  11242. @param in InputStrem to read from
  11243. @param out OutputStream to write to
  11244. @param conf the Configuration object]]>
  11245. </doc>
  11246. </method>
  11247. <method name="copyBytes"
  11248. abstract="false" native="false" synchronized="false"
  11249. static="true" final="false" visibility="public"
  11250. deprecated="not deprecated">
  11251. <param name="in" type="java.io.InputStream"/>
  11252. <param name="out" type="java.io.OutputStream"/>
  11253. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11254. <param name="close" type="boolean"/>
  11255. <exception name="IOException" type="java.io.IOException"/>
  11256. <doc>
  11257. <![CDATA[Copies from one stream to another.
  11258. @param in InputStrem to read from
  11259. @param out OutputStream to write to
  11260. @param conf the Configuration object
  11261. @param close whether or not close the InputStream and
  11262. OutputStream at the end. The streams are closed in the finally clause.]]>
  11263. </doc>
  11264. </method>
  11265. <method name="copyBytes"
  11266. abstract="false" native="false" synchronized="false"
  11267. static="true" final="false" visibility="public"
  11268. deprecated="not deprecated">
  11269. <param name="in" type="java.io.InputStream"/>
  11270. <param name="out" type="java.io.OutputStream"/>
  11271. <param name="length" type="long"/>
  11272. <param name="bufferSize" type="int"/>
  11273. <param name="close" type="boolean"/>
  11274. <exception name="IOException" type="java.io.IOException"/>
  11275. <doc>
  11276. <![CDATA[Copies the specified length of bytes from in to out.
  11277. @param in InputStream to read from
  11278. @param out OutputStream to write to
  11279. @param length number of bytes to copy
  11280. @param bufferSize the size of the buffer
  11281. @param close whether to close the streams
  11282. @throws IOException if bytes can not be read or written]]>
  11283. </doc>
  11284. </method>
  11285. <method name="readFully"
  11286. abstract="false" native="false" synchronized="false"
  11287. static="true" final="false" visibility="public"
  11288. deprecated="not deprecated">
  11289. <param name="in" type="java.io.InputStream"/>
  11290. <param name="buf" type="byte[]"/>
  11291. <param name="off" type="int"/>
  11292. <param name="len" type="int"/>
  11293. <exception name="IOException" type="java.io.IOException"/>
  11294. <doc>
  11295. <![CDATA[Reads len bytes in a loop.
  11296. @param in The InputStream to read from
  11297. @param buf The buffer to fill
  11298. @param off offset from the buffer
  11299. @param len the length of bytes to read
  11300. @throws IOException if it could not read requested number of bytes
  11301. for any reason (including EOF)]]>
  11302. </doc>
  11303. </method>
  11304. <method name="readFileChannelFully"
  11305. abstract="false" native="false" synchronized="false"
  11306. static="true" final="false" visibility="public"
  11307. deprecated="not deprecated">
  11308. <param name="fileChannel" type="java.nio.channels.FileChannel"/>
  11309. <param name="buf" type="byte[]"/>
  11310. <param name="off" type="int"/>
  11311. <param name="len" type="int"/>
  11312. <exception name="IOException" type="java.io.IOException"/>
  11313. <doc>
  11314. <![CDATA[Reads len bytes in a loop using the channel of the stream
  11315. @param fileChannel a FileChannel to read len bytes into buf
  11316. @param buf The buffer to fill
  11317. @param off offset from the buffer
  11318. @param len the length of bytes to read
  11319. @throws IOException if it could not read requested number of bytes
  11320. for any reason (including EOF)]]>
  11321. </doc>
  11322. </method>
  11323. <method name="skipFully"
  11324. abstract="false" native="false" synchronized="false"
  11325. static="true" final="false" visibility="public"
  11326. deprecated="not deprecated">
  11327. <param name="in" type="java.io.InputStream"/>
  11328. <param name="len" type="long"/>
  11329. <exception name="IOException" type="java.io.IOException"/>
  11330. <doc>
  11331. <![CDATA[Similar to readFully(). Skips bytes in a loop.
  11332. @param in The InputStream to skip bytes from
  11333. @param len number of bytes to skip.
  11334. @throws IOException if it could not skip requested number of bytes
  11335. for any reason (including EOF)]]>
  11336. </doc>
  11337. </method>
  11338. <method name="cleanup"
  11339. abstract="false" native="false" synchronized="false"
  11340. static="true" final="false" visibility="public"
  11341. deprecated="not deprecated">
  11342. <param name="log" type="org.apache.commons.logging.Log"/>
  11343. <param name="closeables" type="java.io.Closeable[]"/>
  11344. <doc>
  11345. <![CDATA[Close the Closeable objects and <b>ignore</b> any {@link IOException} or
  11346. null pointers. Must only be used for cleanup in exception handlers.
  11347. @param log the log to record problems to at debug level. Can be null.
  11348. @param closeables the objects to close]]>
  11349. </doc>
  11350. </method>
  11351. <method name="closeStream"
  11352. abstract="false" native="false" synchronized="false"
  11353. static="true" final="false" visibility="public"
  11354. deprecated="not deprecated">
  11355. <param name="stream" type="java.io.Closeable"/>
  11356. <doc>
  11357. <![CDATA[Closes the stream ignoring {@link IOException}.
  11358. Must only be called in cleaning up from exception handlers.
  11359. @param stream the Stream to close]]>
  11360. </doc>
  11361. </method>
  11362. <method name="closeSocket"
  11363. abstract="false" native="false" synchronized="false"
  11364. static="true" final="false" visibility="public"
  11365. deprecated="not deprecated">
  11366. <param name="sock" type="java.net.Socket"/>
  11367. <doc>
  11368. <![CDATA[Closes the socket ignoring {@link IOException}
  11369. @param sock the Socket to close]]>
  11370. </doc>
  11371. </method>
  11372. <doc>
  11373. <![CDATA[An utility class for I/O related functionality.]]>
  11374. </doc>
  11375. </class>
  11376. <!-- end class org.apache.hadoop.io.IOUtils -->
  11377. <!-- start class org.apache.hadoop.io.IOUtils.NullOutputStream -->
  11378. <class name="IOUtils.NullOutputStream" extends="java.io.OutputStream"
  11379. abstract="false"
  11380. static="true" final="false" visibility="public"
  11381. deprecated="not deprecated">
  11382. <constructor name="IOUtils.NullOutputStream"
  11383. static="false" final="false" visibility="public"
  11384. deprecated="not deprecated">
  11385. </constructor>
  11386. <method name="write"
  11387. abstract="false" native="false" synchronized="false"
  11388. static="false" final="false" visibility="public"
  11389. deprecated="not deprecated">
  11390. <param name="b" type="byte[]"/>
  11391. <param name="off" type="int"/>
  11392. <param name="len" type="int"/>
  11393. <exception name="IOException" type="java.io.IOException"/>
  11394. </method>
  11395. <method name="write"
  11396. abstract="false" native="false" synchronized="false"
  11397. static="false" final="false" visibility="public"
  11398. deprecated="not deprecated">
  11399. <param name="b" type="int"/>
  11400. <exception name="IOException" type="java.io.IOException"/>
  11401. </method>
  11402. <doc>
  11403. <![CDATA[/dev/null of OutputStreams.]]>
  11404. </doc>
  11405. </class>
  11406. <!-- end class org.apache.hadoop.io.IOUtils.NullOutputStream -->
  11407. <!-- start class org.apache.hadoop.io.LongWritable -->
  11408. <class name="LongWritable" extends="java.lang.Object"
  11409. abstract="false"
  11410. static="false" final="false" visibility="public"
  11411. deprecated="not deprecated">
  11412. <implements name="org.apache.hadoop.io.WritableComparable"/>
  11413. <constructor name="LongWritable"
  11414. static="false" final="false" visibility="public"
  11415. deprecated="not deprecated">
  11416. </constructor>
  11417. <constructor name="LongWritable" type="long"
  11418. static="false" final="false" visibility="public"
  11419. deprecated="not deprecated">
  11420. </constructor>
  11421. <method name="set"
  11422. abstract="false" native="false" synchronized="false"
  11423. static="false" final="false" visibility="public"
  11424. deprecated="not deprecated">
  11425. <param name="value" type="long"/>
  11426. <doc>
  11427. <![CDATA[Set the value of this LongWritable.]]>
  11428. </doc>
  11429. </method>
  11430. <method name="get" return="long"
  11431. abstract="false" native="false" synchronized="false"
  11432. static="false" final="false" visibility="public"
  11433. deprecated="not deprecated">
  11434. <doc>
  11435. <![CDATA[Return the value of this LongWritable.]]>
  11436. </doc>
  11437. </method>
  11438. <method name="readFields"
  11439. abstract="false" native="false" synchronized="false"
  11440. static="false" final="false" visibility="public"
  11441. deprecated="not deprecated">
  11442. <param name="in" type="java.io.DataInput"/>
  11443. <exception name="IOException" type="java.io.IOException"/>
  11444. </method>
  11445. <method name="write"
  11446. abstract="false" native="false" synchronized="false"
  11447. static="false" final="false" visibility="public"
  11448. deprecated="not deprecated">
  11449. <param name="out" type="java.io.DataOutput"/>
  11450. <exception name="IOException" type="java.io.IOException"/>
  11451. </method>
  11452. <method name="equals" return="boolean"
  11453. abstract="false" native="false" synchronized="false"
  11454. static="false" final="false" visibility="public"
  11455. deprecated="not deprecated">
  11456. <param name="o" type="java.lang.Object"/>
  11457. <doc>
  11458. <![CDATA[Returns true iff <code>o</code> is a LongWritable with the same value.]]>
  11459. </doc>
  11460. </method>
  11461. <method name="hashCode" return="int"
  11462. abstract="false" native="false" synchronized="false"
  11463. static="false" final="false" visibility="public"
  11464. deprecated="not deprecated">
  11465. </method>
  11466. <method name="compareTo" return="int"
  11467. abstract="false" native="false" synchronized="false"
  11468. static="false" final="false" visibility="public"
  11469. deprecated="not deprecated">
  11470. <param name="o" type="java.lang.Object"/>
  11471. <doc>
  11472. <![CDATA[Compares two LongWritables.]]>
  11473. </doc>
  11474. </method>
  11475. <method name="toString" return="java.lang.String"
  11476. abstract="false" native="false" synchronized="false"
  11477. static="false" final="false" visibility="public"
  11478. deprecated="not deprecated">
  11479. </method>
  11480. <doc>
  11481. <![CDATA[A WritableComparable for longs.]]>
  11482. </doc>
  11483. </class>
  11484. <!-- end class org.apache.hadoop.io.LongWritable -->
  11485. <!-- start class org.apache.hadoop.io.LongWritable.Comparator -->
  11486. <class name="LongWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  11487. abstract="false"
  11488. static="true" final="false" visibility="public"
  11489. deprecated="not deprecated">
  11490. <constructor name="LongWritable.Comparator"
  11491. static="false" final="false" visibility="public"
  11492. deprecated="not deprecated">
  11493. </constructor>
  11494. <method name="compare" return="int"
  11495. abstract="false" native="false" synchronized="false"
  11496. static="false" final="false" visibility="public"
  11497. deprecated="not deprecated">
  11498. <param name="b1" type="byte[]"/>
  11499. <param name="s1" type="int"/>
  11500. <param name="l1" type="int"/>
  11501. <param name="b2" type="byte[]"/>
  11502. <param name="s2" type="int"/>
  11503. <param name="l2" type="int"/>
  11504. </method>
  11505. <doc>
  11506. <![CDATA[A Comparator optimized for LongWritable.]]>
  11507. </doc>
  11508. </class>
  11509. <!-- end class org.apache.hadoop.io.LongWritable.Comparator -->
  11510. <!-- start class org.apache.hadoop.io.LongWritable.DecreasingComparator -->
  11511. <class name="LongWritable.DecreasingComparator" extends="org.apache.hadoop.io.LongWritable.Comparator"
  11512. abstract="false"
  11513. static="true" final="false" visibility="public"
  11514. deprecated="not deprecated">
  11515. <constructor name="LongWritable.DecreasingComparator"
  11516. static="false" final="false" visibility="public"
  11517. deprecated="not deprecated">
  11518. </constructor>
  11519. <method name="compare" return="int"
  11520. abstract="false" native="false" synchronized="false"
  11521. static="false" final="false" visibility="public"
  11522. deprecated="not deprecated">
  11523. <param name="a" type="org.apache.hadoop.io.WritableComparable"/>
  11524. <param name="b" type="org.apache.hadoop.io.WritableComparable"/>
  11525. </method>
  11526. <method name="compare" return="int"
  11527. abstract="false" native="false" synchronized="false"
  11528. static="false" final="false" visibility="public"
  11529. deprecated="not deprecated">
  11530. <param name="b1" type="byte[]"/>
  11531. <param name="s1" type="int"/>
  11532. <param name="l1" type="int"/>
  11533. <param name="b2" type="byte[]"/>
  11534. <param name="s2" type="int"/>
  11535. <param name="l2" type="int"/>
  11536. </method>
  11537. <doc>
  11538. <![CDATA[A decreasing Comparator optimized for LongWritable.]]>
  11539. </doc>
  11540. </class>
  11541. <!-- end class org.apache.hadoop.io.LongWritable.DecreasingComparator -->
  11542. <!-- start class org.apache.hadoop.io.MapFile -->
  11543. <class name="MapFile" extends="java.lang.Object"
  11544. abstract="false"
  11545. static="false" final="false" visibility="public"
  11546. deprecated="not deprecated">
  11547. <constructor name="MapFile"
  11548. static="false" final="false" visibility="protected"
  11549. deprecated="not deprecated">
  11550. </constructor>
  11551. <method name="rename"
  11552. abstract="false" native="false" synchronized="false"
  11553. static="true" final="false" visibility="public"
  11554. deprecated="not deprecated">
  11555. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11556. <param name="oldName" type="java.lang.String"/>
  11557. <param name="newName" type="java.lang.String"/>
  11558. <exception name="IOException" type="java.io.IOException"/>
  11559. <doc>
  11560. <![CDATA[Renames an existing map directory.]]>
  11561. </doc>
  11562. </method>
  11563. <method name="delete"
  11564. abstract="false" native="false" synchronized="false"
  11565. static="true" final="false" visibility="public"
  11566. deprecated="not deprecated">
  11567. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11568. <param name="name" type="java.lang.String"/>
  11569. <exception name="IOException" type="java.io.IOException"/>
  11570. <doc>
  11571. <![CDATA[Deletes the named map file.]]>
  11572. </doc>
  11573. </method>
  11574. <method name="fix" return="long"
  11575. abstract="false" native="false" synchronized="false"
  11576. static="true" final="false" visibility="public"
  11577. deprecated="not deprecated">
  11578. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11579. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  11580. <param name="keyClass" type="java.lang.Class"/>
  11581. <param name="valueClass" type="java.lang.Class"/>
  11582. <param name="dryrun" type="boolean"/>
  11583. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11584. <exception name="Exception" type="java.lang.Exception"/>
  11585. <doc>
  11586. <![CDATA[This method attempts to fix a corrupt MapFile by re-creating its index.
  11587. @param fs filesystem
  11588. @param dir directory containing the MapFile data and index
  11589. @param keyClass key class (has to be a subclass of Writable)
  11590. @param valueClass value class (has to be a subclass of Writable)
  11591. @param dryrun do not perform any changes, just report what needs to be done
  11592. @return number of valid entries in this MapFile, or -1 if no fixing was needed
  11593. @throws Exception]]>
  11594. </doc>
  11595. </method>
  11596. <method name="main"
  11597. abstract="false" native="false" synchronized="false"
  11598. static="true" final="false" visibility="public"
  11599. deprecated="not deprecated">
  11600. <param name="args" type="java.lang.String[]"/>
  11601. <exception name="Exception" type="java.lang.Exception"/>
  11602. </method>
  11603. <field name="INDEX_FILE_NAME" type="java.lang.String"
  11604. transient="false" volatile="false"
  11605. static="true" final="true" visibility="public"
  11606. deprecated="not deprecated">
  11607. <doc>
  11608. <![CDATA[The name of the index file.]]>
  11609. </doc>
  11610. </field>
  11611. <field name="DATA_FILE_NAME" type="java.lang.String"
  11612. transient="false" volatile="false"
  11613. static="true" final="true" visibility="public"
  11614. deprecated="not deprecated">
  11615. <doc>
  11616. <![CDATA[The name of the data file.]]>
  11617. </doc>
  11618. </field>
  11619. <doc>
  11620. <![CDATA[A file-based map from keys to values.
  11621. <p>A map is a directory containing two files, the <code>data</code> file,
  11622. containing all keys and values in the map, and a smaller <code>index</code>
  11623. file, containing a fraction of the keys. The fraction is determined by
  11624. {@link Writer#getIndexInterval()}.
  11625. <p>The index file is read entirely into memory. Thus key implementations
  11626. should try to keep themselves small.
  11627. <p>Map files are created by adding entries in-order. To maintain a large
  11628. database, perform updates by copying the previous version of a database and
  11629. merging in a sorted change list, to create a new version of the database in
  11630. a new file. Sorting large change lists can be done with {@link
  11631. SequenceFile.Sorter}.]]>
  11632. </doc>
  11633. </class>
  11634. <!-- end class org.apache.hadoop.io.MapFile -->
  11635. <!-- start class org.apache.hadoop.io.MapFile.Reader -->
  11636. <class name="MapFile.Reader" extends="java.lang.Object"
  11637. abstract="false"
  11638. static="true" final="false" visibility="public"
  11639. deprecated="not deprecated">
  11640. <implements name="java.io.Closeable"/>
  11641. <constructor name="MapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  11642. static="false" final="false" visibility="public"
  11643. deprecated="not deprecated">
  11644. <exception name="IOException" type="java.io.IOException"/>
  11645. <doc>
  11646. <![CDATA[Construct a map reader for the named map.]]>
  11647. </doc>
  11648. </constructor>
  11649. <constructor name="MapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration"
  11650. static="false" final="false" visibility="public"
  11651. deprecated="not deprecated">
  11652. <exception name="IOException" type="java.io.IOException"/>
  11653. <doc>
  11654. <![CDATA[Construct a map reader for the named map using the named comparator.]]>
  11655. </doc>
  11656. </constructor>
  11657. <constructor name="MapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration, boolean"
  11658. static="false" final="false" visibility="protected"
  11659. deprecated="not deprecated">
  11660. <exception name="IOException" type="java.io.IOException"/>
  11661. <doc>
  11662. <![CDATA[Hook to allow subclasses to defer opening streams until further
  11663. initialization is complete.
  11664. @see #createDataFileReader(FileSystem, Path, Configuration)]]>
  11665. </doc>
  11666. </constructor>
  11667. <method name="getKeyClass" return="java.lang.Class"
  11668. abstract="false" native="false" synchronized="false"
  11669. static="false" final="false" visibility="public"
  11670. deprecated="not deprecated">
  11671. <doc>
  11672. <![CDATA[Returns the class of keys in this file.]]>
  11673. </doc>
  11674. </method>
  11675. <method name="getValueClass" return="java.lang.Class"
  11676. abstract="false" native="false" synchronized="false"
  11677. static="false" final="false" visibility="public"
  11678. deprecated="not deprecated">
  11679. <doc>
  11680. <![CDATA[Returns the class of values in this file.]]>
  11681. </doc>
  11682. </method>
  11683. <method name="open"
  11684. abstract="false" native="false" synchronized="true"
  11685. static="false" final="false" visibility="protected"
  11686. deprecated="not deprecated">
  11687. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11688. <param name="dirName" type="java.lang.String"/>
  11689. <param name="comparator" type="org.apache.hadoop.io.WritableComparator"/>
  11690. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11691. <exception name="IOException" type="java.io.IOException"/>
  11692. </method>
  11693. <method name="createDataFileReader" return="org.apache.hadoop.io.SequenceFile.Reader"
  11694. abstract="false" native="false" synchronized="false"
  11695. static="false" final="false" visibility="protected"
  11696. deprecated="not deprecated">
  11697. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11698. <param name="dataFile" type="org.apache.hadoop.fs.Path"/>
  11699. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11700. <exception name="IOException" type="java.io.IOException"/>
  11701. <doc>
  11702. <![CDATA[Override this method to specialize the type of
  11703. {@link SequenceFile.Reader} returned.]]>
  11704. </doc>
  11705. </method>
  11706. <method name="reset"
  11707. abstract="false" native="false" synchronized="true"
  11708. static="false" final="false" visibility="public"
  11709. deprecated="not deprecated">
  11710. <exception name="IOException" type="java.io.IOException"/>
  11711. <doc>
  11712. <![CDATA[Re-positions the reader before its first key.]]>
  11713. </doc>
  11714. </method>
  11715. <method name="midKey" return="org.apache.hadoop.io.WritableComparable"
  11716. abstract="false" native="false" synchronized="true"
  11717. static="false" final="false" visibility="public"
  11718. deprecated="not deprecated">
  11719. <exception name="IOException" type="java.io.IOException"/>
  11720. <doc>
  11721. <![CDATA[Get the key at approximately the middle of the file.
  11722. @throws IOException]]>
  11723. </doc>
  11724. </method>
  11725. <method name="finalKey"
  11726. abstract="false" native="false" synchronized="true"
  11727. static="false" final="false" visibility="public"
  11728. deprecated="not deprecated">
  11729. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11730. <exception name="IOException" type="java.io.IOException"/>
  11731. <doc>
  11732. <![CDATA[Reads the final key from the file.
  11733. @param key key to read into]]>
  11734. </doc>
  11735. </method>
  11736. <method name="seek" return="boolean"
  11737. abstract="false" native="false" synchronized="true"
  11738. static="false" final="false" visibility="public"
  11739. deprecated="not deprecated">
  11740. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11741. <exception name="IOException" type="java.io.IOException"/>
  11742. <doc>
  11743. <![CDATA[Positions the reader at the named key, or if none such exists, at the
  11744. first entry after the named key. Returns true iff the named key exists
  11745. in this map.]]>
  11746. </doc>
  11747. </method>
  11748. <method name="next" return="boolean"
  11749. abstract="false" native="false" synchronized="true"
  11750. static="false" final="false" visibility="public"
  11751. deprecated="not deprecated">
  11752. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11753. <param name="val" type="org.apache.hadoop.io.Writable"/>
  11754. <exception name="IOException" type="java.io.IOException"/>
  11755. <doc>
  11756. <![CDATA[Read the next key/value pair in the map into <code>key</code> and
  11757. <code>val</code>. Returns true if such a pair exists and false when at
  11758. the end of the map]]>
  11759. </doc>
  11760. </method>
  11761. <method name="get" return="org.apache.hadoop.io.Writable"
  11762. abstract="false" native="false" synchronized="true"
  11763. static="false" final="false" visibility="public"
  11764. deprecated="not deprecated">
  11765. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11766. <param name="val" type="org.apache.hadoop.io.Writable"/>
  11767. <exception name="IOException" type="java.io.IOException"/>
  11768. <doc>
  11769. <![CDATA[Return the value for the named key, or null if none exists.]]>
  11770. </doc>
  11771. </method>
  11772. <method name="getClosest" return="org.apache.hadoop.io.WritableComparable"
  11773. abstract="false" native="false" synchronized="true"
  11774. static="false" final="false" visibility="public"
  11775. deprecated="not deprecated">
  11776. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11777. <param name="val" type="org.apache.hadoop.io.Writable"/>
  11778. <exception name="IOException" type="java.io.IOException"/>
  11779. <doc>
  11780. <![CDATA[Finds the record that is the closest match to the specified key.
  11781. Returns <code>key</code> or if it does not exist, at the first entry
  11782. after the named key.
  11783. - * @param key - key that we're trying to find
  11784. - * @param val - data value if key is found
  11785. - * @return - the key that was the closest match or null if eof.]]>
  11786. </doc>
  11787. </method>
  11788. <method name="getClosest" return="org.apache.hadoop.io.WritableComparable"
  11789. abstract="false" native="false" synchronized="true"
  11790. static="false" final="false" visibility="public"
  11791. deprecated="not deprecated">
  11792. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11793. <param name="val" type="org.apache.hadoop.io.Writable"/>
  11794. <param name="before" type="boolean"/>
  11795. <exception name="IOException" type="java.io.IOException"/>
  11796. <doc>
  11797. <![CDATA[Finds the record that is the closest match to the specified key.
  11798. @param key - key that we're trying to find
  11799. @param val - data value if key is found
  11800. @param before - IF true, and <code>key</code> does not exist, return
  11801. the first entry that falls just before the <code>key</code>. Otherwise,
  11802. return the record that sorts just after.
  11803. @return - the key that was the closest match or null if eof.]]>
  11804. </doc>
  11805. </method>
  11806. <method name="close"
  11807. abstract="false" native="false" synchronized="true"
  11808. static="false" final="false" visibility="public"
  11809. deprecated="not deprecated">
  11810. <exception name="IOException" type="java.io.IOException"/>
  11811. <doc>
  11812. <![CDATA[Close the map.]]>
  11813. </doc>
  11814. </method>
  11815. <doc>
  11816. <![CDATA[Provide access to an existing map.]]>
  11817. </doc>
  11818. </class>
  11819. <!-- end class org.apache.hadoop.io.MapFile.Reader -->
  11820. <!-- start class org.apache.hadoop.io.MapFile.Writer -->
  11821. <class name="MapFile.Writer" extends="java.lang.Object"
  11822. abstract="false"
  11823. static="true" final="false" visibility="public"
  11824. deprecated="not deprecated">
  11825. <implements name="java.io.Closeable"/>
  11826. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class"
  11827. static="false" final="false" visibility="public"
  11828. deprecated="not deprecated">
  11829. <exception name="IOException" type="java.io.IOException"/>
  11830. <doc>
  11831. <![CDATA[Create the named map for keys of the named class.]]>
  11832. </doc>
  11833. </constructor>
  11834. <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"
  11835. static="false" final="false" visibility="public"
  11836. deprecated="not deprecated">
  11837. <exception name="IOException" type="java.io.IOException"/>
  11838. <doc>
  11839. <![CDATA[Create the named map for keys of the named class.]]>
  11840. </doc>
  11841. </constructor>
  11842. <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"
  11843. static="false" final="false" visibility="public"
  11844. deprecated="not deprecated">
  11845. <exception name="IOException" type="java.io.IOException"/>
  11846. <doc>
  11847. <![CDATA[Create the named map for keys of the named class.]]>
  11848. </doc>
  11849. </constructor>
  11850. <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"
  11851. static="false" final="false" visibility="public"
  11852. deprecated="not deprecated">
  11853. <exception name="IOException" type="java.io.IOException"/>
  11854. <doc>
  11855. <![CDATA[Create the named map for keys of the named class.]]>
  11856. </doc>
  11857. </constructor>
  11858. <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"
  11859. static="false" final="false" visibility="public"
  11860. deprecated="not deprecated">
  11861. <exception name="IOException" type="java.io.IOException"/>
  11862. <doc>
  11863. <![CDATA[Create the named map using the named key comparator.]]>
  11864. </doc>
  11865. </constructor>
  11866. <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"
  11867. static="false" final="false" visibility="public"
  11868. deprecated="not deprecated">
  11869. <exception name="IOException" type="java.io.IOException"/>
  11870. <doc>
  11871. <![CDATA[Create the named map using the named key comparator.]]>
  11872. </doc>
  11873. </constructor>
  11874. <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"
  11875. static="false" final="false" visibility="public"
  11876. deprecated="not deprecated">
  11877. <exception name="IOException" type="java.io.IOException"/>
  11878. <doc>
  11879. <![CDATA[Create the named map using the named key comparator.]]>
  11880. </doc>
  11881. </constructor>
  11882. <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"
  11883. static="false" final="false" visibility="public"
  11884. deprecated="not deprecated">
  11885. <exception name="IOException" type="java.io.IOException"/>
  11886. <doc>
  11887. <![CDATA[Create the named map using the named key comparator.]]>
  11888. </doc>
  11889. </constructor>
  11890. <method name="getIndexInterval" return="int"
  11891. abstract="false" native="false" synchronized="false"
  11892. static="false" final="false" visibility="public"
  11893. deprecated="not deprecated">
  11894. <doc>
  11895. <![CDATA[The number of entries that are added before an index entry is added.]]>
  11896. </doc>
  11897. </method>
  11898. <method name="setIndexInterval"
  11899. abstract="false" native="false" synchronized="false"
  11900. static="false" final="false" visibility="public"
  11901. deprecated="not deprecated">
  11902. <param name="interval" type="int"/>
  11903. <doc>
  11904. <![CDATA[Sets the index interval.
  11905. @see #getIndexInterval()]]>
  11906. </doc>
  11907. </method>
  11908. <method name="setIndexInterval"
  11909. abstract="false" native="false" synchronized="false"
  11910. static="true" final="false" visibility="public"
  11911. deprecated="not deprecated">
  11912. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11913. <param name="interval" type="int"/>
  11914. <doc>
  11915. <![CDATA[Sets the index interval and stores it in conf
  11916. @see #getIndexInterval()]]>
  11917. </doc>
  11918. </method>
  11919. <method name="close"
  11920. abstract="false" native="false" synchronized="true"
  11921. static="false" final="false" visibility="public"
  11922. deprecated="not deprecated">
  11923. <exception name="IOException" type="java.io.IOException"/>
  11924. <doc>
  11925. <![CDATA[Close the map.]]>
  11926. </doc>
  11927. </method>
  11928. <method name="append"
  11929. abstract="false" native="false" synchronized="true"
  11930. static="false" final="false" visibility="public"
  11931. deprecated="not deprecated">
  11932. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11933. <param name="val" type="org.apache.hadoop.io.Writable"/>
  11934. <exception name="IOException" type="java.io.IOException"/>
  11935. <doc>
  11936. <![CDATA[Append a key/value pair to the map. The key must be greater or equal
  11937. to the previous key added to the map.]]>
  11938. </doc>
  11939. </method>
  11940. <doc>
  11941. <![CDATA[Writes a new map.]]>
  11942. </doc>
  11943. </class>
  11944. <!-- end class org.apache.hadoop.io.MapFile.Writer -->
  11945. <!-- start class org.apache.hadoop.io.MapWritable -->
  11946. <class name="MapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  11947. abstract="false"
  11948. static="false" final="false" visibility="public"
  11949. deprecated="not deprecated">
  11950. <implements name="java.util.Map"/>
  11951. <constructor name="MapWritable"
  11952. static="false" final="false" visibility="public"
  11953. deprecated="not deprecated">
  11954. <doc>
  11955. <![CDATA[Default constructor.]]>
  11956. </doc>
  11957. </constructor>
  11958. <constructor name="MapWritable" type="org.apache.hadoop.io.MapWritable"
  11959. static="false" final="false" visibility="public"
  11960. deprecated="not deprecated">
  11961. <doc>
  11962. <![CDATA[Copy constructor.
  11963. @param other the map to copy from]]>
  11964. </doc>
  11965. </constructor>
  11966. <method name="clear"
  11967. abstract="false" native="false" synchronized="false"
  11968. static="false" final="false" visibility="public"
  11969. deprecated="not deprecated">
  11970. <doc>
  11971. <![CDATA[{@inheritDoc}]]>
  11972. </doc>
  11973. </method>
  11974. <method name="containsKey" return="boolean"
  11975. abstract="false" native="false" synchronized="false"
  11976. static="false" final="false" visibility="public"
  11977. deprecated="not deprecated">
  11978. <param name="key" type="java.lang.Object"/>
  11979. <doc>
  11980. <![CDATA[{@inheritDoc}]]>
  11981. </doc>
  11982. </method>
  11983. <method name="containsValue" return="boolean"
  11984. abstract="false" native="false" synchronized="false"
  11985. static="false" final="false" visibility="public"
  11986. deprecated="not deprecated">
  11987. <param name="value" type="java.lang.Object"/>
  11988. <doc>
  11989. <![CDATA[{@inheritDoc}]]>
  11990. </doc>
  11991. </method>
  11992. <method name="entrySet" return="java.util.Set"
  11993. abstract="false" native="false" synchronized="false"
  11994. static="false" final="false" visibility="public"
  11995. deprecated="not deprecated">
  11996. <doc>
  11997. <![CDATA[{@inheritDoc}]]>
  11998. </doc>
  11999. </method>
  12000. <method name="get" return="org.apache.hadoop.io.Writable"
  12001. abstract="false" native="false" synchronized="false"
  12002. static="false" final="false" visibility="public"
  12003. deprecated="not deprecated">
  12004. <param name="key" type="java.lang.Object"/>
  12005. <doc>
  12006. <![CDATA[{@inheritDoc}]]>
  12007. </doc>
  12008. </method>
  12009. <method name="isEmpty" return="boolean"
  12010. abstract="false" native="false" synchronized="false"
  12011. static="false" final="false" visibility="public"
  12012. deprecated="not deprecated">
  12013. <doc>
  12014. <![CDATA[{@inheritDoc}]]>
  12015. </doc>
  12016. </method>
  12017. <method name="keySet" return="java.util.Set"
  12018. abstract="false" native="false" synchronized="false"
  12019. static="false" final="false" visibility="public"
  12020. deprecated="not deprecated">
  12021. <doc>
  12022. <![CDATA[{@inheritDoc}]]>
  12023. </doc>
  12024. </method>
  12025. <method name="put" return="org.apache.hadoop.io.Writable"
  12026. abstract="false" native="false" synchronized="false"
  12027. static="false" final="false" visibility="public"
  12028. deprecated="not deprecated">
  12029. <param name="key" type="org.apache.hadoop.io.Writable"/>
  12030. <param name="value" type="org.apache.hadoop.io.Writable"/>
  12031. <doc>
  12032. <![CDATA[{@inheritDoc}]]>
  12033. </doc>
  12034. </method>
  12035. <method name="putAll"
  12036. abstract="false" native="false" synchronized="false"
  12037. static="false" final="false" visibility="public"
  12038. deprecated="not deprecated">
  12039. <param name="t" type="java.util.Map"/>
  12040. <doc>
  12041. <![CDATA[{@inheritDoc}]]>
  12042. </doc>
  12043. </method>
  12044. <method name="remove" return="org.apache.hadoop.io.Writable"
  12045. abstract="false" native="false" synchronized="false"
  12046. static="false" final="false" visibility="public"
  12047. deprecated="not deprecated">
  12048. <param name="key" type="java.lang.Object"/>
  12049. <doc>
  12050. <![CDATA[{@inheritDoc}]]>
  12051. </doc>
  12052. </method>
  12053. <method name="size" return="int"
  12054. abstract="false" native="false" synchronized="false"
  12055. static="false" final="false" visibility="public"
  12056. deprecated="not deprecated">
  12057. <doc>
  12058. <![CDATA[{@inheritDoc}]]>
  12059. </doc>
  12060. </method>
  12061. <method name="values" return="java.util.Collection"
  12062. abstract="false" native="false" synchronized="false"
  12063. static="false" final="false" visibility="public"
  12064. deprecated="not deprecated">
  12065. <doc>
  12066. <![CDATA[{@inheritDoc}]]>
  12067. </doc>
  12068. </method>
  12069. <method name="write"
  12070. abstract="false" native="false" synchronized="false"
  12071. static="false" final="false" visibility="public"
  12072. deprecated="not deprecated">
  12073. <param name="out" type="java.io.DataOutput"/>
  12074. <exception name="IOException" type="java.io.IOException"/>
  12075. <doc>
  12076. <![CDATA[{@inheritDoc}]]>
  12077. </doc>
  12078. </method>
  12079. <method name="readFields"
  12080. abstract="false" native="false" synchronized="false"
  12081. static="false" final="false" visibility="public"
  12082. deprecated="not deprecated">
  12083. <param name="in" type="java.io.DataInput"/>
  12084. <exception name="IOException" type="java.io.IOException"/>
  12085. <doc>
  12086. <![CDATA[{@inheritDoc}]]>
  12087. </doc>
  12088. </method>
  12089. <doc>
  12090. <![CDATA[A Writable Map.]]>
  12091. </doc>
  12092. </class>
  12093. <!-- end class org.apache.hadoop.io.MapWritable -->
  12094. <!-- start class org.apache.hadoop.io.MD5Hash -->
  12095. <class name="MD5Hash" extends="java.lang.Object"
  12096. abstract="false"
  12097. static="false" final="false" visibility="public"
  12098. deprecated="not deprecated">
  12099. <implements name="org.apache.hadoop.io.WritableComparable"/>
  12100. <constructor name="MD5Hash"
  12101. static="false" final="false" visibility="public"
  12102. deprecated="not deprecated">
  12103. <doc>
  12104. <![CDATA[Constructs an MD5Hash.]]>
  12105. </doc>
  12106. </constructor>
  12107. <constructor name="MD5Hash" type="java.lang.String"
  12108. static="false" final="false" visibility="public"
  12109. deprecated="not deprecated">
  12110. <doc>
  12111. <![CDATA[Constructs an MD5Hash from a hex string.]]>
  12112. </doc>
  12113. </constructor>
  12114. <constructor name="MD5Hash" type="byte[]"
  12115. static="false" final="false" visibility="public"
  12116. deprecated="not deprecated">
  12117. <doc>
  12118. <![CDATA[Constructs an MD5Hash with a specified value.]]>
  12119. </doc>
  12120. </constructor>
  12121. <method name="readFields"
  12122. abstract="false" native="false" synchronized="false"
  12123. static="false" final="false" visibility="public"
  12124. deprecated="not deprecated">
  12125. <param name="in" type="java.io.DataInput"/>
  12126. <exception name="IOException" type="java.io.IOException"/>
  12127. </method>
  12128. <method name="read" return="org.apache.hadoop.io.MD5Hash"
  12129. abstract="false" native="false" synchronized="false"
  12130. static="true" final="false" visibility="public"
  12131. deprecated="not deprecated">
  12132. <param name="in" type="java.io.DataInput"/>
  12133. <exception name="IOException" type="java.io.IOException"/>
  12134. <doc>
  12135. <![CDATA[Constructs, reads and returns an instance.]]>
  12136. </doc>
  12137. </method>
  12138. <method name="write"
  12139. abstract="false" native="false" synchronized="false"
  12140. static="false" final="false" visibility="public"
  12141. deprecated="not deprecated">
  12142. <param name="out" type="java.io.DataOutput"/>
  12143. <exception name="IOException" type="java.io.IOException"/>
  12144. </method>
  12145. <method name="set"
  12146. abstract="false" native="false" synchronized="false"
  12147. static="false" final="false" visibility="public"
  12148. deprecated="not deprecated">
  12149. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  12150. <doc>
  12151. <![CDATA[Copy the contents of another instance into this instance.]]>
  12152. </doc>
  12153. </method>
  12154. <method name="getDigest" return="byte[]"
  12155. abstract="false" native="false" synchronized="false"
  12156. static="false" final="false" visibility="public"
  12157. deprecated="not deprecated">
  12158. <doc>
  12159. <![CDATA[Returns the digest bytes.]]>
  12160. </doc>
  12161. </method>
  12162. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  12163. abstract="false" native="false" synchronized="false"
  12164. static="true" final="false" visibility="public"
  12165. deprecated="not deprecated">
  12166. <param name="data" type="byte[]"/>
  12167. <doc>
  12168. <![CDATA[Construct a hash value for a byte array.]]>
  12169. </doc>
  12170. </method>
  12171. <method name="getDigester" return="java.security.MessageDigest"
  12172. abstract="false" native="false" synchronized="false"
  12173. static="true" final="false" visibility="public"
  12174. deprecated="not deprecated">
  12175. <doc>
  12176. <![CDATA[Create a thread local MD5 digester]]>
  12177. </doc>
  12178. </method>
  12179. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  12180. abstract="false" native="false" synchronized="false"
  12181. static="true" final="false" visibility="public"
  12182. deprecated="not deprecated">
  12183. <param name="in" type="java.io.InputStream"/>
  12184. <exception name="IOException" type="java.io.IOException"/>
  12185. <doc>
  12186. <![CDATA[Construct a hash value for the content from the InputStream.]]>
  12187. </doc>
  12188. </method>
  12189. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  12190. abstract="false" native="false" synchronized="false"
  12191. static="true" final="false" visibility="public"
  12192. deprecated="not deprecated">
  12193. <param name="data" type="byte[]"/>
  12194. <param name="start" type="int"/>
  12195. <param name="len" type="int"/>
  12196. <doc>
  12197. <![CDATA[Construct a hash value for a byte array.]]>
  12198. </doc>
  12199. </method>
  12200. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  12201. abstract="false" native="false" synchronized="false"
  12202. static="true" final="false" visibility="public"
  12203. deprecated="not deprecated">
  12204. <param name="string" type="java.lang.String"/>
  12205. <doc>
  12206. <![CDATA[Construct a hash value for a String.]]>
  12207. </doc>
  12208. </method>
  12209. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  12210. abstract="false" native="false" synchronized="false"
  12211. static="true" final="false" visibility="public"
  12212. deprecated="not deprecated">
  12213. <param name="utf8" type="org.apache.hadoop.io.UTF8"/>
  12214. <doc>
  12215. <![CDATA[Construct a hash value for a String.]]>
  12216. </doc>
  12217. </method>
  12218. <method name="halfDigest" return="long"
  12219. abstract="false" native="false" synchronized="false"
  12220. static="false" final="false" visibility="public"
  12221. deprecated="not deprecated">
  12222. <doc>
  12223. <![CDATA[Construct a half-sized version of this MD5. Fits in a long]]>
  12224. </doc>
  12225. </method>
  12226. <method name="quarterDigest" return="int"
  12227. abstract="false" native="false" synchronized="false"
  12228. static="false" final="false" visibility="public"
  12229. deprecated="not deprecated">
  12230. <doc>
  12231. <![CDATA[Return a 32-bit digest of the MD5.
  12232. @return the first 4 bytes of the md5]]>
  12233. </doc>
  12234. </method>
  12235. <method name="equals" return="boolean"
  12236. abstract="false" native="false" synchronized="false"
  12237. static="false" final="false" visibility="public"
  12238. deprecated="not deprecated">
  12239. <param name="o" type="java.lang.Object"/>
  12240. <doc>
  12241. <![CDATA[Returns true iff <code>o</code> is an MD5Hash whose digest contains the
  12242. same values.]]>
  12243. </doc>
  12244. </method>
  12245. <method name="hashCode" return="int"
  12246. abstract="false" native="false" synchronized="false"
  12247. static="false" final="false" visibility="public"
  12248. deprecated="not deprecated">
  12249. <doc>
  12250. <![CDATA[Returns a hash code value for this object.
  12251. Only uses the first 4 bytes, since md5s are evenly distributed.]]>
  12252. </doc>
  12253. </method>
  12254. <method name="compareTo" return="int"
  12255. abstract="false" native="false" synchronized="false"
  12256. static="false" final="false" visibility="public"
  12257. deprecated="not deprecated">
  12258. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  12259. <doc>
  12260. <![CDATA[Compares this object with the specified object for order.]]>
  12261. </doc>
  12262. </method>
  12263. <method name="toString" return="java.lang.String"
  12264. abstract="false" native="false" synchronized="false"
  12265. static="false" final="false" visibility="public"
  12266. deprecated="not deprecated">
  12267. <doc>
  12268. <![CDATA[Returns a string representation of this object.]]>
  12269. </doc>
  12270. </method>
  12271. <method name="setDigest"
  12272. abstract="false" native="false" synchronized="false"
  12273. static="false" final="false" visibility="public"
  12274. deprecated="not deprecated">
  12275. <param name="hex" type="java.lang.String"/>
  12276. <doc>
  12277. <![CDATA[Sets the digest value from a hex string.]]>
  12278. </doc>
  12279. </method>
  12280. <field name="MD5_LEN" type="int"
  12281. transient="false" volatile="false"
  12282. static="true" final="true" visibility="public"
  12283. deprecated="not deprecated">
  12284. </field>
  12285. <doc>
  12286. <![CDATA[A Writable for MD5 hash values.]]>
  12287. </doc>
  12288. </class>
  12289. <!-- end class org.apache.hadoop.io.MD5Hash -->
  12290. <!-- start class org.apache.hadoop.io.MD5Hash.Comparator -->
  12291. <class name="MD5Hash.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  12292. abstract="false"
  12293. static="true" final="false" visibility="public"
  12294. deprecated="not deprecated">
  12295. <constructor name="MD5Hash.Comparator"
  12296. static="false" final="false" visibility="public"
  12297. deprecated="not deprecated">
  12298. </constructor>
  12299. <method name="compare" return="int"
  12300. abstract="false" native="false" synchronized="false"
  12301. static="false" final="false" visibility="public"
  12302. deprecated="not deprecated">
  12303. <param name="b1" type="byte[]"/>
  12304. <param name="s1" type="int"/>
  12305. <param name="l1" type="int"/>
  12306. <param name="b2" type="byte[]"/>
  12307. <param name="s2" type="int"/>
  12308. <param name="l2" type="int"/>
  12309. </method>
  12310. <doc>
  12311. <![CDATA[A WritableComparator optimized for MD5Hash keys.]]>
  12312. </doc>
  12313. </class>
  12314. <!-- end class org.apache.hadoop.io.MD5Hash.Comparator -->
  12315. <!-- start class org.apache.hadoop.io.MultipleIOException -->
  12316. <class name="MultipleIOException" extends="java.io.IOException"
  12317. abstract="false"
  12318. static="false" final="false" visibility="public"
  12319. deprecated="not deprecated">
  12320. <method name="getExceptions" return="java.util.List"
  12321. abstract="false" native="false" synchronized="false"
  12322. static="false" final="false" visibility="public"
  12323. deprecated="not deprecated">
  12324. <doc>
  12325. <![CDATA[@return the underlying exceptions]]>
  12326. </doc>
  12327. </method>
  12328. <method name="createIOException" return="java.io.IOException"
  12329. abstract="false" native="false" synchronized="false"
  12330. static="true" final="false" visibility="public"
  12331. deprecated="not deprecated">
  12332. <param name="exceptions" type="java.util.List"/>
  12333. <doc>
  12334. <![CDATA[A convenient method to create an {@link IOException}.]]>
  12335. </doc>
  12336. </method>
  12337. <doc>
  12338. <![CDATA[Encapsulate a list of {@link IOException} into an {@link IOException}]]>
  12339. </doc>
  12340. </class>
  12341. <!-- end class org.apache.hadoop.io.MultipleIOException -->
  12342. <!-- start class org.apache.hadoop.io.NullWritable -->
  12343. <class name="NullWritable" extends="java.lang.Object"
  12344. abstract="false"
  12345. static="false" final="false" visibility="public"
  12346. deprecated="not deprecated">
  12347. <implements name="org.apache.hadoop.io.WritableComparable"/>
  12348. <method name="get" return="org.apache.hadoop.io.NullWritable"
  12349. abstract="false" native="false" synchronized="false"
  12350. static="true" final="false" visibility="public"
  12351. deprecated="not deprecated">
  12352. <doc>
  12353. <![CDATA[Returns the single instance of this class.]]>
  12354. </doc>
  12355. </method>
  12356. <method name="toString" return="java.lang.String"
  12357. abstract="false" native="false" synchronized="false"
  12358. static="false" final="false" visibility="public"
  12359. deprecated="not deprecated">
  12360. </method>
  12361. <method name="hashCode" return="int"
  12362. abstract="false" native="false" synchronized="false"
  12363. static="false" final="false" visibility="public"
  12364. deprecated="not deprecated">
  12365. </method>
  12366. <method name="compareTo" return="int"
  12367. abstract="false" native="false" synchronized="false"
  12368. static="false" final="false" visibility="public"
  12369. deprecated="not deprecated">
  12370. <param name="other" type="java.lang.Object"/>
  12371. </method>
  12372. <method name="equals" return="boolean"
  12373. abstract="false" native="false" synchronized="false"
  12374. static="false" final="false" visibility="public"
  12375. deprecated="not deprecated">
  12376. <param name="other" type="java.lang.Object"/>
  12377. </method>
  12378. <method name="readFields"
  12379. abstract="false" native="false" synchronized="false"
  12380. static="false" final="false" visibility="public"
  12381. deprecated="not deprecated">
  12382. <param name="in" type="java.io.DataInput"/>
  12383. <exception name="IOException" type="java.io.IOException"/>
  12384. </method>
  12385. <method name="write"
  12386. abstract="false" native="false" synchronized="false"
  12387. static="false" final="false" visibility="public"
  12388. deprecated="not deprecated">
  12389. <param name="out" type="java.io.DataOutput"/>
  12390. <exception name="IOException" type="java.io.IOException"/>
  12391. </method>
  12392. <doc>
  12393. <![CDATA[Singleton Writable with no data.]]>
  12394. </doc>
  12395. </class>
  12396. <!-- end class org.apache.hadoop.io.NullWritable -->
  12397. <!-- start class org.apache.hadoop.io.NullWritable.Comparator -->
  12398. <class name="NullWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  12399. abstract="false"
  12400. static="true" final="false" visibility="public"
  12401. deprecated="not deprecated">
  12402. <constructor name="NullWritable.Comparator"
  12403. static="false" final="false" visibility="public"
  12404. deprecated="not deprecated">
  12405. </constructor>
  12406. <method name="compare" return="int"
  12407. abstract="false" native="false" synchronized="false"
  12408. static="false" final="false" visibility="public"
  12409. deprecated="not deprecated">
  12410. <param name="b1" type="byte[]"/>
  12411. <param name="s1" type="int"/>
  12412. <param name="l1" type="int"/>
  12413. <param name="b2" type="byte[]"/>
  12414. <param name="s2" type="int"/>
  12415. <param name="l2" type="int"/>
  12416. <doc>
  12417. <![CDATA[Compare the buffers in serialized form.]]>
  12418. </doc>
  12419. </method>
  12420. <doc>
  12421. <![CDATA[A Comparator &quot;optimized&quot; for NullWritable.]]>
  12422. </doc>
  12423. </class>
  12424. <!-- end class org.apache.hadoop.io.NullWritable.Comparator -->
  12425. <!-- start class org.apache.hadoop.io.ObjectWritable -->
  12426. <class name="ObjectWritable" extends="java.lang.Object"
  12427. abstract="false"
  12428. static="false" final="false" visibility="public"
  12429. deprecated="not deprecated">
  12430. <implements name="org.apache.hadoop.io.Writable"/>
  12431. <implements name="org.apache.hadoop.conf.Configurable"/>
  12432. <constructor name="ObjectWritable"
  12433. static="false" final="false" visibility="public"
  12434. deprecated="not deprecated">
  12435. </constructor>
  12436. <constructor name="ObjectWritable" type="java.lang.Object"
  12437. static="false" final="false" visibility="public"
  12438. deprecated="not deprecated">
  12439. </constructor>
  12440. <constructor name="ObjectWritable" type="java.lang.Class, java.lang.Object"
  12441. static="false" final="false" visibility="public"
  12442. deprecated="not deprecated">
  12443. </constructor>
  12444. <method name="get" return="java.lang.Object"
  12445. abstract="false" native="false" synchronized="false"
  12446. static="false" final="false" visibility="public"
  12447. deprecated="not deprecated">
  12448. <doc>
  12449. <![CDATA[Return the instance, or null if none.]]>
  12450. </doc>
  12451. </method>
  12452. <method name="getDeclaredClass" return="java.lang.Class"
  12453. abstract="false" native="false" synchronized="false"
  12454. static="false" final="false" visibility="public"
  12455. deprecated="not deprecated">
  12456. <doc>
  12457. <![CDATA[Return the class this is meant to be.]]>
  12458. </doc>
  12459. </method>
  12460. <method name="set"
  12461. abstract="false" native="false" synchronized="false"
  12462. static="false" final="false" visibility="public"
  12463. deprecated="not deprecated">
  12464. <param name="instance" type="java.lang.Object"/>
  12465. <doc>
  12466. <![CDATA[Reset the instance.]]>
  12467. </doc>
  12468. </method>
  12469. <method name="toString" return="java.lang.String"
  12470. abstract="false" native="false" synchronized="false"
  12471. static="false" final="false" visibility="public"
  12472. deprecated="not deprecated">
  12473. </method>
  12474. <method name="readFields"
  12475. abstract="false" native="false" synchronized="false"
  12476. static="false" final="false" visibility="public"
  12477. deprecated="not deprecated">
  12478. <param name="in" type="java.io.DataInput"/>
  12479. <exception name="IOException" type="java.io.IOException"/>
  12480. </method>
  12481. <method name="write"
  12482. abstract="false" native="false" synchronized="false"
  12483. static="false" final="false" visibility="public"
  12484. deprecated="not deprecated">
  12485. <param name="out" type="java.io.DataOutput"/>
  12486. <exception name="IOException" type="java.io.IOException"/>
  12487. </method>
  12488. <method name="writeObject"
  12489. abstract="false" native="false" synchronized="false"
  12490. static="true" final="false" visibility="public"
  12491. deprecated="not deprecated">
  12492. <param name="out" type="java.io.DataOutput"/>
  12493. <param name="instance" type="java.lang.Object"/>
  12494. <param name="declaredClass" type="java.lang.Class"/>
  12495. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12496. <exception name="IOException" type="java.io.IOException"/>
  12497. <doc>
  12498. <![CDATA[Write a {@link Writable}, {@link String}, primitive type, or an array of
  12499. the preceding.]]>
  12500. </doc>
  12501. </method>
  12502. <method name="readObject" return="java.lang.Object"
  12503. abstract="false" native="false" synchronized="false"
  12504. static="true" final="false" visibility="public"
  12505. deprecated="not deprecated">
  12506. <param name="in" type="java.io.DataInput"/>
  12507. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12508. <exception name="IOException" type="java.io.IOException"/>
  12509. <doc>
  12510. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  12511. the preceding.]]>
  12512. </doc>
  12513. </method>
  12514. <method name="readObject" return="java.lang.Object"
  12515. abstract="false" native="false" synchronized="false"
  12516. static="true" final="false" visibility="public"
  12517. deprecated="not deprecated">
  12518. <param name="in" type="java.io.DataInput"/>
  12519. <param name="objectWritable" type="org.apache.hadoop.io.ObjectWritable"/>
  12520. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12521. <exception name="IOException" type="java.io.IOException"/>
  12522. <doc>
  12523. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  12524. the preceding.]]>
  12525. </doc>
  12526. </method>
  12527. <method name="setConf"
  12528. abstract="false" native="false" synchronized="false"
  12529. static="false" final="false" visibility="public"
  12530. deprecated="not deprecated">
  12531. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12532. </method>
  12533. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  12534. abstract="false" native="false" synchronized="false"
  12535. static="false" final="false" visibility="public"
  12536. deprecated="not deprecated">
  12537. </method>
  12538. <doc>
  12539. <![CDATA[A polymorphic Writable that writes an instance with it's class name.
  12540. Handles arrays, strings and primitive types without a Writable wrapper.]]>
  12541. </doc>
  12542. </class>
  12543. <!-- end class org.apache.hadoop.io.ObjectWritable -->
  12544. <!-- start class org.apache.hadoop.io.OutputBuffer -->
  12545. <class name="OutputBuffer" extends="java.io.FilterOutputStream"
  12546. abstract="false"
  12547. static="false" final="false" visibility="public"
  12548. deprecated="not deprecated">
  12549. <constructor name="OutputBuffer"
  12550. static="false" final="false" visibility="public"
  12551. deprecated="not deprecated">
  12552. <doc>
  12553. <![CDATA[Constructs a new empty buffer.]]>
  12554. </doc>
  12555. </constructor>
  12556. <method name="getData" return="byte[]"
  12557. abstract="false" native="false" synchronized="false"
  12558. static="false" final="false" visibility="public"
  12559. deprecated="not deprecated">
  12560. <doc>
  12561. <![CDATA[Returns the current contents of the buffer.
  12562. Data is only valid to {@link #getLength()}.]]>
  12563. </doc>
  12564. </method>
  12565. <method name="getLength" return="int"
  12566. abstract="false" native="false" synchronized="false"
  12567. static="false" final="false" visibility="public"
  12568. deprecated="not deprecated">
  12569. <doc>
  12570. <![CDATA[Returns the length of the valid data currently in the buffer.]]>
  12571. </doc>
  12572. </method>
  12573. <method name="reset" return="org.apache.hadoop.io.OutputBuffer"
  12574. abstract="false" native="false" synchronized="false"
  12575. static="false" final="false" visibility="public"
  12576. deprecated="not deprecated">
  12577. <doc>
  12578. <![CDATA[Resets the buffer to empty.]]>
  12579. </doc>
  12580. </method>
  12581. <method name="write"
  12582. abstract="false" native="false" synchronized="false"
  12583. static="false" final="false" visibility="public"
  12584. deprecated="not deprecated">
  12585. <param name="in" type="java.io.InputStream"/>
  12586. <param name="length" type="int"/>
  12587. <exception name="IOException" type="java.io.IOException"/>
  12588. <doc>
  12589. <![CDATA[Writes bytes from a InputStream directly into the buffer.]]>
  12590. </doc>
  12591. </method>
  12592. <doc>
  12593. <![CDATA[A reusable {@link OutputStream} implementation that writes to an in-memory
  12594. buffer.
  12595. <p>This saves memory over creating a new OutputStream and
  12596. ByteArrayOutputStream each time data is written.
  12597. <p>Typical usage is something like the following:<pre>
  12598. OutputBuffer buffer = new OutputBuffer();
  12599. while (... loop condition ...) {
  12600. buffer.reset();
  12601. ... write buffer using OutputStream methods ...
  12602. byte[] data = buffer.getData();
  12603. int dataLength = buffer.getLength();
  12604. ... write data to its ultimate destination ...
  12605. }
  12606. </pre>
  12607. @see DataOutputBuffer
  12608. @see InputBuffer]]>
  12609. </doc>
  12610. </class>
  12611. <!-- end class org.apache.hadoop.io.OutputBuffer -->
  12612. <!-- start interface org.apache.hadoop.io.RawComparator -->
  12613. <interface name="RawComparator" abstract="true"
  12614. static="false" final="false" visibility="public"
  12615. deprecated="not deprecated">
  12616. <implements name="java.util.Comparator"/>
  12617. <method name="compare" return="int"
  12618. abstract="false" native="false" synchronized="false"
  12619. static="false" final="false" visibility="public"
  12620. deprecated="not deprecated">
  12621. <param name="b1" type="byte[]"/>
  12622. <param name="s1" type="int"/>
  12623. <param name="l1" type="int"/>
  12624. <param name="b2" type="byte[]"/>
  12625. <param name="s2" type="int"/>
  12626. <param name="l2" type="int"/>
  12627. </method>
  12628. <doc>
  12629. <![CDATA[<p>
  12630. A {@link Comparator} that operates directly on byte representations of
  12631. objects.
  12632. </p>
  12633. @param <T>
  12634. @see DeserializerComparator]]>
  12635. </doc>
  12636. </interface>
  12637. <!-- end interface org.apache.hadoop.io.RawComparator -->
  12638. <!-- start class org.apache.hadoop.io.ReadaheadPool -->
  12639. <class name="ReadaheadPool" extends="java.lang.Object"
  12640. abstract="false"
  12641. static="false" final="false" visibility="public"
  12642. deprecated="not deprecated">
  12643. <method name="getInstance" return="org.apache.hadoop.io.ReadaheadPool"
  12644. abstract="false" native="false" synchronized="false"
  12645. static="true" final="false" visibility="public"
  12646. deprecated="not deprecated">
  12647. <doc>
  12648. <![CDATA[Return the singleton instance for the current process.]]>
  12649. </doc>
  12650. </method>
  12651. <method name="readaheadStream" return="org.apache.hadoop.io.ReadaheadPool.ReadaheadRequest"
  12652. abstract="false" native="false" synchronized="false"
  12653. static="false" final="false" visibility="public"
  12654. deprecated="not deprecated">
  12655. <param name="identifier" type="java.lang.String"/>
  12656. <param name="fd" type="java.io.FileDescriptor"/>
  12657. <param name="curPos" type="long"/>
  12658. <param name="readaheadLength" type="long"/>
  12659. <param name="maxOffsetToRead" type="long"/>
  12660. <param name="lastReadahead" type="org.apache.hadoop.io.ReadaheadPool.ReadaheadRequest"/>
  12661. <doc>
  12662. <![CDATA[Issue a request to readahead on the given file descriptor.
  12663. @param identifier a textual identifier that will be used in error
  12664. messages (e.g. the file name)
  12665. @param fd the file descriptor to read ahead
  12666. @param curPos the current offset at which reads are being issued
  12667. @param readaheadLength the configured length to read ahead
  12668. @param maxOffsetToRead the maximum offset that will be readahead
  12669. (useful if, for example, only some segment of the file is
  12670. requested by the user). Pass {@link Long.MAX_VALUE} to allow
  12671. readahead to the end of the file.
  12672. @param lastReadahead the result returned by the previous invocation
  12673. of this function on this file descriptor, or null if this is
  12674. the first call
  12675. @return an object representing this outstanding request, or null
  12676. if no readahead was performed]]>
  12677. </doc>
  12678. </method>
  12679. <method name="submitReadahead" return="org.apache.hadoop.io.ReadaheadPool.ReadaheadRequest"
  12680. abstract="false" native="false" synchronized="false"
  12681. static="false" final="false" visibility="public"
  12682. deprecated="not deprecated">
  12683. <param name="identifier" type="java.lang.String"/>
  12684. <param name="fd" type="java.io.FileDescriptor"/>
  12685. <param name="off" type="long"/>
  12686. <param name="len" type="long"/>
  12687. <doc>
  12688. <![CDATA[Submit a request to readahead on the given file descriptor.
  12689. @param identifier a textual identifier used in error messages, etc.
  12690. @param fd the file descriptor to readahead
  12691. @param off the offset at which to start the readahead
  12692. @param len the number of bytes to read
  12693. @return an object representing this pending request]]>
  12694. </doc>
  12695. </method>
  12696. <doc>
  12697. <![CDATA[Manages a pool of threads which can issue readahead requests on file descriptors.]]>
  12698. </doc>
  12699. </class>
  12700. <!-- end class org.apache.hadoop.io.ReadaheadPool -->
  12701. <!-- start interface org.apache.hadoop.io.ReadaheadPool.ReadaheadRequest -->
  12702. <interface name="ReadaheadPool.ReadaheadRequest" abstract="true"
  12703. static="true" final="false" visibility="public"
  12704. deprecated="not deprecated">
  12705. <method name="cancel"
  12706. abstract="false" native="false" synchronized="false"
  12707. static="false" final="false" visibility="public"
  12708. deprecated="not deprecated">
  12709. <doc>
  12710. <![CDATA[Cancels the request for readahead. This should be used
  12711. if the reader no longer needs the requested data, <em>before</em>
  12712. closing the related file descriptor.
  12713. It is safe to use even if the readahead request has already
  12714. been fulfilled.]]>
  12715. </doc>
  12716. </method>
  12717. <method name="getOffset" return="long"
  12718. abstract="false" native="false" synchronized="false"
  12719. static="false" final="false" visibility="public"
  12720. deprecated="not deprecated">
  12721. <doc>
  12722. <![CDATA[@return the requested offset]]>
  12723. </doc>
  12724. </method>
  12725. <method name="getLength" return="long"
  12726. abstract="false" native="false" synchronized="false"
  12727. static="false" final="false" visibility="public"
  12728. deprecated="not deprecated">
  12729. <doc>
  12730. <![CDATA[@return the requested length]]>
  12731. </doc>
  12732. </method>
  12733. <doc>
  12734. <![CDATA[An outstanding readahead request that has been submitted to
  12735. the pool. This request may be pending or may have been
  12736. completed.]]>
  12737. </doc>
  12738. </interface>
  12739. <!-- end interface org.apache.hadoop.io.ReadaheadPool.ReadaheadRequest -->
  12740. <!-- start class org.apache.hadoop.io.SecureIOUtils -->
  12741. <class name="SecureIOUtils" extends="java.lang.Object"
  12742. abstract="false"
  12743. static="false" final="false" visibility="public"
  12744. deprecated="not deprecated">
  12745. <constructor name="SecureIOUtils"
  12746. static="false" final="false" visibility="public"
  12747. deprecated="not deprecated">
  12748. </constructor>
  12749. <method name="openForRead" return="java.io.FileInputStream"
  12750. abstract="false" native="false" synchronized="false"
  12751. static="true" final="false" visibility="public"
  12752. deprecated="not deprecated">
  12753. <param name="f" type="java.io.File"/>
  12754. <param name="expectedOwner" type="java.lang.String"/>
  12755. <exception name="IOException" type="java.io.IOException"/>
  12756. <doc>
  12757. <![CDATA[Open the given File for read access, verifying the expected user
  12758. constraints.
  12759. @param f the file that we are trying to open
  12760. @param expectedOwner the expected user owner for the file
  12761. @throws IOException if an IO Error occurred, or the user does not
  12762. match]]>
  12763. </doc>
  12764. </method>
  12765. <method name="createForWrite" return="java.io.FileOutputStream"
  12766. abstract="false" native="false" synchronized="false"
  12767. static="true" final="false" visibility="public"
  12768. deprecated="not deprecated">
  12769. <param name="f" type="java.io.File"/>
  12770. <param name="permissions" type="int"/>
  12771. <exception name="IOException" type="java.io.IOException"/>
  12772. <doc>
  12773. <![CDATA[Open the specified File for write access, ensuring that it does not exist.
  12774. @param f the file that we want to create
  12775. @param permissions we want to have on the file (if security is enabled)
  12776. @throws AlreadyExistsException if the file already exists
  12777. @throws IOException if any other error occurred]]>
  12778. </doc>
  12779. </method>
  12780. <doc>
  12781. <![CDATA[This class provides secure APIs for opening and creating files on the local
  12782. disk. The main issue this class tries to handle is that of symlink traversal.
  12783. <br/>
  12784. An example of such an attack is:
  12785. <ol>
  12786. <li> Malicious user removes his task's syslog file, and puts a link to the
  12787. jobToken file of a target user.</li>
  12788. <li> Malicious user tries to open the syslog file via the servlet on the
  12789. tasktracker.</li>
  12790. <li> The tasktracker is unaware of the symlink, and simply streams the contents
  12791. of the jobToken file. The malicious user can now access potentially sensitive
  12792. map outputs, etc. of the target user's job.</li>
  12793. </ol>
  12794. A similar attack is possible involving the
  12795. {@link org.apache.hadoop.mapred.TaskLogsTruncater}, but here it is to do
  12796. with unsecure write to a file.
  12797. <br/>]]>
  12798. </doc>
  12799. </class>
  12800. <!-- end class org.apache.hadoop.io.SecureIOUtils -->
  12801. <!-- start class org.apache.hadoop.io.SecureIOUtils.AlreadyExistsException -->
  12802. <class name="SecureIOUtils.AlreadyExistsException" extends="java.io.IOException"
  12803. abstract="false"
  12804. static="true" final="false" visibility="public"
  12805. deprecated="not deprecated">
  12806. <constructor name="SecureIOUtils.AlreadyExistsException" type="java.lang.String"
  12807. static="false" final="false" visibility="public"
  12808. deprecated="not deprecated">
  12809. </constructor>
  12810. <constructor name="SecureIOUtils.AlreadyExistsException" type="java.lang.Throwable"
  12811. static="false" final="false" visibility="public"
  12812. deprecated="not deprecated">
  12813. </constructor>
  12814. <doc>
  12815. <![CDATA[Signals that an attempt to create a file at a given pathname has failed
  12816. because another file already existed at that path.]]>
  12817. </doc>
  12818. </class>
  12819. <!-- end class org.apache.hadoop.io.SecureIOUtils.AlreadyExistsException -->
  12820. <!-- start class org.apache.hadoop.io.SequenceFile -->
  12821. <class name="SequenceFile" extends="java.lang.Object"
  12822. abstract="false"
  12823. static="false" final="false" visibility="public"
  12824. deprecated="not deprecated">
  12825. <method name="getCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  12826. abstract="false" native="false" synchronized="false"
  12827. static="true" final="false" visibility="public"
  12828. deprecated="Use
  12829. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#getOutputCompressionType(org.apache.hadoop.mapred.JobConf)}
  12830. to get {@link CompressionType} for job-outputs.">
  12831. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  12832. <doc>
  12833. <![CDATA[Get the compression type for the reduce outputs
  12834. @param job the job config to look in
  12835. @return the kind of compression to use
  12836. @deprecated Use
  12837. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#getOutputCompressionType(org.apache.hadoop.mapred.JobConf)}
  12838. to get {@link CompressionType} for job-outputs.]]>
  12839. </doc>
  12840. </method>
  12841. <method name="setCompressionType"
  12842. abstract="false" native="false" synchronized="false"
  12843. static="true" final="false" visibility="public"
  12844. deprecated="Use the one of the many SequenceFile.createWriter methods to specify
  12845. the {@link CompressionType} while creating the {@link SequenceFile} or
  12846. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#setOutputCompressionType(org.apache.hadoop.mapred.JobConf, org.apache.hadoop.io.SequenceFile.CompressionType)}
  12847. to specify the {@link CompressionType} for job-outputs.
  12848. or">
  12849. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  12850. <param name="val" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12851. <doc>
  12852. <![CDATA[Set the compression type for sequence files.
  12853. @param job the configuration to modify
  12854. @param val the new compression type (none, block, record)
  12855. @deprecated Use the one of the many SequenceFile.createWriter methods to specify
  12856. the {@link CompressionType} while creating the {@link SequenceFile} or
  12857. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#setOutputCompressionType(org.apache.hadoop.mapred.JobConf, org.apache.hadoop.io.SequenceFile.CompressionType)}
  12858. to specify the {@link CompressionType} for job-outputs.
  12859. or]]>
  12860. </doc>
  12861. </method>
  12862. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12863. abstract="false" native="false" synchronized="false"
  12864. static="true" final="false" visibility="public"
  12865. deprecated="not deprecated">
  12866. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12867. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12868. <param name="name" type="org.apache.hadoop.fs.Path"/>
  12869. <param name="keyClass" type="java.lang.Class"/>
  12870. <param name="valClass" type="java.lang.Class"/>
  12871. <exception name="IOException" type="java.io.IOException"/>
  12872. <doc>
  12873. <![CDATA[Construct the preferred type of SequenceFile Writer.
  12874. @param fs The configured filesystem.
  12875. @param conf The configuration.
  12876. @param name The name of the file.
  12877. @param keyClass The 'key' type.
  12878. @param valClass The 'value' type.
  12879. @return Returns the handle to the constructed SequenceFile Writer.
  12880. @throws IOException]]>
  12881. </doc>
  12882. </method>
  12883. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12884. abstract="false" native="false" synchronized="false"
  12885. static="true" final="false" visibility="public"
  12886. deprecated="not deprecated">
  12887. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12888. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12889. <param name="name" type="org.apache.hadoop.fs.Path"/>
  12890. <param name="keyClass" type="java.lang.Class"/>
  12891. <param name="valClass" type="java.lang.Class"/>
  12892. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12893. <exception name="IOException" type="java.io.IOException"/>
  12894. <doc>
  12895. <![CDATA[Construct the preferred type of SequenceFile Writer.
  12896. @param fs The configured filesystem.
  12897. @param conf The configuration.
  12898. @param name The name of the file.
  12899. @param keyClass The 'key' type.
  12900. @param valClass The 'value' type.
  12901. @param compressionType The compression type.
  12902. @return Returns the handle to the constructed SequenceFile Writer.
  12903. @throws IOException]]>
  12904. </doc>
  12905. </method>
  12906. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12907. abstract="false" native="false" synchronized="false"
  12908. static="true" final="false" visibility="public"
  12909. deprecated="not deprecated">
  12910. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12911. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12912. <param name="name" type="org.apache.hadoop.fs.Path"/>
  12913. <param name="keyClass" type="java.lang.Class"/>
  12914. <param name="valClass" type="java.lang.Class"/>
  12915. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12916. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12917. <exception name="IOException" type="java.io.IOException"/>
  12918. <doc>
  12919. <![CDATA[Construct the preferred type of SequenceFile Writer.
  12920. @param fs The configured filesystem.
  12921. @param conf The configuration.
  12922. @param name The name of the file.
  12923. @param keyClass The 'key' type.
  12924. @param valClass The 'value' type.
  12925. @param compressionType The compression type.
  12926. @param progress The Progressable object to track progress.
  12927. @return Returns the handle to the constructed SequenceFile Writer.
  12928. @throws IOException]]>
  12929. </doc>
  12930. </method>
  12931. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12932. abstract="false" native="false" synchronized="false"
  12933. static="true" final="false" visibility="public"
  12934. deprecated="not deprecated">
  12935. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12936. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12937. <param name="name" type="org.apache.hadoop.fs.Path"/>
  12938. <param name="keyClass" type="java.lang.Class"/>
  12939. <param name="valClass" type="java.lang.Class"/>
  12940. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12941. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  12942. <exception name="IOException" type="java.io.IOException"/>
  12943. <doc>
  12944. <![CDATA[Construct the preferred type of SequenceFile Writer.
  12945. @param fs The configured filesystem.
  12946. @param conf The configuration.
  12947. @param name The name of the file.
  12948. @param keyClass The 'key' type.
  12949. @param valClass The 'value' type.
  12950. @param compressionType The compression type.
  12951. @param codec The compression codec.
  12952. @return Returns the handle to the constructed SequenceFile Writer.
  12953. @throws IOException]]>
  12954. </doc>
  12955. </method>
  12956. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12957. abstract="false" native="false" synchronized="false"
  12958. static="true" final="false" visibility="public"
  12959. deprecated="not deprecated">
  12960. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12961. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12962. <param name="name" type="org.apache.hadoop.fs.Path"/>
  12963. <param name="keyClass" type="java.lang.Class"/>
  12964. <param name="valClass" type="java.lang.Class"/>
  12965. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12966. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  12967. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12968. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  12969. <exception name="IOException" type="java.io.IOException"/>
  12970. <doc>
  12971. <![CDATA[Construct the preferred type of SequenceFile Writer.
  12972. @param fs The configured filesystem.
  12973. @param conf The configuration.
  12974. @param name The name of the file.
  12975. @param keyClass The 'key' type.
  12976. @param valClass The 'value' type.
  12977. @param compressionType The compression type.
  12978. @param codec The compression codec.
  12979. @param progress The Progressable object to track progress.
  12980. @param metadata The metadata of the file.
  12981. @return Returns the handle to the constructed SequenceFile Writer.
  12982. @throws IOException]]>
  12983. </doc>
  12984. </method>
  12985. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12986. abstract="false" native="false" synchronized="false"
  12987. static="true" final="false" visibility="public"
  12988. deprecated="not deprecated">
  12989. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12990. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12991. <param name="name" type="org.apache.hadoop.fs.Path"/>
  12992. <param name="keyClass" type="java.lang.Class"/>
  12993. <param name="valClass" type="java.lang.Class"/>
  12994. <param name="bufferSize" type="int"/>
  12995. <param name="replication" type="short"/>
  12996. <param name="blockSize" type="long"/>
  12997. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12998. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  12999. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  13000. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  13001. <exception name="IOException" type="java.io.IOException"/>
  13002. <doc>
  13003. <![CDATA[Construct the preferred type of SequenceFile Writer.
  13004. @param fs The configured filesystem.
  13005. @param conf The configuration.
  13006. @param name The name of the file.
  13007. @param keyClass The 'key' type.
  13008. @param valClass The 'value' type.
  13009. @param bufferSize buffer size for the underlaying outputstream.
  13010. @param replication replication factor for the file.
  13011. @param blockSize block size for the file.
  13012. @param compressionType The compression type.
  13013. @param codec The compression codec.
  13014. @param progress The Progressable object to track progress.
  13015. @param metadata The metadata of the file.
  13016. @return Returns the handle to the constructed SequenceFile Writer.
  13017. @throws IOException]]>
  13018. </doc>
  13019. </method>
  13020. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  13021. abstract="false" native="false" synchronized="false"
  13022. static="true" final="false" visibility="public"
  13023. deprecated="not deprecated">
  13024. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13025. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13026. <param name="name" type="org.apache.hadoop.fs.Path"/>
  13027. <param name="keyClass" type="java.lang.Class"/>
  13028. <param name="valClass" type="java.lang.Class"/>
  13029. <param name="bufferSize" type="int"/>
  13030. <param name="replication" type="short"/>
  13031. <param name="blockSize" type="long"/>
  13032. <param name="createParent" type="boolean"/>
  13033. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  13034. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  13035. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  13036. <exception name="IOException" type="java.io.IOException"/>
  13037. <doc>
  13038. <![CDATA[Construct the preferred type of SequenceFile Writer.
  13039. @param fs The configured filesystem.
  13040. @param conf The configuration.
  13041. @param name The name of the file.
  13042. @param keyClass The 'key' type.
  13043. @param valClass The 'value' type.
  13044. @param bufferSize buffer size for the underlaying outputstream.
  13045. @param replication replication factor for the file.
  13046. @param blockSize block size for the file.
  13047. @param createParent create parent directory if non-existent
  13048. @param compressionType The compression type.
  13049. @param codec The compression codec.
  13050. @param metadata The metadata of the file.
  13051. @return Returns the handle to the constructed SequenceFile Writer.
  13052. @throws IOException]]>
  13053. </doc>
  13054. </method>
  13055. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  13056. abstract="false" native="false" synchronized="false"
  13057. static="true" final="false" visibility="public"
  13058. deprecated="not deprecated">
  13059. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13060. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13061. <param name="name" type="org.apache.hadoop.fs.Path"/>
  13062. <param name="keyClass" type="java.lang.Class"/>
  13063. <param name="valClass" type="java.lang.Class"/>
  13064. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  13065. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  13066. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  13067. <exception name="IOException" type="java.io.IOException"/>
  13068. <doc>
  13069. <![CDATA[Construct the preferred type of SequenceFile Writer.
  13070. @param fs The configured filesystem.
  13071. @param conf The configuration.
  13072. @param name The name of the file.
  13073. @param keyClass The 'key' type.
  13074. @param valClass The 'value' type.
  13075. @param compressionType The compression type.
  13076. @param codec The compression codec.
  13077. @param progress The Progressable object to track progress.
  13078. @return Returns the handle to the constructed SequenceFile Writer.
  13079. @throws IOException]]>
  13080. </doc>
  13081. </method>
  13082. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  13083. abstract="false" native="false" synchronized="false"
  13084. static="true" final="false" visibility="public"
  13085. deprecated="not deprecated">
  13086. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13087. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  13088. <param name="keyClass" type="java.lang.Class"/>
  13089. <param name="valClass" type="java.lang.Class"/>
  13090. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  13091. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  13092. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  13093. <exception name="IOException" type="java.io.IOException"/>
  13094. <doc>
  13095. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  13096. @param conf The configuration.
  13097. @param out The stream on top which the writer is to be constructed.
  13098. @param keyClass The 'key' type.
  13099. @param valClass The 'value' type.
  13100. @param compressionType The compression type.
  13101. @param codec The compression codec.
  13102. @param metadata The metadata of the file.
  13103. @return Returns the handle to the constructed SequenceFile Writer.
  13104. @throws IOException]]>
  13105. </doc>
  13106. </method>
  13107. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  13108. abstract="false" native="false" synchronized="false"
  13109. static="true" final="false" visibility="public"
  13110. deprecated="not deprecated">
  13111. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13112. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  13113. <param name="keyClass" type="java.lang.Class"/>
  13114. <param name="valClass" type="java.lang.Class"/>
  13115. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  13116. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  13117. <exception name="IOException" type="java.io.IOException"/>
  13118. <doc>
  13119. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  13120. @param conf The configuration.
  13121. @param out The stream on top which the writer is to be constructed.
  13122. @param keyClass The 'key' type.
  13123. @param valClass The 'value' type.
  13124. @param compressionType The compression type.
  13125. @param codec The compression codec.
  13126. @return Returns the handle to the constructed SequenceFile Writer.
  13127. @throws IOException]]>
  13128. </doc>
  13129. </method>
  13130. <field name="SYNC_INTERVAL" type="int"
  13131. transient="false" volatile="false"
  13132. static="true" final="true" visibility="public"
  13133. deprecated="not deprecated">
  13134. <doc>
  13135. <![CDATA[The number of bytes between sync points.]]>
  13136. </doc>
  13137. </field>
  13138. <doc>
  13139. <![CDATA[<code>SequenceFile</code>s are flat files consisting of binary key/value
  13140. pairs.
  13141. <p><code>SequenceFile</code> provides {@link Writer}, {@link Reader} and
  13142. {@link Sorter} classes for writing, reading and sorting respectively.</p>
  13143. There are three <code>SequenceFile</code> <code>Writer</code>s based on the
  13144. {@link CompressionType} used to compress key/value pairs:
  13145. <ol>
  13146. <li>
  13147. <code>Writer</code> : Uncompressed records.
  13148. </li>
  13149. <li>
  13150. <code>RecordCompressWriter</code> : Record-compressed files, only compress
  13151. values.
  13152. </li>
  13153. <li>
  13154. <code>BlockCompressWriter</code> : Block-compressed files, both keys &
  13155. values are collected in 'blocks'
  13156. separately and compressed. The size of
  13157. the 'block' is configurable.
  13158. </ol>
  13159. <p>The actual compression algorithm used to compress key and/or values can be
  13160. specified by using the appropriate {@link CompressionCodec}.</p>
  13161. <p>The recommended way is to use the static <tt>createWriter</tt> methods
  13162. provided by the <code>SequenceFile</code> to chose the preferred format.</p>
  13163. <p>The {@link Reader} acts as the bridge and can read any of the above
  13164. <code>SequenceFile</code> formats.</p>
  13165. <h4 id="Formats">SequenceFile Formats</h4>
  13166. <p>Essentially there are 3 different formats for <code>SequenceFile</code>s
  13167. depending on the <code>CompressionType</code> specified. All of them share a
  13168. <a href="#Header">common header</a> described below.
  13169. <h5 id="Header">SequenceFile Header</h5>
  13170. <ul>
  13171. <li>
  13172. version - 3 bytes of magic header <b>SEQ</b>, followed by 1 byte of actual
  13173. version number (e.g. SEQ4 or SEQ6)
  13174. </li>
  13175. <li>
  13176. keyClassName -key class
  13177. </li>
  13178. <li>
  13179. valueClassName - value class
  13180. </li>
  13181. <li>
  13182. compression - A boolean which specifies if compression is turned on for
  13183. keys/values in this file.
  13184. </li>
  13185. <li>
  13186. blockCompression - A boolean which specifies if block-compression is
  13187. turned on for keys/values in this file.
  13188. </li>
  13189. <li>
  13190. compression codec - <code>CompressionCodec</code> class which is used for
  13191. compression of keys and/or values (if compression is
  13192. enabled).
  13193. </li>
  13194. <li>
  13195. metadata - {@link Metadata} for this file.
  13196. </li>
  13197. <li>
  13198. sync - A sync marker to denote end of the header.
  13199. </li>
  13200. </ul>
  13201. <h5 id="#UncompressedFormat">Uncompressed SequenceFile Format</h5>
  13202. <ul>
  13203. <li>
  13204. <a href="#Header">Header</a>
  13205. </li>
  13206. <li>
  13207. Record
  13208. <ul>
  13209. <li>Record length</li>
  13210. <li>Key length</li>
  13211. <li>Key</li>
  13212. <li>Value</li>
  13213. </ul>
  13214. </li>
  13215. <li>
  13216. A sync-marker every few <code>100</code> bytes or so.
  13217. </li>
  13218. </ul>
  13219. <h5 id="#RecordCompressedFormat">Record-Compressed SequenceFile Format</h5>
  13220. <ul>
  13221. <li>
  13222. <a href="#Header">Header</a>
  13223. </li>
  13224. <li>
  13225. Record
  13226. <ul>
  13227. <li>Record length</li>
  13228. <li>Key length</li>
  13229. <li>Key</li>
  13230. <li><i>Compressed</i> Value</li>
  13231. </ul>
  13232. </li>
  13233. <li>
  13234. A sync-marker every few <code>100</code> bytes or so.
  13235. </li>
  13236. </ul>
  13237. <h5 id="#BlockCompressedFormat">Block-Compressed SequenceFile Format</h5>
  13238. <ul>
  13239. <li>
  13240. <a href="#Header">Header</a>
  13241. </li>
  13242. <li>
  13243. Record <i>Block</i>
  13244. <ul>
  13245. <li>Compressed key-lengths block-size</li>
  13246. <li>Compressed key-lengths block</li>
  13247. <li>Compressed keys block-size</li>
  13248. <li>Compressed keys block</li>
  13249. <li>Compressed value-lengths block-size</li>
  13250. <li>Compressed value-lengths block</li>
  13251. <li>Compressed values block-size</li>
  13252. <li>Compressed values block</li>
  13253. </ul>
  13254. </li>
  13255. <li>
  13256. A sync-marker every few <code>100</code> bytes or so.
  13257. </li>
  13258. </ul>
  13259. <p>The compressed blocks of key lengths and value lengths consist of the
  13260. actual lengths of individual keys/values encoded in ZeroCompressedInteger
  13261. format.</p>
  13262. @see CompressionCodec]]>
  13263. </doc>
  13264. </class>
  13265. <!-- end class org.apache.hadoop.io.SequenceFile -->
  13266. <!-- start class org.apache.hadoop.io.SequenceFile.CompressionType -->
  13267. <class name="SequenceFile.CompressionType" extends="java.lang.Enum"
  13268. abstract="false"
  13269. static="true" final="true" visibility="public"
  13270. deprecated="not deprecated">
  13271. <method name="values" return="org.apache.hadoop.io.SequenceFile.CompressionType[]"
  13272. abstract="false" native="false" synchronized="false"
  13273. static="true" final="false" visibility="public"
  13274. deprecated="not deprecated">
  13275. </method>
  13276. <method name="valueOf" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  13277. abstract="false" native="false" synchronized="false"
  13278. static="true" final="false" visibility="public"
  13279. deprecated="not deprecated">
  13280. <param name="name" type="java.lang.String"/>
  13281. </method>
  13282. <field name="NONE" type="org.apache.hadoop.io.SequenceFile.CompressionType"
  13283. transient="false" volatile="false"
  13284. static="true" final="true" visibility="public"
  13285. deprecated="not deprecated">
  13286. <doc>
  13287. <![CDATA[Do not compress records.]]>
  13288. </doc>
  13289. </field>
  13290. <field name="RECORD" type="org.apache.hadoop.io.SequenceFile.CompressionType"
  13291. transient="false" volatile="false"
  13292. static="true" final="true" visibility="public"
  13293. deprecated="not deprecated">
  13294. <doc>
  13295. <![CDATA[Compress values only, each separately.]]>
  13296. </doc>
  13297. </field>
  13298. <field name="BLOCK" type="org.apache.hadoop.io.SequenceFile.CompressionType"
  13299. transient="false" volatile="false"
  13300. static="true" final="true" visibility="public"
  13301. deprecated="not deprecated">
  13302. <doc>
  13303. <![CDATA[Compress sequences of records together in blocks.]]>
  13304. </doc>
  13305. </field>
  13306. <doc>
  13307. <![CDATA[The compression type used to compress key/value pairs in the
  13308. {@link SequenceFile}.
  13309. @see SequenceFile.Writer]]>
  13310. </doc>
  13311. </class>
  13312. <!-- end class org.apache.hadoop.io.SequenceFile.CompressionType -->
  13313. <!-- start class org.apache.hadoop.io.SequenceFile.Metadata -->
  13314. <class name="SequenceFile.Metadata" extends="java.lang.Object"
  13315. abstract="false"
  13316. static="true" final="false" visibility="public"
  13317. deprecated="not deprecated">
  13318. <implements name="org.apache.hadoop.io.Writable"/>
  13319. <constructor name="SequenceFile.Metadata"
  13320. static="false" final="false" visibility="public"
  13321. deprecated="not deprecated">
  13322. </constructor>
  13323. <constructor name="SequenceFile.Metadata" type="java.util.TreeMap"
  13324. static="false" final="false" visibility="public"
  13325. deprecated="not deprecated">
  13326. </constructor>
  13327. <method name="get" return="org.apache.hadoop.io.Text"
  13328. abstract="false" native="false" synchronized="false"
  13329. static="false" final="false" visibility="public"
  13330. deprecated="not deprecated">
  13331. <param name="name" type="org.apache.hadoop.io.Text"/>
  13332. </method>
  13333. <method name="set"
  13334. abstract="false" native="false" synchronized="false"
  13335. static="false" final="false" visibility="public"
  13336. deprecated="not deprecated">
  13337. <param name="name" type="org.apache.hadoop.io.Text"/>
  13338. <param name="value" type="org.apache.hadoop.io.Text"/>
  13339. </method>
  13340. <method name="getMetadata" return="java.util.TreeMap"
  13341. abstract="false" native="false" synchronized="false"
  13342. static="false" final="false" visibility="public"
  13343. deprecated="not deprecated">
  13344. </method>
  13345. <method name="write"
  13346. abstract="false" native="false" synchronized="false"
  13347. static="false" final="false" visibility="public"
  13348. deprecated="not deprecated">
  13349. <param name="out" type="java.io.DataOutput"/>
  13350. <exception name="IOException" type="java.io.IOException"/>
  13351. </method>
  13352. <method name="readFields"
  13353. abstract="false" native="false" synchronized="false"
  13354. static="false" final="false" visibility="public"
  13355. deprecated="not deprecated">
  13356. <param name="in" type="java.io.DataInput"/>
  13357. <exception name="IOException" type="java.io.IOException"/>
  13358. </method>
  13359. <method name="equals" return="boolean"
  13360. abstract="false" native="false" synchronized="false"
  13361. static="false" final="false" visibility="public"
  13362. deprecated="not deprecated">
  13363. <param name="other" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  13364. </method>
  13365. <method name="hashCode" return="int"
  13366. abstract="false" native="false" synchronized="false"
  13367. static="false" final="false" visibility="public"
  13368. deprecated="not deprecated">
  13369. </method>
  13370. <method name="toString" return="java.lang.String"
  13371. abstract="false" native="false" synchronized="false"
  13372. static="false" final="false" visibility="public"
  13373. deprecated="not deprecated">
  13374. </method>
  13375. <doc>
  13376. <![CDATA[The class encapsulating with the metadata of a file.
  13377. The metadata of a file is a list of attribute name/value
  13378. pairs of Text type.]]>
  13379. </doc>
  13380. </class>
  13381. <!-- end class org.apache.hadoop.io.SequenceFile.Metadata -->
  13382. <!-- start class org.apache.hadoop.io.SequenceFile.Reader -->
  13383. <class name="SequenceFile.Reader" extends="java.lang.Object"
  13384. abstract="false"
  13385. static="true" final="false" visibility="public"
  13386. deprecated="not deprecated">
  13387. <implements name="java.io.Closeable"/>
  13388. <constructor name="SequenceFile.Reader" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.fs.Path, org.apache.hadoop.conf.Configuration"
  13389. static="false" final="false" visibility="public"
  13390. deprecated="not deprecated">
  13391. <exception name="IOException" type="java.io.IOException"/>
  13392. <doc>
  13393. <![CDATA[Open the named file.]]>
  13394. </doc>
  13395. </constructor>
  13396. <method name="openFile" return="org.apache.hadoop.fs.FSDataInputStream"
  13397. abstract="false" native="false" synchronized="false"
  13398. static="false" final="false" visibility="protected"
  13399. deprecated="not deprecated">
  13400. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13401. <param name="file" type="org.apache.hadoop.fs.Path"/>
  13402. <param name="bufferSize" type="int"/>
  13403. <param name="length" type="long"/>
  13404. <exception name="IOException" type="java.io.IOException"/>
  13405. <doc>
  13406. <![CDATA[Override this method to specialize the type of
  13407. {@link FSDataInputStream} returned.]]>
  13408. </doc>
  13409. </method>
  13410. <method name="close"
  13411. abstract="false" native="false" synchronized="true"
  13412. static="false" final="false" visibility="public"
  13413. deprecated="not deprecated">
  13414. <exception name="IOException" type="java.io.IOException"/>
  13415. <doc>
  13416. <![CDATA[Close the file.]]>
  13417. </doc>
  13418. </method>
  13419. <method name="getKeyClassName" return="java.lang.String"
  13420. abstract="false" native="false" synchronized="false"
  13421. static="false" final="false" visibility="public"
  13422. deprecated="not deprecated">
  13423. <doc>
  13424. <![CDATA[Returns the name of the key class.]]>
  13425. </doc>
  13426. </method>
  13427. <method name="getKeyClass" return="java.lang.Class"
  13428. abstract="false" native="false" synchronized="true"
  13429. static="false" final="false" visibility="public"
  13430. deprecated="not deprecated">
  13431. <doc>
  13432. <![CDATA[Returns the class of keys in this file.]]>
  13433. </doc>
  13434. </method>
  13435. <method name="getValueClassName" return="java.lang.String"
  13436. abstract="false" native="false" synchronized="false"
  13437. static="false" final="false" visibility="public"
  13438. deprecated="not deprecated">
  13439. <doc>
  13440. <![CDATA[Returns the name of the value class.]]>
  13441. </doc>
  13442. </method>
  13443. <method name="getValueClass" return="java.lang.Class"
  13444. abstract="false" native="false" synchronized="true"
  13445. static="false" final="false" visibility="public"
  13446. deprecated="not deprecated">
  13447. <doc>
  13448. <![CDATA[Returns the class of values in this file.]]>
  13449. </doc>
  13450. </method>
  13451. <method name="isCompressed" return="boolean"
  13452. abstract="false" native="false" synchronized="false"
  13453. static="false" final="false" visibility="public"
  13454. deprecated="not deprecated">
  13455. <doc>
  13456. <![CDATA[Returns true if values are compressed.]]>
  13457. </doc>
  13458. </method>
  13459. <method name="isBlockCompressed" return="boolean"
  13460. abstract="false" native="false" synchronized="false"
  13461. static="false" final="false" visibility="public"
  13462. deprecated="not deprecated">
  13463. <doc>
  13464. <![CDATA[Returns true if records are block-compressed.]]>
  13465. </doc>
  13466. </method>
  13467. <method name="getCompressionCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  13468. abstract="false" native="false" synchronized="false"
  13469. static="false" final="false" visibility="public"
  13470. deprecated="not deprecated">
  13471. <doc>
  13472. <![CDATA[Returns the compression codec of data in this file.]]>
  13473. </doc>
  13474. </method>
  13475. <method name="getMetadata" return="org.apache.hadoop.io.SequenceFile.Metadata"
  13476. abstract="false" native="false" synchronized="false"
  13477. static="false" final="false" visibility="public"
  13478. deprecated="not deprecated">
  13479. <doc>
  13480. <![CDATA[Returns the metadata object of the file]]>
  13481. </doc>
  13482. </method>
  13483. <method name="getCurrentValue"
  13484. abstract="false" native="false" synchronized="true"
  13485. static="false" final="false" visibility="public"
  13486. deprecated="not deprecated">
  13487. <param name="val" type="org.apache.hadoop.io.Writable"/>
  13488. <exception name="IOException" type="java.io.IOException"/>
  13489. <doc>
  13490. <![CDATA[Get the 'value' corresponding to the last read 'key'.
  13491. @param val : The 'value' to be read.
  13492. @throws IOException]]>
  13493. </doc>
  13494. </method>
  13495. <method name="getCurrentValue" return="java.lang.Object"
  13496. abstract="false" native="false" synchronized="true"
  13497. static="false" final="false" visibility="public"
  13498. deprecated="not deprecated">
  13499. <param name="val" type="java.lang.Object"/>
  13500. <exception name="IOException" type="java.io.IOException"/>
  13501. <doc>
  13502. <![CDATA[Get the 'value' corresponding to the last read 'key'.
  13503. @param val : The 'value' to be read.
  13504. @throws IOException]]>
  13505. </doc>
  13506. </method>
  13507. <method name="next" return="boolean"
  13508. abstract="false" native="false" synchronized="true"
  13509. static="false" final="false" visibility="public"
  13510. deprecated="not deprecated">
  13511. <param name="key" type="org.apache.hadoop.io.Writable"/>
  13512. <exception name="IOException" type="java.io.IOException"/>
  13513. <doc>
  13514. <![CDATA[Read the next key in the file into <code>key</code>, skipping its
  13515. value. True if another entry exists, and false at end of file.]]>
  13516. </doc>
  13517. </method>
  13518. <method name="next" return="boolean"
  13519. abstract="false" native="false" synchronized="true"
  13520. static="false" final="false" visibility="public"
  13521. deprecated="not deprecated">
  13522. <param name="key" type="org.apache.hadoop.io.Writable"/>
  13523. <param name="val" type="org.apache.hadoop.io.Writable"/>
  13524. <exception name="IOException" type="java.io.IOException"/>
  13525. <doc>
  13526. <![CDATA[Read the next key/value pair in the file into <code>key</code> and
  13527. <code>val</code>. Returns true if such a pair exists and false when at
  13528. end of file]]>
  13529. </doc>
  13530. </method>
  13531. <method name="next" return="int"
  13532. abstract="false" native="false" synchronized="true"
  13533. static="false" final="false" visibility="public"
  13534. deprecated="Call {@link #nextRaw(DataOutputBuffer,SequenceFile.ValueBytes)}.">
  13535. <param name="buffer" type="org.apache.hadoop.io.DataOutputBuffer"/>
  13536. <exception name="IOException" type="java.io.IOException"/>
  13537. <doc>
  13538. <![CDATA[@deprecated Call {@link #nextRaw(DataOutputBuffer,SequenceFile.ValueBytes)}.]]>
  13539. </doc>
  13540. </method>
  13541. <method name="createValueBytes" return="org.apache.hadoop.io.SequenceFile.ValueBytes"
  13542. abstract="false" native="false" synchronized="false"
  13543. static="false" final="false" visibility="public"
  13544. deprecated="not deprecated">
  13545. </method>
  13546. <method name="nextRaw" return="int"
  13547. abstract="false" native="false" synchronized="true"
  13548. static="false" final="false" visibility="public"
  13549. deprecated="not deprecated">
  13550. <param name="key" type="org.apache.hadoop.io.DataOutputBuffer"/>
  13551. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  13552. <exception name="IOException" type="java.io.IOException"/>
  13553. <doc>
  13554. <![CDATA[Read 'raw' records.
  13555. @param key - The buffer into which the key is read
  13556. @param val - The 'raw' value
  13557. @return Returns the total record length or -1 for end of file
  13558. @throws IOException]]>
  13559. </doc>
  13560. </method>
  13561. <method name="nextRawKey" return="int"
  13562. abstract="false" native="false" synchronized="false"
  13563. static="false" final="false" visibility="public"
  13564. deprecated="not deprecated">
  13565. <param name="key" type="org.apache.hadoop.io.DataOutputBuffer"/>
  13566. <exception name="IOException" type="java.io.IOException"/>
  13567. <doc>
  13568. <![CDATA[Read 'raw' keys.
  13569. @param key - The buffer into which the key is read
  13570. @return Returns the key length or -1 for end of file
  13571. @throws IOException]]>
  13572. </doc>
  13573. </method>
  13574. <method name="next" return="java.lang.Object"
  13575. abstract="false" native="false" synchronized="true"
  13576. static="false" final="false" visibility="public"
  13577. deprecated="not deprecated">
  13578. <param name="key" type="java.lang.Object"/>
  13579. <exception name="IOException" type="java.io.IOException"/>
  13580. <doc>
  13581. <![CDATA[Read the next key in the file, skipping its
  13582. value. Return null at end of file.]]>
  13583. </doc>
  13584. </method>
  13585. <method name="nextRawValue" return="int"
  13586. abstract="false" native="false" synchronized="true"
  13587. static="false" final="false" visibility="public"
  13588. deprecated="not deprecated">
  13589. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  13590. <exception name="IOException" type="java.io.IOException"/>
  13591. <doc>
  13592. <![CDATA[Read 'raw' values.
  13593. @param val - The 'raw' value
  13594. @return Returns the value length
  13595. @throws IOException]]>
  13596. </doc>
  13597. </method>
  13598. <method name="seek"
  13599. abstract="false" native="false" synchronized="true"
  13600. static="false" final="false" visibility="public"
  13601. deprecated="not deprecated">
  13602. <param name="position" type="long"/>
  13603. <exception name="IOException" type="java.io.IOException"/>
  13604. <doc>
  13605. <![CDATA[Set the current byte position in the input file.
  13606. <p>The position passed must be a position returned by {@link
  13607. SequenceFile.Writer#getLength()} when writing this file. To seek to an arbitrary
  13608. position, use {@link SequenceFile.Reader#sync(long)}.]]>
  13609. </doc>
  13610. </method>
  13611. <method name="sync"
  13612. abstract="false" native="false" synchronized="true"
  13613. static="false" final="false" visibility="public"
  13614. deprecated="not deprecated">
  13615. <param name="position" type="long"/>
  13616. <exception name="IOException" type="java.io.IOException"/>
  13617. <doc>
  13618. <![CDATA[Seek to the next sync mark past a given position.]]>
  13619. </doc>
  13620. </method>
  13621. <method name="syncSeen" return="boolean"
  13622. abstract="false" native="false" synchronized="false"
  13623. static="false" final="false" visibility="public"
  13624. deprecated="not deprecated">
  13625. <doc>
  13626. <![CDATA[Returns true iff the previous call to next passed a sync mark.]]>
  13627. </doc>
  13628. </method>
  13629. <method name="getPosition" return="long"
  13630. abstract="false" native="false" synchronized="true"
  13631. static="false" final="false" visibility="public"
  13632. deprecated="not deprecated">
  13633. <exception name="IOException" type="java.io.IOException"/>
  13634. <doc>
  13635. <![CDATA[Return the current byte position in the input file.]]>
  13636. </doc>
  13637. </method>
  13638. <method name="toString" return="java.lang.String"
  13639. abstract="false" native="false" synchronized="false"
  13640. static="false" final="false" visibility="public"
  13641. deprecated="not deprecated">
  13642. <doc>
  13643. <![CDATA[Returns the name of the file.]]>
  13644. </doc>
  13645. </method>
  13646. <doc>
  13647. <![CDATA[Reads key/value pairs from a sequence-format file.]]>
  13648. </doc>
  13649. </class>
  13650. <!-- end class org.apache.hadoop.io.SequenceFile.Reader -->
  13651. <!-- start class org.apache.hadoop.io.SequenceFile.Sorter -->
  13652. <class name="SequenceFile.Sorter" extends="java.lang.Object"
  13653. abstract="false"
  13654. static="true" final="false" visibility="public"
  13655. deprecated="not deprecated">
  13656. <constructor name="SequenceFile.Sorter" type="org.apache.hadoop.fs.FileSystem, java.lang.Class, java.lang.Class, org.apache.hadoop.conf.Configuration"
  13657. static="false" final="false" visibility="public"
  13658. deprecated="not deprecated">
  13659. <doc>
  13660. <![CDATA[Sort and merge files containing the named classes.]]>
  13661. </doc>
  13662. </constructor>
  13663. <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"
  13664. static="false" final="false" visibility="public"
  13665. deprecated="not deprecated">
  13666. <doc>
  13667. <![CDATA[Sort and merge using an arbitrary {@link RawComparator}.]]>
  13668. </doc>
  13669. </constructor>
  13670. <method name="setFactor"
  13671. abstract="false" native="false" synchronized="false"
  13672. static="false" final="false" visibility="public"
  13673. deprecated="not deprecated">
  13674. <param name="factor" type="int"/>
  13675. <doc>
  13676. <![CDATA[Set the number of streams to merge at once.]]>
  13677. </doc>
  13678. </method>
  13679. <method name="getFactor" return="int"
  13680. abstract="false" native="false" synchronized="false"
  13681. static="false" final="false" visibility="public"
  13682. deprecated="not deprecated">
  13683. <doc>
  13684. <![CDATA[Get the number of streams to merge at once.]]>
  13685. </doc>
  13686. </method>
  13687. <method name="setMemory"
  13688. abstract="false" native="false" synchronized="false"
  13689. static="false" final="false" visibility="public"
  13690. deprecated="not deprecated">
  13691. <param name="memory" type="int"/>
  13692. <doc>
  13693. <![CDATA[Set the total amount of buffer memory, in bytes.]]>
  13694. </doc>
  13695. </method>
  13696. <method name="getMemory" return="int"
  13697. abstract="false" native="false" synchronized="false"
  13698. static="false" final="false" visibility="public"
  13699. deprecated="not deprecated">
  13700. <doc>
  13701. <![CDATA[Get the total amount of buffer memory, in bytes.]]>
  13702. </doc>
  13703. </method>
  13704. <method name="setProgressable"
  13705. abstract="false" native="false" synchronized="false"
  13706. static="false" final="false" visibility="public"
  13707. deprecated="not deprecated">
  13708. <param name="progressable" type="org.apache.hadoop.util.Progressable"/>
  13709. <doc>
  13710. <![CDATA[Set the progressable object in order to report progress.]]>
  13711. </doc>
  13712. </method>
  13713. <method name="sort"
  13714. abstract="false" native="false" synchronized="false"
  13715. static="false" final="false" visibility="public"
  13716. deprecated="not deprecated">
  13717. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  13718. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  13719. <param name="deleteInput" type="boolean"/>
  13720. <exception name="IOException" type="java.io.IOException"/>
  13721. <doc>
  13722. <![CDATA[Perform a file sort from a set of input files into an output file.
  13723. @param inFiles the files to be sorted
  13724. @param outFile the sorted output file
  13725. @param deleteInput should the input files be deleted as they are read?]]>
  13726. </doc>
  13727. </method>
  13728. <method name="sortAndIterate" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  13729. abstract="false" native="false" synchronized="false"
  13730. static="false" final="false" visibility="public"
  13731. deprecated="not deprecated">
  13732. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  13733. <param name="tempDir" type="org.apache.hadoop.fs.Path"/>
  13734. <param name="deleteInput" type="boolean"/>
  13735. <exception name="IOException" type="java.io.IOException"/>
  13736. <doc>
  13737. <![CDATA[Perform a file sort from a set of input files and return an iterator.
  13738. @param inFiles the files to be sorted
  13739. @param tempDir the directory where temp files are created during sort
  13740. @param deleteInput should the input files be deleted as they are read?
  13741. @return iterator the RawKeyValueIterator]]>
  13742. </doc>
  13743. </method>
  13744. <method name="sort"
  13745. abstract="false" native="false" synchronized="false"
  13746. static="false" final="false" visibility="public"
  13747. deprecated="not deprecated">
  13748. <param name="inFile" type="org.apache.hadoop.fs.Path"/>
  13749. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  13750. <exception name="IOException" type="java.io.IOException"/>
  13751. <doc>
  13752. <![CDATA[The backwards compatible interface to sort.
  13753. @param inFile the input file to sort
  13754. @param outFile the sorted output file]]>
  13755. </doc>
  13756. </method>
  13757. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  13758. abstract="false" native="false" synchronized="false"
  13759. static="false" final="false" visibility="public"
  13760. deprecated="not deprecated">
  13761. <param name="segments" type="java.util.List"/>
  13762. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  13763. <exception name="IOException" type="java.io.IOException"/>
  13764. <doc>
  13765. <![CDATA[Merges the list of segments of type <code>SegmentDescriptor</code>
  13766. @param segments the list of SegmentDescriptors
  13767. @param tmpDir the directory to write temporary files into
  13768. @return RawKeyValueIterator
  13769. @throws IOException]]>
  13770. </doc>
  13771. </method>
  13772. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  13773. abstract="false" native="false" synchronized="false"
  13774. static="false" final="false" visibility="public"
  13775. deprecated="not deprecated">
  13776. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  13777. <param name="deleteInputs" type="boolean"/>
  13778. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  13779. <exception name="IOException" type="java.io.IOException"/>
  13780. <doc>
  13781. <![CDATA[Merges the contents of files passed in Path[] using a max factor value
  13782. that is already set
  13783. @param inNames the array of path names
  13784. @param deleteInputs true if the input files should be deleted when
  13785. unnecessary
  13786. @param tmpDir the directory to write temporary files into
  13787. @return RawKeyValueIteratorMergeQueue
  13788. @throws IOException]]>
  13789. </doc>
  13790. </method>
  13791. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  13792. abstract="false" native="false" synchronized="false"
  13793. static="false" final="false" visibility="public"
  13794. deprecated="not deprecated">
  13795. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  13796. <param name="deleteInputs" type="boolean"/>
  13797. <param name="factor" type="int"/>
  13798. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  13799. <exception name="IOException" type="java.io.IOException"/>
  13800. <doc>
  13801. <![CDATA[Merges the contents of files passed in Path[]
  13802. @param inNames the array of path names
  13803. @param deleteInputs true if the input files should be deleted when
  13804. unnecessary
  13805. @param factor the factor that will be used as the maximum merge fan-in
  13806. @param tmpDir the directory to write temporary files into
  13807. @return RawKeyValueIteratorMergeQueue
  13808. @throws IOException]]>
  13809. </doc>
  13810. </method>
  13811. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  13812. abstract="false" native="false" synchronized="false"
  13813. static="false" final="false" visibility="public"
  13814. deprecated="not deprecated">
  13815. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  13816. <param name="tempDir" type="org.apache.hadoop.fs.Path"/>
  13817. <param name="deleteInputs" type="boolean"/>
  13818. <exception name="IOException" type="java.io.IOException"/>
  13819. <doc>
  13820. <![CDATA[Merges the contents of files passed in Path[]
  13821. @param inNames the array of path names
  13822. @param tempDir the directory for creating temp files during merge
  13823. @param deleteInputs true if the input files should be deleted when
  13824. unnecessary
  13825. @return RawKeyValueIteratorMergeQueue
  13826. @throws IOException]]>
  13827. </doc>
  13828. </method>
  13829. <method name="cloneFileAttributes" return="org.apache.hadoop.io.SequenceFile.Writer"
  13830. abstract="false" native="false" synchronized="false"
  13831. static="false" final="false" visibility="public"
  13832. deprecated="not deprecated">
  13833. <param name="inputFile" type="org.apache.hadoop.fs.Path"/>
  13834. <param name="outputFile" type="org.apache.hadoop.fs.Path"/>
  13835. <param name="prog" type="org.apache.hadoop.util.Progressable"/>
  13836. <exception name="IOException" type="java.io.IOException"/>
  13837. <doc>
  13838. <![CDATA[Clones the attributes (like compression of the input file and creates a
  13839. corresponding Writer
  13840. @param inputFile the path of the input file whose attributes should be
  13841. cloned
  13842. @param outputFile the path of the output file
  13843. @param prog the Progressable to report status during the file write
  13844. @return Writer
  13845. @throws IOException]]>
  13846. </doc>
  13847. </method>
  13848. <method name="writeFile"
  13849. abstract="false" native="false" synchronized="false"
  13850. static="false" final="false" visibility="public"
  13851. deprecated="not deprecated">
  13852. <param name="records" type="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"/>
  13853. <param name="writer" type="org.apache.hadoop.io.SequenceFile.Writer"/>
  13854. <exception name="IOException" type="java.io.IOException"/>
  13855. <doc>
  13856. <![CDATA[Writes records from RawKeyValueIterator into a file represented by the
  13857. passed writer
  13858. @param records the RawKeyValueIterator
  13859. @param writer the Writer created earlier
  13860. @throws IOException]]>
  13861. </doc>
  13862. </method>
  13863. <method name="merge"
  13864. abstract="false" native="false" synchronized="false"
  13865. static="false" final="false" visibility="public"
  13866. deprecated="not deprecated">
  13867. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  13868. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  13869. <exception name="IOException" type="java.io.IOException"/>
  13870. <doc>
  13871. <![CDATA[Merge the provided files.
  13872. @param inFiles the array of input path names
  13873. @param outFile the final output file
  13874. @throws IOException]]>
  13875. </doc>
  13876. </method>
  13877. <doc>
  13878. <![CDATA[Sorts key/value pairs in a sequence-format file.
  13879. <p>For best performance, applications should make sure that the {@link
  13880. Writable#readFields(DataInput)} implementation of their keys is
  13881. very efficient. In particular, it should avoid allocating memory.]]>
  13882. </doc>
  13883. </class>
  13884. <!-- end class org.apache.hadoop.io.SequenceFile.Sorter -->
  13885. <!-- start interface org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator -->
  13886. <interface name="SequenceFile.Sorter.RawKeyValueIterator" abstract="true"
  13887. static="true" final="false" visibility="public"
  13888. deprecated="not deprecated">
  13889. <method name="getKey" return="org.apache.hadoop.io.DataOutputBuffer"
  13890. abstract="false" native="false" synchronized="false"
  13891. static="false" final="false" visibility="public"
  13892. deprecated="not deprecated">
  13893. <exception name="IOException" type="java.io.IOException"/>
  13894. <doc>
  13895. <![CDATA[Gets the current raw key
  13896. @return DataOutputBuffer
  13897. @throws IOException]]>
  13898. </doc>
  13899. </method>
  13900. <method name="getValue" return="org.apache.hadoop.io.SequenceFile.ValueBytes"
  13901. abstract="false" native="false" synchronized="false"
  13902. static="false" final="false" visibility="public"
  13903. deprecated="not deprecated">
  13904. <exception name="IOException" type="java.io.IOException"/>
  13905. <doc>
  13906. <![CDATA[Gets the current raw value
  13907. @return ValueBytes
  13908. @throws IOException]]>
  13909. </doc>
  13910. </method>
  13911. <method name="next" return="boolean"
  13912. abstract="false" native="false" synchronized="false"
  13913. static="false" final="false" visibility="public"
  13914. deprecated="not deprecated">
  13915. <exception name="IOException" type="java.io.IOException"/>
  13916. <doc>
  13917. <![CDATA[Sets up the current key and value (for getKey and getValue)
  13918. @return true if there exists a key/value, false otherwise
  13919. @throws IOException]]>
  13920. </doc>
  13921. </method>
  13922. <method name="close"
  13923. abstract="false" native="false" synchronized="false"
  13924. static="false" final="false" visibility="public"
  13925. deprecated="not deprecated">
  13926. <exception name="IOException" type="java.io.IOException"/>
  13927. <doc>
  13928. <![CDATA[closes the iterator so that the underlying streams can be closed
  13929. @throws IOException]]>
  13930. </doc>
  13931. </method>
  13932. <method name="getProgress" return="org.apache.hadoop.util.Progress"
  13933. abstract="false" native="false" synchronized="false"
  13934. static="false" final="false" visibility="public"
  13935. deprecated="not deprecated">
  13936. <doc>
  13937. <![CDATA[Gets the Progress object; this has a float (0.0 - 1.0)
  13938. indicating the bytes processed by the iterator so far]]>
  13939. </doc>
  13940. </method>
  13941. <doc>
  13942. <![CDATA[The interface to iterate over raw keys/values of SequenceFiles.]]>
  13943. </doc>
  13944. </interface>
  13945. <!-- end interface org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator -->
  13946. <!-- start class org.apache.hadoop.io.SequenceFile.Sorter.SegmentDescriptor -->
  13947. <class name="SequenceFile.Sorter.SegmentDescriptor" extends="java.lang.Object"
  13948. abstract="false"
  13949. static="false" final="false" visibility="public"
  13950. deprecated="not deprecated">
  13951. <implements name="java.lang.Comparable"/>
  13952. <constructor name="SequenceFile.Sorter.SegmentDescriptor" type="long, long, org.apache.hadoop.fs.Path"
  13953. static="false" final="false" visibility="public"
  13954. deprecated="not deprecated">
  13955. <doc>
  13956. <![CDATA[Constructs a segment
  13957. @param segmentOffset the offset of the segment in the file
  13958. @param segmentLength the length of the segment
  13959. @param segmentPathName the path name of the file containing the segment]]>
  13960. </doc>
  13961. </constructor>
  13962. <method name="doSync"
  13963. abstract="false" native="false" synchronized="false"
  13964. static="false" final="false" visibility="public"
  13965. deprecated="not deprecated">
  13966. <doc>
  13967. <![CDATA[Do the sync checks]]>
  13968. </doc>
  13969. </method>
  13970. <method name="preserveInput"
  13971. abstract="false" native="false" synchronized="false"
  13972. static="false" final="false" visibility="public"
  13973. deprecated="not deprecated">
  13974. <param name="preserve" type="boolean"/>
  13975. <doc>
  13976. <![CDATA[Whether to delete the files when no longer needed]]>
  13977. </doc>
  13978. </method>
  13979. <method name="shouldPreserveInput" return="boolean"
  13980. abstract="false" native="false" synchronized="false"
  13981. static="false" final="false" visibility="public"
  13982. deprecated="not deprecated">
  13983. </method>
  13984. <method name="compareTo" return="int"
  13985. abstract="false" native="false" synchronized="false"
  13986. static="false" final="false" visibility="public"
  13987. deprecated="not deprecated">
  13988. <param name="o" type="java.lang.Object"/>
  13989. </method>
  13990. <method name="equals" return="boolean"
  13991. abstract="false" native="false" synchronized="false"
  13992. static="false" final="false" visibility="public"
  13993. deprecated="not deprecated">
  13994. <param name="o" type="java.lang.Object"/>
  13995. </method>
  13996. <method name="hashCode" return="int"
  13997. abstract="false" native="false" synchronized="false"
  13998. static="false" final="false" visibility="public"
  13999. deprecated="not deprecated">
  14000. </method>
  14001. <method name="nextRawKey" return="boolean"
  14002. abstract="false" native="false" synchronized="false"
  14003. static="false" final="false" visibility="public"
  14004. deprecated="not deprecated">
  14005. <exception name="IOException" type="java.io.IOException"/>
  14006. <doc>
  14007. <![CDATA[Fills up the rawKey object with the key returned by the Reader
  14008. @return true if there is a key returned; false, otherwise
  14009. @throws IOException]]>
  14010. </doc>
  14011. </method>
  14012. <method name="nextRawValue" return="int"
  14013. abstract="false" native="false" synchronized="false"
  14014. static="false" final="false" visibility="public"
  14015. deprecated="not deprecated">
  14016. <param name="rawValue" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  14017. <exception name="IOException" type="java.io.IOException"/>
  14018. <doc>
  14019. <![CDATA[Fills up the passed rawValue with the value corresponding to the key
  14020. read earlier
  14021. @param rawValue
  14022. @return the length of the value
  14023. @throws IOException]]>
  14024. </doc>
  14025. </method>
  14026. <method name="getKey" return="org.apache.hadoop.io.DataOutputBuffer"
  14027. abstract="false" native="false" synchronized="false"
  14028. static="false" final="false" visibility="public"
  14029. deprecated="not deprecated">
  14030. <doc>
  14031. <![CDATA[Returns the stored rawKey]]>
  14032. </doc>
  14033. </method>
  14034. <method name="cleanup"
  14035. abstract="false" native="false" synchronized="false"
  14036. static="false" final="false" visibility="public"
  14037. deprecated="not deprecated">
  14038. <exception name="IOException" type="java.io.IOException"/>
  14039. <doc>
  14040. <![CDATA[The default cleanup. Subclasses can override this with a custom
  14041. cleanup]]>
  14042. </doc>
  14043. </method>
  14044. <doc>
  14045. <![CDATA[This class defines a merge segment. This class can be subclassed to
  14046. provide a customized cleanup method implementation. In this
  14047. implementation, cleanup closes the file handle and deletes the file]]>
  14048. </doc>
  14049. </class>
  14050. <!-- end class org.apache.hadoop.io.SequenceFile.Sorter.SegmentDescriptor -->
  14051. <!-- start interface org.apache.hadoop.io.SequenceFile.ValueBytes -->
  14052. <interface name="SequenceFile.ValueBytes" abstract="true"
  14053. static="true" final="false" visibility="public"
  14054. deprecated="not deprecated">
  14055. <method name="writeUncompressedBytes"
  14056. abstract="false" native="false" synchronized="false"
  14057. static="false" final="false" visibility="public"
  14058. deprecated="not deprecated">
  14059. <param name="outStream" type="java.io.DataOutputStream"/>
  14060. <exception name="IOException" type="java.io.IOException"/>
  14061. <doc>
  14062. <![CDATA[Writes the uncompressed bytes to the outStream.
  14063. @param outStream : Stream to write uncompressed bytes into.
  14064. @throws IOException]]>
  14065. </doc>
  14066. </method>
  14067. <method name="writeCompressedBytes"
  14068. abstract="false" native="false" synchronized="false"
  14069. static="false" final="false" visibility="public"
  14070. deprecated="not deprecated">
  14071. <param name="outStream" type="java.io.DataOutputStream"/>
  14072. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  14073. <exception name="IOException" type="java.io.IOException"/>
  14074. <doc>
  14075. <![CDATA[Write compressed bytes to outStream.
  14076. Note: that it will NOT compress the bytes if they are not compressed.
  14077. @param outStream : Stream to write compressed bytes into.]]>
  14078. </doc>
  14079. </method>
  14080. <method name="getSize" return="int"
  14081. abstract="false" native="false" synchronized="false"
  14082. static="false" final="false" visibility="public"
  14083. deprecated="not deprecated">
  14084. <doc>
  14085. <![CDATA[Size of stored data.]]>
  14086. </doc>
  14087. </method>
  14088. <doc>
  14089. <![CDATA[The interface to 'raw' values of SequenceFiles.]]>
  14090. </doc>
  14091. </interface>
  14092. <!-- end interface org.apache.hadoop.io.SequenceFile.ValueBytes -->
  14093. <!-- start class org.apache.hadoop.io.SequenceFile.Writer -->
  14094. <class name="SequenceFile.Writer" extends="java.lang.Object"
  14095. abstract="false"
  14096. static="true" final="false" visibility="public"
  14097. deprecated="not deprecated">
  14098. <implements name="java.io.Closeable"/>
  14099. <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"
  14100. static="false" final="false" visibility="public"
  14101. deprecated="not deprecated">
  14102. <exception name="IOException" type="java.io.IOException"/>
  14103. <doc>
  14104. <![CDATA[Create the named file.]]>
  14105. </doc>
  14106. </constructor>
  14107. <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"
  14108. static="false" final="false" visibility="public"
  14109. deprecated="not deprecated">
  14110. <exception name="IOException" type="java.io.IOException"/>
  14111. <doc>
  14112. <![CDATA[Create the named file with write-progress reporter.]]>
  14113. </doc>
  14114. </constructor>
  14115. <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"
  14116. static="false" final="false" visibility="public"
  14117. deprecated="not deprecated">
  14118. <exception name="IOException" type="java.io.IOException"/>
  14119. <doc>
  14120. <![CDATA[Create the named file with write-progress reporter.]]>
  14121. </doc>
  14122. </constructor>
  14123. <method name="getKeyClass" return="java.lang.Class"
  14124. abstract="false" native="false" synchronized="false"
  14125. static="false" final="false" visibility="public"
  14126. deprecated="not deprecated">
  14127. <doc>
  14128. <![CDATA[Returns the class of keys in this file.]]>
  14129. </doc>
  14130. </method>
  14131. <method name="getValueClass" return="java.lang.Class"
  14132. abstract="false" native="false" synchronized="false"
  14133. static="false" final="false" visibility="public"
  14134. deprecated="not deprecated">
  14135. <doc>
  14136. <![CDATA[Returns the class of values in this file.]]>
  14137. </doc>
  14138. </method>
  14139. <method name="getCompressionCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  14140. abstract="false" native="false" synchronized="false"
  14141. static="false" final="false" visibility="public"
  14142. deprecated="not deprecated">
  14143. <doc>
  14144. <![CDATA[Returns the compression codec of data in this file.]]>
  14145. </doc>
  14146. </method>
  14147. <method name="sync"
  14148. abstract="false" native="false" synchronized="false"
  14149. static="false" final="false" visibility="public"
  14150. deprecated="not deprecated">
  14151. <exception name="IOException" type="java.io.IOException"/>
  14152. <doc>
  14153. <![CDATA[create a sync point]]>
  14154. </doc>
  14155. </method>
  14156. <method name="syncFs"
  14157. abstract="false" native="false" synchronized="false"
  14158. static="false" final="false" visibility="public"
  14159. deprecated="not deprecated">
  14160. <exception name="IOException" type="java.io.IOException"/>
  14161. <doc>
  14162. <![CDATA[flush all currently written data to the file system]]>
  14163. </doc>
  14164. </method>
  14165. <method name="close"
  14166. abstract="false" native="false" synchronized="true"
  14167. static="false" final="false" visibility="public"
  14168. deprecated="not deprecated">
  14169. <exception name="IOException" type="java.io.IOException"/>
  14170. <doc>
  14171. <![CDATA[Close the file.]]>
  14172. </doc>
  14173. </method>
  14174. <method name="append"
  14175. abstract="false" native="false" synchronized="true"
  14176. static="false" final="false" visibility="public"
  14177. deprecated="not deprecated">
  14178. <param name="key" type="org.apache.hadoop.io.Writable"/>
  14179. <param name="val" type="org.apache.hadoop.io.Writable"/>
  14180. <exception name="IOException" type="java.io.IOException"/>
  14181. <doc>
  14182. <![CDATA[Append a key/value pair.]]>
  14183. </doc>
  14184. </method>
  14185. <method name="append"
  14186. abstract="false" native="false" synchronized="true"
  14187. static="false" final="false" visibility="public"
  14188. deprecated="not deprecated">
  14189. <param name="key" type="java.lang.Object"/>
  14190. <param name="val" type="java.lang.Object"/>
  14191. <exception name="IOException" type="java.io.IOException"/>
  14192. <doc>
  14193. <![CDATA[Append a key/value pair.]]>
  14194. </doc>
  14195. </method>
  14196. <method name="appendRaw"
  14197. abstract="false" native="false" synchronized="true"
  14198. static="false" final="false" visibility="public"
  14199. deprecated="not deprecated">
  14200. <param name="keyData" type="byte[]"/>
  14201. <param name="keyOffset" type="int"/>
  14202. <param name="keyLength" type="int"/>
  14203. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  14204. <exception name="IOException" type="java.io.IOException"/>
  14205. </method>
  14206. <method name="getLength" return="long"
  14207. abstract="false" native="false" synchronized="true"
  14208. static="false" final="false" visibility="public"
  14209. deprecated="not deprecated">
  14210. <exception name="IOException" type="java.io.IOException"/>
  14211. <doc>
  14212. <![CDATA[Returns the current length of the output file.
  14213. <p>This always returns a synchronized position. In other words,
  14214. immediately after calling {@link SequenceFile.Reader#seek(long)} with a position
  14215. returned by this method, {@link SequenceFile.Reader#next(Writable)} may be called. However
  14216. the key may be earlier in the file than key last written when this
  14217. method was called (e.g., with block-compression, it may be the first key
  14218. in the block that was being written when this method was called).]]>
  14219. </doc>
  14220. </method>
  14221. <field name="keySerializer" type="org.apache.hadoop.io.serializer.Serializer"
  14222. transient="false" volatile="false"
  14223. static="false" final="false" visibility="protected"
  14224. deprecated="not deprecated">
  14225. </field>
  14226. <field name="uncompressedValSerializer" type="org.apache.hadoop.io.serializer.Serializer"
  14227. transient="false" volatile="false"
  14228. static="false" final="false" visibility="protected"
  14229. deprecated="not deprecated">
  14230. </field>
  14231. <field name="compressedValSerializer" type="org.apache.hadoop.io.serializer.Serializer"
  14232. transient="false" volatile="false"
  14233. static="false" final="false" visibility="protected"
  14234. deprecated="not deprecated">
  14235. </field>
  14236. <doc>
  14237. <![CDATA[Write key/value pairs to a sequence-format file.]]>
  14238. </doc>
  14239. </class>
  14240. <!-- end class org.apache.hadoop.io.SequenceFile.Writer -->
  14241. <!-- start class org.apache.hadoop.io.SetFile -->
  14242. <class name="SetFile" extends="org.apache.hadoop.io.MapFile"
  14243. abstract="false"
  14244. static="false" final="false" visibility="public"
  14245. deprecated="not deprecated">
  14246. <constructor name="SetFile"
  14247. static="false" final="false" visibility="protected"
  14248. deprecated="not deprecated">
  14249. </constructor>
  14250. <doc>
  14251. <![CDATA[A file-based set of keys.]]>
  14252. </doc>
  14253. </class>
  14254. <!-- end class org.apache.hadoop.io.SetFile -->
  14255. <!-- start class org.apache.hadoop.io.SetFile.Reader -->
  14256. <class name="SetFile.Reader" extends="org.apache.hadoop.io.MapFile.Reader"
  14257. abstract="false"
  14258. static="true" final="false" visibility="public"
  14259. deprecated="not deprecated">
  14260. <constructor name="SetFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  14261. static="false" final="false" visibility="public"
  14262. deprecated="not deprecated">
  14263. <exception name="IOException" type="java.io.IOException"/>
  14264. <doc>
  14265. <![CDATA[Construct a set reader for the named set.]]>
  14266. </doc>
  14267. </constructor>
  14268. <constructor name="SetFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration"
  14269. static="false" final="false" visibility="public"
  14270. deprecated="not deprecated">
  14271. <exception name="IOException" type="java.io.IOException"/>
  14272. <doc>
  14273. <![CDATA[Construct a set reader for the named set using the named comparator.]]>
  14274. </doc>
  14275. </constructor>
  14276. <method name="seek" return="boolean"
  14277. abstract="false" native="false" synchronized="false"
  14278. static="false" final="false" visibility="public"
  14279. deprecated="not deprecated">
  14280. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  14281. <exception name="IOException" type="java.io.IOException"/>
  14282. </method>
  14283. <method name="next" return="boolean"
  14284. abstract="false" native="false" synchronized="false"
  14285. static="false" final="false" visibility="public"
  14286. deprecated="not deprecated">
  14287. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  14288. <exception name="IOException" type="java.io.IOException"/>
  14289. <doc>
  14290. <![CDATA[Read the next key in a set into <code>key</code>. Returns
  14291. true if such a key exists and false when at the end of the set.]]>
  14292. </doc>
  14293. </method>
  14294. <method name="get" return="org.apache.hadoop.io.WritableComparable"
  14295. abstract="false" native="false" synchronized="false"
  14296. static="false" final="false" visibility="public"
  14297. deprecated="not deprecated">
  14298. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  14299. <exception name="IOException" type="java.io.IOException"/>
  14300. <doc>
  14301. <![CDATA[Read the matching key from a set into <code>key</code>.
  14302. Returns <code>key</code>, or null if no match exists.]]>
  14303. </doc>
  14304. </method>
  14305. <doc>
  14306. <![CDATA[Provide access to an existing set file.]]>
  14307. </doc>
  14308. </class>
  14309. <!-- end class org.apache.hadoop.io.SetFile.Reader -->
  14310. <!-- start class org.apache.hadoop.io.SetFile.Writer -->
  14311. <class name="SetFile.Writer" extends="org.apache.hadoop.io.MapFile.Writer"
  14312. abstract="false"
  14313. static="true" final="false" visibility="public"
  14314. deprecated="not deprecated">
  14315. <constructor name="SetFile.Writer" type="org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class"
  14316. static="false" final="false" visibility="public"
  14317. deprecated="pass a Configuration too">
  14318. <exception name="IOException" type="java.io.IOException"/>
  14319. <doc>
  14320. <![CDATA[Create the named set for keys of the named class.
  14321. @deprecated pass a Configuration too]]>
  14322. </doc>
  14323. </constructor>
  14324. <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"
  14325. static="false" final="false" visibility="public"
  14326. deprecated="not deprecated">
  14327. <exception name="IOException" type="java.io.IOException"/>
  14328. <doc>
  14329. <![CDATA[Create a set naming the element class and compression type.]]>
  14330. </doc>
  14331. </constructor>
  14332. <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"
  14333. static="false" final="false" visibility="public"
  14334. deprecated="not deprecated">
  14335. <exception name="IOException" type="java.io.IOException"/>
  14336. <doc>
  14337. <![CDATA[Create a set naming the element comparator and compression type.]]>
  14338. </doc>
  14339. </constructor>
  14340. <method name="append"
  14341. abstract="false" native="false" synchronized="false"
  14342. static="false" final="false" visibility="public"
  14343. deprecated="not deprecated">
  14344. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  14345. <exception name="IOException" type="java.io.IOException"/>
  14346. <doc>
  14347. <![CDATA[Append a key to a set. The key must be strictly greater than the
  14348. previous key added to the set.]]>
  14349. </doc>
  14350. </method>
  14351. <doc>
  14352. <![CDATA[Write a new set file.]]>
  14353. </doc>
  14354. </class>
  14355. <!-- end class org.apache.hadoop.io.SetFile.Writer -->
  14356. <!-- start class org.apache.hadoop.io.SortedMapWritable -->
  14357. <class name="SortedMapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  14358. abstract="false"
  14359. static="false" final="false" visibility="public"
  14360. deprecated="not deprecated">
  14361. <implements name="java.util.SortedMap"/>
  14362. <constructor name="SortedMapWritable"
  14363. static="false" final="false" visibility="public"
  14364. deprecated="not deprecated">
  14365. <doc>
  14366. <![CDATA[default constructor.]]>
  14367. </doc>
  14368. </constructor>
  14369. <constructor name="SortedMapWritable" type="org.apache.hadoop.io.SortedMapWritable"
  14370. static="false" final="false" visibility="public"
  14371. deprecated="not deprecated">
  14372. <doc>
  14373. <![CDATA[Copy constructor.
  14374. @param other the map to copy from]]>
  14375. </doc>
  14376. </constructor>
  14377. <method name="comparator" return="java.util.Comparator"
  14378. abstract="false" native="false" synchronized="false"
  14379. static="false" final="false" visibility="public"
  14380. deprecated="not deprecated">
  14381. <doc>
  14382. <![CDATA[{@inheritDoc}]]>
  14383. </doc>
  14384. </method>
  14385. <method name="firstKey" return="org.apache.hadoop.io.WritableComparable"
  14386. abstract="false" native="false" synchronized="false"
  14387. static="false" final="false" visibility="public"
  14388. deprecated="not deprecated">
  14389. <doc>
  14390. <![CDATA[{@inheritDoc}]]>
  14391. </doc>
  14392. </method>
  14393. <method name="headMap" return="java.util.SortedMap"
  14394. abstract="false" native="false" synchronized="false"
  14395. static="false" final="false" visibility="public"
  14396. deprecated="not deprecated">
  14397. <param name="toKey" type="org.apache.hadoop.io.WritableComparable"/>
  14398. <doc>
  14399. <![CDATA[{@inheritDoc}]]>
  14400. </doc>
  14401. </method>
  14402. <method name="lastKey" return="org.apache.hadoop.io.WritableComparable"
  14403. abstract="false" native="false" synchronized="false"
  14404. static="false" final="false" visibility="public"
  14405. deprecated="not deprecated">
  14406. <doc>
  14407. <![CDATA[{@inheritDoc}]]>
  14408. </doc>
  14409. </method>
  14410. <method name="subMap" return="java.util.SortedMap"
  14411. abstract="false" native="false" synchronized="false"
  14412. static="false" final="false" visibility="public"
  14413. deprecated="not deprecated">
  14414. <param name="fromKey" type="org.apache.hadoop.io.WritableComparable"/>
  14415. <param name="toKey" type="org.apache.hadoop.io.WritableComparable"/>
  14416. <doc>
  14417. <![CDATA[{@inheritDoc}]]>
  14418. </doc>
  14419. </method>
  14420. <method name="tailMap" return="java.util.SortedMap"
  14421. abstract="false" native="false" synchronized="false"
  14422. static="false" final="false" visibility="public"
  14423. deprecated="not deprecated">
  14424. <param name="fromKey" type="org.apache.hadoop.io.WritableComparable"/>
  14425. <doc>
  14426. <![CDATA[{@inheritDoc}]]>
  14427. </doc>
  14428. </method>
  14429. <method name="clear"
  14430. abstract="false" native="false" synchronized="false"
  14431. static="false" final="false" visibility="public"
  14432. deprecated="not deprecated">
  14433. <doc>
  14434. <![CDATA[{@inheritDoc}]]>
  14435. </doc>
  14436. </method>
  14437. <method name="containsKey" return="boolean"
  14438. abstract="false" native="false" synchronized="false"
  14439. static="false" final="false" visibility="public"
  14440. deprecated="not deprecated">
  14441. <param name="key" type="java.lang.Object"/>
  14442. <doc>
  14443. <![CDATA[{@inheritDoc}]]>
  14444. </doc>
  14445. </method>
  14446. <method name="containsValue" return="boolean"
  14447. abstract="false" native="false" synchronized="false"
  14448. static="false" final="false" visibility="public"
  14449. deprecated="not deprecated">
  14450. <param name="value" type="java.lang.Object"/>
  14451. <doc>
  14452. <![CDATA[{@inheritDoc}]]>
  14453. </doc>
  14454. </method>
  14455. <method name="entrySet" return="java.util.Set"
  14456. abstract="false" native="false" synchronized="false"
  14457. static="false" final="false" visibility="public"
  14458. deprecated="not deprecated">
  14459. <doc>
  14460. <![CDATA[{@inheritDoc}]]>
  14461. </doc>
  14462. </method>
  14463. <method name="get" return="org.apache.hadoop.io.Writable"
  14464. abstract="false" native="false" synchronized="false"
  14465. static="false" final="false" visibility="public"
  14466. deprecated="not deprecated">
  14467. <param name="key" type="java.lang.Object"/>
  14468. <doc>
  14469. <![CDATA[{@inheritDoc}]]>
  14470. </doc>
  14471. </method>
  14472. <method name="isEmpty" return="boolean"
  14473. abstract="false" native="false" synchronized="false"
  14474. static="false" final="false" visibility="public"
  14475. deprecated="not deprecated">
  14476. <doc>
  14477. <![CDATA[{@inheritDoc}]]>
  14478. </doc>
  14479. </method>
  14480. <method name="keySet" return="java.util.Set"
  14481. abstract="false" native="false" synchronized="false"
  14482. static="false" final="false" visibility="public"
  14483. deprecated="not deprecated">
  14484. <doc>
  14485. <![CDATA[{@inheritDoc}]]>
  14486. </doc>
  14487. </method>
  14488. <method name="put" return="org.apache.hadoop.io.Writable"
  14489. abstract="false" native="false" synchronized="false"
  14490. static="false" final="false" visibility="public"
  14491. deprecated="not deprecated">
  14492. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  14493. <param name="value" type="org.apache.hadoop.io.Writable"/>
  14494. <doc>
  14495. <![CDATA[{@inheritDoc}]]>
  14496. </doc>
  14497. </method>
  14498. <method name="putAll"
  14499. abstract="false" native="false" synchronized="false"
  14500. static="false" final="false" visibility="public"
  14501. deprecated="not deprecated">
  14502. <param name="t" type="java.util.Map"/>
  14503. <doc>
  14504. <![CDATA[{@inheritDoc}]]>
  14505. </doc>
  14506. </method>
  14507. <method name="remove" return="org.apache.hadoop.io.Writable"
  14508. abstract="false" native="false" synchronized="false"
  14509. static="false" final="false" visibility="public"
  14510. deprecated="not deprecated">
  14511. <param name="key" type="java.lang.Object"/>
  14512. <doc>
  14513. <![CDATA[{@inheritDoc}]]>
  14514. </doc>
  14515. </method>
  14516. <method name="size" return="int"
  14517. abstract="false" native="false" synchronized="false"
  14518. static="false" final="false" visibility="public"
  14519. deprecated="not deprecated">
  14520. <doc>
  14521. <![CDATA[{@inheritDoc}]]>
  14522. </doc>
  14523. </method>
  14524. <method name="values" return="java.util.Collection"
  14525. abstract="false" native="false" synchronized="false"
  14526. static="false" final="false" visibility="public"
  14527. deprecated="not deprecated">
  14528. <doc>
  14529. <![CDATA[{@inheritDoc}]]>
  14530. </doc>
  14531. </method>
  14532. <method name="readFields"
  14533. abstract="false" native="false" synchronized="false"
  14534. static="false" final="false" visibility="public"
  14535. deprecated="not deprecated">
  14536. <param name="in" type="java.io.DataInput"/>
  14537. <exception name="IOException" type="java.io.IOException"/>
  14538. <doc>
  14539. <![CDATA[{@inheritDoc}]]>
  14540. </doc>
  14541. </method>
  14542. <method name="write"
  14543. abstract="false" native="false" synchronized="false"
  14544. static="false" final="false" visibility="public"
  14545. deprecated="not deprecated">
  14546. <param name="out" type="java.io.DataOutput"/>
  14547. <exception name="IOException" type="java.io.IOException"/>
  14548. <doc>
  14549. <![CDATA[{@inheritDoc}]]>
  14550. </doc>
  14551. </method>
  14552. <doc>
  14553. <![CDATA[A Writable SortedMap.]]>
  14554. </doc>
  14555. </class>
  14556. <!-- end class org.apache.hadoop.io.SortedMapWritable -->
  14557. <!-- start interface org.apache.hadoop.io.Stringifier -->
  14558. <interface name="Stringifier" abstract="true"
  14559. static="false" final="false" visibility="public"
  14560. deprecated="not deprecated">
  14561. <implements name="java.io.Closeable"/>
  14562. <method name="toString" return="java.lang.String"
  14563. abstract="false" native="false" synchronized="false"
  14564. static="false" final="false" visibility="public"
  14565. deprecated="not deprecated">
  14566. <param name="obj" type="java.lang.Object"/>
  14567. <exception name="IOException" type="java.io.IOException"/>
  14568. <doc>
  14569. <![CDATA[Converts the object to a string representation
  14570. @param obj the object to convert
  14571. @return the string representation of the object
  14572. @throws IOException if the object cannot be converted]]>
  14573. </doc>
  14574. </method>
  14575. <method name="fromString" return="java.lang.Object"
  14576. abstract="false" native="false" synchronized="false"
  14577. static="false" final="false" visibility="public"
  14578. deprecated="not deprecated">
  14579. <param name="str" type="java.lang.String"/>
  14580. <exception name="IOException" type="java.io.IOException"/>
  14581. <doc>
  14582. <![CDATA[Restores the object from its string representation.
  14583. @param str the string representation of the object
  14584. @return restored object
  14585. @throws IOException if the object cannot be restored]]>
  14586. </doc>
  14587. </method>
  14588. <method name="close"
  14589. abstract="false" native="false" synchronized="false"
  14590. static="false" final="false" visibility="public"
  14591. deprecated="not deprecated">
  14592. <exception name="IOException" type="java.io.IOException"/>
  14593. <doc>
  14594. <![CDATA[Closes this object.
  14595. @throws IOException if an I/O error occurs]]>
  14596. </doc>
  14597. </method>
  14598. <doc>
  14599. <![CDATA[Stringifier interface offers two methods to convert an object
  14600. to a string representation and restore the object given its
  14601. string representation.
  14602. @param <T> the class of the objects to stringify]]>
  14603. </doc>
  14604. </interface>
  14605. <!-- end interface org.apache.hadoop.io.Stringifier -->
  14606. <!-- start class org.apache.hadoop.io.Text -->
  14607. <class name="Text" extends="org.apache.hadoop.io.BinaryComparable"
  14608. abstract="false"
  14609. static="false" final="false" visibility="public"
  14610. deprecated="not deprecated">
  14611. <implements name="org.apache.hadoop.io.WritableComparable"/>
  14612. <constructor name="Text"
  14613. static="false" final="false" visibility="public"
  14614. deprecated="not deprecated">
  14615. </constructor>
  14616. <constructor name="Text" type="java.lang.String"
  14617. static="false" final="false" visibility="public"
  14618. deprecated="not deprecated">
  14619. <doc>
  14620. <![CDATA[Construct from a string.]]>
  14621. </doc>
  14622. </constructor>
  14623. <constructor name="Text" type="org.apache.hadoop.io.Text"
  14624. static="false" final="false" visibility="public"
  14625. deprecated="not deprecated">
  14626. <doc>
  14627. <![CDATA[Construct from another text.]]>
  14628. </doc>
  14629. </constructor>
  14630. <constructor name="Text" type="byte[]"
  14631. static="false" final="false" visibility="public"
  14632. deprecated="not deprecated">
  14633. <doc>
  14634. <![CDATA[Construct from a byte array.]]>
  14635. </doc>
  14636. </constructor>
  14637. <method name="getBytes" return="byte[]"
  14638. abstract="false" native="false" synchronized="false"
  14639. static="false" final="false" visibility="public"
  14640. deprecated="not deprecated">
  14641. <doc>
  14642. <![CDATA[Returns the raw bytes; however, only data up to {@link #getLength()} is
  14643. valid.]]>
  14644. </doc>
  14645. </method>
  14646. <method name="getLength" return="int"
  14647. abstract="false" native="false" synchronized="false"
  14648. static="false" final="false" visibility="public"
  14649. deprecated="not deprecated">
  14650. <doc>
  14651. <![CDATA[Returns the number of bytes in the byte array]]>
  14652. </doc>
  14653. </method>
  14654. <method name="charAt" return="int"
  14655. abstract="false" native="false" synchronized="false"
  14656. static="false" final="false" visibility="public"
  14657. deprecated="not deprecated">
  14658. <param name="position" type="int"/>
  14659. <doc>
  14660. <![CDATA[Returns the Unicode Scalar Value (32-bit integer value)
  14661. for the character at <code>position</code>. Note that this
  14662. method avoids using the converter or doing String instatiation
  14663. @return the Unicode scalar value at position or -1
  14664. if the position is invalid or points to a
  14665. trailing byte]]>
  14666. </doc>
  14667. </method>
  14668. <method name="find" return="int"
  14669. abstract="false" native="false" synchronized="false"
  14670. static="false" final="false" visibility="public"
  14671. deprecated="not deprecated">
  14672. <param name="what" type="java.lang.String"/>
  14673. </method>
  14674. <method name="find" return="int"
  14675. abstract="false" native="false" synchronized="false"
  14676. static="false" final="false" visibility="public"
  14677. deprecated="not deprecated">
  14678. <param name="what" type="java.lang.String"/>
  14679. <param name="start" type="int"/>
  14680. <doc>
  14681. <![CDATA[Finds any occurence of <code>what</code> in the backing
  14682. buffer, starting as position <code>start</code>. The starting
  14683. position is measured in bytes and the return value is in
  14684. terms of byte position in the buffer. The backing buffer is
  14685. not converted to a string for this operation.
  14686. @return byte position of the first occurence of the search
  14687. string in the UTF-8 buffer or -1 if not found]]>
  14688. </doc>
  14689. </method>
  14690. <method name="set"
  14691. abstract="false" native="false" synchronized="false"
  14692. static="false" final="false" visibility="public"
  14693. deprecated="not deprecated">
  14694. <param name="string" type="java.lang.String"/>
  14695. <doc>
  14696. <![CDATA[Set to contain the contents of a string.]]>
  14697. </doc>
  14698. </method>
  14699. <method name="set"
  14700. abstract="false" native="false" synchronized="false"
  14701. static="false" final="false" visibility="public"
  14702. deprecated="not deprecated">
  14703. <param name="utf8" type="byte[]"/>
  14704. <doc>
  14705. <![CDATA[Set to a utf8 byte array]]>
  14706. </doc>
  14707. </method>
  14708. <method name="set"
  14709. abstract="false" native="false" synchronized="false"
  14710. static="false" final="false" visibility="public"
  14711. deprecated="not deprecated">
  14712. <param name="other" type="org.apache.hadoop.io.Text"/>
  14713. <doc>
  14714. <![CDATA[copy a text.]]>
  14715. </doc>
  14716. </method>
  14717. <method name="set"
  14718. abstract="false" native="false" synchronized="false"
  14719. static="false" final="false" visibility="public"
  14720. deprecated="not deprecated">
  14721. <param name="utf8" type="byte[]"/>
  14722. <param name="start" type="int"/>
  14723. <param name="len" type="int"/>
  14724. <doc>
  14725. <![CDATA[Set the Text to range of bytes
  14726. @param utf8 the data to copy from
  14727. @param start the first position of the new string
  14728. @param len the number of bytes of the new string]]>
  14729. </doc>
  14730. </method>
  14731. <method name="append"
  14732. abstract="false" native="false" synchronized="false"
  14733. static="false" final="false" visibility="public"
  14734. deprecated="not deprecated">
  14735. <param name="utf8" type="byte[]"/>
  14736. <param name="start" type="int"/>
  14737. <param name="len" type="int"/>
  14738. <doc>
  14739. <![CDATA[Append a range of bytes to the end of the given text
  14740. @param utf8 the data to copy from
  14741. @param start the first position to append from utf8
  14742. @param len the number of bytes to append]]>
  14743. </doc>
  14744. </method>
  14745. <method name="clear"
  14746. abstract="false" native="false" synchronized="false"
  14747. static="false" final="false" visibility="public"
  14748. deprecated="not deprecated">
  14749. <doc>
  14750. <![CDATA[Clear the string to empty.]]>
  14751. </doc>
  14752. </method>
  14753. <method name="toString" return="java.lang.String"
  14754. abstract="false" native="false" synchronized="false"
  14755. static="false" final="false" visibility="public"
  14756. deprecated="not deprecated">
  14757. <doc>
  14758. <![CDATA[Convert text back to string
  14759. @see java.lang.Object#toString()]]>
  14760. </doc>
  14761. </method>
  14762. <method name="readFields"
  14763. abstract="false" native="false" synchronized="false"
  14764. static="false" final="false" visibility="public"
  14765. deprecated="not deprecated">
  14766. <param name="in" type="java.io.DataInput"/>
  14767. <exception name="IOException" type="java.io.IOException"/>
  14768. <doc>
  14769. <![CDATA[deserialize]]>
  14770. </doc>
  14771. </method>
  14772. <method name="skip"
  14773. abstract="false" native="false" synchronized="false"
  14774. static="true" final="false" visibility="public"
  14775. deprecated="not deprecated">
  14776. <param name="in" type="java.io.DataInput"/>
  14777. <exception name="IOException" type="java.io.IOException"/>
  14778. <doc>
  14779. <![CDATA[Skips over one Text in the input.]]>
  14780. </doc>
  14781. </method>
  14782. <method name="write"
  14783. abstract="false" native="false" synchronized="false"
  14784. static="false" final="false" visibility="public"
  14785. deprecated="not deprecated">
  14786. <param name="out" type="java.io.DataOutput"/>
  14787. <exception name="IOException" type="java.io.IOException"/>
  14788. <doc>
  14789. <![CDATA[serialize
  14790. write this object to out
  14791. length uses zero-compressed encoding
  14792. @see Writable#write(DataOutput)]]>
  14793. </doc>
  14794. </method>
  14795. <method name="equals" return="boolean"
  14796. abstract="false" native="false" synchronized="false"
  14797. static="false" final="false" visibility="public"
  14798. deprecated="not deprecated">
  14799. <param name="o" type="java.lang.Object"/>
  14800. <doc>
  14801. <![CDATA[Returns true iff <code>o</code> is a Text with the same contents.]]>
  14802. </doc>
  14803. </method>
  14804. <method name="hashCode" return="int"
  14805. abstract="false" native="false" synchronized="false"
  14806. static="false" final="false" visibility="public"
  14807. deprecated="not deprecated">
  14808. </method>
  14809. <method name="decode" return="java.lang.String"
  14810. abstract="false" native="false" synchronized="false"
  14811. static="true" final="false" visibility="public"
  14812. deprecated="not deprecated">
  14813. <param name="utf8" type="byte[]"/>
  14814. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  14815. <doc>
  14816. <![CDATA[Converts the provided byte array to a String using the
  14817. UTF-8 encoding. If the input is malformed,
  14818. replace by a default value.]]>
  14819. </doc>
  14820. </method>
  14821. <method name="decode" return="java.lang.String"
  14822. abstract="false" native="false" synchronized="false"
  14823. static="true" final="false" visibility="public"
  14824. deprecated="not deprecated">
  14825. <param name="utf8" type="byte[]"/>
  14826. <param name="start" type="int"/>
  14827. <param name="length" type="int"/>
  14828. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  14829. </method>
  14830. <method name="decode" return="java.lang.String"
  14831. abstract="false" native="false" synchronized="false"
  14832. static="true" final="false" visibility="public"
  14833. deprecated="not deprecated">
  14834. <param name="utf8" type="byte[]"/>
  14835. <param name="start" type="int"/>
  14836. <param name="length" type="int"/>
  14837. <param name="replace" type="boolean"/>
  14838. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  14839. <doc>
  14840. <![CDATA[Converts the provided byte array to a String using the
  14841. UTF-8 encoding. If <code>replace</code> is true, then
  14842. malformed input is replaced with the
  14843. substitution character, which is U+FFFD. Otherwise the
  14844. method throws a MalformedInputException.]]>
  14845. </doc>
  14846. </method>
  14847. <method name="encode" return="java.nio.ByteBuffer"
  14848. abstract="false" native="false" synchronized="false"
  14849. static="true" final="false" visibility="public"
  14850. deprecated="not deprecated">
  14851. <param name="string" type="java.lang.String"/>
  14852. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  14853. <doc>
  14854. <![CDATA[Converts the provided String to bytes using the
  14855. UTF-8 encoding. If the input is malformed,
  14856. invalid chars are replaced by a default value.
  14857. @return ByteBuffer: bytes stores at ByteBuffer.array()
  14858. and length is ByteBuffer.limit()]]>
  14859. </doc>
  14860. </method>
  14861. <method name="encode" return="java.nio.ByteBuffer"
  14862. abstract="false" native="false" synchronized="false"
  14863. static="true" final="false" visibility="public"
  14864. deprecated="not deprecated">
  14865. <param name="string" type="java.lang.String"/>
  14866. <param name="replace" type="boolean"/>
  14867. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  14868. <doc>
  14869. <![CDATA[Converts the provided String to bytes using the
  14870. UTF-8 encoding. If <code>replace</code> is true, then
  14871. malformed input is replaced with the
  14872. substitution character, which is U+FFFD. Otherwise the
  14873. method throws a MalformedInputException.
  14874. @return ByteBuffer: bytes stores at ByteBuffer.array()
  14875. and length is ByteBuffer.limit()]]>
  14876. </doc>
  14877. </method>
  14878. <method name="readString" return="java.lang.String"
  14879. abstract="false" native="false" synchronized="false"
  14880. static="true" final="false" visibility="public"
  14881. deprecated="not deprecated">
  14882. <param name="in" type="java.io.DataInput"/>
  14883. <exception name="IOException" type="java.io.IOException"/>
  14884. <doc>
  14885. <![CDATA[Read a UTF8 encoded string from in]]>
  14886. </doc>
  14887. </method>
  14888. <method name="writeString" return="int"
  14889. abstract="false" native="false" synchronized="false"
  14890. static="true" final="false" visibility="public"
  14891. deprecated="not deprecated">
  14892. <param name="out" type="java.io.DataOutput"/>
  14893. <param name="s" type="java.lang.String"/>
  14894. <exception name="IOException" type="java.io.IOException"/>
  14895. <doc>
  14896. <![CDATA[Write a UTF8 encoded string to out]]>
  14897. </doc>
  14898. </method>
  14899. <method name="validateUTF8"
  14900. abstract="false" native="false" synchronized="false"
  14901. static="true" final="false" visibility="public"
  14902. deprecated="not deprecated">
  14903. <param name="utf8" type="byte[]"/>
  14904. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  14905. <doc>
  14906. <![CDATA[Check if a byte array contains valid utf-8
  14907. @param utf8 byte array
  14908. @throws MalformedInputException if the byte array contains invalid utf-8]]>
  14909. </doc>
  14910. </method>
  14911. <method name="validateUTF8"
  14912. abstract="false" native="false" synchronized="false"
  14913. static="true" final="false" visibility="public"
  14914. deprecated="not deprecated">
  14915. <param name="utf8" type="byte[]"/>
  14916. <param name="start" type="int"/>
  14917. <param name="len" type="int"/>
  14918. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  14919. <doc>
  14920. <![CDATA[Check to see if a byte array is valid utf-8
  14921. @param utf8 the array of bytes
  14922. @param start the offset of the first byte in the array
  14923. @param len the length of the byte sequence
  14924. @throws MalformedInputException if the byte array contains invalid bytes]]>
  14925. </doc>
  14926. </method>
  14927. <method name="bytesToCodePoint" return="int"
  14928. abstract="false" native="false" synchronized="false"
  14929. static="true" final="false" visibility="public"
  14930. deprecated="not deprecated">
  14931. <param name="bytes" type="java.nio.ByteBuffer"/>
  14932. <doc>
  14933. <![CDATA[Returns the next code point at the current position in
  14934. the buffer. The buffer's position will be incremented.
  14935. Any mark set on this buffer will be changed by this method!]]>
  14936. </doc>
  14937. </method>
  14938. <method name="utf8Length" return="int"
  14939. abstract="false" native="false" synchronized="false"
  14940. static="true" final="false" visibility="public"
  14941. deprecated="not deprecated">
  14942. <param name="string" type="java.lang.String"/>
  14943. <doc>
  14944. <![CDATA[For the given string, returns the number of UTF-8 bytes
  14945. required to encode the string.
  14946. @param string text to encode
  14947. @return number of UTF-8 bytes required to encode]]>
  14948. </doc>
  14949. </method>
  14950. <doc>
  14951. <![CDATA[This class stores text using standard UTF8 encoding. It provides methods
  14952. to serialize, deserialize, and compare texts at byte level. The type of
  14953. length is integer and is serialized using zero-compressed format. <p>In
  14954. addition, it provides methods for string traversal without converting the
  14955. byte array to a string. <p>Also includes utilities for
  14956. serializing/deserialing a string, coding/decoding a string, checking if a
  14957. byte array contains valid UTF8 code, calculating the length of an encoded
  14958. string.]]>
  14959. </doc>
  14960. </class>
  14961. <!-- end class org.apache.hadoop.io.Text -->
  14962. <!-- start class org.apache.hadoop.io.Text.Comparator -->
  14963. <class name="Text.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  14964. abstract="false"
  14965. static="true" final="false" visibility="public"
  14966. deprecated="not deprecated">
  14967. <constructor name="Text.Comparator"
  14968. static="false" final="false" visibility="public"
  14969. deprecated="not deprecated">
  14970. </constructor>
  14971. <method name="compare" return="int"
  14972. abstract="false" native="false" synchronized="false"
  14973. static="false" final="false" visibility="public"
  14974. deprecated="not deprecated">
  14975. <param name="b1" type="byte[]"/>
  14976. <param name="s1" type="int"/>
  14977. <param name="l1" type="int"/>
  14978. <param name="b2" type="byte[]"/>
  14979. <param name="s2" type="int"/>
  14980. <param name="l2" type="int"/>
  14981. </method>
  14982. <doc>
  14983. <![CDATA[A WritableComparator optimized for Text keys.]]>
  14984. </doc>
  14985. </class>
  14986. <!-- end class org.apache.hadoop.io.Text.Comparator -->
  14987. <!-- start class org.apache.hadoop.io.TwoDArrayWritable -->
  14988. <class name="TwoDArrayWritable" extends="java.lang.Object"
  14989. abstract="false"
  14990. static="false" final="false" visibility="public"
  14991. deprecated="not deprecated">
  14992. <implements name="org.apache.hadoop.io.Writable"/>
  14993. <constructor name="TwoDArrayWritable" type="java.lang.Class"
  14994. static="false" final="false" visibility="public"
  14995. deprecated="not deprecated">
  14996. </constructor>
  14997. <constructor name="TwoDArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[][]"
  14998. static="false" final="false" visibility="public"
  14999. deprecated="not deprecated">
  15000. </constructor>
  15001. <method name="toArray" return="java.lang.Object"
  15002. abstract="false" native="false" synchronized="false"
  15003. static="false" final="false" visibility="public"
  15004. deprecated="not deprecated">
  15005. </method>
  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="values" type="org.apache.hadoop.io.Writable[][]"/>
  15011. </method>
  15012. <method name="get" return="org.apache.hadoop.io.Writable[][]"
  15013. abstract="false" native="false" synchronized="false"
  15014. static="false" final="false" visibility="public"
  15015. deprecated="not deprecated">
  15016. </method>
  15017. <method name="readFields"
  15018. abstract="false" native="false" synchronized="false"
  15019. static="false" final="false" visibility="public"
  15020. deprecated="not deprecated">
  15021. <param name="in" type="java.io.DataInput"/>
  15022. <exception name="IOException" type="java.io.IOException"/>
  15023. </method>
  15024. <method name="write"
  15025. abstract="false" native="false" synchronized="false"
  15026. static="false" final="false" visibility="public"
  15027. deprecated="not deprecated">
  15028. <param name="out" type="java.io.DataOutput"/>
  15029. <exception name="IOException" type="java.io.IOException"/>
  15030. </method>
  15031. <doc>
  15032. <![CDATA[A Writable for 2D arrays containing a matrix of instances of a class.]]>
  15033. </doc>
  15034. </class>
  15035. <!-- end class org.apache.hadoop.io.TwoDArrayWritable -->
  15036. <!-- start class org.apache.hadoop.io.UTF8 -->
  15037. <class name="UTF8" extends="java.lang.Object"
  15038. abstract="false"
  15039. static="false" final="false" visibility="public"
  15040. deprecated="replaced by Text">
  15041. <implements name="org.apache.hadoop.io.WritableComparable"/>
  15042. <constructor name="UTF8"
  15043. static="false" final="false" visibility="public"
  15044. deprecated="not deprecated">
  15045. </constructor>
  15046. <constructor name="UTF8" type="java.lang.String"
  15047. static="false" final="false" visibility="public"
  15048. deprecated="not deprecated">
  15049. <doc>
  15050. <![CDATA[Construct from a given string.]]>
  15051. </doc>
  15052. </constructor>
  15053. <constructor name="UTF8" type="org.apache.hadoop.io.UTF8"
  15054. static="false" final="false" visibility="public"
  15055. deprecated="not deprecated">
  15056. <doc>
  15057. <![CDATA[Construct from a given string.]]>
  15058. </doc>
  15059. </constructor>
  15060. <method name="getBytes" return="byte[]"
  15061. abstract="false" native="false" synchronized="false"
  15062. static="false" final="false" visibility="public"
  15063. deprecated="not deprecated">
  15064. <doc>
  15065. <![CDATA[The raw bytes.]]>
  15066. </doc>
  15067. </method>
  15068. <method name="getLength" return="int"
  15069. abstract="false" native="false" synchronized="false"
  15070. static="false" final="false" visibility="public"
  15071. deprecated="not deprecated">
  15072. <doc>
  15073. <![CDATA[The number of bytes in the encoded string.]]>
  15074. </doc>
  15075. </method>
  15076. <method name="set"
  15077. abstract="false" native="false" synchronized="false"
  15078. static="false" final="false" visibility="public"
  15079. deprecated="not deprecated">
  15080. <param name="string" type="java.lang.String"/>
  15081. <doc>
  15082. <![CDATA[Set to contain the contents of a string.]]>
  15083. </doc>
  15084. </method>
  15085. <method name="set"
  15086. abstract="false" native="false" synchronized="false"
  15087. static="false" final="false" visibility="public"
  15088. deprecated="not deprecated">
  15089. <param name="other" type="org.apache.hadoop.io.UTF8"/>
  15090. <doc>
  15091. <![CDATA[Set to contain the contents of a string.]]>
  15092. </doc>
  15093. </method>
  15094. <method name="readFields"
  15095. abstract="false" native="false" synchronized="false"
  15096. static="false" final="false" visibility="public"
  15097. deprecated="not deprecated">
  15098. <param name="in" type="java.io.DataInput"/>
  15099. <exception name="IOException" type="java.io.IOException"/>
  15100. </method>
  15101. <method name="skip"
  15102. abstract="false" native="false" synchronized="false"
  15103. static="true" final="false" visibility="public"
  15104. deprecated="not deprecated">
  15105. <param name="in" type="java.io.DataInput"/>
  15106. <exception name="IOException" type="java.io.IOException"/>
  15107. <doc>
  15108. <![CDATA[Skips over one UTF8 in the input.]]>
  15109. </doc>
  15110. </method>
  15111. <method name="write"
  15112. abstract="false" native="false" synchronized="false"
  15113. static="false" final="false" visibility="public"
  15114. deprecated="not deprecated">
  15115. <param name="out" type="java.io.DataOutput"/>
  15116. <exception name="IOException" type="java.io.IOException"/>
  15117. </method>
  15118. <method name="compareTo" return="int"
  15119. abstract="false" native="false" synchronized="false"
  15120. static="false" final="false" visibility="public"
  15121. deprecated="not deprecated">
  15122. <param name="o" type="java.lang.Object"/>
  15123. <doc>
  15124. <![CDATA[Compare two UTF8s.]]>
  15125. </doc>
  15126. </method>
  15127. <method name="toString" return="java.lang.String"
  15128. abstract="false" native="false" synchronized="false"
  15129. static="false" final="false" visibility="public"
  15130. deprecated="not deprecated">
  15131. <doc>
  15132. <![CDATA[Convert to a String.]]>
  15133. </doc>
  15134. </method>
  15135. <method name="equals" return="boolean"
  15136. abstract="false" native="false" synchronized="false"
  15137. static="false" final="false" visibility="public"
  15138. deprecated="not deprecated">
  15139. <param name="o" type="java.lang.Object"/>
  15140. <doc>
  15141. <![CDATA[Returns true iff <code>o</code> is a UTF8 with the same contents.]]>
  15142. </doc>
  15143. </method>
  15144. <method name="hashCode" return="int"
  15145. abstract="false" native="false" synchronized="false"
  15146. static="false" final="false" visibility="public"
  15147. deprecated="not deprecated">
  15148. </method>
  15149. <method name="getBytes" return="byte[]"
  15150. abstract="false" native="false" synchronized="false"
  15151. static="true" final="false" visibility="public"
  15152. deprecated="not deprecated">
  15153. <param name="string" type="java.lang.String"/>
  15154. <doc>
  15155. <![CDATA[Convert a string to a UTF-8 encoded byte array.
  15156. @see String#getBytes(String)]]>
  15157. </doc>
  15158. </method>
  15159. <method name="readString" return="java.lang.String"
  15160. abstract="false" native="false" synchronized="false"
  15161. static="true" final="false" visibility="public"
  15162. deprecated="not deprecated">
  15163. <param name="in" type="java.io.DataInput"/>
  15164. <exception name="IOException" type="java.io.IOException"/>
  15165. <doc>
  15166. <![CDATA[Read a UTF-8 encoded string.
  15167. @see DataInput#readUTF()]]>
  15168. </doc>
  15169. </method>
  15170. <method name="writeString" return="int"
  15171. abstract="false" native="false" synchronized="false"
  15172. static="true" final="false" visibility="public"
  15173. deprecated="not deprecated">
  15174. <param name="out" type="java.io.DataOutput"/>
  15175. <param name="s" type="java.lang.String"/>
  15176. <exception name="IOException" type="java.io.IOException"/>
  15177. <doc>
  15178. <![CDATA[Write a UTF-8 encoded string.
  15179. @see DataOutput#writeUTF(String)]]>
  15180. </doc>
  15181. </method>
  15182. <doc>
  15183. <![CDATA[A WritableComparable for strings that uses the UTF8 encoding.
  15184. <p>Also includes utilities for efficiently reading and writing UTF-8.
  15185. @deprecated replaced by Text]]>
  15186. </doc>
  15187. </class>
  15188. <!-- end class org.apache.hadoop.io.UTF8 -->
  15189. <!-- start class org.apache.hadoop.io.UTF8.Comparator -->
  15190. <class name="UTF8.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  15191. abstract="false"
  15192. static="true" final="false" visibility="public"
  15193. deprecated="not deprecated">
  15194. <constructor name="UTF8.Comparator"
  15195. static="false" final="false" visibility="public"
  15196. deprecated="not deprecated">
  15197. </constructor>
  15198. <method name="compare" return="int"
  15199. abstract="false" native="false" synchronized="false"
  15200. static="false" final="false" visibility="public"
  15201. deprecated="not deprecated">
  15202. <param name="b1" type="byte[]"/>
  15203. <param name="s1" type="int"/>
  15204. <param name="l1" type="int"/>
  15205. <param name="b2" type="byte[]"/>
  15206. <param name="s2" type="int"/>
  15207. <param name="l2" type="int"/>
  15208. </method>
  15209. <doc>
  15210. <![CDATA[A WritableComparator optimized for UTF8 keys.]]>
  15211. </doc>
  15212. </class>
  15213. <!-- end class org.apache.hadoop.io.UTF8.Comparator -->
  15214. <!-- start class org.apache.hadoop.io.VersionedWritable -->
  15215. <class name="VersionedWritable" extends="java.lang.Object"
  15216. abstract="true"
  15217. static="false" final="false" visibility="public"
  15218. deprecated="not deprecated">
  15219. <implements name="org.apache.hadoop.io.Writable"/>
  15220. <constructor name="VersionedWritable"
  15221. static="false" final="false" visibility="public"
  15222. deprecated="not deprecated">
  15223. </constructor>
  15224. <method name="getVersion" return="byte"
  15225. abstract="true" native="false" synchronized="false"
  15226. static="false" final="false" visibility="public"
  15227. deprecated="not deprecated">
  15228. <doc>
  15229. <![CDATA[Return the version number of the current implementation.]]>
  15230. </doc>
  15231. </method>
  15232. <method name="write"
  15233. abstract="false" native="false" synchronized="false"
  15234. static="false" final="false" visibility="public"
  15235. deprecated="not deprecated">
  15236. <param name="out" type="java.io.DataOutput"/>
  15237. <exception name="IOException" type="java.io.IOException"/>
  15238. </method>
  15239. <method name="readFields"
  15240. abstract="false" native="false" synchronized="false"
  15241. static="false" final="false" visibility="public"
  15242. deprecated="not deprecated">
  15243. <param name="in" type="java.io.DataInput"/>
  15244. <exception name="IOException" type="java.io.IOException"/>
  15245. </method>
  15246. <doc>
  15247. <![CDATA[A base class for Writables that provides version checking.
  15248. <p>This is useful when a class may evolve, so that instances written by the
  15249. old version of the class may still be processed by the new version. To
  15250. handle this situation, {@link #readFields(DataInput)}
  15251. implementations should catch {@link VersionMismatchException}.]]>
  15252. </doc>
  15253. </class>
  15254. <!-- end class org.apache.hadoop.io.VersionedWritable -->
  15255. <!-- start class org.apache.hadoop.io.VersionMismatchException -->
  15256. <class name="VersionMismatchException" extends="java.io.IOException"
  15257. abstract="false"
  15258. static="false" final="false" visibility="public"
  15259. deprecated="not deprecated">
  15260. <constructor name="VersionMismatchException" type="byte, byte"
  15261. static="false" final="false" visibility="public"
  15262. deprecated="not deprecated">
  15263. </constructor>
  15264. <method name="toString" return="java.lang.String"
  15265. abstract="false" native="false" synchronized="false"
  15266. static="false" final="false" visibility="public"
  15267. deprecated="not deprecated">
  15268. <doc>
  15269. <![CDATA[Returns a string representation of this object.]]>
  15270. </doc>
  15271. </method>
  15272. <doc>
  15273. <![CDATA[Thrown by {@link VersionedWritable#readFields(DataInput)} when the
  15274. version of an object being read does not match the current implementation
  15275. version as returned by {@link VersionedWritable#getVersion()}.]]>
  15276. </doc>
  15277. </class>
  15278. <!-- end class org.apache.hadoop.io.VersionMismatchException -->
  15279. <!-- start class org.apache.hadoop.io.VIntWritable -->
  15280. <class name="VIntWritable" extends="java.lang.Object"
  15281. abstract="false"
  15282. static="false" final="false" visibility="public"
  15283. deprecated="not deprecated">
  15284. <implements name="org.apache.hadoop.io.WritableComparable"/>
  15285. <constructor name="VIntWritable"
  15286. static="false" final="false" visibility="public"
  15287. deprecated="not deprecated">
  15288. </constructor>
  15289. <constructor name="VIntWritable" type="int"
  15290. static="false" final="false" visibility="public"
  15291. deprecated="not deprecated">
  15292. </constructor>
  15293. <method name="set"
  15294. abstract="false" native="false" synchronized="false"
  15295. static="false" final="false" visibility="public"
  15296. deprecated="not deprecated">
  15297. <param name="value" type="int"/>
  15298. <doc>
  15299. <![CDATA[Set the value of this VIntWritable.]]>
  15300. </doc>
  15301. </method>
  15302. <method name="get" return="int"
  15303. abstract="false" native="false" synchronized="false"
  15304. static="false" final="false" visibility="public"
  15305. deprecated="not deprecated">
  15306. <doc>
  15307. <![CDATA[Return the value of this VIntWritable.]]>
  15308. </doc>
  15309. </method>
  15310. <method name="readFields"
  15311. abstract="false" native="false" synchronized="false"
  15312. static="false" final="false" visibility="public"
  15313. deprecated="not deprecated">
  15314. <param name="in" type="java.io.DataInput"/>
  15315. <exception name="IOException" type="java.io.IOException"/>
  15316. </method>
  15317. <method name="write"
  15318. abstract="false" native="false" synchronized="false"
  15319. static="false" final="false" visibility="public"
  15320. deprecated="not deprecated">
  15321. <param name="out" type="java.io.DataOutput"/>
  15322. <exception name="IOException" type="java.io.IOException"/>
  15323. </method>
  15324. <method name="equals" return="boolean"
  15325. abstract="false" native="false" synchronized="false"
  15326. static="false" final="false" visibility="public"
  15327. deprecated="not deprecated">
  15328. <param name="o" type="java.lang.Object"/>
  15329. <doc>
  15330. <![CDATA[Returns true iff <code>o</code> is a VIntWritable with the same value.]]>
  15331. </doc>
  15332. </method>
  15333. <method name="hashCode" return="int"
  15334. abstract="false" native="false" synchronized="false"
  15335. static="false" final="false" visibility="public"
  15336. deprecated="not deprecated">
  15337. </method>
  15338. <method name="compareTo" return="int"
  15339. abstract="false" native="false" synchronized="false"
  15340. static="false" final="false" visibility="public"
  15341. deprecated="not deprecated">
  15342. <param name="o" type="java.lang.Object"/>
  15343. <doc>
  15344. <![CDATA[Compares two VIntWritables.]]>
  15345. </doc>
  15346. </method>
  15347. <method name="toString" return="java.lang.String"
  15348. abstract="false" native="false" synchronized="false"
  15349. static="false" final="false" visibility="public"
  15350. deprecated="not deprecated">
  15351. </method>
  15352. <doc>
  15353. <![CDATA[A WritableComparable for integer values stored in variable-length format.
  15354. Such values take between one and five bytes. Smaller values take fewer bytes.
  15355. @see org.apache.hadoop.io.WritableUtils#readVInt(DataInput)]]>
  15356. </doc>
  15357. </class>
  15358. <!-- end class org.apache.hadoop.io.VIntWritable -->
  15359. <!-- start class org.apache.hadoop.io.VLongWritable -->
  15360. <class name="VLongWritable" extends="java.lang.Object"
  15361. abstract="false"
  15362. static="false" final="false" visibility="public"
  15363. deprecated="not deprecated">
  15364. <implements name="org.apache.hadoop.io.WritableComparable"/>
  15365. <constructor name="VLongWritable"
  15366. static="false" final="false" visibility="public"
  15367. deprecated="not deprecated">
  15368. </constructor>
  15369. <constructor name="VLongWritable" type="long"
  15370. static="false" final="false" visibility="public"
  15371. deprecated="not deprecated">
  15372. </constructor>
  15373. <method name="set"
  15374. abstract="false" native="false" synchronized="false"
  15375. static="false" final="false" visibility="public"
  15376. deprecated="not deprecated">
  15377. <param name="value" type="long"/>
  15378. <doc>
  15379. <![CDATA[Set the value of this LongWritable.]]>
  15380. </doc>
  15381. </method>
  15382. <method name="get" return="long"
  15383. abstract="false" native="false" synchronized="false"
  15384. static="false" final="false" visibility="public"
  15385. deprecated="not deprecated">
  15386. <doc>
  15387. <![CDATA[Return the value of this LongWritable.]]>
  15388. </doc>
  15389. </method>
  15390. <method name="readFields"
  15391. abstract="false" native="false" synchronized="false"
  15392. static="false" final="false" visibility="public"
  15393. deprecated="not deprecated">
  15394. <param name="in" type="java.io.DataInput"/>
  15395. <exception name="IOException" type="java.io.IOException"/>
  15396. </method>
  15397. <method name="write"
  15398. abstract="false" native="false" synchronized="false"
  15399. static="false" final="false" visibility="public"
  15400. deprecated="not deprecated">
  15401. <param name="out" type="java.io.DataOutput"/>
  15402. <exception name="IOException" type="java.io.IOException"/>
  15403. </method>
  15404. <method name="equals" return="boolean"
  15405. abstract="false" native="false" synchronized="false"
  15406. static="false" final="false" visibility="public"
  15407. deprecated="not deprecated">
  15408. <param name="o" type="java.lang.Object"/>
  15409. <doc>
  15410. <![CDATA[Returns true iff <code>o</code> is a VLongWritable with the same value.]]>
  15411. </doc>
  15412. </method>
  15413. <method name="hashCode" return="int"
  15414. abstract="false" native="false" synchronized="false"
  15415. static="false" final="false" visibility="public"
  15416. deprecated="not deprecated">
  15417. </method>
  15418. <method name="compareTo" return="int"
  15419. abstract="false" native="false" synchronized="false"
  15420. static="false" final="false" visibility="public"
  15421. deprecated="not deprecated">
  15422. <param name="o" type="java.lang.Object"/>
  15423. <doc>
  15424. <![CDATA[Compares two VLongWritables.]]>
  15425. </doc>
  15426. </method>
  15427. <method name="toString" return="java.lang.String"
  15428. abstract="false" native="false" synchronized="false"
  15429. static="false" final="false" visibility="public"
  15430. deprecated="not deprecated">
  15431. </method>
  15432. <doc>
  15433. <![CDATA[A WritableComparable for longs in a variable-length format. Such values take
  15434. between one and five bytes. Smaller values take fewer bytes.
  15435. @see org.apache.hadoop.io.WritableUtils#readVLong(DataInput)]]>
  15436. </doc>
  15437. </class>
  15438. <!-- end class org.apache.hadoop.io.VLongWritable -->
  15439. <!-- start interface org.apache.hadoop.io.Writable -->
  15440. <interface name="Writable" abstract="true"
  15441. static="false" final="false" visibility="public"
  15442. deprecated="not deprecated">
  15443. <method name="write"
  15444. abstract="false" native="false" synchronized="false"
  15445. static="false" final="false" visibility="public"
  15446. deprecated="not deprecated">
  15447. <param name="out" type="java.io.DataOutput"/>
  15448. <exception name="IOException" type="java.io.IOException"/>
  15449. <doc>
  15450. <![CDATA[Serialize the fields of this object to <code>out</code>.
  15451. @param out <code>DataOuput</code> to serialize this object into.
  15452. @throws IOException]]>
  15453. </doc>
  15454. </method>
  15455. <method name="readFields"
  15456. abstract="false" native="false" synchronized="false"
  15457. static="false" final="false" visibility="public"
  15458. deprecated="not deprecated">
  15459. <param name="in" type="java.io.DataInput"/>
  15460. <exception name="IOException" type="java.io.IOException"/>
  15461. <doc>
  15462. <![CDATA[Deserialize the fields of this object from <code>in</code>.
  15463. <p>For efficiency, implementations should attempt to re-use storage in the
  15464. existing object where possible.</p>
  15465. @param in <code>DataInput</code> to deseriablize this object from.
  15466. @throws IOException]]>
  15467. </doc>
  15468. </method>
  15469. <doc>
  15470. <![CDATA[A serializable object which implements a simple, efficient, serialization
  15471. protocol, based on {@link DataInput} and {@link DataOutput}.
  15472. <p>Any <code>key</code> or <code>value</code> type in the Hadoop Map-Reduce
  15473. framework implements this interface.</p>
  15474. <p>Implementations typically implement a static <code>read(DataInput)</code>
  15475. method which constructs a new instance, calls {@link #readFields(DataInput)}
  15476. and returns the instance.</p>
  15477. <p>Example:</p>
  15478. <p><blockquote><pre>
  15479. public class MyWritable implements Writable {
  15480. // Some data
  15481. private int counter;
  15482. private long timestamp;
  15483. public void write(DataOutput out) throws IOException {
  15484. out.writeInt(counter);
  15485. out.writeLong(timestamp);
  15486. }
  15487. public void readFields(DataInput in) throws IOException {
  15488. counter = in.readInt();
  15489. timestamp = in.readLong();
  15490. }
  15491. public static MyWritable read(DataInput in) throws IOException {
  15492. MyWritable w = new MyWritable();
  15493. w.readFields(in);
  15494. return w;
  15495. }
  15496. }
  15497. </pre></blockquote></p>]]>
  15498. </doc>
  15499. </interface>
  15500. <!-- end interface org.apache.hadoop.io.Writable -->
  15501. <!-- start interface org.apache.hadoop.io.WritableComparable -->
  15502. <interface name="WritableComparable" abstract="true"
  15503. static="false" final="false" visibility="public"
  15504. deprecated="not deprecated">
  15505. <implements name="org.apache.hadoop.io.Writable"/>
  15506. <implements name="java.lang.Comparable"/>
  15507. <doc>
  15508. <![CDATA[A {@link Writable} which is also {@link Comparable}.
  15509. <p><code>WritableComparable</code>s can be compared to each other, typically
  15510. via <code>Comparator</code>s. Any type which is to be used as a
  15511. <code>key</code> in the Hadoop Map-Reduce framework should implement this
  15512. interface.</p>
  15513. <p>Example:</p>
  15514. <p><blockquote><pre>
  15515. public class MyWritableComparable implements WritableComparable {
  15516. // Some data
  15517. private int counter;
  15518. private long timestamp;
  15519. public void write(DataOutput out) throws IOException {
  15520. out.writeInt(counter);
  15521. out.writeLong(timestamp);
  15522. }
  15523. public void readFields(DataInput in) throws IOException {
  15524. counter = in.readInt();
  15525. timestamp = in.readLong();
  15526. }
  15527. public int compareTo(MyWritableComparable w) {
  15528. int thisValue = this.value;
  15529. int thatValue = ((IntWritable)o).value;
  15530. return (thisValue &lt; thatValue ? -1 : (thisValue==thatValue ? 0 : 1));
  15531. }
  15532. }
  15533. </pre></blockquote></p>]]>
  15534. </doc>
  15535. </interface>
  15536. <!-- end interface org.apache.hadoop.io.WritableComparable -->
  15537. <!-- start class org.apache.hadoop.io.WritableComparator -->
  15538. <class name="WritableComparator" extends="java.lang.Object"
  15539. abstract="false"
  15540. static="false" final="false" visibility="public"
  15541. deprecated="not deprecated">
  15542. <implements name="org.apache.hadoop.io.RawComparator"/>
  15543. <constructor name="WritableComparator" type="java.lang.Class"
  15544. static="false" final="false" visibility="protected"
  15545. deprecated="not deprecated">
  15546. <doc>
  15547. <![CDATA[Construct for a {@link WritableComparable} implementation.]]>
  15548. </doc>
  15549. </constructor>
  15550. <constructor name="WritableComparator" type="java.lang.Class, boolean"
  15551. static="false" final="false" visibility="protected"
  15552. deprecated="not deprecated">
  15553. </constructor>
  15554. <method name="get" return="org.apache.hadoop.io.WritableComparator"
  15555. abstract="false" native="false" synchronized="true"
  15556. static="true" final="false" visibility="public"
  15557. deprecated="not deprecated">
  15558. <param name="c" type="java.lang.Class"/>
  15559. <doc>
  15560. <![CDATA[Get a comparator for a {@link WritableComparable} implementation.]]>
  15561. </doc>
  15562. </method>
  15563. <method name="define"
  15564. abstract="false" native="false" synchronized="true"
  15565. static="true" final="false" visibility="public"
  15566. deprecated="not deprecated">
  15567. <param name="c" type="java.lang.Class"/>
  15568. <param name="comparator" type="org.apache.hadoop.io.WritableComparator"/>
  15569. <doc>
  15570. <![CDATA[Register an optimized comparator for a {@link WritableComparable}
  15571. implementation.]]>
  15572. </doc>
  15573. </method>
  15574. <method name="getKeyClass" return="java.lang.Class"
  15575. abstract="false" native="false" synchronized="false"
  15576. static="false" final="false" visibility="public"
  15577. deprecated="not deprecated">
  15578. <doc>
  15579. <![CDATA[Returns the WritableComparable implementation class.]]>
  15580. </doc>
  15581. </method>
  15582. <method name="newKey" return="org.apache.hadoop.io.WritableComparable"
  15583. abstract="false" native="false" synchronized="false"
  15584. static="false" final="false" visibility="public"
  15585. deprecated="not deprecated">
  15586. <doc>
  15587. <![CDATA[Construct a new {@link WritableComparable} instance.]]>
  15588. </doc>
  15589. </method>
  15590. <method name="compare" return="int"
  15591. abstract="false" native="false" synchronized="false"
  15592. static="false" final="false" visibility="public"
  15593. deprecated="not deprecated">
  15594. <param name="b1" type="byte[]"/>
  15595. <param name="s1" type="int"/>
  15596. <param name="l1" type="int"/>
  15597. <param name="b2" type="byte[]"/>
  15598. <param name="s2" type="int"/>
  15599. <param name="l2" type="int"/>
  15600. <doc>
  15601. <![CDATA[Optimization hook. Override this to make SequenceFile.Sorter's scream.
  15602. <p>The default implementation reads the data into two {@link
  15603. WritableComparable}s (using {@link
  15604. Writable#readFields(DataInput)}, then calls {@link
  15605. #compare(WritableComparable,WritableComparable)}.]]>
  15606. </doc>
  15607. </method>
  15608. <method name="compare" return="int"
  15609. abstract="false" native="false" synchronized="false"
  15610. static="false" final="false" visibility="public"
  15611. deprecated="not deprecated">
  15612. <param name="a" type="org.apache.hadoop.io.WritableComparable"/>
  15613. <param name="b" type="org.apache.hadoop.io.WritableComparable"/>
  15614. <doc>
  15615. <![CDATA[Compare two WritableComparables.
  15616. <p> The default implementation uses the natural ordering, calling {@link
  15617. Comparable#compareTo(Object)}.]]>
  15618. </doc>
  15619. </method>
  15620. <method name="compare" return="int"
  15621. abstract="false" native="false" synchronized="false"
  15622. static="false" final="false" visibility="public"
  15623. deprecated="not deprecated">
  15624. <param name="a" type="java.lang.Object"/>
  15625. <param name="b" type="java.lang.Object"/>
  15626. </method>
  15627. <method name="compareBytes" return="int"
  15628. abstract="false" native="false" synchronized="false"
  15629. static="true" final="false" visibility="public"
  15630. deprecated="not deprecated">
  15631. <param name="b1" type="byte[]"/>
  15632. <param name="s1" type="int"/>
  15633. <param name="l1" type="int"/>
  15634. <param name="b2" type="byte[]"/>
  15635. <param name="s2" type="int"/>
  15636. <param name="l2" type="int"/>
  15637. <doc>
  15638. <![CDATA[Lexicographic order of binary data.]]>
  15639. </doc>
  15640. </method>
  15641. <method name="hashBytes" return="int"
  15642. abstract="false" native="false" synchronized="false"
  15643. static="true" final="false" visibility="public"
  15644. deprecated="not deprecated">
  15645. <param name="bytes" type="byte[]"/>
  15646. <param name="offset" type="int"/>
  15647. <param name="length" type="int"/>
  15648. <doc>
  15649. <![CDATA[Compute hash for binary data.]]>
  15650. </doc>
  15651. </method>
  15652. <method name="hashBytes" return="int"
  15653. abstract="false" native="false" synchronized="false"
  15654. static="true" final="false" visibility="public"
  15655. deprecated="not deprecated">
  15656. <param name="bytes" type="byte[]"/>
  15657. <param name="length" type="int"/>
  15658. <doc>
  15659. <![CDATA[Compute hash for binary data.]]>
  15660. </doc>
  15661. </method>
  15662. <method name="readUnsignedShort" return="int"
  15663. abstract="false" native="false" synchronized="false"
  15664. static="true" final="false" visibility="public"
  15665. deprecated="not deprecated">
  15666. <param name="bytes" type="byte[]"/>
  15667. <param name="start" type="int"/>
  15668. <doc>
  15669. <![CDATA[Parse an unsigned short from a byte array.]]>
  15670. </doc>
  15671. </method>
  15672. <method name="readInt" return="int"
  15673. abstract="false" native="false" synchronized="false"
  15674. static="true" final="false" visibility="public"
  15675. deprecated="not deprecated">
  15676. <param name="bytes" type="byte[]"/>
  15677. <param name="start" type="int"/>
  15678. <doc>
  15679. <![CDATA[Parse an integer from a byte array.]]>
  15680. </doc>
  15681. </method>
  15682. <method name="readFloat" return="float"
  15683. abstract="false" native="false" synchronized="false"
  15684. static="true" final="false" visibility="public"
  15685. deprecated="not deprecated">
  15686. <param name="bytes" type="byte[]"/>
  15687. <param name="start" type="int"/>
  15688. <doc>
  15689. <![CDATA[Parse a float from a byte array.]]>
  15690. </doc>
  15691. </method>
  15692. <method name="readLong" return="long"
  15693. abstract="false" native="false" synchronized="false"
  15694. static="true" final="false" visibility="public"
  15695. deprecated="not deprecated">
  15696. <param name="bytes" type="byte[]"/>
  15697. <param name="start" type="int"/>
  15698. <doc>
  15699. <![CDATA[Parse a long from a byte array.]]>
  15700. </doc>
  15701. </method>
  15702. <method name="readDouble" return="double"
  15703. abstract="false" native="false" synchronized="false"
  15704. static="true" final="false" visibility="public"
  15705. deprecated="not deprecated">
  15706. <param name="bytes" type="byte[]"/>
  15707. <param name="start" type="int"/>
  15708. <doc>
  15709. <![CDATA[Parse a double from a byte array.]]>
  15710. </doc>
  15711. </method>
  15712. <method name="readVLong" return="long"
  15713. abstract="false" native="false" synchronized="false"
  15714. static="true" final="false" visibility="public"
  15715. deprecated="not deprecated">
  15716. <param name="bytes" type="byte[]"/>
  15717. <param name="start" type="int"/>
  15718. <exception name="IOException" type="java.io.IOException"/>
  15719. <doc>
  15720. <![CDATA[Reads a zero-compressed encoded long from a byte array and returns it.
  15721. @param bytes byte array with decode long
  15722. @param start starting index
  15723. @throws java.io.IOException
  15724. @return deserialized long]]>
  15725. </doc>
  15726. </method>
  15727. <method name="readVInt" return="int"
  15728. abstract="false" native="false" synchronized="false"
  15729. static="true" final="false" visibility="public"
  15730. deprecated="not deprecated">
  15731. <param name="bytes" type="byte[]"/>
  15732. <param name="start" type="int"/>
  15733. <exception name="IOException" type="java.io.IOException"/>
  15734. <doc>
  15735. <![CDATA[Reads a zero-compressed encoded integer from a byte array and returns it.
  15736. @param bytes byte array with the encoded integer
  15737. @param start start index
  15738. @throws java.io.IOException
  15739. @return deserialized integer]]>
  15740. </doc>
  15741. </method>
  15742. <doc>
  15743. <![CDATA[A Comparator for {@link WritableComparable}s.
  15744. <p>This base implemenation uses the natural ordering. To define alternate
  15745. orderings, override {@link #compare(WritableComparable,WritableComparable)}.
  15746. <p>One may optimize compare-intensive operations by overriding
  15747. {@link #compare(byte[],int,int,byte[],int,int)}. Static utility methods are
  15748. provided to assist in optimized implementations of this method.]]>
  15749. </doc>
  15750. </class>
  15751. <!-- end class org.apache.hadoop.io.WritableComparator -->
  15752. <!-- start class org.apache.hadoop.io.WritableFactories -->
  15753. <class name="WritableFactories" extends="java.lang.Object"
  15754. abstract="false"
  15755. static="false" final="false" visibility="public"
  15756. deprecated="not deprecated">
  15757. <method name="setFactory"
  15758. abstract="false" native="false" synchronized="true"
  15759. static="true" final="false" visibility="public"
  15760. deprecated="not deprecated">
  15761. <param name="c" type="java.lang.Class"/>
  15762. <param name="factory" type="org.apache.hadoop.io.WritableFactory"/>
  15763. <doc>
  15764. <![CDATA[Define a factory for a class.]]>
  15765. </doc>
  15766. </method>
  15767. <method name="getFactory" return="org.apache.hadoop.io.WritableFactory"
  15768. abstract="false" native="false" synchronized="true"
  15769. static="true" final="false" visibility="public"
  15770. deprecated="not deprecated">
  15771. <param name="c" type="java.lang.Class"/>
  15772. <doc>
  15773. <![CDATA[Define a factory for a class.]]>
  15774. </doc>
  15775. </method>
  15776. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  15777. abstract="false" native="false" synchronized="false"
  15778. static="true" final="false" visibility="public"
  15779. deprecated="not deprecated">
  15780. <param name="c" type="java.lang.Class"/>
  15781. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15782. <doc>
  15783. <![CDATA[Create a new instance of a class with a defined factory.]]>
  15784. </doc>
  15785. </method>
  15786. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  15787. abstract="false" native="false" synchronized="false"
  15788. static="true" final="false" visibility="public"
  15789. deprecated="not deprecated">
  15790. <param name="c" type="java.lang.Class"/>
  15791. <doc>
  15792. <![CDATA[Create a new instance of a class with a defined factory.]]>
  15793. </doc>
  15794. </method>
  15795. <doc>
  15796. <![CDATA[Factories for non-public writables. Defining a factory permits {@link
  15797. ObjectWritable} to be able to construct instances of non-public classes.]]>
  15798. </doc>
  15799. </class>
  15800. <!-- end class org.apache.hadoop.io.WritableFactories -->
  15801. <!-- start interface org.apache.hadoop.io.WritableFactory -->
  15802. <interface name="WritableFactory" abstract="true"
  15803. static="false" final="false" visibility="public"
  15804. deprecated="not deprecated">
  15805. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  15806. abstract="false" native="false" synchronized="false"
  15807. static="false" final="false" visibility="public"
  15808. deprecated="not deprecated">
  15809. <doc>
  15810. <![CDATA[Return a new instance.]]>
  15811. </doc>
  15812. </method>
  15813. <doc>
  15814. <![CDATA[A factory for a class of Writable.
  15815. @see WritableFactories]]>
  15816. </doc>
  15817. </interface>
  15818. <!-- end interface org.apache.hadoop.io.WritableFactory -->
  15819. <!-- start class org.apache.hadoop.io.WritableName -->
  15820. <class name="WritableName" extends="java.lang.Object"
  15821. abstract="false"
  15822. static="false" final="false" visibility="public"
  15823. deprecated="not deprecated">
  15824. <method name="setName"
  15825. abstract="false" native="false" synchronized="true"
  15826. static="true" final="false" visibility="public"
  15827. deprecated="not deprecated">
  15828. <param name="writableClass" type="java.lang.Class"/>
  15829. <param name="name" type="java.lang.String"/>
  15830. <doc>
  15831. <![CDATA[Set the name that a class should be known as to something other than the
  15832. class name.]]>
  15833. </doc>
  15834. </method>
  15835. <method name="addName"
  15836. abstract="false" native="false" synchronized="true"
  15837. static="true" final="false" visibility="public"
  15838. deprecated="not deprecated">
  15839. <param name="writableClass" type="java.lang.Class"/>
  15840. <param name="name" type="java.lang.String"/>
  15841. <doc>
  15842. <![CDATA[Add an alternate name for a class.]]>
  15843. </doc>
  15844. </method>
  15845. <method name="getName" return="java.lang.String"
  15846. abstract="false" native="false" synchronized="true"
  15847. static="true" final="false" visibility="public"
  15848. deprecated="not deprecated">
  15849. <param name="writableClass" type="java.lang.Class"/>
  15850. <doc>
  15851. <![CDATA[Return the name for a class. Default is {@link Class#getName()}.]]>
  15852. </doc>
  15853. </method>
  15854. <method name="getClass" return="java.lang.Class"
  15855. abstract="false" native="false" synchronized="true"
  15856. static="true" final="false" visibility="public"
  15857. deprecated="not deprecated">
  15858. <param name="name" type="java.lang.String"/>
  15859. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15860. <exception name="IOException" type="java.io.IOException"/>
  15861. <doc>
  15862. <![CDATA[Return the class for a name. Default is {@link Class#forName(String)}.]]>
  15863. </doc>
  15864. </method>
  15865. <doc>
  15866. <![CDATA[Utility to permit renaming of Writable implementation classes without
  15867. invalidiating files that contain their class name.]]>
  15868. </doc>
  15869. </class>
  15870. <!-- end class org.apache.hadoop.io.WritableName -->
  15871. <!-- start class org.apache.hadoop.io.WritableUtils -->
  15872. <class name="WritableUtils" extends="java.lang.Object"
  15873. abstract="false"
  15874. static="false" final="true" visibility="public"
  15875. deprecated="not deprecated">
  15876. <constructor name="WritableUtils"
  15877. static="false" final="false" visibility="public"
  15878. deprecated="not deprecated">
  15879. </constructor>
  15880. <method name="readCompressedByteArray" return="byte[]"
  15881. abstract="false" native="false" synchronized="false"
  15882. static="true" final="false" visibility="public"
  15883. deprecated="not deprecated">
  15884. <param name="in" type="java.io.DataInput"/>
  15885. <exception name="IOException" type="java.io.IOException"/>
  15886. </method>
  15887. <method name="skipCompressedByteArray"
  15888. abstract="false" native="false" synchronized="false"
  15889. static="true" final="false" visibility="public"
  15890. deprecated="not deprecated">
  15891. <param name="in" type="java.io.DataInput"/>
  15892. <exception name="IOException" type="java.io.IOException"/>
  15893. </method>
  15894. <method name="writeCompressedByteArray" return="int"
  15895. abstract="false" native="false" synchronized="false"
  15896. static="true" final="false" visibility="public"
  15897. deprecated="not deprecated">
  15898. <param name="out" type="java.io.DataOutput"/>
  15899. <param name="bytes" type="byte[]"/>
  15900. <exception name="IOException" type="java.io.IOException"/>
  15901. </method>
  15902. <method name="readCompressedString" return="java.lang.String"
  15903. abstract="false" native="false" synchronized="false"
  15904. static="true" final="false" visibility="public"
  15905. deprecated="not deprecated">
  15906. <param name="in" type="java.io.DataInput"/>
  15907. <exception name="IOException" type="java.io.IOException"/>
  15908. </method>
  15909. <method name="writeCompressedString" return="int"
  15910. abstract="false" native="false" synchronized="false"
  15911. static="true" final="false" visibility="public"
  15912. deprecated="not deprecated">
  15913. <param name="out" type="java.io.DataOutput"/>
  15914. <param name="s" type="java.lang.String"/>
  15915. <exception name="IOException" type="java.io.IOException"/>
  15916. </method>
  15917. <method name="writeString"
  15918. abstract="false" native="false" synchronized="false"
  15919. static="true" final="false" visibility="public"
  15920. deprecated="not deprecated">
  15921. <param name="out" type="java.io.DataOutput"/>
  15922. <param name="s" type="java.lang.String"/>
  15923. <exception name="IOException" type="java.io.IOException"/>
  15924. </method>
  15925. <method name="readString" return="java.lang.String"
  15926. abstract="false" native="false" synchronized="false"
  15927. static="true" final="false" visibility="public"
  15928. deprecated="not deprecated">
  15929. <param name="in" type="java.io.DataInput"/>
  15930. <exception name="IOException" type="java.io.IOException"/>
  15931. </method>
  15932. <method name="writeStringArray"
  15933. abstract="false" native="false" synchronized="false"
  15934. static="true" final="false" visibility="public"
  15935. deprecated="not deprecated">
  15936. <param name="out" type="java.io.DataOutput"/>
  15937. <param name="s" type="java.lang.String[]"/>
  15938. <exception name="IOException" type="java.io.IOException"/>
  15939. </method>
  15940. <method name="writeCompressedStringArray"
  15941. abstract="false" native="false" synchronized="false"
  15942. static="true" final="false" visibility="public"
  15943. deprecated="not deprecated">
  15944. <param name="out" type="java.io.DataOutput"/>
  15945. <param name="s" type="java.lang.String[]"/>
  15946. <exception name="IOException" type="java.io.IOException"/>
  15947. </method>
  15948. <method name="readStringArray" return="java.lang.String[]"
  15949. abstract="false" native="false" synchronized="false"
  15950. static="true" final="false" visibility="public"
  15951. deprecated="not deprecated">
  15952. <param name="in" type="java.io.DataInput"/>
  15953. <exception name="IOException" type="java.io.IOException"/>
  15954. </method>
  15955. <method name="readCompressedStringArray" return="java.lang.String[]"
  15956. abstract="false" native="false" synchronized="false"
  15957. static="true" final="false" visibility="public"
  15958. deprecated="not deprecated">
  15959. <param name="in" type="java.io.DataInput"/>
  15960. <exception name="IOException" type="java.io.IOException"/>
  15961. </method>
  15962. <method name="displayByteArray"
  15963. abstract="false" native="false" synchronized="false"
  15964. static="true" final="false" visibility="public"
  15965. deprecated="not deprecated">
  15966. <param name="record" type="byte[]"/>
  15967. </method>
  15968. <method name="clone" return="org.apache.hadoop.io.Writable"
  15969. abstract="false" native="false" synchronized="false"
  15970. static="true" final="false" visibility="public"
  15971. deprecated="not deprecated">
  15972. <param name="orig" type="org.apache.hadoop.io.Writable"/>
  15973. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15974. <doc>
  15975. <![CDATA[Make a copy of a writable object using serialization to a buffer.
  15976. @param orig The object to copy
  15977. @return The copied object]]>
  15978. </doc>
  15979. </method>
  15980. <method name="cloneInto"
  15981. abstract="false" native="false" synchronized="false"
  15982. static="true" final="false" visibility="public"
  15983. deprecated="use ReflectionUtils.cloneInto instead.">
  15984. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  15985. <param name="src" type="org.apache.hadoop.io.Writable"/>
  15986. <exception name="IOException" type="java.io.IOException"/>
  15987. <doc>
  15988. <![CDATA[Make a copy of the writable object using serialiation to a buffer
  15989. @param dst the object to copy from
  15990. @param src the object to copy into, which is destroyed
  15991. @throws IOException
  15992. @deprecated use ReflectionUtils.cloneInto instead.]]>
  15993. </doc>
  15994. </method>
  15995. <method name="writeVInt"
  15996. abstract="false" native="false" synchronized="false"
  15997. static="true" final="false" visibility="public"
  15998. deprecated="not deprecated">
  15999. <param name="stream" type="java.io.DataOutput"/>
  16000. <param name="i" type="int"/>
  16001. <exception name="IOException" type="java.io.IOException"/>
  16002. <doc>
  16003. <![CDATA[Serializes an integer to a binary stream with zero-compressed encoding.
  16004. For -120 <= i <= 127, only one byte is used with the actual value.
  16005. For other values of i, the first byte value indicates whether the
  16006. integer is positive or negative, and the number of bytes that follow.
  16007. If the first byte value v is between -121 and -124, the following integer
  16008. is positive, with number of bytes that follow are -(v+120).
  16009. If the first byte value v is between -125 and -128, the following integer
  16010. is negative, with number of bytes that follow are -(v+124). Bytes are
  16011. stored in the high-non-zero-byte-first order.
  16012. @param stream Binary output stream
  16013. @param i Integer to be serialized
  16014. @throws java.io.IOException]]>
  16015. </doc>
  16016. </method>
  16017. <method name="writeVLong"
  16018. abstract="false" native="false" synchronized="false"
  16019. static="true" final="false" visibility="public"
  16020. deprecated="not deprecated">
  16021. <param name="stream" type="java.io.DataOutput"/>
  16022. <param name="i" type="long"/>
  16023. <exception name="IOException" type="java.io.IOException"/>
  16024. <doc>
  16025. <![CDATA[Serializes a long to a binary stream with zero-compressed encoding.
  16026. For -112 <= i <= 127, only one byte is used with the actual value.
  16027. For other values of i, the first byte value indicates whether the
  16028. long is positive or negative, and the number of bytes that follow.
  16029. If the first byte value v is between -113 and -120, the following long
  16030. is positive, with number of bytes that follow are -(v+112).
  16031. If the first byte value v is between -121 and -128, the following long
  16032. is negative, with number of bytes that follow are -(v+120). Bytes are
  16033. stored in the high-non-zero-byte-first order.
  16034. @param stream Binary output stream
  16035. @param i Long to be serialized
  16036. @throws java.io.IOException]]>
  16037. </doc>
  16038. </method>
  16039. <method name="readVLong" return="long"
  16040. abstract="false" native="false" synchronized="false"
  16041. static="true" final="false" visibility="public"
  16042. deprecated="not deprecated">
  16043. <param name="stream" type="java.io.DataInput"/>
  16044. <exception name="IOException" type="java.io.IOException"/>
  16045. <doc>
  16046. <![CDATA[Reads a zero-compressed encoded long from input stream and returns it.
  16047. @param stream Binary input stream
  16048. @throws java.io.IOException
  16049. @return deserialized long from stream.]]>
  16050. </doc>
  16051. </method>
  16052. <method name="readVInt" return="int"
  16053. abstract="false" native="false" synchronized="false"
  16054. static="true" final="false" visibility="public"
  16055. deprecated="not deprecated">
  16056. <param name="stream" type="java.io.DataInput"/>
  16057. <exception name="IOException" type="java.io.IOException"/>
  16058. <doc>
  16059. <![CDATA[Reads a zero-compressed encoded integer from input stream and returns it.
  16060. @param stream Binary input stream
  16061. @throws java.io.IOException
  16062. @return deserialized integer from stream.]]>
  16063. </doc>
  16064. </method>
  16065. <method name="isNegativeVInt" return="boolean"
  16066. abstract="false" native="false" synchronized="false"
  16067. static="true" final="false" visibility="public"
  16068. deprecated="not deprecated">
  16069. <param name="value" type="byte"/>
  16070. <doc>
  16071. <![CDATA[Given the first byte of a vint/vlong, determine the sign
  16072. @param value the first byte
  16073. @return is the value negative]]>
  16074. </doc>
  16075. </method>
  16076. <method name="decodeVIntSize" return="int"
  16077. abstract="false" native="false" synchronized="false"
  16078. static="true" final="false" visibility="public"
  16079. deprecated="not deprecated">
  16080. <param name="value" type="byte"/>
  16081. <doc>
  16082. <![CDATA[Parse the first byte of a vint/vlong to determine the number of bytes
  16083. @param value the first byte of the vint/vlong
  16084. @return the total number of bytes (1 to 9)]]>
  16085. </doc>
  16086. </method>
  16087. <method name="getVIntSize" return="int"
  16088. abstract="false" native="false" synchronized="false"
  16089. static="true" final="false" visibility="public"
  16090. deprecated="not deprecated">
  16091. <param name="i" type="long"/>
  16092. <doc>
  16093. <![CDATA[Get the encoded length if an integer is stored in a variable-length format
  16094. @return the encoded length]]>
  16095. </doc>
  16096. </method>
  16097. <method name="readEnum" return="java.lang.Enum"
  16098. abstract="false" native="false" synchronized="false"
  16099. static="true" final="false" visibility="public"
  16100. deprecated="not deprecated">
  16101. <param name="in" type="java.io.DataInput"/>
  16102. <param name="enumType" type="java.lang.Class"/>
  16103. <exception name="IOException" type="java.io.IOException"/>
  16104. <doc>
  16105. <![CDATA[Read an Enum value from DataInput, Enums are read and written
  16106. using String values.
  16107. @param <T> Enum type
  16108. @param in DataInput to read from
  16109. @param enumType Class type of Enum
  16110. @return Enum represented by String read from DataInput
  16111. @throws IOException]]>
  16112. </doc>
  16113. </method>
  16114. <method name="writeEnum"
  16115. abstract="false" native="false" synchronized="false"
  16116. static="true" final="false" visibility="public"
  16117. deprecated="not deprecated">
  16118. <param name="out" type="java.io.DataOutput"/>
  16119. <param name="enumVal" type="java.lang.Enum"/>
  16120. <exception name="IOException" type="java.io.IOException"/>
  16121. <doc>
  16122. <![CDATA[writes String value of enum to DataOutput.
  16123. @param out Dataoutput stream
  16124. @param enumVal enum value
  16125. @throws IOException]]>
  16126. </doc>
  16127. </method>
  16128. <method name="skipFully"
  16129. abstract="false" native="false" synchronized="false"
  16130. static="true" final="false" visibility="public"
  16131. deprecated="not deprecated">
  16132. <param name="in" type="java.io.DataInput"/>
  16133. <param name="len" type="int"/>
  16134. <exception name="IOException" type="java.io.IOException"/>
  16135. <doc>
  16136. <![CDATA[Skip <i>len</i> number of bytes in input stream<i>in</i>
  16137. @param in input stream
  16138. @param len number of bytes to skip
  16139. @throws IOException when skipped less number of bytes]]>
  16140. </doc>
  16141. </method>
  16142. <method name="toByteArray" return="byte[]"
  16143. abstract="false" native="false" synchronized="false"
  16144. static="true" final="false" visibility="public"
  16145. deprecated="not deprecated">
  16146. <param name="writables" type="org.apache.hadoop.io.Writable[]"/>
  16147. <doc>
  16148. <![CDATA[Convert writables to a byte array]]>
  16149. </doc>
  16150. </method>
  16151. </class>
  16152. <!-- end class org.apache.hadoop.io.WritableUtils -->
  16153. </package>
  16154. <package name="org.apache.hadoop.io.compress">
  16155. <!-- start class org.apache.hadoop.io.compress.BlockCompressorStream -->
  16156. <class name="BlockCompressorStream" extends="org.apache.hadoop.io.compress.CompressorStream"
  16157. abstract="false"
  16158. static="false" final="false" visibility="public"
  16159. deprecated="not deprecated">
  16160. <constructor name="BlockCompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor, int, int"
  16161. static="false" final="false" visibility="public"
  16162. deprecated="not deprecated">
  16163. <doc>
  16164. <![CDATA[Create a {@link BlockCompressorStream}.
  16165. @param out stream
  16166. @param compressor compressor to be used
  16167. @param bufferSize size of buffer
  16168. @param compressionOverhead maximum 'overhead' of the compression
  16169. algorithm with given bufferSize]]>
  16170. </doc>
  16171. </constructor>
  16172. <constructor name="BlockCompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor"
  16173. static="false" final="false" visibility="public"
  16174. deprecated="not deprecated">
  16175. <doc>
  16176. <![CDATA[Create a {@link BlockCompressorStream} with given output-stream and
  16177. compressor.
  16178. Use default of 512 as bufferSize and compressionOverhead of
  16179. (1% of bufferSize + 12 bytes) = 18 bytes (zlib algorithm).
  16180. @param out stream
  16181. @param compressor compressor to be used]]>
  16182. </doc>
  16183. </constructor>
  16184. <method name="write"
  16185. abstract="false" native="false" synchronized="false"
  16186. static="false" final="false" visibility="public"
  16187. deprecated="not deprecated">
  16188. <param name="b" type="byte[]"/>
  16189. <param name="off" type="int"/>
  16190. <param name="len" type="int"/>
  16191. <exception name="IOException" type="java.io.IOException"/>
  16192. <doc>
  16193. <![CDATA[Write the data provided to the compression codec, compressing no more
  16194. than the buffer size less the compression overhead as specified during
  16195. construction for each block.
  16196. Each block contains the uncompressed length for the block, followed by
  16197. one or more length-prefixed blocks of compressed data.]]>
  16198. </doc>
  16199. </method>
  16200. <method name="finish"
  16201. abstract="false" native="false" synchronized="false"
  16202. static="false" final="false" visibility="public"
  16203. deprecated="not deprecated">
  16204. <exception name="IOException" type="java.io.IOException"/>
  16205. </method>
  16206. <method name="compress"
  16207. abstract="false" native="false" synchronized="false"
  16208. static="false" final="false" visibility="protected"
  16209. deprecated="not deprecated">
  16210. <exception name="IOException" type="java.io.IOException"/>
  16211. </method>
  16212. <doc>
  16213. <![CDATA[A {@link org.apache.hadoop.io.compress.CompressorStream} which works
  16214. with 'block-based' based compression algorithms, as opposed to
  16215. 'stream-based' compression algorithms.
  16216. It should be noted that this wrapper does not guarantee that blocks will
  16217. be sized for the compressor. If the
  16218. {@link org.apache.hadoop.io.compress.Compressor} requires buffering to
  16219. effect meaningful compression, it is responsible for it.]]>
  16220. </doc>
  16221. </class>
  16222. <!-- end class org.apache.hadoop.io.compress.BlockCompressorStream -->
  16223. <!-- start class org.apache.hadoop.io.compress.BlockDecompressorStream -->
  16224. <class name="BlockDecompressorStream" extends="org.apache.hadoop.io.compress.DecompressorStream"
  16225. abstract="false"
  16226. static="false" final="false" visibility="public"
  16227. deprecated="not deprecated">
  16228. <constructor name="BlockDecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor, int"
  16229. static="false" final="false" visibility="public"
  16230. deprecated="not deprecated">
  16231. <exception name="IOException" type="java.io.IOException"/>
  16232. <doc>
  16233. <![CDATA[Create a {@link BlockDecompressorStream}.
  16234. @param in input stream
  16235. @param decompressor decompressor to use
  16236. @param bufferSize size of buffer
  16237. @throws IOException]]>
  16238. </doc>
  16239. </constructor>
  16240. <constructor name="BlockDecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor"
  16241. static="false" final="false" visibility="public"
  16242. deprecated="not deprecated">
  16243. <exception name="IOException" type="java.io.IOException"/>
  16244. <doc>
  16245. <![CDATA[Create a {@link BlockDecompressorStream}.
  16246. @param in input stream
  16247. @param decompressor decompressor to use
  16248. @throws IOException]]>
  16249. </doc>
  16250. </constructor>
  16251. <constructor name="BlockDecompressorStream" type="java.io.InputStream"
  16252. static="false" final="false" visibility="protected"
  16253. deprecated="not deprecated">
  16254. <exception name="IOException" type="java.io.IOException"/>
  16255. </constructor>
  16256. <method name="decompress" return="int"
  16257. abstract="false" native="false" synchronized="false"
  16258. static="false" final="false" visibility="protected"
  16259. deprecated="not deprecated">
  16260. <param name="b" type="byte[]"/>
  16261. <param name="off" type="int"/>
  16262. <param name="len" type="int"/>
  16263. <exception name="IOException" type="java.io.IOException"/>
  16264. </method>
  16265. <method name="getCompressedData" return="int"
  16266. abstract="false" native="false" synchronized="false"
  16267. static="false" final="false" visibility="protected"
  16268. deprecated="not deprecated">
  16269. <exception name="IOException" type="java.io.IOException"/>
  16270. </method>
  16271. <method name="resetState"
  16272. abstract="false" native="false" synchronized="false"
  16273. static="false" final="false" visibility="public"
  16274. deprecated="not deprecated">
  16275. <exception name="IOException" type="java.io.IOException"/>
  16276. </method>
  16277. <doc>
  16278. <![CDATA[A {@link org.apache.hadoop.io.compress.DecompressorStream} which works
  16279. with 'block-based' based compression algorithms, as opposed to
  16280. 'stream-based' compression algorithms.]]>
  16281. </doc>
  16282. </class>
  16283. <!-- end class org.apache.hadoop.io.compress.BlockDecompressorStream -->
  16284. <!-- start class org.apache.hadoop.io.compress.BZip2Codec -->
  16285. <class name="BZip2Codec" extends="java.lang.Object"
  16286. abstract="false"
  16287. static="false" final="false" visibility="public"
  16288. deprecated="not deprecated">
  16289. <implements name="org.apache.hadoop.io.compress.SplittableCompressionCodec"/>
  16290. <constructor name="BZip2Codec"
  16291. static="false" final="false" visibility="public"
  16292. deprecated="not deprecated">
  16293. <doc>
  16294. <![CDATA[Creates a new instance of BZip2Codec]]>
  16295. </doc>
  16296. </constructor>
  16297. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  16298. abstract="false" native="false" synchronized="false"
  16299. static="false" final="false" visibility="public"
  16300. deprecated="not deprecated">
  16301. <param name="out" type="java.io.OutputStream"/>
  16302. <exception name="IOException" type="java.io.IOException"/>
  16303. <doc>
  16304. <![CDATA[Creates CompressionOutputStream for BZip2
  16305. @param out
  16306. The output Stream
  16307. @return The BZip2 CompressionOutputStream
  16308. @throws java.io.IOException
  16309. Throws IO exception]]>
  16310. </doc>
  16311. </method>
  16312. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  16313. abstract="false" native="false" synchronized="false"
  16314. static="false" final="false" visibility="public"
  16315. deprecated="not deprecated">
  16316. <param name="out" type="java.io.OutputStream"/>
  16317. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  16318. <exception name="IOException" type="java.io.IOException"/>
  16319. <doc>
  16320. <![CDATA[Creates a compressor using given OutputStream.
  16321. @return CompressionOutputStream
  16322. @throws java.io.IOException]]>
  16323. </doc>
  16324. </method>
  16325. <method name="getCompressorType" return="java.lang.Class"
  16326. abstract="false" native="false" synchronized="false"
  16327. static="false" final="false" visibility="public"
  16328. deprecated="not deprecated">
  16329. <doc>
  16330. <![CDATA[This functionality is currently not supported.
  16331. @return BZip2DummyCompressor.class]]>
  16332. </doc>
  16333. </method>
  16334. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  16335. abstract="false" native="false" synchronized="false"
  16336. static="false" final="false" visibility="public"
  16337. deprecated="not deprecated">
  16338. <doc>
  16339. <![CDATA[This functionality is currently not supported.
  16340. @return Compressor]]>
  16341. </doc>
  16342. </method>
  16343. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  16344. abstract="false" native="false" synchronized="false"
  16345. static="false" final="false" visibility="public"
  16346. deprecated="not deprecated">
  16347. <param name="in" type="java.io.InputStream"/>
  16348. <exception name="IOException" type="java.io.IOException"/>
  16349. <doc>
  16350. <![CDATA[Creates CompressionInputStream to be used to read off uncompressed data.
  16351. @param in
  16352. The InputStream
  16353. @return Returns CompressionInputStream for BZip2
  16354. @throws java.io.IOException
  16355. Throws IOException]]>
  16356. </doc>
  16357. </method>
  16358. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  16359. abstract="false" native="false" synchronized="false"
  16360. static="false" final="false" visibility="public"
  16361. deprecated="not deprecated">
  16362. <param name="in" type="java.io.InputStream"/>
  16363. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  16364. <exception name="IOException" type="java.io.IOException"/>
  16365. <doc>
  16366. <![CDATA[This functionality is currently not supported.
  16367. @return CompressionInputStream]]>
  16368. </doc>
  16369. </method>
  16370. <method name="createInputStream" return="org.apache.hadoop.io.compress.SplitCompressionInputStream"
  16371. abstract="false" native="false" synchronized="false"
  16372. static="false" final="false" visibility="public"
  16373. deprecated="not deprecated">
  16374. <param name="seekableIn" type="java.io.InputStream"/>
  16375. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  16376. <param name="start" type="long"/>
  16377. <param name="end" type="long"/>
  16378. <param name="readMode" type="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"/>
  16379. <exception name="IOException" type="java.io.IOException"/>
  16380. <doc>
  16381. <![CDATA[Creates CompressionInputStream to be used to read off uncompressed data
  16382. in one of the two reading modes. i.e. Continuous or Blocked reading modes
  16383. @param seekableIn The InputStream
  16384. @param start The start offset into the compressed stream
  16385. @param end The end offset into the compressed stream
  16386. @param readMode Controls whether progress is reported continuously or
  16387. only at block boundaries.
  16388. @return CompressionInputStream for BZip2 aligned at block boundaries]]>
  16389. </doc>
  16390. </method>
  16391. <method name="getDecompressorType" return="java.lang.Class"
  16392. abstract="false" native="false" synchronized="false"
  16393. static="false" final="false" visibility="public"
  16394. deprecated="not deprecated">
  16395. <doc>
  16396. <![CDATA[This functionality is currently not supported.
  16397. @return BZip2DummyDecompressor.class]]>
  16398. </doc>
  16399. </method>
  16400. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  16401. abstract="false" native="false" synchronized="false"
  16402. static="false" final="false" visibility="public"
  16403. deprecated="not deprecated">
  16404. <doc>
  16405. <![CDATA[This functionality is currently not supported.
  16406. @return Decompressor]]>
  16407. </doc>
  16408. </method>
  16409. <method name="getDefaultExtension" return="java.lang.String"
  16410. abstract="false" native="false" synchronized="false"
  16411. static="false" final="false" visibility="public"
  16412. deprecated="not deprecated">
  16413. <doc>
  16414. <![CDATA[.bz2 is recognized as the default extension for compressed BZip2 files
  16415. @return A String telling the default bzip2 file extension]]>
  16416. </doc>
  16417. </method>
  16418. <doc>
  16419. <![CDATA[This class provides CompressionOutputStream and CompressionInputStream for
  16420. compression and decompression. Currently we dont have an implementation of
  16421. the Compressor and Decompressor interfaces, so those methods of
  16422. CompressionCodec which have a Compressor or Decompressor type argument, throw
  16423. UnsupportedOperationException.]]>
  16424. </doc>
  16425. </class>
  16426. <!-- end class org.apache.hadoop.io.compress.BZip2Codec -->
  16427. <!-- start class org.apache.hadoop.io.compress.CodecPool -->
  16428. <class name="CodecPool" extends="java.lang.Object"
  16429. abstract="false"
  16430. static="false" final="false" visibility="public"
  16431. deprecated="not deprecated">
  16432. <constructor name="CodecPool"
  16433. static="false" final="false" visibility="public"
  16434. deprecated="not deprecated">
  16435. </constructor>
  16436. <method name="getCompressor" return="org.apache.hadoop.io.compress.Compressor"
  16437. abstract="false" native="false" synchronized="false"
  16438. static="true" final="false" visibility="public"
  16439. deprecated="not deprecated">
  16440. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  16441. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16442. <doc>
  16443. <![CDATA[Get a {@link Compressor} for the given {@link CompressionCodec} from the
  16444. pool or a new one.
  16445. @param codec the <code>CompressionCodec</code> for which to get the
  16446. <code>Compressor</code>
  16447. @param conf the <code>Configuration</code> object which contains confs for creating or reinit the compressor
  16448. @return <code>Compressor</code> for the given
  16449. <code>CompressionCodec</code> from the pool or a new one]]>
  16450. </doc>
  16451. </method>
  16452. <method name="getCompressor" return="org.apache.hadoop.io.compress.Compressor"
  16453. abstract="false" native="false" synchronized="false"
  16454. static="true" final="false" visibility="public"
  16455. deprecated="not deprecated">
  16456. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  16457. </method>
  16458. <method name="getDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  16459. abstract="false" native="false" synchronized="false"
  16460. static="true" final="false" visibility="public"
  16461. deprecated="not deprecated">
  16462. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  16463. <doc>
  16464. <![CDATA[Get a {@link Decompressor} for the given {@link CompressionCodec} from the
  16465. pool or a new one.
  16466. @param codec the <code>CompressionCodec</code> for which to get the
  16467. <code>Decompressor</code>
  16468. @return <code>Decompressor</code> for the given
  16469. <code>CompressionCodec</code> the pool or a new one]]>
  16470. </doc>
  16471. </method>
  16472. <method name="returnCompressor"
  16473. abstract="false" native="false" synchronized="false"
  16474. static="true" final="false" visibility="public"
  16475. deprecated="not deprecated">
  16476. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  16477. <doc>
  16478. <![CDATA[Return the {@link Compressor} to the pool.
  16479. @param compressor the <code>Compressor</code> to be returned to the pool]]>
  16480. </doc>
  16481. </method>
  16482. <method name="returnDecompressor"
  16483. abstract="false" native="false" synchronized="false"
  16484. static="true" final="false" visibility="public"
  16485. deprecated="not deprecated">
  16486. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  16487. <doc>
  16488. <![CDATA[Return the {@link Decompressor} to the pool.
  16489. @param decompressor the <code>Decompressor</code> to be returned to the
  16490. pool]]>
  16491. </doc>
  16492. </method>
  16493. <doc>
  16494. <![CDATA[A global compressor/decompressor pool used to save and reuse
  16495. (possibly native) compression/decompression codecs.]]>
  16496. </doc>
  16497. </class>
  16498. <!-- end class org.apache.hadoop.io.compress.CodecPool -->
  16499. <!-- start interface org.apache.hadoop.io.compress.CompressionCodec -->
  16500. <interface name="CompressionCodec" abstract="true"
  16501. static="false" final="false" visibility="public"
  16502. deprecated="not deprecated">
  16503. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  16504. abstract="false" native="false" synchronized="false"
  16505. static="false" final="false" visibility="public"
  16506. deprecated="not deprecated">
  16507. <param name="out" type="java.io.OutputStream"/>
  16508. <exception name="IOException" type="java.io.IOException"/>
  16509. <doc>
  16510. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  16511. {@link OutputStream}.
  16512. @param out the location for the final output stream
  16513. @return a stream the user can write uncompressed data to have it compressed
  16514. @throws IOException]]>
  16515. </doc>
  16516. </method>
  16517. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  16518. abstract="false" native="false" synchronized="false"
  16519. static="false" final="false" visibility="public"
  16520. deprecated="not deprecated">
  16521. <param name="out" type="java.io.OutputStream"/>
  16522. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  16523. <exception name="IOException" type="java.io.IOException"/>
  16524. <doc>
  16525. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  16526. {@link OutputStream} with the given {@link Compressor}.
  16527. @param out the location for the final output stream
  16528. @param compressor compressor to use
  16529. @return a stream the user can write uncompressed data to have it compressed
  16530. @throws IOException]]>
  16531. </doc>
  16532. </method>
  16533. <method name="getCompressorType" return="java.lang.Class"
  16534. abstract="false" native="false" synchronized="false"
  16535. static="false" final="false" visibility="public"
  16536. deprecated="not deprecated">
  16537. <doc>
  16538. <![CDATA[Get the type of {@link Compressor} needed by this {@link CompressionCodec}.
  16539. @return the type of compressor needed by this codec.]]>
  16540. </doc>
  16541. </method>
  16542. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  16543. abstract="false" native="false" synchronized="false"
  16544. static="false" final="false" visibility="public"
  16545. deprecated="not deprecated">
  16546. <doc>
  16547. <![CDATA[Create a new {@link Compressor} for use by this {@link CompressionCodec}.
  16548. @return a new compressor for use by this codec]]>
  16549. </doc>
  16550. </method>
  16551. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  16552. abstract="false" native="false" synchronized="false"
  16553. static="false" final="false" visibility="public"
  16554. deprecated="not deprecated">
  16555. <param name="in" type="java.io.InputStream"/>
  16556. <exception name="IOException" type="java.io.IOException"/>
  16557. <doc>
  16558. <![CDATA[Create a stream decompressor that will read from the given input stream.
  16559. @param in the stream to read compressed bytes from
  16560. @return a stream to read uncompressed bytes from
  16561. @throws IOException]]>
  16562. </doc>
  16563. </method>
  16564. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  16565. abstract="false" native="false" synchronized="false"
  16566. static="false" final="false" visibility="public"
  16567. deprecated="not deprecated">
  16568. <param name="in" type="java.io.InputStream"/>
  16569. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  16570. <exception name="IOException" type="java.io.IOException"/>
  16571. <doc>
  16572. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  16573. {@link InputStream} with the given {@link Decompressor}.
  16574. @param in the stream to read compressed bytes from
  16575. @param decompressor decompressor to use
  16576. @return a stream to read uncompressed bytes from
  16577. @throws IOException]]>
  16578. </doc>
  16579. </method>
  16580. <method name="getDecompressorType" return="java.lang.Class"
  16581. abstract="false" native="false" synchronized="false"
  16582. static="false" final="false" visibility="public"
  16583. deprecated="not deprecated">
  16584. <doc>
  16585. <![CDATA[Get the type of {@link Decompressor} needed by this {@link CompressionCodec}.
  16586. @return the type of decompressor needed by this codec.]]>
  16587. </doc>
  16588. </method>
  16589. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  16590. abstract="false" native="false" synchronized="false"
  16591. static="false" final="false" visibility="public"
  16592. deprecated="not deprecated">
  16593. <doc>
  16594. <![CDATA[Create a new {@link Decompressor} for use by this {@link CompressionCodec}.
  16595. @return a new decompressor for use by this codec]]>
  16596. </doc>
  16597. </method>
  16598. <method name="getDefaultExtension" return="java.lang.String"
  16599. abstract="false" native="false" synchronized="false"
  16600. static="false" final="false" visibility="public"
  16601. deprecated="not deprecated">
  16602. <doc>
  16603. <![CDATA[Get the default filename extension for this kind of compression.
  16604. @return the extension including the '.']]>
  16605. </doc>
  16606. </method>
  16607. <doc>
  16608. <![CDATA[This class encapsulates a streaming compression/decompression pair.]]>
  16609. </doc>
  16610. </interface>
  16611. <!-- end interface org.apache.hadoop.io.compress.CompressionCodec -->
  16612. <!-- start class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  16613. <class name="CompressionCodecFactory" extends="java.lang.Object"
  16614. abstract="false"
  16615. static="false" final="false" visibility="public"
  16616. deprecated="not deprecated">
  16617. <constructor name="CompressionCodecFactory" type="org.apache.hadoop.conf.Configuration"
  16618. static="false" final="false" visibility="public"
  16619. deprecated="not deprecated">
  16620. <doc>
  16621. <![CDATA[Find the codecs specified in the config value io.compression.codecs
  16622. and register them. Defaults to gzip and zip.]]>
  16623. </doc>
  16624. </constructor>
  16625. <method name="toString" return="java.lang.String"
  16626. abstract="false" native="false" synchronized="false"
  16627. static="false" final="false" visibility="public"
  16628. deprecated="not deprecated">
  16629. <doc>
  16630. <![CDATA[Print the extension map out as a string.]]>
  16631. </doc>
  16632. </method>
  16633. <method name="getCodecClasses" return="java.util.List"
  16634. abstract="false" native="false" synchronized="false"
  16635. static="true" final="false" visibility="public"
  16636. deprecated="not deprecated">
  16637. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16638. <doc>
  16639. <![CDATA[Get the list of codecs listed in the configuration
  16640. @param conf the configuration to look in
  16641. @return a list of the Configuration classes or null if the attribute
  16642. was not set]]>
  16643. </doc>
  16644. </method>
  16645. <method name="setCodecClasses"
  16646. abstract="false" native="false" synchronized="false"
  16647. static="true" final="false" visibility="public"
  16648. deprecated="not deprecated">
  16649. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16650. <param name="classes" type="java.util.List"/>
  16651. <doc>
  16652. <![CDATA[Sets a list of codec classes in the configuration.
  16653. @param conf the configuration to modify
  16654. @param classes the list of classes to set]]>
  16655. </doc>
  16656. </method>
  16657. <method name="getCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  16658. abstract="false" native="false" synchronized="false"
  16659. static="false" final="false" visibility="public"
  16660. deprecated="not deprecated">
  16661. <param name="file" type="org.apache.hadoop.fs.Path"/>
  16662. <doc>
  16663. <![CDATA[Find the relevant compression codec for the given file based on its
  16664. filename suffix.
  16665. @param file the filename to check
  16666. @return the codec object]]>
  16667. </doc>
  16668. </method>
  16669. <method name="removeSuffix" return="java.lang.String"
  16670. abstract="false" native="false" synchronized="false"
  16671. static="true" final="false" visibility="public"
  16672. deprecated="not deprecated">
  16673. <param name="filename" type="java.lang.String"/>
  16674. <param name="suffix" type="java.lang.String"/>
  16675. <doc>
  16676. <![CDATA[Removes a suffix from a filename, if it has it.
  16677. @param filename the filename to strip
  16678. @param suffix the suffix to remove
  16679. @return the shortened filename]]>
  16680. </doc>
  16681. </method>
  16682. <method name="main"
  16683. abstract="false" native="false" synchronized="false"
  16684. static="true" final="false" visibility="public"
  16685. deprecated="not deprecated">
  16686. <param name="args" type="java.lang.String[]"/>
  16687. <exception name="Exception" type="java.lang.Exception"/>
  16688. <doc>
  16689. <![CDATA[A little test program.
  16690. @param args]]>
  16691. </doc>
  16692. </method>
  16693. <field name="LOG" type="org.apache.commons.logging.Log"
  16694. transient="false" volatile="false"
  16695. static="true" final="true" visibility="public"
  16696. deprecated="not deprecated">
  16697. </field>
  16698. <doc>
  16699. <![CDATA[A factory that will find the correct codec for a given filename.]]>
  16700. </doc>
  16701. </class>
  16702. <!-- end class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  16703. <!-- start class org.apache.hadoop.io.compress.CompressionInputStream -->
  16704. <class name="CompressionInputStream" extends="java.io.InputStream"
  16705. abstract="true"
  16706. static="false" final="false" visibility="public"
  16707. deprecated="not deprecated">
  16708. <implements name="org.apache.hadoop.fs.Seekable"/>
  16709. <constructor name="CompressionInputStream" type="java.io.InputStream"
  16710. static="false" final="false" visibility="protected"
  16711. deprecated="not deprecated">
  16712. <exception name="IOException" type="java.io.IOException"/>
  16713. <doc>
  16714. <![CDATA[Create a compression input stream that reads
  16715. the decompressed bytes from the given stream.
  16716. @param in The input stream to be compressed.
  16717. @throws IOException]]>
  16718. </doc>
  16719. </constructor>
  16720. <method name="close"
  16721. abstract="false" native="false" synchronized="false"
  16722. static="false" final="false" visibility="public"
  16723. deprecated="not deprecated">
  16724. <exception name="IOException" type="java.io.IOException"/>
  16725. </method>
  16726. <method name="read" return="int"
  16727. abstract="true" native="false" synchronized="false"
  16728. static="false" final="false" visibility="public"
  16729. deprecated="not deprecated">
  16730. <param name="b" type="byte[]"/>
  16731. <param name="off" type="int"/>
  16732. <param name="len" type="int"/>
  16733. <exception name="IOException" type="java.io.IOException"/>
  16734. <doc>
  16735. <![CDATA[Read bytes from the stream.
  16736. Made abstract to prevent leakage to underlying stream.]]>
  16737. </doc>
  16738. </method>
  16739. <method name="resetState"
  16740. abstract="true" native="false" synchronized="false"
  16741. static="false" final="false" visibility="public"
  16742. deprecated="not deprecated">
  16743. <exception name="IOException" type="java.io.IOException"/>
  16744. <doc>
  16745. <![CDATA[Reset the decompressor to its initial state and discard any buffered data,
  16746. as the underlying stream may have been repositioned.]]>
  16747. </doc>
  16748. </method>
  16749. <method name="getPos" return="long"
  16750. abstract="false" native="false" synchronized="false"
  16751. static="false" final="false" visibility="public"
  16752. deprecated="not deprecated">
  16753. <exception name="IOException" type="java.io.IOException"/>
  16754. <doc>
  16755. <![CDATA[This method returns the current position in the stream.
  16756. @return Current position in stream as a long]]>
  16757. </doc>
  16758. </method>
  16759. <method name="seek"
  16760. abstract="false" native="false" synchronized="false"
  16761. static="false" final="false" visibility="public"
  16762. deprecated="not deprecated">
  16763. <param name="pos" type="long"/>
  16764. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  16765. <doc>
  16766. <![CDATA[This method is current not supported.
  16767. @throws UnsupportedOperationException]]>
  16768. </doc>
  16769. </method>
  16770. <method name="seekToNewSource" return="boolean"
  16771. abstract="false" native="false" synchronized="false"
  16772. static="false" final="false" visibility="public"
  16773. deprecated="not deprecated">
  16774. <param name="targetPos" type="long"/>
  16775. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  16776. <doc>
  16777. <![CDATA[This method is current not supported.
  16778. @throws UnsupportedOperationException]]>
  16779. </doc>
  16780. </method>
  16781. <field name="in" type="java.io.InputStream"
  16782. transient="false" volatile="false"
  16783. static="false" final="true" visibility="protected"
  16784. deprecated="not deprecated">
  16785. <doc>
  16786. <![CDATA[The input stream to be compressed.]]>
  16787. </doc>
  16788. </field>
  16789. <field name="maxAvailableData" type="long"
  16790. transient="false" volatile="false"
  16791. static="false" final="false" visibility="protected"
  16792. deprecated="not deprecated">
  16793. </field>
  16794. <doc>
  16795. <![CDATA[A compression input stream.
  16796. <p>Implementations are assumed to be buffered. This permits clients to
  16797. reposition the underlying input stream then call {@link #resetState()},
  16798. without having to also synchronize client buffers.]]>
  16799. </doc>
  16800. </class>
  16801. <!-- end class org.apache.hadoop.io.compress.CompressionInputStream -->
  16802. <!-- start class org.apache.hadoop.io.compress.CompressionOutputStream -->
  16803. <class name="CompressionOutputStream" extends="java.io.OutputStream"
  16804. abstract="true"
  16805. static="false" final="false" visibility="public"
  16806. deprecated="not deprecated">
  16807. <constructor name="CompressionOutputStream" type="java.io.OutputStream"
  16808. static="false" final="false" visibility="protected"
  16809. deprecated="not deprecated">
  16810. <doc>
  16811. <![CDATA[Create a compression output stream that writes
  16812. the compressed bytes to the given stream.
  16813. @param out]]>
  16814. </doc>
  16815. </constructor>
  16816. <method name="close"
  16817. abstract="false" native="false" synchronized="false"
  16818. static="false" final="false" visibility="public"
  16819. deprecated="not deprecated">
  16820. <exception name="IOException" type="java.io.IOException"/>
  16821. </method>
  16822. <method name="flush"
  16823. abstract="false" native="false" synchronized="false"
  16824. static="false" final="false" visibility="public"
  16825. deprecated="not deprecated">
  16826. <exception name="IOException" type="java.io.IOException"/>
  16827. </method>
  16828. <method name="write"
  16829. abstract="true" native="false" synchronized="false"
  16830. static="false" final="false" visibility="public"
  16831. deprecated="not deprecated">
  16832. <param name="b" type="byte[]"/>
  16833. <param name="off" type="int"/>
  16834. <param name="len" type="int"/>
  16835. <exception name="IOException" type="java.io.IOException"/>
  16836. <doc>
  16837. <![CDATA[Write compressed bytes to the stream.
  16838. Made abstract to prevent leakage to underlying stream.]]>
  16839. </doc>
  16840. </method>
  16841. <method name="finish"
  16842. abstract="true" native="false" synchronized="false"
  16843. static="false" final="false" visibility="public"
  16844. deprecated="not deprecated">
  16845. <exception name="IOException" type="java.io.IOException"/>
  16846. <doc>
  16847. <![CDATA[Finishes writing compressed data to the output stream
  16848. without closing the underlying stream.]]>
  16849. </doc>
  16850. </method>
  16851. <method name="resetState"
  16852. abstract="true" native="false" synchronized="false"
  16853. static="false" final="false" visibility="public"
  16854. deprecated="not deprecated">
  16855. <exception name="IOException" type="java.io.IOException"/>
  16856. <doc>
  16857. <![CDATA[Reset the compression to the initial state.
  16858. Does not reset the underlying stream.]]>
  16859. </doc>
  16860. </method>
  16861. <field name="out" type="java.io.OutputStream"
  16862. transient="false" volatile="false"
  16863. static="false" final="true" visibility="protected"
  16864. deprecated="not deprecated">
  16865. <doc>
  16866. <![CDATA[The output stream to be compressed.]]>
  16867. </doc>
  16868. </field>
  16869. <doc>
  16870. <![CDATA[A compression output stream.]]>
  16871. </doc>
  16872. </class>
  16873. <!-- end class org.apache.hadoop.io.compress.CompressionOutputStream -->
  16874. <!-- start interface org.apache.hadoop.io.compress.Compressor -->
  16875. <interface name="Compressor" abstract="true"
  16876. static="false" final="false" visibility="public"
  16877. deprecated="not deprecated">
  16878. <method name="setInput"
  16879. abstract="false" native="false" synchronized="false"
  16880. static="false" final="false" visibility="public"
  16881. deprecated="not deprecated">
  16882. <param name="b" type="byte[]"/>
  16883. <param name="off" type="int"/>
  16884. <param name="len" type="int"/>
  16885. <doc>
  16886. <![CDATA[Sets input data for compression.
  16887. This should be called whenever #needsInput() returns
  16888. <code>true</code> indicating that more input data is required.
  16889. @param b Input data
  16890. @param off Start offset
  16891. @param len Length]]>
  16892. </doc>
  16893. </method>
  16894. <method name="needsInput" return="boolean"
  16895. abstract="false" native="false" synchronized="false"
  16896. static="false" final="false" visibility="public"
  16897. deprecated="not deprecated">
  16898. <doc>
  16899. <![CDATA[Returns true if the input data buffer is empty and
  16900. #setInput() should be called to provide more input.
  16901. @return <code>true</code> if the input data buffer is empty and
  16902. #setInput() should be called in order to provide more input.]]>
  16903. </doc>
  16904. </method>
  16905. <method name="setDictionary"
  16906. abstract="false" native="false" synchronized="false"
  16907. static="false" final="false" visibility="public"
  16908. deprecated="not deprecated">
  16909. <param name="b" type="byte[]"/>
  16910. <param name="off" type="int"/>
  16911. <param name="len" type="int"/>
  16912. <doc>
  16913. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  16914. is used when the history buffer can be predetermined.
  16915. @param b Dictionary data bytes
  16916. @param off Start offset
  16917. @param len Length]]>
  16918. </doc>
  16919. </method>
  16920. <method name="getBytesRead" return="long"
  16921. abstract="false" native="false" synchronized="false"
  16922. static="false" final="false" visibility="public"
  16923. deprecated="not deprecated">
  16924. <doc>
  16925. <![CDATA[Return number of uncompressed bytes input so far.]]>
  16926. </doc>
  16927. </method>
  16928. <method name="getBytesWritten" return="long"
  16929. abstract="false" native="false" synchronized="false"
  16930. static="false" final="false" visibility="public"
  16931. deprecated="not deprecated">
  16932. <doc>
  16933. <![CDATA[Return number of compressed bytes output so far.]]>
  16934. </doc>
  16935. </method>
  16936. <method name="finish"
  16937. abstract="false" native="false" synchronized="false"
  16938. static="false" final="false" visibility="public"
  16939. deprecated="not deprecated">
  16940. <doc>
  16941. <![CDATA[When called, indicates that compression should end
  16942. with the current contents of the input buffer.]]>
  16943. </doc>
  16944. </method>
  16945. <method name="finished" return="boolean"
  16946. abstract="false" native="false" synchronized="false"
  16947. static="false" final="false" visibility="public"
  16948. deprecated="not deprecated">
  16949. <doc>
  16950. <![CDATA[Returns true if the end of the compressed
  16951. data output stream has been reached.
  16952. @return <code>true</code> if the end of the compressed
  16953. data output stream has been reached.]]>
  16954. </doc>
  16955. </method>
  16956. <method name="compress" return="int"
  16957. abstract="false" native="false" synchronized="false"
  16958. static="false" final="false" visibility="public"
  16959. deprecated="not deprecated">
  16960. <param name="b" type="byte[]"/>
  16961. <param name="off" type="int"/>
  16962. <param name="len" type="int"/>
  16963. <exception name="IOException" type="java.io.IOException"/>
  16964. <doc>
  16965. <![CDATA[Fills specified buffer with compressed data. Returns actual number
  16966. of bytes of compressed data. A return value of 0 indicates that
  16967. needsInput() should be called in order to determine if more input
  16968. data is required.
  16969. @param b Buffer for the compressed data
  16970. @param off Start offset of the data
  16971. @param len Size of the buffer
  16972. @return The actual number of bytes of compressed data.]]>
  16973. </doc>
  16974. </method>
  16975. <method name="reset"
  16976. abstract="false" native="false" synchronized="false"
  16977. static="false" final="false" visibility="public"
  16978. deprecated="not deprecated">
  16979. <doc>
  16980. <![CDATA[Resets compressor so that a new set of input data can be processed.]]>
  16981. </doc>
  16982. </method>
  16983. <method name="end"
  16984. abstract="false" native="false" synchronized="false"
  16985. static="false" final="false" visibility="public"
  16986. deprecated="not deprecated">
  16987. <doc>
  16988. <![CDATA[Closes the compressor and discards any unprocessed input.]]>
  16989. </doc>
  16990. </method>
  16991. <method name="reinit"
  16992. abstract="false" native="false" synchronized="false"
  16993. static="false" final="false" visibility="public"
  16994. deprecated="not deprecated">
  16995. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16996. <doc>
  16997. <![CDATA[Prepare the compressor to be used in a new stream with settings defined in
  16998. the given Configuration
  16999. @param conf Configuration from which new setting are fetched]]>
  17000. </doc>
  17001. </method>
  17002. <doc>
  17003. <![CDATA[Specification of a stream-based 'compressor' which can be
  17004. plugged into a {@link CompressionOutputStream} to compress data.
  17005. This is modelled after {@link java.util.zip.Deflater}]]>
  17006. </doc>
  17007. </interface>
  17008. <!-- end interface org.apache.hadoop.io.compress.Compressor -->
  17009. <!-- start class org.apache.hadoop.io.compress.CompressorStream -->
  17010. <class name="CompressorStream" extends="org.apache.hadoop.io.compress.CompressionOutputStream"
  17011. abstract="false"
  17012. static="false" final="false" visibility="public"
  17013. deprecated="not deprecated">
  17014. <constructor name="CompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor, int"
  17015. static="false" final="false" visibility="public"
  17016. deprecated="not deprecated">
  17017. </constructor>
  17018. <constructor name="CompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor"
  17019. static="false" final="false" visibility="public"
  17020. deprecated="not deprecated">
  17021. </constructor>
  17022. <constructor name="CompressorStream" type="java.io.OutputStream"
  17023. static="false" final="false" visibility="protected"
  17024. deprecated="not deprecated">
  17025. <doc>
  17026. <![CDATA[Allow derived classes to directly set the underlying stream.
  17027. @param out Underlying output stream.]]>
  17028. </doc>
  17029. </constructor>
  17030. <method name="write"
  17031. abstract="false" native="false" synchronized="false"
  17032. static="false" final="false" visibility="public"
  17033. deprecated="not deprecated">
  17034. <param name="b" type="byte[]"/>
  17035. <param name="off" type="int"/>
  17036. <param name="len" type="int"/>
  17037. <exception name="IOException" type="java.io.IOException"/>
  17038. </method>
  17039. <method name="compress"
  17040. abstract="false" native="false" synchronized="false"
  17041. static="false" final="false" visibility="protected"
  17042. deprecated="not deprecated">
  17043. <exception name="IOException" type="java.io.IOException"/>
  17044. </method>
  17045. <method name="finish"
  17046. abstract="false" native="false" synchronized="false"
  17047. static="false" final="false" visibility="public"
  17048. deprecated="not deprecated">
  17049. <exception name="IOException" type="java.io.IOException"/>
  17050. </method>
  17051. <method name="resetState"
  17052. abstract="false" native="false" synchronized="false"
  17053. static="false" final="false" visibility="public"
  17054. deprecated="not deprecated">
  17055. <exception name="IOException" type="java.io.IOException"/>
  17056. </method>
  17057. <method name="close"
  17058. abstract="false" native="false" synchronized="false"
  17059. static="false" final="false" visibility="public"
  17060. deprecated="not deprecated">
  17061. <exception name="IOException" type="java.io.IOException"/>
  17062. </method>
  17063. <method name="write"
  17064. abstract="false" native="false" synchronized="false"
  17065. static="false" final="false" visibility="public"
  17066. deprecated="not deprecated">
  17067. <param name="b" type="int"/>
  17068. <exception name="IOException" type="java.io.IOException"/>
  17069. </method>
  17070. <field name="compressor" type="org.apache.hadoop.io.compress.Compressor"
  17071. transient="false" volatile="false"
  17072. static="false" final="false" visibility="protected"
  17073. deprecated="not deprecated">
  17074. </field>
  17075. <field name="buffer" type="byte[]"
  17076. transient="false" volatile="false"
  17077. static="false" final="false" visibility="protected"
  17078. deprecated="not deprecated">
  17079. </field>
  17080. <field name="closed" type="boolean"
  17081. transient="false" volatile="false"
  17082. static="false" final="false" visibility="protected"
  17083. deprecated="not deprecated">
  17084. </field>
  17085. </class>
  17086. <!-- end class org.apache.hadoop.io.compress.CompressorStream -->
  17087. <!-- start interface org.apache.hadoop.io.compress.Decompressor -->
  17088. <interface name="Decompressor" abstract="true"
  17089. static="false" final="false" visibility="public"
  17090. deprecated="not deprecated">
  17091. <method name="setInput"
  17092. abstract="false" native="false" synchronized="false"
  17093. static="false" final="false" visibility="public"
  17094. deprecated="not deprecated">
  17095. <param name="b" type="byte[]"/>
  17096. <param name="off" type="int"/>
  17097. <param name="len" type="int"/>
  17098. <doc>
  17099. <![CDATA[Sets input data for decompression.
  17100. This should be called if and only if {@link #needsInput()} returns
  17101. <code>true</code> indicating that more input data is required.
  17102. (Both native and non-native versions of various Decompressors require
  17103. that the data passed in via <code>b[]</code> remain unmodified until
  17104. the caller is explicitly notified--via {@link #needsInput()}--that the
  17105. buffer may be safely modified. With this requirement, an extra
  17106. buffer-copy can be avoided.)
  17107. @param b Input data
  17108. @param off Start offset
  17109. @param len Length]]>
  17110. </doc>
  17111. </method>
  17112. <method name="needsInput" return="boolean"
  17113. abstract="false" native="false" synchronized="false"
  17114. static="false" final="false" visibility="public"
  17115. deprecated="not deprecated">
  17116. <doc>
  17117. <![CDATA[Returns true if the input data buffer is empty and
  17118. {@link #setInput(byte[], int, int)} should be called to
  17119. provide more input.
  17120. @return <code>true</code> if the input data buffer is empty and
  17121. {@link #setInput(byte[], int, int)} should be called in
  17122. order to provide more input.]]>
  17123. </doc>
  17124. </method>
  17125. <method name="setDictionary"
  17126. abstract="false" native="false" synchronized="false"
  17127. static="false" final="false" visibility="public"
  17128. deprecated="not deprecated">
  17129. <param name="b" type="byte[]"/>
  17130. <param name="off" type="int"/>
  17131. <param name="len" type="int"/>
  17132. <doc>
  17133. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  17134. is used when the history buffer can be predetermined.
  17135. @param b Dictionary data bytes
  17136. @param off Start offset
  17137. @param len Length]]>
  17138. </doc>
  17139. </method>
  17140. <method name="needsDictionary" return="boolean"
  17141. abstract="false" native="false" synchronized="false"
  17142. static="false" final="false" visibility="public"
  17143. deprecated="not deprecated">
  17144. <doc>
  17145. <![CDATA[Returns <code>true</code> if a preset dictionary is needed for decompression.
  17146. @return <code>true</code> if a preset dictionary is needed for decompression]]>
  17147. </doc>
  17148. </method>
  17149. <method name="finished" return="boolean"
  17150. abstract="false" native="false" synchronized="false"
  17151. static="false" final="false" visibility="public"
  17152. deprecated="not deprecated">
  17153. <doc>
  17154. <![CDATA[Returns true if the end of the decompressed
  17155. data output stream has been reached.
  17156. @return <code>true</code> if the end of the decompressed
  17157. data output stream has been reached.]]>
  17158. </doc>
  17159. </method>
  17160. <method name="decompress" return="int"
  17161. abstract="false" native="false" synchronized="false"
  17162. static="false" final="false" visibility="public"
  17163. deprecated="not deprecated">
  17164. <param name="b" type="byte[]"/>
  17165. <param name="off" type="int"/>
  17166. <param name="len" type="int"/>
  17167. <exception name="IOException" type="java.io.IOException"/>
  17168. <doc>
  17169. <![CDATA[Fills specified buffer with uncompressed data. Returns actual number
  17170. of bytes of uncompressed data. A return value of 0 indicates that
  17171. {@link #needsInput()} should be called in order to determine if more
  17172. input data is required.
  17173. @param b Buffer for the compressed data
  17174. @param off Start offset of the data
  17175. @param len Size of the buffer
  17176. @return The actual number of bytes of compressed data.
  17177. @throws IOException]]>
  17178. </doc>
  17179. </method>
  17180. <method name="getRemaining" return="int"
  17181. abstract="false" native="false" synchronized="false"
  17182. static="false" final="false" visibility="public"
  17183. deprecated="not deprecated">
  17184. <doc>
  17185. <![CDATA[Returns the number of bytes remaining in the compressed-data buffer;
  17186. typically called after the decompressor has finished decompressing
  17187. the current gzip stream (a.k.a. "member").]]>
  17188. </doc>
  17189. </method>
  17190. <method name="reset"
  17191. abstract="false" native="false" synchronized="false"
  17192. static="false" final="false" visibility="public"
  17193. deprecated="not deprecated">
  17194. <doc>
  17195. <![CDATA[Resets decompressor and input and output buffers so that a new set of
  17196. input data can be processed.]]>
  17197. </doc>
  17198. </method>
  17199. <method name="end"
  17200. abstract="false" native="false" synchronized="false"
  17201. static="false" final="false" visibility="public"
  17202. deprecated="not deprecated">
  17203. <doc>
  17204. <![CDATA[Closes the decompressor and discards any unprocessed input.]]>
  17205. </doc>
  17206. </method>
  17207. <doc>
  17208. <![CDATA[Specification of a stream-based 'de-compressor' which can be
  17209. plugged into a {@link CompressionInputStream} to compress data.
  17210. This is modelled after {@link java.util.zip.Inflater}]]>
  17211. </doc>
  17212. </interface>
  17213. <!-- end interface org.apache.hadoop.io.compress.Decompressor -->
  17214. <!-- start class org.apache.hadoop.io.compress.DecompressorStream -->
  17215. <class name="DecompressorStream" extends="org.apache.hadoop.io.compress.CompressionInputStream"
  17216. abstract="false"
  17217. static="false" final="false" visibility="public"
  17218. deprecated="not deprecated">
  17219. <constructor name="DecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor, int"
  17220. static="false" final="false" visibility="public"
  17221. deprecated="not deprecated">
  17222. <exception name="IOException" type="java.io.IOException"/>
  17223. </constructor>
  17224. <constructor name="DecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor"
  17225. static="false" final="false" visibility="public"
  17226. deprecated="not deprecated">
  17227. <exception name="IOException" type="java.io.IOException"/>
  17228. </constructor>
  17229. <constructor name="DecompressorStream" type="java.io.InputStream"
  17230. static="false" final="false" visibility="protected"
  17231. deprecated="not deprecated">
  17232. <exception name="IOException" type="java.io.IOException"/>
  17233. <doc>
  17234. <![CDATA[Allow derived classes to directly set the underlying stream.
  17235. @param in Underlying input stream.
  17236. @throws IOException]]>
  17237. </doc>
  17238. </constructor>
  17239. <method name="read" return="int"
  17240. abstract="false" native="false" synchronized="false"
  17241. static="false" final="false" visibility="public"
  17242. deprecated="not deprecated">
  17243. <exception name="IOException" type="java.io.IOException"/>
  17244. </method>
  17245. <method name="read" return="int"
  17246. abstract="false" native="false" synchronized="false"
  17247. static="false" final="false" visibility="public"
  17248. deprecated="not deprecated">
  17249. <param name="b" type="byte[]"/>
  17250. <param name="off" type="int"/>
  17251. <param name="len" type="int"/>
  17252. <exception name="IOException" type="java.io.IOException"/>
  17253. </method>
  17254. <method name="decompress" return="int"
  17255. abstract="false" native="false" synchronized="false"
  17256. static="false" final="false" visibility="protected"
  17257. deprecated="not deprecated">
  17258. <param name="b" type="byte[]"/>
  17259. <param name="off" type="int"/>
  17260. <param name="len" type="int"/>
  17261. <exception name="IOException" type="java.io.IOException"/>
  17262. </method>
  17263. <method name="getCompressedData" return="int"
  17264. abstract="false" native="false" synchronized="false"
  17265. static="false" final="false" visibility="protected"
  17266. deprecated="not deprecated">
  17267. <exception name="IOException" type="java.io.IOException"/>
  17268. </method>
  17269. <method name="checkStream"
  17270. abstract="false" native="false" synchronized="false"
  17271. static="false" final="false" visibility="protected"
  17272. deprecated="not deprecated">
  17273. <exception name="IOException" type="java.io.IOException"/>
  17274. </method>
  17275. <method name="resetState"
  17276. abstract="false" native="false" synchronized="false"
  17277. static="false" final="false" visibility="public"
  17278. deprecated="not deprecated">
  17279. <exception name="IOException" type="java.io.IOException"/>
  17280. </method>
  17281. <method name="skip" return="long"
  17282. abstract="false" native="false" synchronized="false"
  17283. static="false" final="false" visibility="public"
  17284. deprecated="not deprecated">
  17285. <param name="n" type="long"/>
  17286. <exception name="IOException" type="java.io.IOException"/>
  17287. </method>
  17288. <method name="available" return="int"
  17289. abstract="false" native="false" synchronized="false"
  17290. static="false" final="false" visibility="public"
  17291. deprecated="not deprecated">
  17292. <exception name="IOException" type="java.io.IOException"/>
  17293. </method>
  17294. <method name="close"
  17295. abstract="false" native="false" synchronized="false"
  17296. static="false" final="false" visibility="public"
  17297. deprecated="not deprecated">
  17298. <exception name="IOException" type="java.io.IOException"/>
  17299. </method>
  17300. <method name="markSupported" return="boolean"
  17301. abstract="false" native="false" synchronized="false"
  17302. static="false" final="false" visibility="public"
  17303. deprecated="not deprecated">
  17304. </method>
  17305. <method name="mark"
  17306. abstract="false" native="false" synchronized="true"
  17307. static="false" final="false" visibility="public"
  17308. deprecated="not deprecated">
  17309. <param name="readlimit" type="int"/>
  17310. </method>
  17311. <method name="reset"
  17312. abstract="false" native="false" synchronized="true"
  17313. static="false" final="false" visibility="public"
  17314. deprecated="not deprecated">
  17315. <exception name="IOException" type="java.io.IOException"/>
  17316. </method>
  17317. <field name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"
  17318. transient="false" volatile="false"
  17319. static="false" final="false" visibility="protected"
  17320. deprecated="not deprecated">
  17321. </field>
  17322. <field name="buffer" type="byte[]"
  17323. transient="false" volatile="false"
  17324. static="false" final="false" visibility="protected"
  17325. deprecated="not deprecated">
  17326. </field>
  17327. <field name="eof" type="boolean"
  17328. transient="false" volatile="false"
  17329. static="false" final="false" visibility="protected"
  17330. deprecated="not deprecated">
  17331. </field>
  17332. <field name="closed" type="boolean"
  17333. transient="false" volatile="false"
  17334. static="false" final="false" visibility="protected"
  17335. deprecated="not deprecated">
  17336. </field>
  17337. </class>
  17338. <!-- end class org.apache.hadoop.io.compress.DecompressorStream -->
  17339. <!-- start class org.apache.hadoop.io.compress.DefaultCodec -->
  17340. <class name="DefaultCodec" extends="java.lang.Object"
  17341. abstract="false"
  17342. static="false" final="false" visibility="public"
  17343. deprecated="not deprecated">
  17344. <implements name="org.apache.hadoop.conf.Configurable"/>
  17345. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  17346. <constructor name="DefaultCodec"
  17347. static="false" final="false" visibility="public"
  17348. deprecated="not deprecated">
  17349. </constructor>
  17350. <method name="setConf"
  17351. abstract="false" native="false" synchronized="false"
  17352. static="false" final="false" visibility="public"
  17353. deprecated="not deprecated">
  17354. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17355. </method>
  17356. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  17357. abstract="false" native="false" synchronized="false"
  17358. static="false" final="false" visibility="public"
  17359. deprecated="not deprecated">
  17360. </method>
  17361. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  17362. abstract="false" native="false" synchronized="false"
  17363. static="false" final="false" visibility="public"
  17364. deprecated="not deprecated">
  17365. <param name="out" type="java.io.OutputStream"/>
  17366. <exception name="IOException" type="java.io.IOException"/>
  17367. </method>
  17368. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  17369. abstract="false" native="false" synchronized="false"
  17370. static="false" final="false" visibility="public"
  17371. deprecated="not deprecated">
  17372. <param name="out" type="java.io.OutputStream"/>
  17373. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  17374. <exception name="IOException" type="java.io.IOException"/>
  17375. </method>
  17376. <method name="getCompressorType" return="java.lang.Class"
  17377. abstract="false" native="false" synchronized="false"
  17378. static="false" final="false" visibility="public"
  17379. deprecated="not deprecated">
  17380. </method>
  17381. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  17382. abstract="false" native="false" synchronized="false"
  17383. static="false" final="false" visibility="public"
  17384. deprecated="not deprecated">
  17385. </method>
  17386. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  17387. abstract="false" native="false" synchronized="false"
  17388. static="false" final="false" visibility="public"
  17389. deprecated="not deprecated">
  17390. <param name="in" type="java.io.InputStream"/>
  17391. <exception name="IOException" type="java.io.IOException"/>
  17392. </method>
  17393. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  17394. abstract="false" native="false" synchronized="false"
  17395. static="false" final="false" visibility="public"
  17396. deprecated="not deprecated">
  17397. <param name="in" type="java.io.InputStream"/>
  17398. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  17399. <exception name="IOException" type="java.io.IOException"/>
  17400. </method>
  17401. <method name="getDecompressorType" return="java.lang.Class"
  17402. abstract="false" native="false" synchronized="false"
  17403. static="false" final="false" visibility="public"
  17404. deprecated="not deprecated">
  17405. </method>
  17406. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  17407. abstract="false" native="false" synchronized="false"
  17408. static="false" final="false" visibility="public"
  17409. deprecated="not deprecated">
  17410. </method>
  17411. <method name="getDefaultExtension" return="java.lang.String"
  17412. abstract="false" native="false" synchronized="false"
  17413. static="false" final="false" visibility="public"
  17414. deprecated="not deprecated">
  17415. </method>
  17416. </class>
  17417. <!-- end class org.apache.hadoop.io.compress.DefaultCodec -->
  17418. <!-- start interface org.apache.hadoop.io.compress.DoNotPool -->
  17419. <interface name="DoNotPool" abstract="true"
  17420. static="false" final="false" visibility="public"
  17421. deprecated="not deprecated">
  17422. <implements name="java.lang.annotation.Annotation"/>
  17423. <doc>
  17424. <![CDATA[This is a marker annotation that marks a compressor or decompressor
  17425. type as not to be pooled.]]>
  17426. </doc>
  17427. </interface>
  17428. <!-- end interface org.apache.hadoop.io.compress.DoNotPool -->
  17429. <!-- start class org.apache.hadoop.io.compress.GzipCodec -->
  17430. <class name="GzipCodec" extends="org.apache.hadoop.io.compress.DefaultCodec"
  17431. abstract="false"
  17432. static="false" final="false" visibility="public"
  17433. deprecated="not deprecated">
  17434. <constructor name="GzipCodec"
  17435. static="false" final="false" visibility="public"
  17436. deprecated="not deprecated">
  17437. </constructor>
  17438. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  17439. abstract="false" native="false" synchronized="false"
  17440. static="false" final="false" visibility="public"
  17441. deprecated="not deprecated">
  17442. <param name="out" type="java.io.OutputStream"/>
  17443. <exception name="IOException" type="java.io.IOException"/>
  17444. </method>
  17445. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  17446. abstract="false" native="false" synchronized="false"
  17447. static="false" final="false" visibility="public"
  17448. deprecated="not deprecated">
  17449. <param name="out" type="java.io.OutputStream"/>
  17450. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  17451. <exception name="IOException" type="java.io.IOException"/>
  17452. </method>
  17453. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  17454. abstract="false" native="false" synchronized="false"
  17455. static="false" final="false" visibility="public"
  17456. deprecated="not deprecated">
  17457. </method>
  17458. <method name="getCompressorType" return="java.lang.Class"
  17459. abstract="false" native="false" synchronized="false"
  17460. static="false" final="false" visibility="public"
  17461. deprecated="not deprecated">
  17462. </method>
  17463. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  17464. abstract="false" native="false" synchronized="false"
  17465. static="false" final="false" visibility="public"
  17466. deprecated="not deprecated">
  17467. <param name="in" type="java.io.InputStream"/>
  17468. <exception name="IOException" type="java.io.IOException"/>
  17469. </method>
  17470. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  17471. abstract="false" native="false" synchronized="false"
  17472. static="false" final="false" visibility="public"
  17473. deprecated="not deprecated">
  17474. <param name="in" type="java.io.InputStream"/>
  17475. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  17476. <exception name="IOException" type="java.io.IOException"/>
  17477. </method>
  17478. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  17479. abstract="false" native="false" synchronized="false"
  17480. static="false" final="false" visibility="public"
  17481. deprecated="not deprecated">
  17482. </method>
  17483. <method name="getDecompressorType" return="java.lang.Class"
  17484. abstract="false" native="false" synchronized="false"
  17485. static="false" final="false" visibility="public"
  17486. deprecated="not deprecated">
  17487. </method>
  17488. <method name="getDefaultExtension" return="java.lang.String"
  17489. abstract="false" native="false" synchronized="false"
  17490. static="false" final="false" visibility="public"
  17491. deprecated="not deprecated">
  17492. </method>
  17493. <doc>
  17494. <![CDATA[This class creates gzip compressors/decompressors.]]>
  17495. </doc>
  17496. </class>
  17497. <!-- end class org.apache.hadoop.io.compress.GzipCodec -->
  17498. <!-- start class org.apache.hadoop.io.compress.GzipCodec.GzipOutputStream -->
  17499. <class name="GzipCodec.GzipOutputStream" extends="org.apache.hadoop.io.compress.CompressorStream"
  17500. abstract="false"
  17501. static="true" final="false" visibility="protected"
  17502. deprecated="not deprecated">
  17503. <constructor name="GzipCodec.GzipOutputStream" type="java.io.OutputStream"
  17504. static="false" final="false" visibility="public"
  17505. deprecated="not deprecated">
  17506. <exception name="IOException" type="java.io.IOException"/>
  17507. </constructor>
  17508. <constructor name="GzipCodec.GzipOutputStream" type="org.apache.hadoop.io.compress.CompressorStream"
  17509. static="false" final="false" visibility="protected"
  17510. deprecated="not deprecated">
  17511. <doc>
  17512. <![CDATA[Allow children types to put a different type in here.
  17513. @param out the Deflater stream to use]]>
  17514. </doc>
  17515. </constructor>
  17516. <method name="close"
  17517. abstract="false" native="false" synchronized="false"
  17518. static="false" final="false" visibility="public"
  17519. deprecated="not deprecated">
  17520. <exception name="IOException" type="java.io.IOException"/>
  17521. </method>
  17522. <method name="flush"
  17523. abstract="false" native="false" synchronized="false"
  17524. static="false" final="false" visibility="public"
  17525. deprecated="not deprecated">
  17526. <exception name="IOException" type="java.io.IOException"/>
  17527. </method>
  17528. <method name="write"
  17529. abstract="false" native="false" synchronized="false"
  17530. static="false" final="false" visibility="public"
  17531. deprecated="not deprecated">
  17532. <param name="b" type="int"/>
  17533. <exception name="IOException" type="java.io.IOException"/>
  17534. </method>
  17535. <method name="write"
  17536. abstract="false" native="false" synchronized="false"
  17537. static="false" final="false" visibility="public"
  17538. deprecated="not deprecated">
  17539. <param name="data" type="byte[]"/>
  17540. <param name="offset" type="int"/>
  17541. <param name="length" type="int"/>
  17542. <exception name="IOException" type="java.io.IOException"/>
  17543. </method>
  17544. <method name="finish"
  17545. abstract="false" native="false" synchronized="false"
  17546. static="false" final="false" visibility="public"
  17547. deprecated="not deprecated">
  17548. <exception name="IOException" type="java.io.IOException"/>
  17549. </method>
  17550. <method name="resetState"
  17551. abstract="false" native="false" synchronized="false"
  17552. static="false" final="false" visibility="public"
  17553. deprecated="not deprecated">
  17554. <exception name="IOException" type="java.io.IOException"/>
  17555. </method>
  17556. <doc>
  17557. <![CDATA[A bridge that wraps around a DeflaterOutputStream to make it
  17558. a CompressionOutputStream.]]>
  17559. </doc>
  17560. </class>
  17561. <!-- end class org.apache.hadoop.io.compress.GzipCodec.GzipOutputStream -->
  17562. <!-- start class org.apache.hadoop.io.compress.SnappyCodec -->
  17563. <class name="SnappyCodec" extends="java.lang.Object"
  17564. abstract="false"
  17565. static="false" final="false" visibility="public"
  17566. deprecated="not deprecated">
  17567. <implements name="org.apache.hadoop.conf.Configurable"/>
  17568. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  17569. <constructor name="SnappyCodec"
  17570. static="false" final="false" visibility="public"
  17571. deprecated="not deprecated">
  17572. </constructor>
  17573. <method name="setConf"
  17574. abstract="false" native="false" synchronized="false"
  17575. static="false" final="false" visibility="public"
  17576. deprecated="not deprecated">
  17577. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17578. <doc>
  17579. <![CDATA[Set the configuration to be used by this object.
  17580. @param conf the configuration object.]]>
  17581. </doc>
  17582. </method>
  17583. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  17584. abstract="false" native="false" synchronized="false"
  17585. static="false" final="false" visibility="public"
  17586. deprecated="not deprecated">
  17587. <doc>
  17588. <![CDATA[Return the configuration used by this object.
  17589. @return the configuration object used by this objec.]]>
  17590. </doc>
  17591. </method>
  17592. <method name="isNativeSnappyLoaded" return="boolean"
  17593. abstract="false" native="false" synchronized="false"
  17594. static="true" final="false" visibility="public"
  17595. deprecated="not deprecated">
  17596. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17597. <doc>
  17598. <![CDATA[Are the native snappy libraries loaded & initialized?
  17599. @param conf configuration
  17600. @return true if loaded & initialized, otherwise false]]>
  17601. </doc>
  17602. </method>
  17603. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  17604. abstract="false" native="false" synchronized="false"
  17605. static="false" final="false" visibility="public"
  17606. deprecated="not deprecated">
  17607. <param name="out" type="java.io.OutputStream"/>
  17608. <exception name="IOException" type="java.io.IOException"/>
  17609. <doc>
  17610. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  17611. {@link OutputStream}.
  17612. @param out the location for the final output stream
  17613. @return a stream the user can write uncompressed data to have it compressed
  17614. @throws IOException]]>
  17615. </doc>
  17616. </method>
  17617. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  17618. abstract="false" native="false" synchronized="false"
  17619. static="false" final="false" visibility="public"
  17620. deprecated="not deprecated">
  17621. <param name="out" type="java.io.OutputStream"/>
  17622. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  17623. <exception name="IOException" type="java.io.IOException"/>
  17624. <doc>
  17625. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  17626. {@link OutputStream} with the given {@link Compressor}.
  17627. @param out the location for the final output stream
  17628. @param compressor compressor to use
  17629. @return a stream the user can write uncompressed data to have it compressed
  17630. @throws IOException]]>
  17631. </doc>
  17632. </method>
  17633. <method name="getCompressorType" return="java.lang.Class"
  17634. abstract="false" native="false" synchronized="false"
  17635. static="false" final="false" visibility="public"
  17636. deprecated="not deprecated">
  17637. <doc>
  17638. <![CDATA[Get the type of {@link Compressor} needed by this {@link CompressionCodec}.
  17639. @return the type of compressor needed by this codec.]]>
  17640. </doc>
  17641. </method>
  17642. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  17643. abstract="false" native="false" synchronized="false"
  17644. static="false" final="false" visibility="public"
  17645. deprecated="not deprecated">
  17646. <doc>
  17647. <![CDATA[Create a new {@link Compressor} for use by this {@link CompressionCodec}.
  17648. @return a new compressor for use by this codec]]>
  17649. </doc>
  17650. </method>
  17651. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  17652. abstract="false" native="false" synchronized="false"
  17653. static="false" final="false" visibility="public"
  17654. deprecated="not deprecated">
  17655. <param name="in" type="java.io.InputStream"/>
  17656. <exception name="IOException" type="java.io.IOException"/>
  17657. <doc>
  17658. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  17659. input stream.
  17660. @param in the stream to read compressed bytes from
  17661. @return a stream to read uncompressed bytes from
  17662. @throws IOException]]>
  17663. </doc>
  17664. </method>
  17665. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  17666. abstract="false" native="false" synchronized="false"
  17667. static="false" final="false" visibility="public"
  17668. deprecated="not deprecated">
  17669. <param name="in" type="java.io.InputStream"/>
  17670. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  17671. <exception name="IOException" type="java.io.IOException"/>
  17672. <doc>
  17673. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  17674. {@link InputStream} with the given {@link Decompressor}.
  17675. @param in the stream to read compressed bytes from
  17676. @param decompressor decompressor to use
  17677. @return a stream to read uncompressed bytes from
  17678. @throws IOException]]>
  17679. </doc>
  17680. </method>
  17681. <method name="getDecompressorType" return="java.lang.Class"
  17682. abstract="false" native="false" synchronized="false"
  17683. static="false" final="false" visibility="public"
  17684. deprecated="not deprecated">
  17685. <doc>
  17686. <![CDATA[Get the type of {@link Decompressor} needed by this {@link CompressionCodec}.
  17687. @return the type of decompressor needed by this codec.]]>
  17688. </doc>
  17689. </method>
  17690. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  17691. abstract="false" native="false" synchronized="false"
  17692. static="false" final="false" visibility="public"
  17693. deprecated="not deprecated">
  17694. <doc>
  17695. <![CDATA[Create a new {@link Decompressor} for use by this {@link CompressionCodec}.
  17696. @return a new decompressor for use by this codec]]>
  17697. </doc>
  17698. </method>
  17699. <method name="getDefaultExtension" return="java.lang.String"
  17700. abstract="false" native="false" synchronized="false"
  17701. static="false" final="false" visibility="public"
  17702. deprecated="not deprecated">
  17703. <doc>
  17704. <![CDATA[Get the default filename extension for this kind of compression.
  17705. @return <code>.snappy</code>.]]>
  17706. </doc>
  17707. </method>
  17708. <doc>
  17709. <![CDATA[This class creates snappy compressors/decompressors.]]>
  17710. </doc>
  17711. </class>
  17712. <!-- end class org.apache.hadoop.io.compress.SnappyCodec -->
  17713. <!-- start class org.apache.hadoop.io.compress.SplitCompressionInputStream -->
  17714. <class name="SplitCompressionInputStream" extends="org.apache.hadoop.io.compress.CompressionInputStream"
  17715. abstract="true"
  17716. static="false" final="false" visibility="public"
  17717. deprecated="not deprecated">
  17718. <constructor name="SplitCompressionInputStream" type="java.io.InputStream, long, long"
  17719. static="false" final="false" visibility="public"
  17720. deprecated="not deprecated">
  17721. <exception name="IOException" type="java.io.IOException"/>
  17722. </constructor>
  17723. <method name="setStart"
  17724. abstract="false" native="false" synchronized="false"
  17725. static="false" final="false" visibility="protected"
  17726. deprecated="not deprecated">
  17727. <param name="start" type="long"/>
  17728. </method>
  17729. <method name="setEnd"
  17730. abstract="false" native="false" synchronized="false"
  17731. static="false" final="false" visibility="protected"
  17732. deprecated="not deprecated">
  17733. <param name="end" type="long"/>
  17734. </method>
  17735. <method name="getAdjustedStart" return="long"
  17736. abstract="false" native="false" synchronized="false"
  17737. static="false" final="false" visibility="public"
  17738. deprecated="not deprecated">
  17739. <doc>
  17740. <![CDATA[After calling createInputStream, the values of start or end
  17741. might change. So this method can be used to get the new value of start.
  17742. @return The changed value of start]]>
  17743. </doc>
  17744. </method>
  17745. <method name="getAdjustedEnd" return="long"
  17746. abstract="false" native="false" synchronized="false"
  17747. static="false" final="false" visibility="public"
  17748. deprecated="not deprecated">
  17749. <doc>
  17750. <![CDATA[After calling createInputStream, the values of start or end
  17751. might change. So this method can be used to get the new value of end.
  17752. @return The changed value of end]]>
  17753. </doc>
  17754. </method>
  17755. <doc>
  17756. <![CDATA[An InputStream covering a range of compressed data. The start and end
  17757. offsets requested by a client may be modified by the codec to fit block
  17758. boundaries or other algorithm-dependent requirements.]]>
  17759. </doc>
  17760. </class>
  17761. <!-- end class org.apache.hadoop.io.compress.SplitCompressionInputStream -->
  17762. <!-- start interface org.apache.hadoop.io.compress.SplittableCompressionCodec -->
  17763. <interface name="SplittableCompressionCodec" abstract="true"
  17764. static="false" final="false" visibility="public"
  17765. deprecated="not deprecated">
  17766. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  17767. <method name="createInputStream" return="org.apache.hadoop.io.compress.SplitCompressionInputStream"
  17768. abstract="false" native="false" synchronized="false"
  17769. static="false" final="false" visibility="public"
  17770. deprecated="not deprecated">
  17771. <param name="seekableIn" type="java.io.InputStream"/>
  17772. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  17773. <param name="start" type="long"/>
  17774. <param name="end" type="long"/>
  17775. <param name="readMode" type="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"/>
  17776. <exception name="IOException" type="java.io.IOException"/>
  17777. <doc>
  17778. <![CDATA[Create a stream as dictated by the readMode. This method is used when
  17779. the codecs wants the ability to work with the underlying stream positions.
  17780. @param seekableIn The seekable input stream (seeks in compressed data)
  17781. @param start The start offset into the compressed stream. May be changed
  17782. by the underlying codec.
  17783. @param end The end offset into the compressed stream. May be changed by
  17784. the underlying codec.
  17785. @param readMode Controls whether stream position is reported continuously
  17786. from the compressed stream only only at block boundaries.
  17787. @return a stream to read uncompressed bytes from]]>
  17788. </doc>
  17789. </method>
  17790. <doc>
  17791. <![CDATA[This interface is meant to be implemented by those compression codecs
  17792. which are capable to compress / decompress a stream starting at any
  17793. arbitrary position.
  17794. Especially the process of decompressing a stream starting at some arbitrary
  17795. position is challenging. Most of the codecs are only able to successfully
  17796. decompress a stream, if they start from the very beginning till the end.
  17797. One of the reasons is the stored state at the beginning of the stream which
  17798. is crucial for decompression.
  17799. Yet there are few codecs which do not save the whole state at the beginning
  17800. of the stream and hence can be used to de-compress stream starting at any
  17801. arbitrary points. This interface is meant to be used by such codecs. Such
  17802. codecs are highly valuable, especially in the context of Hadoop, because
  17803. an input compressed file can be split and hence can be worked on by multiple
  17804. machines in parallel.]]>
  17805. </doc>
  17806. </interface>
  17807. <!-- end interface org.apache.hadoop.io.compress.SplittableCompressionCodec -->
  17808. <!-- start class org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE -->
  17809. <class name="SplittableCompressionCodec.READ_MODE" extends="java.lang.Enum"
  17810. abstract="false"
  17811. static="true" final="true" visibility="public"
  17812. deprecated="not deprecated">
  17813. <method name="values" return="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE[]"
  17814. abstract="false" native="false" synchronized="false"
  17815. static="true" final="false" visibility="public"
  17816. deprecated="not deprecated">
  17817. </method>
  17818. <method name="valueOf" return="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"
  17819. abstract="false" native="false" synchronized="false"
  17820. static="true" final="false" visibility="public"
  17821. deprecated="not deprecated">
  17822. <param name="name" type="java.lang.String"/>
  17823. </method>
  17824. <field name="CONTINUOUS" type="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"
  17825. transient="false" volatile="false"
  17826. static="true" final="true" visibility="public"
  17827. deprecated="not deprecated">
  17828. </field>
  17829. <field name="BYBLOCK" type="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"
  17830. transient="false" volatile="false"
  17831. static="true" final="true" visibility="public"
  17832. deprecated="not deprecated">
  17833. </field>
  17834. <doc>
  17835. <![CDATA[During decompression, data can be read off from the decompressor in two
  17836. modes, namely continuous and blocked. Few codecs (e.g. BZip2) are capable
  17837. of compressing data in blocks and then decompressing the blocks. In
  17838. Blocked reading mode codecs inform 'end of block' events to its caller.
  17839. While in continuous mode, the caller of codecs is unaware about the blocks
  17840. and uncompressed data is spilled out like a continuous stream.]]>
  17841. </doc>
  17842. </class>
  17843. <!-- end class org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE -->
  17844. </package>
  17845. <package name="org.apache.hadoop.io.compress.bzip2">
  17846. <!-- start interface org.apache.hadoop.io.compress.bzip2.BZip2Constants -->
  17847. <interface name="BZip2Constants" abstract="true"
  17848. static="false" final="false" visibility="public"
  17849. deprecated="not deprecated">
  17850. <field name="baseBlockSize" type="int"
  17851. transient="false" volatile="false"
  17852. static="true" final="true" visibility="public"
  17853. deprecated="not deprecated">
  17854. </field>
  17855. <field name="MAX_ALPHA_SIZE" type="int"
  17856. transient="false" volatile="false"
  17857. static="true" final="true" visibility="public"
  17858. deprecated="not deprecated">
  17859. </field>
  17860. <field name="MAX_CODE_LEN" type="int"
  17861. transient="false" volatile="false"
  17862. static="true" final="true" visibility="public"
  17863. deprecated="not deprecated">
  17864. </field>
  17865. <field name="RUNA" type="int"
  17866. transient="false" volatile="false"
  17867. static="true" final="true" visibility="public"
  17868. deprecated="not deprecated">
  17869. </field>
  17870. <field name="RUNB" type="int"
  17871. transient="false" volatile="false"
  17872. static="true" final="true" visibility="public"
  17873. deprecated="not deprecated">
  17874. </field>
  17875. <field name="N_GROUPS" type="int"
  17876. transient="false" volatile="false"
  17877. static="true" final="true" visibility="public"
  17878. deprecated="not deprecated">
  17879. </field>
  17880. <field name="G_SIZE" type="int"
  17881. transient="false" volatile="false"
  17882. static="true" final="true" visibility="public"
  17883. deprecated="not deprecated">
  17884. </field>
  17885. <field name="N_ITERS" type="int"
  17886. transient="false" volatile="false"
  17887. static="true" final="true" visibility="public"
  17888. deprecated="not deprecated">
  17889. </field>
  17890. <field name="MAX_SELECTORS" type="int"
  17891. transient="false" volatile="false"
  17892. static="true" final="true" visibility="public"
  17893. deprecated="not deprecated">
  17894. </field>
  17895. <field name="NUM_OVERSHOOT_BYTES" type="int"
  17896. transient="false" volatile="false"
  17897. static="true" final="true" visibility="public"
  17898. deprecated="not deprecated">
  17899. </field>
  17900. <field name="END_OF_BLOCK" type="int"
  17901. transient="false" volatile="false"
  17902. static="true" final="true" visibility="public"
  17903. deprecated="not deprecated">
  17904. <doc>
  17905. <![CDATA[End of a BZip2 block]]>
  17906. </doc>
  17907. </field>
  17908. <field name="END_OF_STREAM" type="int"
  17909. transient="false" volatile="false"
  17910. static="true" final="true" visibility="public"
  17911. deprecated="not deprecated">
  17912. <doc>
  17913. <![CDATA[End of BZip2 stream.]]>
  17914. </doc>
  17915. </field>
  17916. <field name="rNums" type="int[]"
  17917. transient="false" volatile="false"
  17918. static="true" final="true" visibility="public"
  17919. deprecated="not deprecated">
  17920. <doc>
  17921. <![CDATA[This array really shouldn't be here. Again, for historical purposes it
  17922. is.
  17923. <p>
  17924. FIXME: This array should be in a private or package private location,
  17925. since it could be modified by malicious code.
  17926. </p>]]>
  17927. </doc>
  17928. </field>
  17929. <doc>
  17930. <![CDATA[Base class for both the compress and decompress classes. Holds common arrays,
  17931. and static data.
  17932. <p>
  17933. This interface is public for historical purposes. You should have no need to
  17934. use it.
  17935. </p>]]>
  17936. </doc>
  17937. </interface>
  17938. <!-- end interface org.apache.hadoop.io.compress.bzip2.BZip2Constants -->
  17939. <!-- start class org.apache.hadoop.io.compress.bzip2.BZip2DummyCompressor -->
  17940. <class name="BZip2DummyCompressor" extends="java.lang.Object"
  17941. abstract="false"
  17942. static="false" final="false" visibility="public"
  17943. deprecated="not deprecated">
  17944. <implements name="org.apache.hadoop.io.compress.Compressor"/>
  17945. <constructor name="BZip2DummyCompressor"
  17946. static="false" final="false" visibility="public"
  17947. deprecated="not deprecated">
  17948. </constructor>
  17949. <method name="compress" return="int"
  17950. abstract="false" native="false" synchronized="false"
  17951. static="false" final="false" visibility="public"
  17952. deprecated="not deprecated">
  17953. <param name="b" type="byte[]"/>
  17954. <param name="off" type="int"/>
  17955. <param name="len" type="int"/>
  17956. <exception name="IOException" type="java.io.IOException"/>
  17957. </method>
  17958. <method name="end"
  17959. abstract="false" native="false" synchronized="false"
  17960. static="false" final="false" visibility="public"
  17961. deprecated="not deprecated">
  17962. </method>
  17963. <method name="finish"
  17964. abstract="false" native="false" synchronized="false"
  17965. static="false" final="false" visibility="public"
  17966. deprecated="not deprecated">
  17967. </method>
  17968. <method name="finished" return="boolean"
  17969. abstract="false" native="false" synchronized="false"
  17970. static="false" final="false" visibility="public"
  17971. deprecated="not deprecated">
  17972. </method>
  17973. <method name="getBytesRead" return="long"
  17974. abstract="false" native="false" synchronized="false"
  17975. static="false" final="false" visibility="public"
  17976. deprecated="not deprecated">
  17977. </method>
  17978. <method name="getBytesWritten" return="long"
  17979. abstract="false" native="false" synchronized="false"
  17980. static="false" final="false" visibility="public"
  17981. deprecated="not deprecated">
  17982. </method>
  17983. <method name="needsInput" return="boolean"
  17984. abstract="false" native="false" synchronized="false"
  17985. static="false" final="false" visibility="public"
  17986. deprecated="not deprecated">
  17987. </method>
  17988. <method name="reset"
  17989. abstract="false" native="false" synchronized="false"
  17990. static="false" final="false" visibility="public"
  17991. deprecated="not deprecated">
  17992. </method>
  17993. <method name="setDictionary"
  17994. abstract="false" native="false" synchronized="false"
  17995. static="false" final="false" visibility="public"
  17996. deprecated="not deprecated">
  17997. <param name="b" type="byte[]"/>
  17998. <param name="off" type="int"/>
  17999. <param name="len" type="int"/>
  18000. </method>
  18001. <method name="setInput"
  18002. abstract="false" native="false" synchronized="false"
  18003. static="false" final="false" visibility="public"
  18004. deprecated="not deprecated">
  18005. <param name="b" type="byte[]"/>
  18006. <param name="off" type="int"/>
  18007. <param name="len" type="int"/>
  18008. </method>
  18009. <method name="reinit"
  18010. abstract="false" native="false" synchronized="false"
  18011. static="false" final="false" visibility="public"
  18012. deprecated="not deprecated">
  18013. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18014. </method>
  18015. <doc>
  18016. <![CDATA[This is a dummy compressor for BZip2.]]>
  18017. </doc>
  18018. </class>
  18019. <!-- end class org.apache.hadoop.io.compress.bzip2.BZip2DummyCompressor -->
  18020. <!-- start class org.apache.hadoop.io.compress.bzip2.BZip2DummyDecompressor -->
  18021. <class name="BZip2DummyDecompressor" extends="java.lang.Object"
  18022. abstract="false"
  18023. static="false" final="false" visibility="public"
  18024. deprecated="not deprecated">
  18025. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  18026. <constructor name="BZip2DummyDecompressor"
  18027. static="false" final="false" visibility="public"
  18028. deprecated="not deprecated">
  18029. </constructor>
  18030. <method name="decompress" return="int"
  18031. abstract="false" native="false" synchronized="false"
  18032. static="false" final="false" visibility="public"
  18033. deprecated="not deprecated">
  18034. <param name="b" type="byte[]"/>
  18035. <param name="off" type="int"/>
  18036. <param name="len" type="int"/>
  18037. <exception name="IOException" type="java.io.IOException"/>
  18038. </method>
  18039. <method name="end"
  18040. abstract="false" native="false" synchronized="false"
  18041. static="false" final="false" visibility="public"
  18042. deprecated="not deprecated">
  18043. </method>
  18044. <method name="finished" return="boolean"
  18045. abstract="false" native="false" synchronized="false"
  18046. static="false" final="false" visibility="public"
  18047. deprecated="not deprecated">
  18048. </method>
  18049. <method name="needsDictionary" return="boolean"
  18050. abstract="false" native="false" synchronized="false"
  18051. static="false" final="false" visibility="public"
  18052. deprecated="not deprecated">
  18053. </method>
  18054. <method name="needsInput" return="boolean"
  18055. abstract="false" native="false" synchronized="false"
  18056. static="false" final="false" visibility="public"
  18057. deprecated="not deprecated">
  18058. </method>
  18059. <method name="getRemaining" return="int"
  18060. abstract="false" native="false" synchronized="false"
  18061. static="false" final="false" visibility="public"
  18062. deprecated="not deprecated">
  18063. </method>
  18064. <method name="reset"
  18065. abstract="false" native="false" synchronized="false"
  18066. static="false" final="false" visibility="public"
  18067. deprecated="not deprecated">
  18068. </method>
  18069. <method name="setDictionary"
  18070. abstract="false" native="false" synchronized="false"
  18071. static="false" final="false" visibility="public"
  18072. deprecated="not deprecated">
  18073. <param name="b" type="byte[]"/>
  18074. <param name="off" type="int"/>
  18075. <param name="len" type="int"/>
  18076. </method>
  18077. <method name="setInput"
  18078. abstract="false" native="false" synchronized="false"
  18079. static="false" final="false" visibility="public"
  18080. deprecated="not deprecated">
  18081. <param name="b" type="byte[]"/>
  18082. <param name="off" type="int"/>
  18083. <param name="len" type="int"/>
  18084. </method>
  18085. <doc>
  18086. <![CDATA[This is a dummy decompressor for BZip2.]]>
  18087. </doc>
  18088. </class>
  18089. <!-- end class org.apache.hadoop.io.compress.bzip2.BZip2DummyDecompressor -->
  18090. <!-- start class org.apache.hadoop.io.compress.bzip2.CBZip2InputStream -->
  18091. <class name="CBZip2InputStream" extends="java.io.InputStream"
  18092. abstract="false"
  18093. static="false" final="false" visibility="public"
  18094. deprecated="not deprecated">
  18095. <implements name="org.apache.hadoop.io.compress.bzip2.BZip2Constants"/>
  18096. <constructor name="CBZip2InputStream" type="java.io.InputStream, org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"
  18097. static="false" final="false" visibility="public"
  18098. deprecated="not deprecated">
  18099. <exception name="IOException" type="java.io.IOException"/>
  18100. <doc>
  18101. <![CDATA[Constructs a new CBZip2InputStream which decompresses bytes read from the
  18102. specified stream.
  18103. <p>
  18104. Although BZip2 headers are marked with the magic <tt>"Bz"</tt> this
  18105. constructor expects the next byte in the stream to be the first one after
  18106. the magic. Thus callers have to skip the first two bytes. Otherwise this
  18107. constructor will throw an exception.
  18108. </p>
  18109. @throws IOException
  18110. if the stream content is malformed or an I/O error occurs.
  18111. @throws NullPointerException
  18112. if <tt>in == null</tt>]]>
  18113. </doc>
  18114. </constructor>
  18115. <constructor name="CBZip2InputStream" type="java.io.InputStream"
  18116. static="false" final="false" visibility="public"
  18117. deprecated="not deprecated">
  18118. <exception name="IOException" type="java.io.IOException"/>
  18119. </constructor>
  18120. <method name="getProcessedByteCount" return="long"
  18121. abstract="false" native="false" synchronized="false"
  18122. static="false" final="false" visibility="public"
  18123. deprecated="not deprecated">
  18124. <doc>
  18125. <![CDATA[This method reports the processed bytes so far. Please note that this
  18126. statistic is only updated on block boundaries and only when the stream is
  18127. initiated in BYBLOCK mode.]]>
  18128. </doc>
  18129. </method>
  18130. <method name="updateProcessedByteCount"
  18131. abstract="false" native="false" synchronized="false"
  18132. static="false" final="false" visibility="protected"
  18133. deprecated="not deprecated">
  18134. <param name="count" type="int"/>
  18135. <doc>
  18136. <![CDATA[This method keeps track of raw processed compressed
  18137. bytes.
  18138. @param count count is the number of bytes to be
  18139. added to raw processed bytes]]>
  18140. </doc>
  18141. </method>
  18142. <method name="updateReportedByteCount"
  18143. abstract="false" native="false" synchronized="false"
  18144. static="false" final="false" visibility="public"
  18145. deprecated="not deprecated">
  18146. <param name="count" type="int"/>
  18147. <doc>
  18148. <![CDATA[This method is called by the client of this
  18149. class in case there are any corrections in
  18150. the stream position. One common example is
  18151. when client of this code removes starting BZ
  18152. characters from the compressed stream.
  18153. @param count count bytes are added to the reported bytes]]>
  18154. </doc>
  18155. </method>
  18156. <method name="skipToNextMarker" return="boolean"
  18157. abstract="false" native="false" synchronized="false"
  18158. static="false" final="false" visibility="public"
  18159. deprecated="not deprecated">
  18160. <param name="marker" type="long"/>
  18161. <param name="markerBitLength" type="int"/>
  18162. <exception name="IOException" type="java.io.IOException"/>
  18163. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  18164. <doc>
  18165. <![CDATA[This method tries to find the marker (passed to it as the first parameter)
  18166. in the stream. It can find bit patterns of length <= 63 bits. Specifically
  18167. this method is used in CBZip2InputStream to find the end of block (EOB)
  18168. delimiter in the stream, starting from the current position of the stream.
  18169. If marker is found, the stream position will be right after marker at the
  18170. end of this call.
  18171. @param marker The bit pattern to be found in the stream
  18172. @param markerBitLength No of bits in the marker
  18173. @throws IOException
  18174. @throws IllegalArgumentException if marketBitLength is greater than 63]]>
  18175. </doc>
  18176. </method>
  18177. <method name="reportCRCError"
  18178. abstract="false" native="false" synchronized="false"
  18179. static="false" final="false" visibility="protected"
  18180. deprecated="not deprecated">
  18181. <exception name="IOException" type="java.io.IOException"/>
  18182. </method>
  18183. <method name="numberOfBytesTillNextMarker" return="long"
  18184. abstract="false" native="false" synchronized="false"
  18185. static="true" final="false" visibility="public"
  18186. deprecated="not deprecated">
  18187. <param name="in" type="java.io.InputStream"/>
  18188. <exception name="IOException" type="java.io.IOException"/>
  18189. <doc>
  18190. <![CDATA[Returns the number of bytes between the current stream position
  18191. and the immediate next BZip2 block marker.
  18192. @param in
  18193. The InputStream
  18194. @return long Number of bytes between current stream position and the
  18195. next BZip2 block start marker.
  18196. @throws IOException]]>
  18197. </doc>
  18198. </method>
  18199. <method name="read" return="int"
  18200. abstract="false" native="false" synchronized="false"
  18201. static="false" final="false" visibility="public"
  18202. deprecated="not deprecated">
  18203. <exception name="IOException" type="java.io.IOException"/>
  18204. </method>
  18205. <method name="read" return="int"
  18206. abstract="false" native="false" synchronized="false"
  18207. static="false" final="false" visibility="public"
  18208. deprecated="not deprecated">
  18209. <param name="dest" type="byte[]"/>
  18210. <param name="offs" type="int"/>
  18211. <param name="len" type="int"/>
  18212. <exception name="IOException" type="java.io.IOException"/>
  18213. <doc>
  18214. <![CDATA[In CONTINOUS reading mode, this read method starts from the
  18215. start of the compressed stream and end at the end of file by
  18216. emitting un-compressed data. In this mode stream positioning
  18217. is not announced and should be ignored.
  18218. In BYBLOCK reading mode, this read method informs about the end
  18219. of a BZip2 block by returning EOB. At this event, the compressed
  18220. stream position is also announced. This announcement tells that
  18221. how much of the compressed stream has been de-compressed and read
  18222. out of this class. In between EOB events, the stream position is
  18223. not updated.
  18224. @throws IOException
  18225. if the stream content is malformed or an I/O error occurs.
  18226. @return int The return value greater than 0 are the bytes read. A value
  18227. of -1 means end of stream while -2 represents end of block]]>
  18228. </doc>
  18229. </method>
  18230. <method name="close"
  18231. abstract="false" native="false" synchronized="false"
  18232. static="false" final="false" visibility="public"
  18233. deprecated="not deprecated">
  18234. <exception name="IOException" type="java.io.IOException"/>
  18235. </method>
  18236. <field name="BLOCK_DELIMITER" type="long"
  18237. transient="false" volatile="false"
  18238. static="true" final="true" visibility="public"
  18239. deprecated="not deprecated">
  18240. </field>
  18241. <field name="EOS_DELIMITER" type="long"
  18242. transient="false" volatile="false"
  18243. static="true" final="true" visibility="public"
  18244. deprecated="not deprecated">
  18245. </field>
  18246. <doc>
  18247. <![CDATA[An input stream that decompresses from the BZip2 format (without the file
  18248. header chars) to be read as any other stream.
  18249. <p>
  18250. The decompression requires large amounts of memory. Thus you should call the
  18251. {@link #close() close()} method as soon as possible, to force
  18252. <tt>CBZip2InputStream</tt> to release the allocated memory. See
  18253. {@link CBZip2OutputStream CBZip2OutputStream} for information about memory
  18254. usage.
  18255. </p>
  18256. <p>
  18257. <tt>CBZip2InputStream</tt> reads bytes from the compressed source stream via
  18258. the single byte {@link java.io.InputStream#read() read()} method exclusively.
  18259. Thus you should consider to use a buffered source stream.
  18260. </p>
  18261. <p>
  18262. Instances of this class are not threadsafe.
  18263. </p>]]>
  18264. </doc>
  18265. </class>
  18266. <!-- end class org.apache.hadoop.io.compress.bzip2.CBZip2InputStream -->
  18267. <!-- start class org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE -->
  18268. <class name="CBZip2InputStream.STATE" extends="java.lang.Enum"
  18269. abstract="false"
  18270. static="true" final="true" visibility="public"
  18271. deprecated="not deprecated">
  18272. <method name="values" return="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE[]"
  18273. abstract="false" native="false" synchronized="false"
  18274. static="true" final="false" visibility="public"
  18275. deprecated="not deprecated">
  18276. </method>
  18277. <method name="valueOf" return="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE"
  18278. abstract="false" native="false" synchronized="false"
  18279. static="true" final="false" visibility="public"
  18280. deprecated="not deprecated">
  18281. <param name="name" type="java.lang.String"/>
  18282. </method>
  18283. <field name="EOF" type="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE"
  18284. transient="false" volatile="false"
  18285. static="true" final="true" visibility="public"
  18286. deprecated="not deprecated">
  18287. </field>
  18288. <field name="START_BLOCK_STATE" type="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE"
  18289. transient="false" volatile="false"
  18290. static="true" final="true" visibility="public"
  18291. deprecated="not deprecated">
  18292. </field>
  18293. <field name="RAND_PART_A_STATE" type="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE"
  18294. transient="false" volatile="false"
  18295. static="true" final="true" visibility="public"
  18296. deprecated="not deprecated">
  18297. </field>
  18298. <field name="RAND_PART_B_STATE" type="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE"
  18299. transient="false" volatile="false"
  18300. static="true" final="true" visibility="public"
  18301. deprecated="not deprecated">
  18302. </field>
  18303. <field name="RAND_PART_C_STATE" type="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE"
  18304. transient="false" volatile="false"
  18305. static="true" final="true" visibility="public"
  18306. deprecated="not deprecated">
  18307. </field>
  18308. <field name="NO_RAND_PART_A_STATE" type="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE"
  18309. transient="false" volatile="false"
  18310. static="true" final="true" visibility="public"
  18311. deprecated="not deprecated">
  18312. </field>
  18313. <field name="NO_RAND_PART_B_STATE" type="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE"
  18314. transient="false" volatile="false"
  18315. static="true" final="true" visibility="public"
  18316. deprecated="not deprecated">
  18317. </field>
  18318. <field name="NO_RAND_PART_C_STATE" type="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE"
  18319. transient="false" volatile="false"
  18320. static="true" final="true" visibility="public"
  18321. deprecated="not deprecated">
  18322. </field>
  18323. <field name="NO_PROCESS_STATE" type="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE"
  18324. transient="false" volatile="false"
  18325. static="true" final="true" visibility="public"
  18326. deprecated="not deprecated">
  18327. </field>
  18328. <doc>
  18329. <![CDATA[A state machine to keep track of current state of the de-coder]]>
  18330. </doc>
  18331. </class>
  18332. <!-- end class org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE -->
  18333. <!-- start class org.apache.hadoop.io.compress.bzip2.CBZip2OutputStream -->
  18334. <class name="CBZip2OutputStream" extends="java.io.OutputStream"
  18335. abstract="false"
  18336. static="false" final="false" visibility="public"
  18337. deprecated="not deprecated">
  18338. <implements name="org.apache.hadoop.io.compress.bzip2.BZip2Constants"/>
  18339. <constructor name="CBZip2OutputStream" type="java.io.OutputStream"
  18340. static="false" final="false" visibility="public"
  18341. deprecated="not deprecated">
  18342. <exception name="IOException" type="java.io.IOException"/>
  18343. <doc>
  18344. <![CDATA[Constructs a new <tt>CBZip2OutputStream</tt> with a blocksize of 900k.
  18345. <p>
  18346. <b>Attention: </b>The caller is resonsible to write the two BZip2 magic
  18347. bytes <tt>"BZ"</tt> to the specified stream prior to calling this
  18348. constructor.
  18349. </p>
  18350. @param out *
  18351. the destination stream.
  18352. @throws IOException
  18353. if an I/O error occurs in the specified stream.
  18354. @throws NullPointerException
  18355. if <code>out == null</code>.]]>
  18356. </doc>
  18357. </constructor>
  18358. <constructor name="CBZip2OutputStream" type="java.io.OutputStream, int"
  18359. static="false" final="false" visibility="public"
  18360. deprecated="not deprecated">
  18361. <exception name="IOException" type="java.io.IOException"/>
  18362. <doc>
  18363. <![CDATA[Constructs a new <tt>CBZip2OutputStream</tt> with specified blocksize.
  18364. <p>
  18365. <b>Attention: </b>The caller is resonsible to write the two BZip2 magic
  18366. bytes <tt>"BZ"</tt> to the specified stream prior to calling this
  18367. constructor.
  18368. </p>
  18369. @param out
  18370. the destination stream.
  18371. @param blockSize
  18372. the blockSize as 100k units.
  18373. @throws IOException
  18374. if an I/O error occurs in the specified stream.
  18375. @throws IllegalArgumentException
  18376. if <code>(blockSize < 1) || (blockSize > 9)</code>.
  18377. @throws NullPointerException
  18378. if <code>out == null</code>.
  18379. @see #MIN_BLOCKSIZE
  18380. @see #MAX_BLOCKSIZE]]>
  18381. </doc>
  18382. </constructor>
  18383. <method name="hbMakeCodeLengths"
  18384. abstract="false" native="false" synchronized="false"
  18385. static="true" final="false" visibility="protected"
  18386. deprecated="not deprecated">
  18387. <param name="len" type="char[]"/>
  18388. <param name="freq" type="int[]"/>
  18389. <param name="alphaSize" type="int"/>
  18390. <param name="maxLen" type="int"/>
  18391. <doc>
  18392. <![CDATA[This method is accessible by subclasses for historical purposes. If you
  18393. don't know what it does then you don't need it.]]>
  18394. </doc>
  18395. </method>
  18396. <method name="chooseBlockSize" return="int"
  18397. abstract="false" native="false" synchronized="false"
  18398. static="true" final="false" visibility="public"
  18399. deprecated="not deprecated">
  18400. <param name="inputLength" type="long"/>
  18401. <doc>
  18402. <![CDATA[Chooses a blocksize based on the given length of the data to compress.
  18403. @return The blocksize, between {@link #MIN_BLOCKSIZE} and
  18404. {@link #MAX_BLOCKSIZE} both inclusive. For a negative
  18405. <tt>inputLength</tt> this method returns <tt>MAX_BLOCKSIZE</tt>
  18406. always.
  18407. @param inputLength
  18408. The length of the data which will be compressed by
  18409. <tt>CBZip2OutputStream</tt>.]]>
  18410. </doc>
  18411. </method>
  18412. <method name="write"
  18413. abstract="false" native="false" synchronized="false"
  18414. static="false" final="false" visibility="public"
  18415. deprecated="not deprecated">
  18416. <param name="b" type="int"/>
  18417. <exception name="IOException" type="java.io.IOException"/>
  18418. </method>
  18419. <method name="finalize"
  18420. abstract="false" native="false" synchronized="false"
  18421. static="false" final="false" visibility="protected"
  18422. deprecated="not deprecated">
  18423. <exception name="Throwable" type="java.lang.Throwable"/>
  18424. <doc>
  18425. <![CDATA[Overriden to close the stream.]]>
  18426. </doc>
  18427. </method>
  18428. <method name="finish"
  18429. abstract="false" native="false" synchronized="false"
  18430. static="false" final="false" visibility="public"
  18431. deprecated="not deprecated">
  18432. <exception name="IOException" type="java.io.IOException"/>
  18433. </method>
  18434. <method name="close"
  18435. abstract="false" native="false" synchronized="false"
  18436. static="false" final="false" visibility="public"
  18437. deprecated="not deprecated">
  18438. <exception name="IOException" type="java.io.IOException"/>
  18439. </method>
  18440. <method name="flush"
  18441. abstract="false" native="false" synchronized="false"
  18442. static="false" final="false" visibility="public"
  18443. deprecated="not deprecated">
  18444. <exception name="IOException" type="java.io.IOException"/>
  18445. </method>
  18446. <method name="getBlockSize" return="int"
  18447. abstract="false" native="false" synchronized="false"
  18448. static="false" final="true" visibility="public"
  18449. deprecated="not deprecated">
  18450. <doc>
  18451. <![CDATA[Returns the blocksize parameter specified at construction time.]]>
  18452. </doc>
  18453. </method>
  18454. <method name="write"
  18455. abstract="false" native="false" synchronized="false"
  18456. static="false" final="false" visibility="public"
  18457. deprecated="not deprecated">
  18458. <param name="buf" type="byte[]"/>
  18459. <param name="offs" type="int"/>
  18460. <param name="len" type="int"/>
  18461. <exception name="IOException" type="java.io.IOException"/>
  18462. </method>
  18463. <field name="MIN_BLOCKSIZE" type="int"
  18464. transient="false" volatile="false"
  18465. static="true" final="true" visibility="public"
  18466. deprecated="not deprecated">
  18467. <doc>
  18468. <![CDATA[The minimum supported blocksize <tt> == 1</tt>.]]>
  18469. </doc>
  18470. </field>
  18471. <field name="MAX_BLOCKSIZE" type="int"
  18472. transient="false" volatile="false"
  18473. static="true" final="true" visibility="public"
  18474. deprecated="not deprecated">
  18475. <doc>
  18476. <![CDATA[The maximum supported blocksize <tt> == 9</tt>.]]>
  18477. </doc>
  18478. </field>
  18479. <field name="SETMASK" type="int"
  18480. transient="false" volatile="false"
  18481. static="true" final="true" visibility="protected"
  18482. deprecated="not deprecated">
  18483. <doc>
  18484. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  18485. don't know what it means then you don't need it.]]>
  18486. </doc>
  18487. </field>
  18488. <field name="CLEARMASK" type="int"
  18489. transient="false" volatile="false"
  18490. static="true" final="true" visibility="protected"
  18491. deprecated="not deprecated">
  18492. <doc>
  18493. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  18494. don't know what it means then you don't need it.]]>
  18495. </doc>
  18496. </field>
  18497. <field name="GREATER_ICOST" type="int"
  18498. transient="false" volatile="false"
  18499. static="true" final="true" visibility="protected"
  18500. deprecated="not deprecated">
  18501. <doc>
  18502. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  18503. don't know what it means then you don't need it.]]>
  18504. </doc>
  18505. </field>
  18506. <field name="LESSER_ICOST" type="int"
  18507. transient="false" volatile="false"
  18508. static="true" final="true" visibility="protected"
  18509. deprecated="not deprecated">
  18510. <doc>
  18511. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  18512. don't know what it means then you don't need it.]]>
  18513. </doc>
  18514. </field>
  18515. <field name="SMALL_THRESH" type="int"
  18516. transient="false" volatile="false"
  18517. static="true" final="true" visibility="protected"
  18518. deprecated="not deprecated">
  18519. <doc>
  18520. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  18521. don't know what it means then you don't need it.]]>
  18522. </doc>
  18523. </field>
  18524. <field name="DEPTH_THRESH" type="int"
  18525. transient="false" volatile="false"
  18526. static="true" final="true" visibility="protected"
  18527. deprecated="not deprecated">
  18528. <doc>
  18529. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  18530. don't know what it means then you don't need it.]]>
  18531. </doc>
  18532. </field>
  18533. <field name="WORK_FACTOR" type="int"
  18534. transient="false" volatile="false"
  18535. static="true" final="true" visibility="protected"
  18536. deprecated="not deprecated">
  18537. <doc>
  18538. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  18539. don't know what it means then you don't need it.]]>
  18540. </doc>
  18541. </field>
  18542. <field name="QSORT_STACK_SIZE" type="int"
  18543. transient="false" volatile="false"
  18544. static="true" final="true" visibility="protected"
  18545. deprecated="not deprecated">
  18546. <doc>
  18547. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  18548. don't know what it means then you don't need it.
  18549. <p>
  18550. If you are ever unlucky/improbable enough to get a stack overflow whilst
  18551. sorting, increase the following constant and try again. In practice I
  18552. have never seen the stack go above 27 elems, so the following limit seems
  18553. very generous.
  18554. </p>]]>
  18555. </doc>
  18556. </field>
  18557. <doc>
  18558. <![CDATA[An output stream that compresses into the BZip2 format (without the file
  18559. header chars) into another stream.
  18560. <p>
  18561. The compression requires large amounts of memory. Thus you should call the
  18562. {@link #close() close()} method as soon as possible, to force
  18563. <tt>CBZip2OutputStream</tt> to release the allocated memory.
  18564. </p>
  18565. <p>
  18566. You can shrink the amount of allocated memory and maybe raise the compression
  18567. speed by choosing a lower blocksize, which in turn may cause a lower
  18568. compression ratio. You can avoid unnecessary memory allocation by avoiding
  18569. using a blocksize which is bigger than the size of the input.
  18570. </p>
  18571. <p>
  18572. You can compute the memory usage for compressing by the following formula:
  18573. </p>
  18574. <pre>
  18575. &lt;code&gt;400k + (9 * blocksize)&lt;/code&gt;.
  18576. </pre>
  18577. <p>
  18578. To get the memory required for decompression by {@link CBZip2InputStream
  18579. CBZip2InputStream} use
  18580. </p>
  18581. <pre>
  18582. &lt;code&gt;65k + (5 * blocksize)&lt;/code&gt;.
  18583. </pre>
  18584. <table width="100%" border="1">
  18585. <colgroup> <col width="33%" /> <col width="33%" /> <col width="33%" />
  18586. </colgroup>
  18587. <tr>
  18588. <th colspan="3">Memory usage by blocksize</th>
  18589. </tr>
  18590. <tr>
  18591. <th align="right">Blocksize</th> <th align="right">Compression<br>
  18592. memory usage</th> <th align="right">Decompression<br>
  18593. memory usage</th>
  18594. </tr>
  18595. <tr>
  18596. <td align="right">100k</td>
  18597. <td align="right">1300k</td>
  18598. <td align="right">565k</td>
  18599. </tr>
  18600. <tr>
  18601. <td align="right">200k</td>
  18602. <td align="right">2200k</td>
  18603. <td align="right">1065k</td>
  18604. </tr>
  18605. <tr>
  18606. <td align="right">300k</td>
  18607. <td align="right">3100k</td>
  18608. <td align="right">1565k</td>
  18609. </tr>
  18610. <tr>
  18611. <td align="right">400k</td>
  18612. <td align="right">4000k</td>
  18613. <td align="right">2065k</td>
  18614. </tr>
  18615. <tr>
  18616. <td align="right">500k</td>
  18617. <td align="right">4900k</td>
  18618. <td align="right">2565k</td>
  18619. </tr>
  18620. <tr>
  18621. <td align="right">600k</td>
  18622. <td align="right">5800k</td>
  18623. <td align="right">3065k</td>
  18624. </tr>
  18625. <tr>
  18626. <td align="right">700k</td>
  18627. <td align="right">6700k</td>
  18628. <td align="right">3565k</td>
  18629. </tr>
  18630. <tr>
  18631. <td align="right">800k</td>
  18632. <td align="right">7600k</td>
  18633. <td align="right">4065k</td>
  18634. </tr>
  18635. <tr>
  18636. <td align="right">900k</td>
  18637. <td align="right">8500k</td>
  18638. <td align="right">4565k</td>
  18639. </tr>
  18640. </table>
  18641. <p>
  18642. For decompression <tt>CBZip2InputStream</tt> allocates less memory if the
  18643. bzipped input is smaller than one block.
  18644. </p>
  18645. <p>
  18646. Instances of this class are not threadsafe.
  18647. </p>
  18648. <p>
  18649. TODO: Update to BZip2 1.0.1
  18650. </p>]]>
  18651. </doc>
  18652. </class>
  18653. <!-- end class org.apache.hadoop.io.compress.bzip2.CBZip2OutputStream -->
  18654. </package>
  18655. <package name="org.apache.hadoop.io.compress.snappy">
  18656. <!-- start class org.apache.hadoop.io.compress.snappy.LoadSnappy -->
  18657. <class name="LoadSnappy" extends="java.lang.Object"
  18658. abstract="false"
  18659. static="false" final="false" visibility="public"
  18660. deprecated="not deprecated">
  18661. <constructor name="LoadSnappy"
  18662. static="false" final="false" visibility="public"
  18663. deprecated="not deprecated">
  18664. </constructor>
  18665. <method name="isAvailable" return="boolean"
  18666. abstract="false" native="false" synchronized="false"
  18667. static="true" final="false" visibility="public"
  18668. deprecated="not deprecated">
  18669. <doc>
  18670. <![CDATA[Returns if Snappy native library is loaded.
  18671. @return <code>true</code> if Snappy native library is loaded,
  18672. <code>false</code> if not.]]>
  18673. </doc>
  18674. </method>
  18675. <method name="isLoaded" return="boolean"
  18676. abstract="false" native="false" synchronized="false"
  18677. static="true" final="false" visibility="public"
  18678. deprecated="not deprecated">
  18679. <doc>
  18680. <![CDATA[Returns if Snappy native library is loaded.
  18681. @return <code>true</code> if Snappy native library is loaded,
  18682. <code>false</code> if not.]]>
  18683. </doc>
  18684. </method>
  18685. <doc>
  18686. <![CDATA[Determines if Snappy native library is available and loads it if available.]]>
  18687. </doc>
  18688. </class>
  18689. <!-- end class org.apache.hadoop.io.compress.snappy.LoadSnappy -->
  18690. <!-- start class org.apache.hadoop.io.compress.snappy.SnappyCompressor -->
  18691. <class name="SnappyCompressor" extends="java.lang.Object"
  18692. abstract="false"
  18693. static="false" final="false" visibility="public"
  18694. deprecated="not deprecated">
  18695. <implements name="org.apache.hadoop.io.compress.Compressor"/>
  18696. <constructor name="SnappyCompressor" type="int"
  18697. static="false" final="false" visibility="public"
  18698. deprecated="not deprecated">
  18699. <doc>
  18700. <![CDATA[Creates a new compressor.
  18701. @param directBufferSize size of the direct buffer to be used.]]>
  18702. </doc>
  18703. </constructor>
  18704. <constructor name="SnappyCompressor"
  18705. static="false" final="false" visibility="public"
  18706. deprecated="not deprecated">
  18707. <doc>
  18708. <![CDATA[Creates a new compressor with the default buffer size.]]>
  18709. </doc>
  18710. </constructor>
  18711. <method name="setInput"
  18712. abstract="false" native="false" synchronized="true"
  18713. static="false" final="false" visibility="public"
  18714. deprecated="not deprecated">
  18715. <param name="b" type="byte[]"/>
  18716. <param name="off" type="int"/>
  18717. <param name="len" type="int"/>
  18718. <doc>
  18719. <![CDATA[Sets input data for compression.
  18720. This should be called whenever #needsInput() returns
  18721. <code>true</code> indicating that more input data is required.
  18722. @param b Input data
  18723. @param off Start offset
  18724. @param len Length]]>
  18725. </doc>
  18726. </method>
  18727. <method name="setDictionary"
  18728. abstract="false" native="false" synchronized="true"
  18729. static="false" final="false" visibility="public"
  18730. deprecated="not deprecated">
  18731. <param name="b" type="byte[]"/>
  18732. <param name="off" type="int"/>
  18733. <param name="len" type="int"/>
  18734. <doc>
  18735. <![CDATA[Does nothing.]]>
  18736. </doc>
  18737. </method>
  18738. <method name="needsInput" return="boolean"
  18739. abstract="false" native="false" synchronized="true"
  18740. static="false" final="false" visibility="public"
  18741. deprecated="not deprecated">
  18742. <doc>
  18743. <![CDATA[Returns true if the input data buffer is empty and
  18744. #setInput() should be called to provide more input.
  18745. @return <code>true</code> if the input data buffer is empty and
  18746. #setInput() should be called in order to provide more input.]]>
  18747. </doc>
  18748. </method>
  18749. <method name="finish"
  18750. abstract="false" native="false" synchronized="true"
  18751. static="false" final="false" visibility="public"
  18752. deprecated="not deprecated">
  18753. <doc>
  18754. <![CDATA[When called, indicates that compression should end
  18755. with the current contents of the input buffer.]]>
  18756. </doc>
  18757. </method>
  18758. <method name="finished" return="boolean"
  18759. abstract="false" native="false" synchronized="true"
  18760. static="false" final="false" visibility="public"
  18761. deprecated="not deprecated">
  18762. <doc>
  18763. <![CDATA[Returns true if the end of the compressed
  18764. data output stream has been reached.
  18765. @return <code>true</code> if the end of the compressed
  18766. data output stream has been reached.]]>
  18767. </doc>
  18768. </method>
  18769. <method name="compress" return="int"
  18770. abstract="false" native="false" synchronized="true"
  18771. static="false" final="false" visibility="public"
  18772. deprecated="not deprecated">
  18773. <param name="b" type="byte[]"/>
  18774. <param name="off" type="int"/>
  18775. <param name="len" type="int"/>
  18776. <exception name="IOException" type="java.io.IOException"/>
  18777. <doc>
  18778. <![CDATA[Fills specified buffer with compressed data. Returns actual number
  18779. of bytes of compressed data. A return value of 0 indicates that
  18780. needsInput() should be called in order to determine if more input
  18781. data is required.
  18782. @param b Buffer for the compressed data
  18783. @param off Start offset of the data
  18784. @param len Size of the buffer
  18785. @return The actual number of bytes of compressed data.]]>
  18786. </doc>
  18787. </method>
  18788. <method name="reset"
  18789. abstract="false" native="false" synchronized="true"
  18790. static="false" final="false" visibility="public"
  18791. deprecated="not deprecated">
  18792. <doc>
  18793. <![CDATA[Resets compressor so that a new set of input data can be processed.]]>
  18794. </doc>
  18795. </method>
  18796. <method name="reinit"
  18797. abstract="false" native="false" synchronized="true"
  18798. static="false" final="false" visibility="public"
  18799. deprecated="not deprecated">
  18800. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18801. <doc>
  18802. <![CDATA[Prepare the compressor to be used in a new stream with settings defined in
  18803. the given Configuration
  18804. @param conf Configuration from which new setting are fetched]]>
  18805. </doc>
  18806. </method>
  18807. <method name="getBytesRead" return="long"
  18808. abstract="false" native="false" synchronized="true"
  18809. static="false" final="false" visibility="public"
  18810. deprecated="not deprecated">
  18811. <doc>
  18812. <![CDATA[Return number of bytes given to this compressor since last reset.]]>
  18813. </doc>
  18814. </method>
  18815. <method name="getBytesWritten" return="long"
  18816. abstract="false" native="false" synchronized="true"
  18817. static="false" final="false" visibility="public"
  18818. deprecated="not deprecated">
  18819. <doc>
  18820. <![CDATA[Return number of bytes consumed by callers of compress since last reset.]]>
  18821. </doc>
  18822. </method>
  18823. <method name="end"
  18824. abstract="false" native="false" synchronized="true"
  18825. static="false" final="false" visibility="public"
  18826. deprecated="not deprecated">
  18827. <doc>
  18828. <![CDATA[Closes the compressor and discards any unprocessed input.]]>
  18829. </doc>
  18830. </method>
  18831. <doc>
  18832. <![CDATA[A {@link Compressor} based on the snappy compression algorithm.
  18833. http://code.google.com/p/snappy/]]>
  18834. </doc>
  18835. </class>
  18836. <!-- end class org.apache.hadoop.io.compress.snappy.SnappyCompressor -->
  18837. <!-- start class org.apache.hadoop.io.compress.snappy.SnappyDecompressor -->
  18838. <class name="SnappyDecompressor" extends="java.lang.Object"
  18839. abstract="false"
  18840. static="false" final="false" visibility="public"
  18841. deprecated="not deprecated">
  18842. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  18843. <constructor name="SnappyDecompressor" type="int"
  18844. static="false" final="false" visibility="public"
  18845. deprecated="not deprecated">
  18846. <doc>
  18847. <![CDATA[Creates a new compressor.
  18848. @param directBufferSize size of the direct buffer to be used.]]>
  18849. </doc>
  18850. </constructor>
  18851. <constructor name="SnappyDecompressor"
  18852. static="false" final="false" visibility="public"
  18853. deprecated="not deprecated">
  18854. <doc>
  18855. <![CDATA[Creates a new decompressor with the default buffer size.]]>
  18856. </doc>
  18857. </constructor>
  18858. <method name="setInput"
  18859. abstract="false" native="false" synchronized="true"
  18860. static="false" final="false" visibility="public"
  18861. deprecated="not deprecated">
  18862. <param name="b" type="byte[]"/>
  18863. <param name="off" type="int"/>
  18864. <param name="len" type="int"/>
  18865. <doc>
  18866. <![CDATA[Sets input data for decompression.
  18867. This should be called if and only if {@link #needsInput()} returns
  18868. <code>true</code> indicating that more input data is required.
  18869. (Both native and non-native versions of various Decompressors require
  18870. that the data passed in via <code>b[]</code> remain unmodified until
  18871. the caller is explicitly notified--via {@link #needsInput()}--that the
  18872. buffer may be safely modified. With this requirement, an extra
  18873. buffer-copy can be avoided.)
  18874. @param b Input data
  18875. @param off Start offset
  18876. @param len Length]]>
  18877. </doc>
  18878. </method>
  18879. <method name="setDictionary"
  18880. abstract="false" native="false" synchronized="true"
  18881. static="false" final="false" visibility="public"
  18882. deprecated="not deprecated">
  18883. <param name="b" type="byte[]"/>
  18884. <param name="off" type="int"/>
  18885. <param name="len" type="int"/>
  18886. <doc>
  18887. <![CDATA[Does nothing.]]>
  18888. </doc>
  18889. </method>
  18890. <method name="needsInput" return="boolean"
  18891. abstract="false" native="false" synchronized="true"
  18892. static="false" final="false" visibility="public"
  18893. deprecated="not deprecated">
  18894. <doc>
  18895. <![CDATA[Returns true if the input data buffer is empty and
  18896. {@link #setInput(byte[], int, int)} should be called to
  18897. provide more input.
  18898. @return <code>true</code> if the input data buffer is empty and
  18899. {@link #setInput(byte[], int, int)} should be called in
  18900. order to provide more input.]]>
  18901. </doc>
  18902. </method>
  18903. <method name="needsDictionary" return="boolean"
  18904. abstract="false" native="false" synchronized="true"
  18905. static="false" final="false" visibility="public"
  18906. deprecated="not deprecated">
  18907. <doc>
  18908. <![CDATA[Returns <code>false</code>.
  18909. @return <code>false</code>.]]>
  18910. </doc>
  18911. </method>
  18912. <method name="finished" return="boolean"
  18913. abstract="false" native="false" synchronized="true"
  18914. static="false" final="false" visibility="public"
  18915. deprecated="not deprecated">
  18916. <doc>
  18917. <![CDATA[Returns true if the end of the decompressed
  18918. data output stream has been reached.
  18919. @return <code>true</code> if the end of the decompressed
  18920. data output stream has been reached.]]>
  18921. </doc>
  18922. </method>
  18923. <method name="decompress" return="int"
  18924. abstract="false" native="false" synchronized="true"
  18925. static="false" final="false" visibility="public"
  18926. deprecated="not deprecated">
  18927. <param name="b" type="byte[]"/>
  18928. <param name="off" type="int"/>
  18929. <param name="len" type="int"/>
  18930. <exception name="IOException" type="java.io.IOException"/>
  18931. <doc>
  18932. <![CDATA[Fills specified buffer with uncompressed data. Returns actual number
  18933. of bytes of uncompressed data. A return value of 0 indicates that
  18934. {@link #needsInput()} should be called in order to determine if more
  18935. input data is required.
  18936. @param b Buffer for the compressed data
  18937. @param off Start offset of the data
  18938. @param len Size of the buffer
  18939. @return The actual number of bytes of compressed data.
  18940. @throws IOException]]>
  18941. </doc>
  18942. </method>
  18943. <method name="getRemaining" return="int"
  18944. abstract="false" native="false" synchronized="true"
  18945. static="false" final="false" visibility="public"
  18946. deprecated="not deprecated">
  18947. <doc>
  18948. <![CDATA[Returns <code>0</code>.
  18949. @return <code>0</code>.]]>
  18950. </doc>
  18951. </method>
  18952. <method name="reset"
  18953. abstract="false" native="false" synchronized="true"
  18954. static="false" final="false" visibility="public"
  18955. deprecated="not deprecated">
  18956. </method>
  18957. <method name="end"
  18958. abstract="false" native="false" synchronized="true"
  18959. static="false" final="false" visibility="public"
  18960. deprecated="not deprecated">
  18961. <doc>
  18962. <![CDATA[Resets decompressor and input and output buffers so that a new set of
  18963. input data can be processed.]]>
  18964. </doc>
  18965. </method>
  18966. <doc>
  18967. <![CDATA[A {@link Decompressor} based on the snappy compression algorithm.
  18968. http://code.google.com/p/snappy/]]>
  18969. </doc>
  18970. </class>
  18971. <!-- end class org.apache.hadoop.io.compress.snappy.SnappyDecompressor -->
  18972. </package>
  18973. <package name="org.apache.hadoop.io.compress.zlib">
  18974. <!-- start class org.apache.hadoop.io.compress.zlib.BuiltInGzipDecompressor -->
  18975. <class name="BuiltInGzipDecompressor" extends="java.lang.Object"
  18976. abstract="false"
  18977. static="false" final="false" visibility="public"
  18978. deprecated="not deprecated">
  18979. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  18980. <constructor name="BuiltInGzipDecompressor"
  18981. static="false" final="false" visibility="public"
  18982. deprecated="not deprecated">
  18983. <doc>
  18984. <![CDATA[Creates a new (pure Java) gzip decompressor.]]>
  18985. </doc>
  18986. </constructor>
  18987. <method name="needsInput" return="boolean"
  18988. abstract="false" native="false" synchronized="true"
  18989. static="false" final="false" visibility="public"
  18990. deprecated="not deprecated">
  18991. <doc>
  18992. <![CDATA[{@inheritDoc}]]>
  18993. </doc>
  18994. </method>
  18995. <method name="setInput"
  18996. abstract="false" native="false" synchronized="true"
  18997. static="false" final="false" visibility="public"
  18998. deprecated="not deprecated">
  18999. <param name="b" type="byte[]"/>
  19000. <param name="off" type="int"/>
  19001. <param name="len" type="int"/>
  19002. <doc>
  19003. <![CDATA[{@inheritDoc}]]>
  19004. </doc>
  19005. </method>
  19006. <method name="decompress" return="int"
  19007. abstract="false" native="false" synchronized="true"
  19008. static="false" final="false" visibility="public"
  19009. deprecated="not deprecated">
  19010. <param name="b" type="byte[]"/>
  19011. <param name="off" type="int"/>
  19012. <param name="len" type="int"/>
  19013. <exception name="IOException" type="java.io.IOException"/>
  19014. <doc>
  19015. <![CDATA[Decompress the data (gzip header, deflate stream, gzip trailer) in the
  19016. provided buffer.
  19017. @return the number of decompressed bytes placed into b]]>
  19018. </doc>
  19019. </method>
  19020. <method name="getBytesRead" return="long"
  19021. abstract="false" native="false" synchronized="true"
  19022. static="false" final="false" visibility="public"
  19023. deprecated="not deprecated">
  19024. <doc>
  19025. <![CDATA[Returns the total number of compressed bytes input so far, including
  19026. gzip header/trailer bytes.</p>
  19027. @return the total (non-negative) number of compressed bytes read so far]]>
  19028. </doc>
  19029. </method>
  19030. <method name="getRemaining" return="int"
  19031. abstract="false" native="false" synchronized="true"
  19032. static="false" final="false" visibility="public"
  19033. deprecated="not deprecated">
  19034. <doc>
  19035. <![CDATA[Returns the number of bytes remaining in the input buffer; normally
  19036. called when finished() is true to determine amount of post-gzip-stream
  19037. data. Note that, other than the finished state with concatenated data
  19038. after the end of the current gzip stream, this will never return a
  19039. non-zero value unless called after {@link #setInput(byte[] b, int off,
  19040. int len)} and before {@link #decompress(byte[] b, int off, int len)}.
  19041. (That is, after {@link #decompress(byte[] b, int off, int len)} it
  19042. always returns zero, except in finished state with concatenated data.)</p>
  19043. @return the total (non-negative) number of unprocessed bytes in input]]>
  19044. </doc>
  19045. </method>
  19046. <method name="needsDictionary" return="boolean"
  19047. abstract="false" native="false" synchronized="true"
  19048. static="false" final="false" visibility="public"
  19049. deprecated="not deprecated">
  19050. <doc>
  19051. <![CDATA[{@inheritDoc}]]>
  19052. </doc>
  19053. </method>
  19054. <method name="setDictionary"
  19055. abstract="false" native="false" synchronized="true"
  19056. static="false" final="false" visibility="public"
  19057. deprecated="not deprecated">
  19058. <param name="b" type="byte[]"/>
  19059. <param name="off" type="int"/>
  19060. <param name="len" type="int"/>
  19061. <doc>
  19062. <![CDATA[{@inheritDoc}]]>
  19063. </doc>
  19064. </method>
  19065. <method name="finished" return="boolean"
  19066. abstract="false" native="false" synchronized="true"
  19067. static="false" final="false" visibility="public"
  19068. deprecated="not deprecated">
  19069. <doc>
  19070. <![CDATA[Returns true if the end of the gzip substream (single "member") has been
  19071. reached.</p>]]>
  19072. </doc>
  19073. </method>
  19074. <method name="reset"
  19075. abstract="false" native="false" synchronized="true"
  19076. static="false" final="false" visibility="public"
  19077. deprecated="not deprecated">
  19078. <doc>
  19079. <![CDATA[Resets everything, including the input buffer, regardless of whether the
  19080. current gzip substream is finished.</p>]]>
  19081. </doc>
  19082. </method>
  19083. <method name="end"
  19084. abstract="false" native="false" synchronized="true"
  19085. static="false" final="false" visibility="public"
  19086. deprecated="not deprecated">
  19087. <doc>
  19088. <![CDATA[{@inheritDoc}]]>
  19089. </doc>
  19090. </method>
  19091. <doc>
  19092. <![CDATA[A {@link Decompressor} based on the popular gzip compressed file format.
  19093. http://www.gzip.org/]]>
  19094. </doc>
  19095. </class>
  19096. <!-- end class org.apache.hadoop.io.compress.zlib.BuiltInGzipDecompressor -->
  19097. <!-- start class org.apache.hadoop.io.compress.zlib.BuiltInZlibDeflater -->
  19098. <class name="BuiltInZlibDeflater" extends="java.util.zip.Deflater"
  19099. abstract="false"
  19100. static="false" final="false" visibility="public"
  19101. deprecated="not deprecated">
  19102. <implements name="org.apache.hadoop.io.compress.Compressor"/>
  19103. <constructor name="BuiltInZlibDeflater" type="int, boolean"
  19104. static="false" final="false" visibility="public"
  19105. deprecated="not deprecated">
  19106. </constructor>
  19107. <constructor name="BuiltInZlibDeflater" type="int"
  19108. static="false" final="false" visibility="public"
  19109. deprecated="not deprecated">
  19110. </constructor>
  19111. <constructor name="BuiltInZlibDeflater"
  19112. static="false" final="false" visibility="public"
  19113. deprecated="not deprecated">
  19114. </constructor>
  19115. <method name="compress" return="int"
  19116. abstract="false" native="false" synchronized="true"
  19117. static="false" final="false" visibility="public"
  19118. deprecated="not deprecated">
  19119. <param name="b" type="byte[]"/>
  19120. <param name="off" type="int"/>
  19121. <param name="len" type="int"/>
  19122. <exception name="IOException" type="java.io.IOException"/>
  19123. </method>
  19124. <method name="reinit"
  19125. abstract="false" native="false" synchronized="false"
  19126. static="false" final="false" visibility="public"
  19127. deprecated="not deprecated">
  19128. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19129. <doc>
  19130. <![CDATA[reinit the compressor with the given configuration. It will reset the
  19131. compressor's compression level and compression strategy. Different from
  19132. <tt>ZlibCompressor</tt>, <tt>BuiltInZlibDeflater</tt> only support three
  19133. kind of compression strategy: FILTERED, HUFFMAN_ONLY and DEFAULT_STRATEGY.
  19134. It will use DEFAULT_STRATEGY as default if the configured compression
  19135. strategy is not supported.]]>
  19136. </doc>
  19137. </method>
  19138. <doc>
  19139. <![CDATA[A wrapper around java.util.zip.Deflater to make it conform
  19140. to org.apache.hadoop.io.compress.Compressor interface.]]>
  19141. </doc>
  19142. </class>
  19143. <!-- end class org.apache.hadoop.io.compress.zlib.BuiltInZlibDeflater -->
  19144. <!-- start class org.apache.hadoop.io.compress.zlib.BuiltInZlibInflater -->
  19145. <class name="BuiltInZlibInflater" extends="java.util.zip.Inflater"
  19146. abstract="false"
  19147. static="false" final="false" visibility="public"
  19148. deprecated="not deprecated">
  19149. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  19150. <constructor name="BuiltInZlibInflater" type="boolean"
  19151. static="false" final="false" visibility="public"
  19152. deprecated="not deprecated">
  19153. </constructor>
  19154. <constructor name="BuiltInZlibInflater"
  19155. static="false" final="false" visibility="public"
  19156. deprecated="not deprecated">
  19157. </constructor>
  19158. <method name="decompress" return="int"
  19159. abstract="false" native="false" synchronized="true"
  19160. static="false" final="false" visibility="public"
  19161. deprecated="not deprecated">
  19162. <param name="b" type="byte[]"/>
  19163. <param name="off" type="int"/>
  19164. <param name="len" type="int"/>
  19165. <exception name="IOException" type="java.io.IOException"/>
  19166. </method>
  19167. <doc>
  19168. <![CDATA[A wrapper around java.util.zip.Inflater to make it conform
  19169. to org.apache.hadoop.io.compress.Decompressor interface.]]>
  19170. </doc>
  19171. </class>
  19172. <!-- end class org.apache.hadoop.io.compress.zlib.BuiltInZlibInflater -->
  19173. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor -->
  19174. <class name="ZlibCompressor" extends="java.lang.Object"
  19175. abstract="false"
  19176. static="false" final="false" visibility="public"
  19177. deprecated="not deprecated">
  19178. <implements name="org.apache.hadoop.io.compress.Compressor"/>
  19179. <constructor name="ZlibCompressor"
  19180. static="false" final="false" visibility="public"
  19181. deprecated="not deprecated">
  19182. <doc>
  19183. <![CDATA[Creates a new compressor with the default compression level.
  19184. Compressed data will be generated in ZLIB format.]]>
  19185. </doc>
  19186. </constructor>
  19187. <constructor name="ZlibCompressor" type="org.apache.hadoop.conf.Configuration"
  19188. static="false" final="false" visibility="public"
  19189. deprecated="not deprecated">
  19190. <doc>
  19191. <![CDATA[Creates a new compressor, taking settings from the configuration.]]>
  19192. </doc>
  19193. </constructor>
  19194. <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"
  19195. static="false" final="false" visibility="public"
  19196. deprecated="not deprecated">
  19197. <doc>
  19198. <![CDATA[Creates a new compressor using the specified compression level.
  19199. Compressed data will be generated in ZLIB format.
  19200. @param level Compression level #CompressionLevel
  19201. @param strategy Compression strategy #CompressionStrategy
  19202. @param header Compression header #CompressionHeader
  19203. @param directBufferSize Size of the direct buffer to be used.]]>
  19204. </doc>
  19205. </constructor>
  19206. <method name="construct"
  19207. abstract="false" native="false" synchronized="false"
  19208. static="false" final="true" visibility="protected"
  19209. deprecated="not deprecated">
  19210. <param name="level" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"/>
  19211. <param name="strategy" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"/>
  19212. <param name="header" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"/>
  19213. <param name="directBufferSize" type="int"/>
  19214. </method>
  19215. <method name="reinit"
  19216. abstract="false" native="false" synchronized="true"
  19217. static="false" final="false" visibility="public"
  19218. deprecated="not deprecated">
  19219. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19220. <doc>
  19221. <![CDATA[Prepare the compressor to be used in a new stream with settings defined in
  19222. the given Configuration. It will reset the compressor's compression level
  19223. and compression strategy.
  19224. @param conf Configuration storing new settings]]>
  19225. </doc>
  19226. </method>
  19227. <method name="setInput"
  19228. abstract="false" native="false" synchronized="true"
  19229. static="false" final="false" visibility="public"
  19230. deprecated="not deprecated">
  19231. <param name="b" type="byte[]"/>
  19232. <param name="off" type="int"/>
  19233. <param name="len" type="int"/>
  19234. </method>
  19235. <method name="setDictionary"
  19236. abstract="false" native="false" synchronized="true"
  19237. static="false" final="false" visibility="public"
  19238. deprecated="not deprecated">
  19239. <param name="b" type="byte[]"/>
  19240. <param name="off" type="int"/>
  19241. <param name="len" type="int"/>
  19242. </method>
  19243. <method name="needsInput" return="boolean"
  19244. abstract="false" native="false" synchronized="false"
  19245. static="false" final="false" visibility="public"
  19246. deprecated="not deprecated">
  19247. </method>
  19248. <method name="finish"
  19249. abstract="false" native="false" synchronized="true"
  19250. static="false" final="false" visibility="public"
  19251. deprecated="not deprecated">
  19252. </method>
  19253. <method name="finished" return="boolean"
  19254. abstract="false" native="false" synchronized="true"
  19255. static="false" final="false" visibility="public"
  19256. deprecated="not deprecated">
  19257. </method>
  19258. <method name="compress" return="int"
  19259. abstract="false" native="false" synchronized="true"
  19260. static="false" final="false" visibility="public"
  19261. deprecated="not deprecated">
  19262. <param name="b" type="byte[]"/>
  19263. <param name="off" type="int"/>
  19264. <param name="len" type="int"/>
  19265. <exception name="IOException" type="java.io.IOException"/>
  19266. </method>
  19267. <method name="getBytesWritten" return="long"
  19268. abstract="false" native="false" synchronized="true"
  19269. static="false" final="false" visibility="public"
  19270. deprecated="not deprecated">
  19271. <doc>
  19272. <![CDATA[Returns the total number of compressed bytes output so far.
  19273. @return the total (non-negative) number of compressed bytes output so far]]>
  19274. </doc>
  19275. </method>
  19276. <method name="getBytesRead" return="long"
  19277. abstract="false" native="false" synchronized="true"
  19278. static="false" final="false" visibility="public"
  19279. deprecated="not deprecated">
  19280. <doc>
  19281. <![CDATA[Returns the total number of uncompressed bytes input so far.</p>
  19282. @return the total (non-negative) number of uncompressed bytes input so far]]>
  19283. </doc>
  19284. </method>
  19285. <method name="reset"
  19286. abstract="false" native="false" synchronized="true"
  19287. static="false" final="false" visibility="public"
  19288. deprecated="not deprecated">
  19289. </method>
  19290. <method name="end"
  19291. abstract="false" native="false" synchronized="true"
  19292. static="false" final="false" visibility="public"
  19293. deprecated="not deprecated">
  19294. </method>
  19295. <doc>
  19296. <![CDATA[A {@link Compressor} based on the popular
  19297. zlib compression algorithm.
  19298. http://www.zlib.net/]]>
  19299. </doc>
  19300. </class>
  19301. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor -->
  19302. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader -->
  19303. <class name="ZlibCompressor.CompressionHeader" extends="java.lang.Enum"
  19304. abstract="false"
  19305. static="true" final="true" visibility="public"
  19306. deprecated="not deprecated">
  19307. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader[]"
  19308. abstract="false" native="false" synchronized="false"
  19309. static="true" final="false" visibility="public"
  19310. deprecated="not deprecated">
  19311. </method>
  19312. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"
  19313. abstract="false" native="false" synchronized="false"
  19314. static="true" final="false" visibility="public"
  19315. deprecated="not deprecated">
  19316. <param name="name" type="java.lang.String"/>
  19317. </method>
  19318. <method name="windowBits" return="int"
  19319. abstract="false" native="false" synchronized="false"
  19320. static="false" final="false" visibility="public"
  19321. deprecated="not deprecated">
  19322. </method>
  19323. <field name="NO_HEADER" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"
  19324. transient="false" volatile="false"
  19325. static="true" final="true" visibility="public"
  19326. deprecated="not deprecated">
  19327. <doc>
  19328. <![CDATA[No headers/trailers/checksums.]]>
  19329. </doc>
  19330. </field>
  19331. <field name="DEFAULT_HEADER" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"
  19332. transient="false" volatile="false"
  19333. static="true" final="true" visibility="public"
  19334. deprecated="not deprecated">
  19335. <doc>
  19336. <![CDATA[Default headers/trailers/checksums.]]>
  19337. </doc>
  19338. </field>
  19339. <field name="GZIP_FORMAT" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"
  19340. transient="false" volatile="false"
  19341. static="true" final="true" visibility="public"
  19342. deprecated="not deprecated">
  19343. <doc>
  19344. <![CDATA[Simple gzip headers/trailers.]]>
  19345. </doc>
  19346. </field>
  19347. <doc>
  19348. <![CDATA[The type of header for compressed data.]]>
  19349. </doc>
  19350. </class>
  19351. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader -->
  19352. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel -->
  19353. <class name="ZlibCompressor.CompressionLevel" extends="java.lang.Enum"
  19354. abstract="false"
  19355. static="true" final="true" visibility="public"
  19356. deprecated="not deprecated">
  19357. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel[]"
  19358. abstract="false" native="false" synchronized="false"
  19359. static="true" final="false" visibility="public"
  19360. deprecated="not deprecated">
  19361. </method>
  19362. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  19363. abstract="false" native="false" synchronized="false"
  19364. static="true" final="false" visibility="public"
  19365. deprecated="not deprecated">
  19366. <param name="name" type="java.lang.String"/>
  19367. </method>
  19368. <field name="NO_COMPRESSION" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  19369. transient="false" volatile="false"
  19370. static="true" final="true" visibility="public"
  19371. deprecated="not deprecated">
  19372. <doc>
  19373. <![CDATA[Compression level for no compression.]]>
  19374. </doc>
  19375. </field>
  19376. <field name="BEST_SPEED" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  19377. transient="false" volatile="false"
  19378. static="true" final="true" visibility="public"
  19379. deprecated="not deprecated">
  19380. <doc>
  19381. <![CDATA[Compression level for fastest compression.]]>
  19382. </doc>
  19383. </field>
  19384. <field name="BEST_COMPRESSION" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  19385. transient="false" volatile="false"
  19386. static="true" final="true" visibility="public"
  19387. deprecated="not deprecated">
  19388. <doc>
  19389. <![CDATA[Compression level for best compression.]]>
  19390. </doc>
  19391. </field>
  19392. <field name="DEFAULT_COMPRESSION" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  19393. transient="false" volatile="false"
  19394. static="true" final="true" visibility="public"
  19395. deprecated="not deprecated">
  19396. <doc>
  19397. <![CDATA[Default compression level.]]>
  19398. </doc>
  19399. </field>
  19400. <doc>
  19401. <![CDATA[The compression level for zlib library.]]>
  19402. </doc>
  19403. </class>
  19404. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel -->
  19405. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy -->
  19406. <class name="ZlibCompressor.CompressionStrategy" extends="java.lang.Enum"
  19407. abstract="false"
  19408. static="true" final="true" visibility="public"
  19409. deprecated="not deprecated">
  19410. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy[]"
  19411. abstract="false" native="false" synchronized="false"
  19412. static="true" final="false" visibility="public"
  19413. deprecated="not deprecated">
  19414. </method>
  19415. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  19416. abstract="false" native="false" synchronized="false"
  19417. static="true" final="false" visibility="public"
  19418. deprecated="not deprecated">
  19419. <param name="name" type="java.lang.String"/>
  19420. </method>
  19421. <field name="FILTERED" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  19422. transient="false" volatile="false"
  19423. static="true" final="true" visibility="public"
  19424. deprecated="not deprecated">
  19425. <doc>
  19426. <![CDATA[Compression strategy best used for data consisting mostly of small
  19427. values with a somewhat random distribution. Forces more Huffman coding
  19428. and less string matching.]]>
  19429. </doc>
  19430. </field>
  19431. <field name="HUFFMAN_ONLY" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  19432. transient="false" volatile="false"
  19433. static="true" final="true" visibility="public"
  19434. deprecated="not deprecated">
  19435. <doc>
  19436. <![CDATA[Compression strategy for Huffman coding only.]]>
  19437. </doc>
  19438. </field>
  19439. <field name="RLE" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  19440. transient="false" volatile="false"
  19441. static="true" final="true" visibility="public"
  19442. deprecated="not deprecated">
  19443. <doc>
  19444. <![CDATA[Compression strategy to limit match distances to one
  19445. (run-length encoding).]]>
  19446. </doc>
  19447. </field>
  19448. <field name="FIXED" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  19449. transient="false" volatile="false"
  19450. static="true" final="true" visibility="public"
  19451. deprecated="not deprecated">
  19452. <doc>
  19453. <![CDATA[Compression strategy to prevent the use of dynamic Huffman codes,
  19454. allowing for a simpler decoder for special applications.]]>
  19455. </doc>
  19456. </field>
  19457. <field name="DEFAULT_STRATEGY" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  19458. transient="false" volatile="false"
  19459. static="true" final="true" visibility="public"
  19460. deprecated="not deprecated">
  19461. <doc>
  19462. <![CDATA[Default compression strategy.]]>
  19463. </doc>
  19464. </field>
  19465. <doc>
  19466. <![CDATA[The compression level for zlib library.]]>
  19467. </doc>
  19468. </class>
  19469. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy -->
  19470. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibDecompressor -->
  19471. <class name="ZlibDecompressor" extends="java.lang.Object"
  19472. abstract="false"
  19473. static="false" final="false" visibility="public"
  19474. deprecated="not deprecated">
  19475. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  19476. <constructor name="ZlibDecompressor" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader, int"
  19477. static="false" final="false" visibility="public"
  19478. deprecated="not deprecated">
  19479. <doc>
  19480. <![CDATA[Creates a new decompressor.]]>
  19481. </doc>
  19482. </constructor>
  19483. <constructor name="ZlibDecompressor"
  19484. static="false" final="false" visibility="public"
  19485. deprecated="not deprecated">
  19486. </constructor>
  19487. <method name="setInput"
  19488. abstract="false" native="false" synchronized="true"
  19489. static="false" final="false" visibility="public"
  19490. deprecated="not deprecated">
  19491. <param name="b" type="byte[]"/>
  19492. <param name="off" type="int"/>
  19493. <param name="len" type="int"/>
  19494. </method>
  19495. <method name="setDictionary"
  19496. abstract="false" native="false" synchronized="true"
  19497. static="false" final="false" visibility="public"
  19498. deprecated="not deprecated">
  19499. <param name="b" type="byte[]"/>
  19500. <param name="off" type="int"/>
  19501. <param name="len" type="int"/>
  19502. </method>
  19503. <method name="needsInput" return="boolean"
  19504. abstract="false" native="false" synchronized="true"
  19505. static="false" final="false" visibility="public"
  19506. deprecated="not deprecated">
  19507. </method>
  19508. <method name="needsDictionary" return="boolean"
  19509. abstract="false" native="false" synchronized="true"
  19510. static="false" final="false" visibility="public"
  19511. deprecated="not deprecated">
  19512. </method>
  19513. <method name="finished" return="boolean"
  19514. abstract="false" native="false" synchronized="true"
  19515. static="false" final="false" visibility="public"
  19516. deprecated="not deprecated">
  19517. </method>
  19518. <method name="decompress" return="int"
  19519. abstract="false" native="false" synchronized="true"
  19520. static="false" final="false" visibility="public"
  19521. deprecated="not deprecated">
  19522. <param name="b" type="byte[]"/>
  19523. <param name="off" type="int"/>
  19524. <param name="len" type="int"/>
  19525. <exception name="IOException" type="java.io.IOException"/>
  19526. </method>
  19527. <method name="getBytesWritten" return="long"
  19528. abstract="false" native="false" synchronized="true"
  19529. static="false" final="false" visibility="public"
  19530. deprecated="not deprecated">
  19531. <doc>
  19532. <![CDATA[Returns the total number of uncompressed bytes output so far.
  19533. @return the total (non-negative) number of uncompressed bytes output so far]]>
  19534. </doc>
  19535. </method>
  19536. <method name="getBytesRead" return="long"
  19537. abstract="false" native="false" synchronized="true"
  19538. static="false" final="false" visibility="public"
  19539. deprecated="not deprecated">
  19540. <doc>
  19541. <![CDATA[Returns the total number of compressed bytes input so far.</p>
  19542. @return the total (non-negative) number of compressed bytes input so far]]>
  19543. </doc>
  19544. </method>
  19545. <method name="getRemaining" return="int"
  19546. abstract="false" native="false" synchronized="true"
  19547. static="false" final="false" visibility="public"
  19548. deprecated="not deprecated">
  19549. <doc>
  19550. <![CDATA[Returns the number of bytes remaining in the input buffers; normally
  19551. called when finished() is true to determine amount of post-gzip-stream
  19552. data.</p>
  19553. @return the total (non-negative) number of unprocessed bytes in input]]>
  19554. </doc>
  19555. </method>
  19556. <method name="reset"
  19557. abstract="false" native="false" synchronized="true"
  19558. static="false" final="false" visibility="public"
  19559. deprecated="not deprecated">
  19560. <doc>
  19561. <![CDATA[Resets everything including the input buffers (user and direct).</p>]]>
  19562. </doc>
  19563. </method>
  19564. <method name="end"
  19565. abstract="false" native="false" synchronized="true"
  19566. static="false" final="false" visibility="public"
  19567. deprecated="not deprecated">
  19568. </method>
  19569. <method name="finalize"
  19570. abstract="false" native="false" synchronized="false"
  19571. static="false" final="false" visibility="protected"
  19572. deprecated="not deprecated">
  19573. </method>
  19574. <doc>
  19575. <![CDATA[A {@link Decompressor} based on the popular
  19576. zlib compression algorithm.
  19577. http://www.zlib.net/]]>
  19578. </doc>
  19579. </class>
  19580. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibDecompressor -->
  19581. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader -->
  19582. <class name="ZlibDecompressor.CompressionHeader" extends="java.lang.Enum"
  19583. abstract="false"
  19584. static="true" final="true" visibility="public"
  19585. deprecated="not deprecated">
  19586. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader[]"
  19587. abstract="false" native="false" synchronized="false"
  19588. static="true" final="false" visibility="public"
  19589. deprecated="not deprecated">
  19590. </method>
  19591. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  19592. abstract="false" native="false" synchronized="false"
  19593. static="true" final="false" visibility="public"
  19594. deprecated="not deprecated">
  19595. <param name="name" type="java.lang.String"/>
  19596. </method>
  19597. <method name="windowBits" return="int"
  19598. abstract="false" native="false" synchronized="false"
  19599. static="false" final="false" visibility="public"
  19600. deprecated="not deprecated">
  19601. </method>
  19602. <field name="NO_HEADER" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  19603. transient="false" volatile="false"
  19604. static="true" final="true" visibility="public"
  19605. deprecated="not deprecated">
  19606. <doc>
  19607. <![CDATA[No headers/trailers/checksums.]]>
  19608. </doc>
  19609. </field>
  19610. <field name="DEFAULT_HEADER" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  19611. transient="false" volatile="false"
  19612. static="true" final="true" visibility="public"
  19613. deprecated="not deprecated">
  19614. <doc>
  19615. <![CDATA[Default headers/trailers/checksums.]]>
  19616. </doc>
  19617. </field>
  19618. <field name="GZIP_FORMAT" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  19619. transient="false" volatile="false"
  19620. static="true" final="true" visibility="public"
  19621. deprecated="not deprecated">
  19622. <doc>
  19623. <![CDATA[Simple gzip headers/trailers.]]>
  19624. </doc>
  19625. </field>
  19626. <field name="AUTODETECT_GZIP_ZLIB" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  19627. transient="false" volatile="false"
  19628. static="true" final="true" visibility="public"
  19629. deprecated="not deprecated">
  19630. <doc>
  19631. <![CDATA[Autodetect gzip/zlib headers/trailers.]]>
  19632. </doc>
  19633. </field>
  19634. <doc>
  19635. <![CDATA[The headers to detect from compressed data.]]>
  19636. </doc>
  19637. </class>
  19638. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader -->
  19639. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibFactory -->
  19640. <class name="ZlibFactory" extends="java.lang.Object"
  19641. abstract="false"
  19642. static="false" final="false" visibility="public"
  19643. deprecated="not deprecated">
  19644. <constructor name="ZlibFactory"
  19645. static="false" final="false" visibility="public"
  19646. deprecated="not deprecated">
  19647. </constructor>
  19648. <method name="isNativeZlibLoaded" return="boolean"
  19649. abstract="false" native="false" synchronized="false"
  19650. static="true" final="false" visibility="public"
  19651. deprecated="not deprecated">
  19652. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19653. <doc>
  19654. <![CDATA[Check if native-zlib code is loaded & initialized correctly and
  19655. can be loaded for this job.
  19656. @param conf configuration
  19657. @return <code>true</code> if native-zlib is loaded & initialized
  19658. and can be loaded for this job, else <code>false</code>]]>
  19659. </doc>
  19660. </method>
  19661. <method name="getZlibCompressorType" return="java.lang.Class"
  19662. abstract="false" native="false" synchronized="false"
  19663. static="true" final="false" visibility="public"
  19664. deprecated="not deprecated">
  19665. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19666. <doc>
  19667. <![CDATA[Return the appropriate type of the zlib compressor.
  19668. @param conf configuration
  19669. @return the appropriate type of the zlib compressor.]]>
  19670. </doc>
  19671. </method>
  19672. <method name="getZlibCompressor" return="org.apache.hadoop.io.compress.Compressor"
  19673. abstract="false" native="false" synchronized="false"
  19674. static="true" final="false" visibility="public"
  19675. deprecated="not deprecated">
  19676. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19677. <doc>
  19678. <![CDATA[Return the appropriate implementation of the zlib compressor.
  19679. @param conf configuration
  19680. @return the appropriate implementation of the zlib compressor.]]>
  19681. </doc>
  19682. </method>
  19683. <method name="getZlibDecompressorType" return="java.lang.Class"
  19684. abstract="false" native="false" synchronized="false"
  19685. static="true" final="false" visibility="public"
  19686. deprecated="not deprecated">
  19687. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19688. <doc>
  19689. <![CDATA[Return the appropriate type of the zlib decompressor.
  19690. @param conf configuration
  19691. @return the appropriate type of the zlib decompressor.]]>
  19692. </doc>
  19693. </method>
  19694. <method name="getZlibDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  19695. abstract="false" native="false" synchronized="false"
  19696. static="true" final="false" visibility="public"
  19697. deprecated="not deprecated">
  19698. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19699. <doc>
  19700. <![CDATA[Return the appropriate implementation of the zlib decompressor.
  19701. @param conf configuration
  19702. @return the appropriate implementation of the zlib decompressor.]]>
  19703. </doc>
  19704. </method>
  19705. <method name="setCompressionStrategy"
  19706. abstract="false" native="false" synchronized="false"
  19707. static="true" final="false" visibility="public"
  19708. deprecated="not deprecated">
  19709. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19710. <param name="strategy" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"/>
  19711. </method>
  19712. <method name="getCompressionStrategy" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  19713. abstract="false" native="false" synchronized="false"
  19714. static="true" final="false" visibility="public"
  19715. deprecated="not deprecated">
  19716. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19717. </method>
  19718. <method name="setCompressionLevel"
  19719. abstract="false" native="false" synchronized="false"
  19720. static="true" final="false" visibility="public"
  19721. deprecated="not deprecated">
  19722. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19723. <param name="level" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"/>
  19724. </method>
  19725. <method name="getCompressionLevel" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  19726. abstract="false" native="false" synchronized="false"
  19727. static="true" final="false" visibility="public"
  19728. deprecated="not deprecated">
  19729. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19730. </method>
  19731. <doc>
  19732. <![CDATA[A collection of factories to create the right
  19733. zlib/gzip compressor/decompressor instances.]]>
  19734. </doc>
  19735. </class>
  19736. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibFactory -->
  19737. </package>
  19738. <package name="org.apache.hadoop.io.file.tfile">
  19739. <!-- start class org.apache.hadoop.io.file.tfile.ByteArray -->
  19740. <class name="ByteArray" extends="java.lang.Object"
  19741. abstract="false"
  19742. static="false" final="true" visibility="public"
  19743. deprecated="not deprecated">
  19744. <implements name="org.apache.hadoop.io.file.tfile.RawComparable"/>
  19745. <constructor name="ByteArray" type="org.apache.hadoop.io.BytesWritable"
  19746. static="false" final="false" visibility="public"
  19747. deprecated="not deprecated">
  19748. <doc>
  19749. <![CDATA[Constructing a ByteArray from a {@link BytesWritable}.
  19750. @param other]]>
  19751. </doc>
  19752. </constructor>
  19753. <constructor name="ByteArray" type="byte[]"
  19754. static="false" final="false" visibility="public"
  19755. deprecated="not deprecated">
  19756. <doc>
  19757. <![CDATA[Wrap a whole byte array as a RawComparable.
  19758. @param buffer
  19759. the byte array buffer.]]>
  19760. </doc>
  19761. </constructor>
  19762. <constructor name="ByteArray" type="byte[], int, int"
  19763. static="false" final="false" visibility="public"
  19764. deprecated="not deprecated">
  19765. <doc>
  19766. <![CDATA[Wrap a partial byte array as a RawComparable.
  19767. @param buffer
  19768. the byte array buffer.
  19769. @param offset
  19770. the starting offset
  19771. @param len
  19772. the length of the consecutive bytes to be wrapped.]]>
  19773. </doc>
  19774. </constructor>
  19775. <method name="buffer" return="byte[]"
  19776. abstract="false" native="false" synchronized="false"
  19777. static="false" final="false" visibility="public"
  19778. deprecated="not deprecated">
  19779. <doc>
  19780. <![CDATA[@return the underlying buffer.]]>
  19781. </doc>
  19782. </method>
  19783. <method name="offset" return="int"
  19784. abstract="false" native="false" synchronized="false"
  19785. static="false" final="false" visibility="public"
  19786. deprecated="not deprecated">
  19787. <doc>
  19788. <![CDATA[@return the offset in the buffer.]]>
  19789. </doc>
  19790. </method>
  19791. <method name="size" return="int"
  19792. abstract="false" native="false" synchronized="false"
  19793. static="false" final="false" visibility="public"
  19794. deprecated="not deprecated">
  19795. <doc>
  19796. <![CDATA[@return the size of the byte array.]]>
  19797. </doc>
  19798. </method>
  19799. <doc>
  19800. <![CDATA[Adaptor class to wrap byte-array backed objects (including java byte array)
  19801. as RawComparable objects.]]>
  19802. </doc>
  19803. </class>
  19804. <!-- end class org.apache.hadoop.io.file.tfile.ByteArray -->
  19805. <!-- start class org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists -->
  19806. <class name="MetaBlockAlreadyExists" extends="java.io.IOException"
  19807. abstract="false"
  19808. static="false" final="false" visibility="public"
  19809. deprecated="not deprecated">
  19810. <doc>
  19811. <![CDATA[Exception - Meta Block with the same name already exists.]]>
  19812. </doc>
  19813. </class>
  19814. <!-- end class org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists -->
  19815. <!-- start class org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist -->
  19816. <class name="MetaBlockDoesNotExist" extends="java.io.IOException"
  19817. abstract="false"
  19818. static="false" final="false" visibility="public"
  19819. deprecated="not deprecated">
  19820. <doc>
  19821. <![CDATA[Exception - No such Meta Block with the given name.]]>
  19822. </doc>
  19823. </class>
  19824. <!-- end class org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist -->
  19825. <!-- start interface org.apache.hadoop.io.file.tfile.RawComparable -->
  19826. <interface name="RawComparable" abstract="true"
  19827. static="false" final="false" visibility="public"
  19828. deprecated="not deprecated">
  19829. <method name="buffer" return="byte[]"
  19830. abstract="false" native="false" synchronized="false"
  19831. static="false" final="false" visibility="public"
  19832. deprecated="not deprecated">
  19833. <doc>
  19834. <![CDATA[Get the underlying byte array.
  19835. @return The underlying byte array.]]>
  19836. </doc>
  19837. </method>
  19838. <method name="offset" return="int"
  19839. abstract="false" native="false" synchronized="false"
  19840. static="false" final="false" visibility="public"
  19841. deprecated="not deprecated">
  19842. <doc>
  19843. <![CDATA[Get the offset of the first byte in the byte array.
  19844. @return The offset of the first byte in the byte array.]]>
  19845. </doc>
  19846. </method>
  19847. <method name="size" return="int"
  19848. abstract="false" native="false" synchronized="false"
  19849. static="false" final="false" visibility="public"
  19850. deprecated="not deprecated">
  19851. <doc>
  19852. <![CDATA[Get the size of the byte range in the byte array.
  19853. @return The size of the byte range in the byte array.]]>
  19854. </doc>
  19855. </method>
  19856. <doc>
  19857. <![CDATA[Interface for objects that can be compared through {@link RawComparator}.
  19858. This is useful in places where we need a single object reference to specify a
  19859. range of bytes in a byte array, such as {@link Comparable} or
  19860. {@link Collections#binarySearch(java.util.List, Object, Comparator)}
  19861. The actual comparison among RawComparable's requires an external
  19862. RawComparator and it is applications' responsibility to ensure two
  19863. RawComparable are supposed to be semantically comparable with the same
  19864. RawComparator.]]>
  19865. </doc>
  19866. </interface>
  19867. <!-- end interface org.apache.hadoop.io.file.tfile.RawComparable -->
  19868. <!-- start class org.apache.hadoop.io.file.tfile.TFile -->
  19869. <class name="TFile" extends="java.lang.Object"
  19870. abstract="false"
  19871. static="false" final="false" visibility="public"
  19872. deprecated="not deprecated">
  19873. <method name="makeComparator" return="java.util.Comparator"
  19874. abstract="false" native="false" synchronized="false"
  19875. static="true" final="false" visibility="public"
  19876. deprecated="not deprecated">
  19877. <param name="name" type="java.lang.String"/>
  19878. <doc>
  19879. <![CDATA[Make a raw comparator from a string name.
  19880. @param name
  19881. Comparator name
  19882. @return A RawComparable comparator.]]>
  19883. </doc>
  19884. </method>
  19885. <method name="getSupportedCompressionAlgorithms" return="java.lang.String[]"
  19886. abstract="false" native="false" synchronized="false"
  19887. static="true" final="false" visibility="public"
  19888. deprecated="not deprecated">
  19889. <doc>
  19890. <![CDATA[Get names of supported compression algorithms. The names are acceptable by
  19891. TFile.Writer.
  19892. @return Array of strings, each represents a supported compression
  19893. algorithm. Currently, the following compression algorithms are
  19894. supported.
  19895. <ul>
  19896. <li>"none" - No compression.
  19897. <li>"lzo" - LZO compression.
  19898. <li>"gz" - GZIP compression.
  19899. </ul>]]>
  19900. </doc>
  19901. </method>
  19902. <method name="main"
  19903. abstract="false" native="false" synchronized="false"
  19904. static="true" final="false" visibility="public"
  19905. deprecated="not deprecated">
  19906. <param name="args" type="java.lang.String[]"/>
  19907. <doc>
  19908. <![CDATA[Dumping the TFile information.
  19909. @param args
  19910. A list of TFile paths.]]>
  19911. </doc>
  19912. </method>
  19913. <field name="COMPRESSION_GZ" type="java.lang.String"
  19914. transient="false" volatile="false"
  19915. static="true" final="true" visibility="public"
  19916. deprecated="not deprecated">
  19917. <doc>
  19918. <![CDATA[compression: gzip]]>
  19919. </doc>
  19920. </field>
  19921. <field name="COMPRESSION_LZO" type="java.lang.String"
  19922. transient="false" volatile="false"
  19923. static="true" final="true" visibility="public"
  19924. deprecated="not deprecated">
  19925. <doc>
  19926. <![CDATA[compression: lzo]]>
  19927. </doc>
  19928. </field>
  19929. <field name="COMPRESSION_NONE" type="java.lang.String"
  19930. transient="false" volatile="false"
  19931. static="true" final="true" visibility="public"
  19932. deprecated="not deprecated">
  19933. <doc>
  19934. <![CDATA[compression: none]]>
  19935. </doc>
  19936. </field>
  19937. <field name="COMPARATOR_MEMCMP" type="java.lang.String"
  19938. transient="false" volatile="false"
  19939. static="true" final="true" visibility="public"
  19940. deprecated="not deprecated">
  19941. <doc>
  19942. <![CDATA[comparator: memcmp]]>
  19943. </doc>
  19944. </field>
  19945. <field name="COMPARATOR_JCLASS" type="java.lang.String"
  19946. transient="false" volatile="false"
  19947. static="true" final="true" visibility="public"
  19948. deprecated="not deprecated">
  19949. <doc>
  19950. <![CDATA[comparator prefix: java class]]>
  19951. </doc>
  19952. </field>
  19953. <doc>
  19954. <![CDATA[A TFile is a container of key-value pairs. Both keys and values are type-less
  19955. bytes. Keys are restricted to 64KB, value length is not restricted
  19956. (practically limited to the available disk storage). TFile further provides
  19957. the following features:
  19958. <ul>
  19959. <li>Block Compression.
  19960. <li>Named meta data blocks.
  19961. <li>Sorted or unsorted keys.
  19962. <li>Seek by key or by file offset.
  19963. </ul>
  19964. The memory footprint of a TFile includes the following:
  19965. <ul>
  19966. <li>Some constant overhead of reading or writing a compressed block.
  19967. <ul>
  19968. <li>Each compressed block requires one compression/decompression codec for
  19969. I/O.
  19970. <li>Temporary space to buffer the key.
  19971. <li>Temporary space to buffer the value (for TFile.Writer only). Values are
  19972. chunk encoded, so that we buffer at most one chunk of user data. By default,
  19973. the chunk buffer is 1MB. Reading chunked value does not require additional
  19974. memory.
  19975. </ul>
  19976. <li>TFile index, which is proportional to the total number of Data Blocks.
  19977. The total amount of memory needed to hold the index can be estimated as
  19978. (56+AvgKeySize)*NumBlocks.
  19979. <li>MetaBlock index, which is proportional to the total number of Meta
  19980. Blocks.The total amount of memory needed to hold the index for Meta Blocks
  19981. can be estimated as (40+AvgMetaBlockName)*NumMetaBlock.
  19982. </ul>
  19983. <p>
  19984. The behavior of TFile can be customized by the following variables through
  19985. Configuration:
  19986. <ul>
  19987. <li><b>tfile.io.chunk.size</b>: Value chunk size. Integer (in bytes). Default
  19988. to 1MB. Values of the length less than the chunk size is guaranteed to have
  19989. known value length in read time (See
  19990. {@link TFile.Reader.Scanner.Entry#isValueLengthKnown()}).
  19991. <li><b>tfile.fs.output.buffer.size</b>: Buffer size used for
  19992. FSDataOutputStream. Integer (in bytes). Default to 256KB.
  19993. <li><b>tfile.fs.input.buffer.size</b>: Buffer size used for
  19994. FSDataInputStream. Integer (in bytes). Default to 256KB.
  19995. </ul>
  19996. <p>
  19997. Suggestions on performance optimization.
  19998. <ul>
  19999. <li>Minimum block size. We recommend a setting of minimum block size between
  20000. 256KB to 1MB for general usage. Larger block size is preferred if files are
  20001. primarily for sequential access. However, it would lead to inefficient random
  20002. access (because there are more data to decompress). Smaller blocks are good
  20003. for random access, but require more memory to hold the block index, and may
  20004. be slower to create (because we must flush the compressor stream at the
  20005. conclusion of each data block, which leads to an FS I/O flush). Further, due
  20006. to the internal caching in Compression codec, the smallest possible block
  20007. size would be around 20KB-30KB.
  20008. <li>The current implementation does not offer true multi-threading for
  20009. reading. The implementation uses FSDataInputStream seek()+read(), which is
  20010. shown to be much faster than positioned-read call in single thread mode.
  20011. However, it also means that if multiple threads attempt to access the same
  20012. TFile (using multiple scanners) simultaneously, the actual I/O is carried out
  20013. sequentially even if they access different DFS blocks.
  20014. <li>Compression codec. Use "none" if the data is not very compressable (by
  20015. compressable, I mean a compression ratio at least 2:1). Generally, use "lzo"
  20016. as the starting point for experimenting. "gz" overs slightly better
  20017. compression ratio over "lzo" but requires 4x CPU to compress and 2x CPU to
  20018. decompress, comparing to "lzo".
  20019. <li>File system buffering, if the underlying FSDataInputStream and
  20020. FSDataOutputStream is already adequately buffered; or if applications
  20021. reads/writes keys and values in large buffers, we can reduce the sizes of
  20022. input/output buffering in TFile layer by setting the configuration parameters
  20023. "tfile.fs.input.buffer.size" and "tfile.fs.output.buffer.size".
  20024. </ul>
  20025. Some design rationale behind TFile can be found at <a
  20026. href=https://issues.apache.org/jira/browse/HADOOP-3315>Hadoop-3315</a>.]]>
  20027. </doc>
  20028. </class>
  20029. <!-- end class org.apache.hadoop.io.file.tfile.TFile -->
  20030. <!-- start class org.apache.hadoop.io.file.tfile.TFile.Reader -->
  20031. <class name="TFile.Reader" extends="java.lang.Object"
  20032. abstract="false"
  20033. static="true" final="false" visibility="public"
  20034. deprecated="not deprecated">
  20035. <implements name="java.io.Closeable"/>
  20036. <constructor name="TFile.Reader" type="org.apache.hadoop.fs.FSDataInputStream, long, org.apache.hadoop.conf.Configuration"
  20037. static="false" final="false" visibility="public"
  20038. deprecated="not deprecated">
  20039. <exception name="IOException" type="java.io.IOException"/>
  20040. <doc>
  20041. <![CDATA[Constructor
  20042. @param fsdis
  20043. FS input stream of the TFile.
  20044. @param fileLength
  20045. The length of TFile. This is required because we have no easy
  20046. way of knowing the actual size of the input file through the
  20047. File input stream.
  20048. @param conf
  20049. @throws IOException]]>
  20050. </doc>
  20051. </constructor>
  20052. <method name="close"
  20053. abstract="false" native="false" synchronized="false"
  20054. static="false" final="false" visibility="public"
  20055. deprecated="not deprecated">
  20056. <exception name="IOException" type="java.io.IOException"/>
  20057. <doc>
  20058. <![CDATA[Close the reader. The state of the Reader object is undefined after
  20059. close. Calling close() for multiple times has no effect.]]>
  20060. </doc>
  20061. </method>
  20062. <method name="getComparatorName" return="java.lang.String"
  20063. abstract="false" native="false" synchronized="false"
  20064. static="false" final="false" visibility="public"
  20065. deprecated="not deprecated">
  20066. <doc>
  20067. <![CDATA[Get the string representation of the comparator.
  20068. @return If the TFile is not sorted by keys, an empty string will be
  20069. returned. Otherwise, the actual comparator string that is
  20070. provided during the TFile creation time will be returned.]]>
  20071. </doc>
  20072. </method>
  20073. <method name="isSorted" return="boolean"
  20074. abstract="false" native="false" synchronized="false"
  20075. static="false" final="false" visibility="public"
  20076. deprecated="not deprecated">
  20077. <doc>
  20078. <![CDATA[Is the TFile sorted?
  20079. @return true if TFile is sorted.]]>
  20080. </doc>
  20081. </method>
  20082. <method name="getEntryCount" return="long"
  20083. abstract="false" native="false" synchronized="false"
  20084. static="false" final="false" visibility="public"
  20085. deprecated="not deprecated">
  20086. <doc>
  20087. <![CDATA[Get the number of key-value pair entries in TFile.
  20088. @return the number of key-value pairs in TFile]]>
  20089. </doc>
  20090. </method>
  20091. <method name="getFirstKey" return="org.apache.hadoop.io.file.tfile.RawComparable"
  20092. abstract="false" native="false" synchronized="false"
  20093. static="false" final="false" visibility="public"
  20094. deprecated="not deprecated">
  20095. <exception name="IOException" type="java.io.IOException"/>
  20096. <doc>
  20097. <![CDATA[Get the first key in the TFile.
  20098. @return The first key in the TFile.
  20099. @throws IOException]]>
  20100. </doc>
  20101. </method>
  20102. <method name="getLastKey" return="org.apache.hadoop.io.file.tfile.RawComparable"
  20103. abstract="false" native="false" synchronized="false"
  20104. static="false" final="false" visibility="public"
  20105. deprecated="not deprecated">
  20106. <exception name="IOException" type="java.io.IOException"/>
  20107. <doc>
  20108. <![CDATA[Get the last key in the TFile.
  20109. @return The last key in the TFile.
  20110. @throws IOException]]>
  20111. </doc>
  20112. </method>
  20113. <method name="getEntryComparator" return="java.util.Comparator"
  20114. abstract="false" native="false" synchronized="false"
  20115. static="false" final="false" visibility="public"
  20116. deprecated="not deprecated">
  20117. <doc>
  20118. <![CDATA[Get a Comparator object to compare Entries. It is useful when you want
  20119. stores the entries in a collection (such as PriorityQueue) and perform
  20120. sorting or comparison among entries based on the keys without copying out
  20121. the key.
  20122. @return An Entry Comparator..]]>
  20123. </doc>
  20124. </method>
  20125. <method name="getComparator" return="java.util.Comparator"
  20126. abstract="false" native="false" synchronized="false"
  20127. static="false" final="false" visibility="public"
  20128. deprecated="not deprecated">
  20129. <doc>
  20130. <![CDATA[Get an instance of the RawComparator that is constructed based on the
  20131. string comparator representation.
  20132. @return a Comparator that can compare RawComparable's.]]>
  20133. </doc>
  20134. </method>
  20135. <method name="getMetaBlock" return="java.io.DataInputStream"
  20136. abstract="false" native="false" synchronized="false"
  20137. static="false" final="false" visibility="public"
  20138. deprecated="not deprecated">
  20139. <param name="name" type="java.lang.String"/>
  20140. <exception name="IOException" type="java.io.IOException"/>
  20141. <exception name="MetaBlockDoesNotExist" type="org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist"/>
  20142. <doc>
  20143. <![CDATA[Stream access to a meta block.``
  20144. @param name
  20145. The name of the meta block.
  20146. @return The input stream.
  20147. @throws IOException
  20148. on I/O error.
  20149. @throws MetaBlockDoesNotExist
  20150. If the meta block with the name does not exist.]]>
  20151. </doc>
  20152. </method>
  20153. <method name="getRecordNumNear" return="long"
  20154. abstract="false" native="false" synchronized="false"
  20155. static="false" final="false" visibility="public"
  20156. deprecated="not deprecated">
  20157. <param name="offset" type="long"/>
  20158. <exception name="IOException" type="java.io.IOException"/>
  20159. <doc>
  20160. <![CDATA[Get the RecordNum for the first key-value pair in a compressed block
  20161. whose byte offset in the TFile is greater than or equal to the specified
  20162. offset.
  20163. @param offset
  20164. the user supplied offset.
  20165. @return the RecordNum to the corresponding entry. If no such entry
  20166. exists, it returns the total entry count.
  20167. @throws IOException]]>
  20168. </doc>
  20169. </method>
  20170. <method name="getKeyNear" return="org.apache.hadoop.io.file.tfile.RawComparable"
  20171. abstract="false" native="false" synchronized="false"
  20172. static="false" final="false" visibility="public"
  20173. deprecated="not deprecated">
  20174. <param name="offset" type="long"/>
  20175. <exception name="IOException" type="java.io.IOException"/>
  20176. <doc>
  20177. <![CDATA[Get a sample key that is within a block whose starting offset is greater
  20178. than or equal to the specified offset.
  20179. @param offset
  20180. The file offset.
  20181. @return the key that fits the requirement; or null if no such key exists
  20182. (which could happen if the offset is close to the end of the
  20183. TFile).
  20184. @throws IOException]]>
  20185. </doc>
  20186. </method>
  20187. <method name="createScanner" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  20188. abstract="false" native="false" synchronized="false"
  20189. static="false" final="false" visibility="public"
  20190. deprecated="not deprecated">
  20191. <exception name="IOException" type="java.io.IOException"/>
  20192. <doc>
  20193. <![CDATA[Get a scanner than can scan the whole TFile.
  20194. @return The scanner object. A valid Scanner is always returned even if
  20195. the TFile is empty.
  20196. @throws IOException]]>
  20197. </doc>
  20198. </method>
  20199. <method name="createScannerByByteRange" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  20200. abstract="false" native="false" synchronized="false"
  20201. static="false" final="false" visibility="public"
  20202. deprecated="not deprecated">
  20203. <param name="offset" type="long"/>
  20204. <param name="length" type="long"/>
  20205. <exception name="IOException" type="java.io.IOException"/>
  20206. <doc>
  20207. <![CDATA[Get a scanner that covers a portion of TFile based on byte offsets.
  20208. @param offset
  20209. The beginning byte offset in the TFile.
  20210. @param length
  20211. The length of the region.
  20212. @return The actual coverage of the returned scanner tries to match the
  20213. specified byte-region but always round up to the compression
  20214. block boundaries. It is possible that the returned scanner
  20215. contains zero key-value pairs even if length is positive.
  20216. @throws IOException]]>
  20217. </doc>
  20218. </method>
  20219. <method name="createScanner" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  20220. abstract="false" native="false" synchronized="false"
  20221. static="false" final="false" visibility="public"
  20222. deprecated="Use {@link #createScannerByKey(byte[], byte[])} instead.">
  20223. <param name="beginKey" type="byte[]"/>
  20224. <param name="endKey" type="byte[]"/>
  20225. <exception name="IOException" type="java.io.IOException"/>
  20226. <doc>
  20227. <![CDATA[Get a scanner that covers a portion of TFile based on keys.
  20228. @param beginKey
  20229. Begin key of the scan (inclusive). If null, scan from the first
  20230. key-value entry of the TFile.
  20231. @param endKey
  20232. End key of the scan (exclusive). If null, scan up to the last
  20233. key-value entry of the TFile.
  20234. @return The actual coverage of the returned scanner will cover all keys
  20235. greater than or equal to the beginKey and less than the endKey.
  20236. @throws IOException
  20237. @deprecated Use {@link #createScannerByKey(byte[], byte[])} instead.]]>
  20238. </doc>
  20239. </method>
  20240. <method name="createScannerByKey" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  20241. abstract="false" native="false" synchronized="false"
  20242. static="false" final="false" visibility="public"
  20243. deprecated="not deprecated">
  20244. <param name="beginKey" type="byte[]"/>
  20245. <param name="endKey" type="byte[]"/>
  20246. <exception name="IOException" type="java.io.IOException"/>
  20247. <doc>
  20248. <![CDATA[Get a scanner that covers a portion of TFile based on keys.
  20249. @param beginKey
  20250. Begin key of the scan (inclusive). If null, scan from the first
  20251. key-value entry of the TFile.
  20252. @param endKey
  20253. End key of the scan (exclusive). If null, scan up to the last
  20254. key-value entry of the TFile.
  20255. @return The actual coverage of the returned scanner will cover all keys
  20256. greater than or equal to the beginKey and less than the endKey.
  20257. @throws IOException]]>
  20258. </doc>
  20259. </method>
  20260. <method name="createScanner" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  20261. abstract="false" native="false" synchronized="false"
  20262. static="false" final="false" visibility="public"
  20263. deprecated="Use {@link #createScannerByKey(RawComparable, RawComparable)}
  20264. instead.">
  20265. <param name="beginKey" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  20266. <param name="endKey" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  20267. <exception name="IOException" type="java.io.IOException"/>
  20268. <doc>
  20269. <![CDATA[Get a scanner that covers a specific key range.
  20270. @param beginKey
  20271. Begin key of the scan (inclusive). If null, scan from the first
  20272. key-value entry of the TFile.
  20273. @param endKey
  20274. End key of the scan (exclusive). If null, scan up to the last
  20275. key-value entry of the TFile.
  20276. @return The actual coverage of the returned scanner will cover all keys
  20277. greater than or equal to the beginKey and less than the endKey.
  20278. @throws IOException
  20279. @deprecated Use {@link #createScannerByKey(RawComparable, RawComparable)}
  20280. instead.]]>
  20281. </doc>
  20282. </method>
  20283. <method name="createScannerByKey" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  20284. abstract="false" native="false" synchronized="false"
  20285. static="false" final="false" visibility="public"
  20286. deprecated="not deprecated">
  20287. <param name="beginKey" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  20288. <param name="endKey" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  20289. <exception name="IOException" type="java.io.IOException"/>
  20290. <doc>
  20291. <![CDATA[Get a scanner that covers a specific key range.
  20292. @param beginKey
  20293. Begin key of the scan (inclusive). If null, scan from the first
  20294. key-value entry of the TFile.
  20295. @param endKey
  20296. End key of the scan (exclusive). If null, scan up to the last
  20297. key-value entry of the TFile.
  20298. @return The actual coverage of the returned scanner will cover all keys
  20299. greater than or equal to the beginKey and less than the endKey.
  20300. @throws IOException]]>
  20301. </doc>
  20302. </method>
  20303. <method name="createScannerByRecordNum" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  20304. abstract="false" native="false" synchronized="false"
  20305. static="false" final="false" visibility="public"
  20306. deprecated="not deprecated">
  20307. <param name="beginRecNum" type="long"/>
  20308. <param name="endRecNum" type="long"/>
  20309. <exception name="IOException" type="java.io.IOException"/>
  20310. <doc>
  20311. <![CDATA[Create a scanner that covers a range of records.
  20312. @param beginRecNum
  20313. The RecordNum for the first record (inclusive).
  20314. @param endRecNum
  20315. The RecordNum for the last record (exclusive). To scan the whole
  20316. file, either specify endRecNum==-1 or endRecNum==getEntryCount().
  20317. @return The TFile scanner that covers the specified range of records.
  20318. @throws IOException]]>
  20319. </doc>
  20320. </method>
  20321. <doc>
  20322. <![CDATA[TFile Reader. Users may only read TFiles by creating TFile.Reader.Scanner.
  20323. objects. A scanner may scan the whole TFile ({@link Reader#createScanner()}
  20324. ) , a portion of TFile based on byte offsets (
  20325. {@link Reader#createScannerByByteRange(long, long)}), or a portion of TFile with keys
  20326. fall in a certain key range (for sorted TFile only,
  20327. {@link Reader#createScannerByKey(byte[], byte[])} or
  20328. {@link Reader#createScannerByKey(RawComparable, RawComparable)}).]]>
  20329. </doc>
  20330. </class>
  20331. <!-- end class org.apache.hadoop.io.file.tfile.TFile.Reader -->
  20332. <!-- start class org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner -->
  20333. <class name="TFile.Reader.Scanner" extends="java.lang.Object"
  20334. abstract="false"
  20335. static="true" final="false" visibility="public"
  20336. deprecated="not deprecated">
  20337. <implements name="java.io.Closeable"/>
  20338. <constructor name="TFile.Reader.Scanner" type="org.apache.hadoop.io.file.tfile.TFile.Reader, long, long"
  20339. static="false" final="false" visibility="protected"
  20340. deprecated="not deprecated">
  20341. <exception name="IOException" type="java.io.IOException"/>
  20342. <doc>
  20343. <![CDATA[Constructor
  20344. @param reader
  20345. The TFile reader object.
  20346. @param offBegin
  20347. Begin byte-offset of the scan.
  20348. @param offEnd
  20349. End byte-offset of the scan.
  20350. @throws IOException
  20351. The offsets will be rounded to the beginning of a compressed
  20352. block whose offset is greater than or equal to the specified
  20353. offset.]]>
  20354. </doc>
  20355. </constructor>
  20356. <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"
  20357. static="false" final="false" visibility="protected"
  20358. deprecated="not deprecated">
  20359. <exception name="IOException" type="java.io.IOException"/>
  20360. <doc>
  20361. <![CDATA[Constructor
  20362. @param reader
  20363. The TFile reader object.
  20364. @param beginKey
  20365. Begin key of the scan. If null, scan from the first <K,V>
  20366. entry of the TFile.
  20367. @param endKey
  20368. End key of the scan. If null, scan up to the last <K, V> entry
  20369. of the TFile.
  20370. @throws IOException]]>
  20371. </doc>
  20372. </constructor>
  20373. <method name="seekTo" return="boolean"
  20374. abstract="false" native="false" synchronized="false"
  20375. static="false" final="false" visibility="public"
  20376. deprecated="not deprecated">
  20377. <param name="key" type="byte[]"/>
  20378. <exception name="IOException" type="java.io.IOException"/>
  20379. <doc>
  20380. <![CDATA[Move the cursor to the first entry whose key is greater than or equal
  20381. to the input key. Synonymous to seekTo(key, 0, key.length). The entry
  20382. returned by the previous entry() call will be invalid.
  20383. @param key
  20384. The input key
  20385. @return true if we find an equal key.
  20386. @throws IOException]]>
  20387. </doc>
  20388. </method>
  20389. <method name="seekTo" return="boolean"
  20390. abstract="false" native="false" synchronized="false"
  20391. static="false" final="false" visibility="public"
  20392. deprecated="not deprecated">
  20393. <param name="key" type="byte[]"/>
  20394. <param name="keyOffset" type="int"/>
  20395. <param name="keyLen" type="int"/>
  20396. <exception name="IOException" type="java.io.IOException"/>
  20397. <doc>
  20398. <![CDATA[Move the cursor to the first entry whose key is greater than or equal
  20399. to the input key. The entry returned by the previous entry() call will
  20400. be invalid.
  20401. @param key
  20402. The input key
  20403. @param keyOffset
  20404. offset in the key buffer.
  20405. @param keyLen
  20406. key buffer length.
  20407. @return true if we find an equal key; false otherwise.
  20408. @throws IOException]]>
  20409. </doc>
  20410. </method>
  20411. <method name="rewind"
  20412. abstract="false" native="false" synchronized="false"
  20413. static="false" final="false" visibility="public"
  20414. deprecated="not deprecated">
  20415. <exception name="IOException" type="java.io.IOException"/>
  20416. <doc>
  20417. <![CDATA[Rewind to the first entry in the scanner. The entry returned by the
  20418. previous entry() call will be invalid.
  20419. @throws IOException]]>
  20420. </doc>
  20421. </method>
  20422. <method name="seekToEnd"
  20423. abstract="false" native="false" synchronized="false"
  20424. static="false" final="false" visibility="public"
  20425. deprecated="not deprecated">
  20426. <exception name="IOException" type="java.io.IOException"/>
  20427. <doc>
  20428. <![CDATA[Seek to the end of the scanner. The entry returned by the previous
  20429. entry() call will be invalid.
  20430. @throws IOException]]>
  20431. </doc>
  20432. </method>
  20433. <method name="lowerBound"
  20434. abstract="false" native="false" synchronized="false"
  20435. static="false" final="false" visibility="public"
  20436. deprecated="not deprecated">
  20437. <param name="key" type="byte[]"/>
  20438. <exception name="IOException" type="java.io.IOException"/>
  20439. <doc>
  20440. <![CDATA[Move the cursor to the first entry whose key is greater than or equal
  20441. to the input key. Synonymous to lowerBound(key, 0, key.length). The
  20442. entry returned by the previous entry() call will be invalid.
  20443. @param key
  20444. The input key
  20445. @throws IOException]]>
  20446. </doc>
  20447. </method>
  20448. <method name="lowerBound"
  20449. abstract="false" native="false" synchronized="false"
  20450. static="false" final="false" visibility="public"
  20451. deprecated="not deprecated">
  20452. <param name="key" type="byte[]"/>
  20453. <param name="keyOffset" type="int"/>
  20454. <param name="keyLen" type="int"/>
  20455. <exception name="IOException" type="java.io.IOException"/>
  20456. <doc>
  20457. <![CDATA[Move the cursor to the first entry whose key is greater than or equal
  20458. to the input key. The entry returned by the previous entry() call will
  20459. be invalid.
  20460. @param key
  20461. The input key
  20462. @param keyOffset
  20463. offset in the key buffer.
  20464. @param keyLen
  20465. key buffer length.
  20466. @throws IOException]]>
  20467. </doc>
  20468. </method>
  20469. <method name="upperBound"
  20470. abstract="false" native="false" synchronized="false"
  20471. static="false" final="false" visibility="public"
  20472. deprecated="not deprecated">
  20473. <param name="key" type="byte[]"/>
  20474. <exception name="IOException" type="java.io.IOException"/>
  20475. <doc>
  20476. <![CDATA[Move the cursor to the first entry whose key is strictly greater than
  20477. the input key. Synonymous to upperBound(key, 0, key.length). The entry
  20478. returned by the previous entry() call will be invalid.
  20479. @param key
  20480. The input key
  20481. @throws IOException]]>
  20482. </doc>
  20483. </method>
  20484. <method name="upperBound"
  20485. abstract="false" native="false" synchronized="false"
  20486. static="false" final="false" visibility="public"
  20487. deprecated="not deprecated">
  20488. <param name="key" type="byte[]"/>
  20489. <param name="keyOffset" type="int"/>
  20490. <param name="keyLen" type="int"/>
  20491. <exception name="IOException" type="java.io.IOException"/>
  20492. <doc>
  20493. <![CDATA[Move the cursor to the first entry whose key is strictly greater than
  20494. the input key. The entry returned by the previous entry() call will be
  20495. invalid.
  20496. @param key
  20497. The input key
  20498. @param keyOffset
  20499. offset in the key buffer.
  20500. @param keyLen
  20501. key buffer length.
  20502. @throws IOException]]>
  20503. </doc>
  20504. </method>
  20505. <method name="advance" return="boolean"
  20506. abstract="false" native="false" synchronized="false"
  20507. static="false" final="false" visibility="public"
  20508. deprecated="not deprecated">
  20509. <exception name="IOException" type="java.io.IOException"/>
  20510. <doc>
  20511. <![CDATA[Move the cursor to the next key-value pair. The entry returned by the
  20512. previous entry() call will be invalid.
  20513. @return true if the cursor successfully moves. False when cursor is
  20514. already at the end location and cannot be advanced.
  20515. @throws IOException]]>
  20516. </doc>
  20517. </method>
  20518. <method name="close"
  20519. abstract="false" native="false" synchronized="false"
  20520. static="false" final="false" visibility="public"
  20521. deprecated="not deprecated">
  20522. <exception name="IOException" type="java.io.IOException"/>
  20523. <doc>
  20524. <![CDATA[Close the scanner. Release all resources. The behavior of using the
  20525. scanner after calling close is not defined. The entry returned by the
  20526. previous entry() call will be invalid.]]>
  20527. </doc>
  20528. </method>
  20529. <method name="atEnd" return="boolean"
  20530. abstract="false" native="false" synchronized="false"
  20531. static="false" final="false" visibility="public"
  20532. deprecated="not deprecated">
  20533. <doc>
  20534. <![CDATA[Is cursor at the end location?
  20535. @return true if the cursor is at the end location.]]>
  20536. </doc>
  20537. </method>
  20538. <method name="entry" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner.Entry"
  20539. abstract="false" native="false" synchronized="false"
  20540. static="false" final="false" visibility="public"
  20541. deprecated="not deprecated">
  20542. <exception name="IOException" type="java.io.IOException"/>
  20543. <doc>
  20544. <![CDATA[Get an entry to access the key and value.
  20545. @return The Entry object to access the key and value.
  20546. @throws IOException]]>
  20547. </doc>
  20548. </method>
  20549. <method name="getRecordNum" return="long"
  20550. abstract="false" native="false" synchronized="false"
  20551. static="false" final="false" visibility="public"
  20552. deprecated="not deprecated">
  20553. <exception name="IOException" type="java.io.IOException"/>
  20554. <doc>
  20555. <![CDATA[Get the RecordNum corresponding to the entry pointed by the cursor.
  20556. @return The RecordNum corresponding to the entry pointed by the cursor.
  20557. @throws IOException]]>
  20558. </doc>
  20559. </method>
  20560. <doc>
  20561. <![CDATA[The TFile Scanner. The Scanner has an implicit cursor, which, upon
  20562. creation, points to the first key-value pair in the scan range. If the
  20563. scan range is empty, the cursor will point to the end of the scan range.
  20564. <p>
  20565. Use {@link Scanner#atEnd()} to test whether the cursor is at the end
  20566. location of the scanner.
  20567. <p>
  20568. Use {@link Scanner#advance()} to move the cursor to the next key-value
  20569. pair (or end if none exists). Use seekTo methods (
  20570. {@link Scanner#seekTo(byte[])} or
  20571. {@link Scanner#seekTo(byte[], int, int)}) to seek to any arbitrary
  20572. location in the covered range (including backward seeking). Use
  20573. {@link Scanner#rewind()} to seek back to the beginning of the scanner.
  20574. Use {@link Scanner#seekToEnd()} to seek to the end of the scanner.
  20575. <p>
  20576. Actual keys and values may be obtained through {@link Scanner.Entry}
  20577. object, which is obtained through {@link Scanner#entry()}.]]>
  20578. </doc>
  20579. </class>
  20580. <!-- end class org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner -->
  20581. <!-- start class org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner.Entry -->
  20582. <class name="TFile.Reader.Scanner.Entry" extends="java.lang.Object"
  20583. abstract="false"
  20584. static="false" final="false" visibility="public"
  20585. deprecated="not deprecated">
  20586. <implements name="java.lang.Comparable"/>
  20587. <constructor name="TFile.Reader.Scanner.Entry"
  20588. static="false" final="false" visibility="public"
  20589. deprecated="not deprecated">
  20590. </constructor>
  20591. <method name="getKeyLength" return="int"
  20592. abstract="false" native="false" synchronized="false"
  20593. static="false" final="false" visibility="public"
  20594. deprecated="not deprecated">
  20595. <doc>
  20596. <![CDATA[Get the length of the key.
  20597. @return the length of the key.]]>
  20598. </doc>
  20599. </method>
  20600. <method name="get"
  20601. abstract="false" native="false" synchronized="false"
  20602. static="false" final="false" visibility="public"
  20603. deprecated="not deprecated">
  20604. <param name="key" type="org.apache.hadoop.io.BytesWritable"/>
  20605. <param name="value" type="org.apache.hadoop.io.BytesWritable"/>
  20606. <exception name="IOException" type="java.io.IOException"/>
  20607. <doc>
  20608. <![CDATA[Copy the key and value in one shot into BytesWritables. This is
  20609. equivalent to getKey(key); getValue(value);
  20610. @param key
  20611. BytesWritable to hold key.
  20612. @param value
  20613. BytesWritable to hold value
  20614. @throws IOException]]>
  20615. </doc>
  20616. </method>
  20617. <method name="getKey" return="int"
  20618. abstract="false" native="false" synchronized="false"
  20619. static="false" final="false" visibility="public"
  20620. deprecated="not deprecated">
  20621. <param name="key" type="org.apache.hadoop.io.BytesWritable"/>
  20622. <exception name="IOException" type="java.io.IOException"/>
  20623. <doc>
  20624. <![CDATA[Copy the key into BytesWritable. The input BytesWritable will be
  20625. automatically resized to the actual key size.
  20626. @param key
  20627. BytesWritable to hold the key.
  20628. @throws IOException]]>
  20629. </doc>
  20630. </method>
  20631. <method name="getValue" return="long"
  20632. abstract="false" native="false" synchronized="false"
  20633. static="false" final="false" visibility="public"
  20634. deprecated="not deprecated">
  20635. <param name="value" type="org.apache.hadoop.io.BytesWritable"/>
  20636. <exception name="IOException" type="java.io.IOException"/>
  20637. <doc>
  20638. <![CDATA[Copy the value into BytesWritable. The input BytesWritable will be
  20639. automatically resized to the actual value size. The implementation
  20640. directly uses the buffer inside BytesWritable for storing the value.
  20641. The call does not require the value length to be known.
  20642. @param value
  20643. @throws IOException]]>
  20644. </doc>
  20645. </method>
  20646. <method name="writeKey" return="int"
  20647. abstract="false" native="false" synchronized="false"
  20648. static="false" final="false" visibility="public"
  20649. deprecated="not deprecated">
  20650. <param name="out" type="java.io.OutputStream"/>
  20651. <exception name="IOException" type="java.io.IOException"/>
  20652. <doc>
  20653. <![CDATA[Writing the key to the output stream. This method avoids copying key
  20654. buffer from Scanner into user buffer, then writing to the output
  20655. stream.
  20656. @param out
  20657. The output stream
  20658. @return the length of the key.
  20659. @throws IOException]]>
  20660. </doc>
  20661. </method>
  20662. <method name="writeValue" return="long"
  20663. abstract="false" native="false" synchronized="false"
  20664. static="false" final="false" visibility="public"
  20665. deprecated="not deprecated">
  20666. <param name="out" type="java.io.OutputStream"/>
  20667. <exception name="IOException" type="java.io.IOException"/>
  20668. <doc>
  20669. <![CDATA[Writing the value to the output stream. This method avoids copying
  20670. value data from Scanner into user buffer, then writing to the output
  20671. stream. It does not require the value length to be known.
  20672. @param out
  20673. The output stream
  20674. @return the length of the value
  20675. @throws IOException]]>
  20676. </doc>
  20677. </method>
  20678. <method name="getKey" return="int"
  20679. abstract="false" native="false" synchronized="false"
  20680. static="false" final="false" visibility="public"
  20681. deprecated="not deprecated">
  20682. <param name="buf" type="byte[]"/>
  20683. <exception name="IOException" type="java.io.IOException"/>
  20684. <doc>
  20685. <![CDATA[Copy the key into user supplied buffer.
  20686. @param buf
  20687. The buffer supplied by user. The length of the buffer must
  20688. not be shorter than the key length.
  20689. @return The length of the key.
  20690. @throws IOException]]>
  20691. </doc>
  20692. </method>
  20693. <method name="getKey" return="int"
  20694. abstract="false" native="false" synchronized="false"
  20695. static="false" final="false" visibility="public"
  20696. deprecated="not deprecated">
  20697. <param name="buf" type="byte[]"/>
  20698. <param name="offset" type="int"/>
  20699. <exception name="IOException" type="java.io.IOException"/>
  20700. <doc>
  20701. <![CDATA[Copy the key into user supplied buffer.
  20702. @param buf
  20703. The buffer supplied by user.
  20704. @param offset
  20705. The starting offset of the user buffer where we should copy
  20706. the key into. Requiring the key-length + offset no greater
  20707. than the buffer length.
  20708. @return The length of the key.
  20709. @throws IOException]]>
  20710. </doc>
  20711. </method>
  20712. <method name="getKeyStream" return="java.io.DataInputStream"
  20713. abstract="false" native="false" synchronized="false"
  20714. static="false" final="false" visibility="public"
  20715. deprecated="not deprecated">
  20716. <doc>
  20717. <![CDATA[Streaming access to the key. Useful for desrializing the key into
  20718. user objects.
  20719. @return The input stream.]]>
  20720. </doc>
  20721. </method>
  20722. <method name="getValueLength" return="int"
  20723. abstract="false" native="false" synchronized="false"
  20724. static="false" final="false" visibility="public"
  20725. deprecated="not deprecated">
  20726. <doc>
  20727. <![CDATA[Get the length of the value. isValueLengthKnown() must be tested
  20728. true.
  20729. @return the length of the value.]]>
  20730. </doc>
  20731. </method>
  20732. <method name="getValue" return="int"
  20733. abstract="false" native="false" synchronized="false"
  20734. static="false" final="false" visibility="public"
  20735. deprecated="not deprecated">
  20736. <param name="buf" type="byte[]"/>
  20737. <exception name="IOException" type="java.io.IOException"/>
  20738. <doc>
  20739. <![CDATA[Copy value into user-supplied buffer. User supplied buffer must be
  20740. large enough to hold the whole value. The value part of the key-value
  20741. pair pointed by the current cursor is not cached and can only be
  20742. examined once. Calling any of the following functions more than once
  20743. without moving the cursor will result in exception:
  20744. {@link #getValue(byte[])}, {@link #getValue(byte[], int)},
  20745. {@link #getValueStream}.
  20746. @return the length of the value. Does not require
  20747. isValueLengthKnown() to be true.
  20748. @throws IOException]]>
  20749. </doc>
  20750. </method>
  20751. <method name="getValue" return="int"
  20752. abstract="false" native="false" synchronized="false"
  20753. static="false" final="false" visibility="public"
  20754. deprecated="not deprecated">
  20755. <param name="buf" type="byte[]"/>
  20756. <param name="offset" type="int"/>
  20757. <exception name="IOException" type="java.io.IOException"/>
  20758. <doc>
  20759. <![CDATA[Copy value into user-supplied buffer. User supplied buffer must be
  20760. large enough to hold the whole value (starting from the offset). The
  20761. value part of the key-value pair pointed by the current cursor is not
  20762. cached and can only be examined once. Calling any of the following
  20763. functions more than once without moving the cursor will result in
  20764. exception: {@link #getValue(byte[])}, {@link #getValue(byte[], int)},
  20765. {@link #getValueStream}.
  20766. @return the length of the value. Does not require
  20767. isValueLengthKnown() to be true.
  20768. @throws IOException]]>
  20769. </doc>
  20770. </method>
  20771. <method name="getValueStream" return="java.io.DataInputStream"
  20772. abstract="false" native="false" synchronized="false"
  20773. static="false" final="false" visibility="public"
  20774. deprecated="not deprecated">
  20775. <exception name="IOException" type="java.io.IOException"/>
  20776. <doc>
  20777. <![CDATA[Stream access to value. The value part of the key-value pair pointed
  20778. by the current cursor is not cached and can only be examined once.
  20779. Calling any of the following functions more than once without moving
  20780. the cursor will result in exception: {@link #getValue(byte[])},
  20781. {@link #getValue(byte[], int)}, {@link #getValueStream}.
  20782. @return The input stream for reading the value.
  20783. @throws IOException]]>
  20784. </doc>
  20785. </method>
  20786. <method name="isValueLengthKnown" return="boolean"
  20787. abstract="false" native="false" synchronized="false"
  20788. static="false" final="false" visibility="public"
  20789. deprecated="not deprecated">
  20790. <doc>
  20791. <![CDATA[Check whether it is safe to call getValueLength().
  20792. @return true if value length is known before hand. Values less than
  20793. the chunk size will always have their lengths known before
  20794. hand. Values that are written out as a whole (with advertised
  20795. length up-front) will always have their lengths known in
  20796. read.]]>
  20797. </doc>
  20798. </method>
  20799. <method name="compareTo" return="int"
  20800. abstract="false" native="false" synchronized="false"
  20801. static="false" final="false" visibility="public"
  20802. deprecated="not deprecated">
  20803. <param name="buf" type="byte[]"/>
  20804. <doc>
  20805. <![CDATA[Compare the entry key to another key. Synonymous to compareTo(key, 0,
  20806. key.length).
  20807. @param buf
  20808. The key buffer.
  20809. @return comparison result between the entry key with the input key.]]>
  20810. </doc>
  20811. </method>
  20812. <method name="compareTo" return="int"
  20813. abstract="false" native="false" synchronized="false"
  20814. static="false" final="false" visibility="public"
  20815. deprecated="not deprecated">
  20816. <param name="buf" type="byte[]"/>
  20817. <param name="offset" type="int"/>
  20818. <param name="length" type="int"/>
  20819. <doc>
  20820. <![CDATA[Compare the entry key to another key. Synonymous to compareTo(new
  20821. ByteArray(buf, offset, length)
  20822. @param buf
  20823. The key buffer
  20824. @param offset
  20825. offset into the key buffer.
  20826. @param length
  20827. the length of the key.
  20828. @return comparison result between the entry key with the input key.]]>
  20829. </doc>
  20830. </method>
  20831. <method name="compareTo" return="int"
  20832. abstract="false" native="false" synchronized="false"
  20833. static="false" final="false" visibility="public"
  20834. deprecated="not deprecated">
  20835. <param name="key" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  20836. <doc>
  20837. <![CDATA[Compare an entry with a RawComparable object. This is useful when
  20838. Entries are stored in a collection, and we want to compare a user
  20839. supplied key.]]>
  20840. </doc>
  20841. </method>
  20842. <method name="equals" return="boolean"
  20843. abstract="false" native="false" synchronized="false"
  20844. static="false" final="false" visibility="public"
  20845. deprecated="not deprecated">
  20846. <param name="other" type="java.lang.Object"/>
  20847. <doc>
  20848. <![CDATA[Compare whether this and other points to the same key value.]]>
  20849. </doc>
  20850. </method>
  20851. <method name="hashCode" return="int"
  20852. abstract="false" native="false" synchronized="false"
  20853. static="false" final="false" visibility="public"
  20854. deprecated="not deprecated">
  20855. </method>
  20856. <doc>
  20857. <![CDATA[Entry to a &lt;Key, Value&gt; pair.]]>
  20858. </doc>
  20859. </class>
  20860. <!-- end class org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner.Entry -->
  20861. <!-- start class org.apache.hadoop.io.file.tfile.TFile.Writer -->
  20862. <class name="TFile.Writer" extends="java.lang.Object"
  20863. abstract="false"
  20864. static="true" final="false" visibility="public"
  20865. deprecated="not deprecated">
  20866. <implements name="java.io.Closeable"/>
  20867. <constructor name="TFile.Writer" type="org.apache.hadoop.fs.FSDataOutputStream, int, java.lang.String, java.lang.String, org.apache.hadoop.conf.Configuration"
  20868. static="false" final="false" visibility="public"
  20869. deprecated="not deprecated">
  20870. <exception name="IOException" type="java.io.IOException"/>
  20871. <doc>
  20872. <![CDATA[Constructor
  20873. @param fsdos
  20874. output stream for writing. Must be at position 0.
  20875. @param minBlockSize
  20876. Minimum compressed block size in bytes. A compression block will
  20877. not be closed until it reaches this size except for the last
  20878. block.
  20879. @param compressName
  20880. Name of the compression algorithm. Must be one of the strings
  20881. returned by {@link TFile#getSupportedCompressionAlgorithms()}.
  20882. @param comparator
  20883. Leave comparator as null or empty string if TFile is not sorted.
  20884. Otherwise, provide the string name for the comparison algorithm
  20885. for keys. Two kinds of comparators are supported.
  20886. <ul>
  20887. <li>Algorithmic comparator: binary comparators that is language
  20888. independent. Currently, only "memcmp" is supported.
  20889. <li>Language-specific comparator: binary comparators that can
  20890. only be constructed in specific language. For Java, the syntax
  20891. is "jclass:", followed by the class name of the RawComparator.
  20892. Currently, we only support RawComparators that can be
  20893. constructed through the default constructor (with no
  20894. parameters). Parameterized RawComparators such as
  20895. {@link WritableComparator} or
  20896. {@link JavaSerializationComparator} may not be directly used.
  20897. One should write a wrapper class that inherits from such classes
  20898. and use its default constructor to perform proper
  20899. initialization.
  20900. </ul>
  20901. @param conf
  20902. The configuration object.
  20903. @throws IOException]]>
  20904. </doc>
  20905. </constructor>
  20906. <method name="close"
  20907. abstract="false" native="false" synchronized="false"
  20908. static="false" final="false" visibility="public"
  20909. deprecated="not deprecated">
  20910. <exception name="IOException" type="java.io.IOException"/>
  20911. <doc>
  20912. <![CDATA[Close the Writer. Resources will be released regardless of the exceptions
  20913. being thrown. Future close calls will have no effect.
  20914. The underlying FSDataOutputStream is not closed.]]>
  20915. </doc>
  20916. </method>
  20917. <method name="append"
  20918. abstract="false" native="false" synchronized="false"
  20919. static="false" final="false" visibility="public"
  20920. deprecated="not deprecated">
  20921. <param name="key" type="byte[]"/>
  20922. <param name="value" type="byte[]"/>
  20923. <exception name="IOException" type="java.io.IOException"/>
  20924. <doc>
  20925. <![CDATA[Adding a new key-value pair to the TFile. This is synonymous to
  20926. append(key, 0, key.length, value, 0, value.length)
  20927. @param key
  20928. Buffer for key.
  20929. @param value
  20930. Buffer for value.
  20931. @throws IOException]]>
  20932. </doc>
  20933. </method>
  20934. <method name="append"
  20935. abstract="false" native="false" synchronized="false"
  20936. static="false" final="false" visibility="public"
  20937. deprecated="not deprecated">
  20938. <param name="key" type="byte[]"/>
  20939. <param name="koff" type="int"/>
  20940. <param name="klen" type="int"/>
  20941. <param name="value" type="byte[]"/>
  20942. <param name="voff" type="int"/>
  20943. <param name="vlen" type="int"/>
  20944. <exception name="IOException" type="java.io.IOException"/>
  20945. <doc>
  20946. <![CDATA[Adding a new key-value pair to TFile.
  20947. @param key
  20948. buffer for key.
  20949. @param koff
  20950. offset in key buffer.
  20951. @param klen
  20952. length of key.
  20953. @param value
  20954. buffer for value.
  20955. @param voff
  20956. offset in value buffer.
  20957. @param vlen
  20958. length of value.
  20959. @throws IOException
  20960. Upon IO errors.
  20961. <p>
  20962. If an exception is thrown, the TFile will be in an inconsistent
  20963. state. The only legitimate call after that would be close]]>
  20964. </doc>
  20965. </method>
  20966. <method name="prepareAppendKey" return="java.io.DataOutputStream"
  20967. abstract="false" native="false" synchronized="false"
  20968. static="false" final="false" visibility="public"
  20969. deprecated="not deprecated">
  20970. <param name="length" type="int"/>
  20971. <exception name="IOException" type="java.io.IOException"/>
  20972. <doc>
  20973. <![CDATA[Obtain an output stream for writing a key into TFile. This may only be
  20974. called when there is no active Key appending stream or value appending
  20975. stream.
  20976. @param length
  20977. The expected length of the key. If length of the key is not
  20978. known, set length = -1. Otherwise, the application must write
  20979. exactly as many bytes as specified here before calling close on
  20980. the returned output stream.
  20981. @return The key appending output stream.
  20982. @throws IOException]]>
  20983. </doc>
  20984. </method>
  20985. <method name="prepareAppendValue" return="java.io.DataOutputStream"
  20986. abstract="false" native="false" synchronized="false"
  20987. static="false" final="false" visibility="public"
  20988. deprecated="not deprecated">
  20989. <param name="length" type="int"/>
  20990. <exception name="IOException" type="java.io.IOException"/>
  20991. <doc>
  20992. <![CDATA[Obtain an output stream for writing a value into TFile. This may only be
  20993. called right after a key appending operation (the key append stream must
  20994. be closed).
  20995. @param length
  20996. The expected length of the value. If length of the value is not
  20997. known, set length = -1. Otherwise, the application must write
  20998. exactly as many bytes as specified here before calling close on
  20999. the returned output stream. Advertising the value size up-front
  21000. guarantees that the value is encoded in one chunk, and avoids
  21001. intermediate chunk buffering.
  21002. @throws IOException]]>
  21003. </doc>
  21004. </method>
  21005. <method name="prepareMetaBlock" return="java.io.DataOutputStream"
  21006. abstract="false" native="false" synchronized="false"
  21007. static="false" final="false" visibility="public"
  21008. deprecated="not deprecated">
  21009. <param name="name" type="java.lang.String"/>
  21010. <param name="compressName" type="java.lang.String"/>
  21011. <exception name="IOException" type="java.io.IOException"/>
  21012. <exception name="MetaBlockAlreadyExists" type="org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists"/>
  21013. <doc>
  21014. <![CDATA[Obtain an output stream for creating a meta block. This function may not
  21015. be called when there is a key append stream or value append stream
  21016. active. No more key-value insertion is allowed after a meta data block
  21017. has been added to TFile.
  21018. @param name
  21019. Name of the meta block.
  21020. @param compressName
  21021. Name of the compression algorithm to be used. Must be one of the
  21022. strings returned by
  21023. {@link TFile#getSupportedCompressionAlgorithms()}.
  21024. @return A DataOutputStream that can be used to write Meta Block data.
  21025. Closing the stream would signal the ending of the block.
  21026. @throws IOException
  21027. @throws MetaBlockAlreadyExists
  21028. the Meta Block with the same name already exists.]]>
  21029. </doc>
  21030. </method>
  21031. <method name="prepareMetaBlock" return="java.io.DataOutputStream"
  21032. abstract="false" native="false" synchronized="false"
  21033. static="false" final="false" visibility="public"
  21034. deprecated="not deprecated">
  21035. <param name="name" type="java.lang.String"/>
  21036. <exception name="IOException" type="java.io.IOException"/>
  21037. <exception name="MetaBlockAlreadyExists" type="org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists"/>
  21038. <doc>
  21039. <![CDATA[Obtain an output stream for creating a meta block. This function may not
  21040. be called when there is a key append stream or value append stream
  21041. active. No more key-value insertion is allowed after a meta data block
  21042. has been added to TFile. Data will be compressed using the default
  21043. compressor as defined in Writer's constructor.
  21044. @param name
  21045. Name of the meta block.
  21046. @return A DataOutputStream that can be used to write Meta Block data.
  21047. Closing the stream would signal the ending of the block.
  21048. @throws IOException
  21049. @throws MetaBlockAlreadyExists
  21050. the Meta Block with the same name already exists.]]>
  21051. </doc>
  21052. </method>
  21053. <doc>
  21054. <![CDATA[TFile Writer.]]>
  21055. </doc>
  21056. </class>
  21057. <!-- end class org.apache.hadoop.io.file.tfile.TFile.Writer -->
  21058. <!-- start class org.apache.hadoop.io.file.tfile.Utils -->
  21059. <class name="Utils" extends="java.lang.Object"
  21060. abstract="false"
  21061. static="false" final="true" visibility="public"
  21062. deprecated="not deprecated">
  21063. <method name="writeVInt"
  21064. abstract="false" native="false" synchronized="false"
  21065. static="true" final="false" visibility="public"
  21066. deprecated="not deprecated">
  21067. <param name="out" type="java.io.DataOutput"/>
  21068. <param name="n" type="int"/>
  21069. <exception name="IOException" type="java.io.IOException"/>
  21070. <doc>
  21071. <![CDATA[Encoding an integer into a variable-length encoding format. Synonymous to
  21072. <code>Utils#writeVLong(out, n)</code>.
  21073. @param out
  21074. output stream
  21075. @param n
  21076. The integer to be encoded
  21077. @throws IOException
  21078. @see Utils#writeVLong(DataOutput, long)]]>
  21079. </doc>
  21080. </method>
  21081. <method name="writeVLong"
  21082. abstract="false" native="false" synchronized="false"
  21083. static="true" final="false" visibility="public"
  21084. deprecated="not deprecated">
  21085. <param name="out" type="java.io.DataOutput"/>
  21086. <param name="n" type="long"/>
  21087. <exception name="IOException" type="java.io.IOException"/>
  21088. <doc>
  21089. <![CDATA[Encoding a Long integer into a variable-length encoding format.
  21090. <ul>
  21091. <li>if n in [-32, 127): encode in one byte with the actual value.
  21092. Otherwise,
  21093. <li>if n in [-20*2^8, 20*2^8): encode in two bytes: byte[0] = n/256 - 52;
  21094. byte[1]=n&0xff. Otherwise,
  21095. <li>if n IN [-16*2^16, 16*2^16): encode in three bytes: byte[0]=n/2^16 -
  21096. 88; byte[1]=(n>>8)&0xff; byte[2]=n&0xff. Otherwise,
  21097. <li>if n in [-8*2^24, 8*2^24): encode in four bytes: byte[0]=n/2^24 - 112;
  21098. byte[1] = (n>>16)&0xff; byte[2] = (n>>8)&0xff; byte[3]=n&0xff. Otherwise:
  21099. <li>if n in [-2^31, 2^31): encode in five bytes: byte[0]=-125; byte[1] =
  21100. (n>>24)&0xff; byte[2]=(n>>16)&0xff; byte[3]=(n>>8)&0xff; byte[4]=n&0xff;
  21101. <li>if n in [-2^39, 2^39): encode in six bytes: byte[0]=-124; byte[1] =
  21102. (n>>32)&0xff; byte[2]=(n>>24)&0xff; byte[3]=(n>>16)&0xff;
  21103. byte[4]=(n>>8)&0xff; byte[5]=n&0xff
  21104. <li>if n in [-2^47, 2^47): encode in seven bytes: byte[0]=-123; byte[1] =
  21105. (n>>40)&0xff; byte[2]=(n>>32)&0xff; byte[3]=(n>>24)&0xff;
  21106. byte[4]=(n>>16)&0xff; byte[5]=(n>>8)&0xff; byte[6]=n&0xff;
  21107. <li>if n in [-2^55, 2^55): encode in eight bytes: byte[0]=-122; byte[1] =
  21108. (n>>48)&0xff; byte[2] = (n>>40)&0xff; byte[3]=(n>>32)&0xff;
  21109. byte[4]=(n>>24)&0xff; byte[5]=(n>>16)&0xff; byte[6]=(n>>8)&0xff;
  21110. byte[7]=n&0xff;
  21111. <li>if n in [-2^63, 2^63): encode in nine bytes: byte[0]=-121; byte[1] =
  21112. (n>>54)&0xff; byte[2] = (n>>48)&0xff; byte[3] = (n>>40)&0xff;
  21113. byte[4]=(n>>32)&0xff; byte[5]=(n>>24)&0xff; byte[6]=(n>>16)&0xff;
  21114. byte[7]=(n>>8)&0xff; byte[8]=n&0xff;
  21115. </ul>
  21116. @param out
  21117. output stream
  21118. @param n
  21119. the integer number
  21120. @throws IOException]]>
  21121. </doc>
  21122. </method>
  21123. <method name="readVInt" return="int"
  21124. abstract="false" native="false" synchronized="false"
  21125. static="true" final="false" visibility="public"
  21126. deprecated="not deprecated">
  21127. <param name="in" type="java.io.DataInput"/>
  21128. <exception name="IOException" type="java.io.IOException"/>
  21129. <doc>
  21130. <![CDATA[Decoding the variable-length integer. Synonymous to
  21131. <code>(int)Utils#readVLong(in)</code>.
  21132. @param in
  21133. input stream
  21134. @return the decoded integer
  21135. @throws IOException
  21136. @see Utils#readVLong(DataInput)]]>
  21137. </doc>
  21138. </method>
  21139. <method name="readVLong" return="long"
  21140. abstract="false" native="false" synchronized="false"
  21141. static="true" final="false" visibility="public"
  21142. deprecated="not deprecated">
  21143. <param name="in" type="java.io.DataInput"/>
  21144. <exception name="IOException" type="java.io.IOException"/>
  21145. <doc>
  21146. <![CDATA[Decoding the variable-length integer. Suppose the value of the first byte
  21147. is FB, and the following bytes are NB[*].
  21148. <ul>
  21149. <li>if (FB >= -32), return (long)FB;
  21150. <li>if (FB in [-72, -33]), return (FB+52)<<8 + NB[0]&0xff;
  21151. <li>if (FB in [-104, -73]), return (FB+88)<<16 + (NB[0]&0xff)<<8 +
  21152. NB[1]&0xff;
  21153. <li>if (FB in [-120, -105]), return (FB+112)<<24 + (NB[0]&0xff)<<16 +
  21154. (NB[1]&0xff)<<8 + NB[2]&0xff;
  21155. <li>if (FB in [-128, -121]), return interpret NB[FB+129] as a signed
  21156. big-endian integer.
  21157. @param in
  21158. input stream
  21159. @return the decoded long integer.
  21160. @throws IOException]]>
  21161. </doc>
  21162. </method>
  21163. <method name="writeString"
  21164. abstract="false" native="false" synchronized="false"
  21165. static="true" final="false" visibility="public"
  21166. deprecated="not deprecated">
  21167. <param name="out" type="java.io.DataOutput"/>
  21168. <param name="s" type="java.lang.String"/>
  21169. <exception name="IOException" type="java.io.IOException"/>
  21170. <doc>
  21171. <![CDATA[Write a String as a VInt n, followed by n Bytes as in Text format.
  21172. @param out
  21173. @param s
  21174. @throws IOException]]>
  21175. </doc>
  21176. </method>
  21177. <method name="readString" return="java.lang.String"
  21178. abstract="false" native="false" synchronized="false"
  21179. static="true" final="false" visibility="public"
  21180. deprecated="not deprecated">
  21181. <param name="in" type="java.io.DataInput"/>
  21182. <exception name="IOException" type="java.io.IOException"/>
  21183. <doc>
  21184. <![CDATA[Read a String as a VInt n, followed by n Bytes in Text format.
  21185. @param in
  21186. The input stream.
  21187. @return The string
  21188. @throws IOException]]>
  21189. </doc>
  21190. </method>
  21191. <method name="lowerBound" return="int"
  21192. abstract="false" native="false" synchronized="false"
  21193. static="true" final="false" visibility="public"
  21194. deprecated="not deprecated">
  21195. <param name="list" type="java.util.List"/>
  21196. <param name="key" type="java.lang.Object"/>
  21197. <param name="cmp" type="java.util.Comparator"/>
  21198. <doc>
  21199. <![CDATA[Lower bound binary search. Find the index to the first element in the list
  21200. that compares greater than or equal to key.
  21201. @param <T>
  21202. Type of the input key.
  21203. @param list
  21204. The list
  21205. @param key
  21206. The input key.
  21207. @param cmp
  21208. Comparator for the key.
  21209. @return The index to the desired element if it exists; or list.size()
  21210. otherwise.]]>
  21211. </doc>
  21212. </method>
  21213. <method name="upperBound" return="int"
  21214. abstract="false" native="false" synchronized="false"
  21215. static="true" final="false" visibility="public"
  21216. deprecated="not deprecated">
  21217. <param name="list" type="java.util.List"/>
  21218. <param name="key" type="java.lang.Object"/>
  21219. <param name="cmp" type="java.util.Comparator"/>
  21220. <doc>
  21221. <![CDATA[Upper bound binary search. Find the index to the first element in the list
  21222. that compares greater than the input key.
  21223. @param <T>
  21224. Type of the input key.
  21225. @param list
  21226. The list
  21227. @param key
  21228. The input key.
  21229. @param cmp
  21230. Comparator for the key.
  21231. @return The index to the desired element if it exists; or list.size()
  21232. otherwise.]]>
  21233. </doc>
  21234. </method>
  21235. <method name="lowerBound" return="int"
  21236. abstract="false" native="false" synchronized="false"
  21237. static="true" final="false" visibility="public"
  21238. deprecated="not deprecated">
  21239. <param name="list" type="java.util.List"/>
  21240. <param name="key" type="java.lang.Object"/>
  21241. <doc>
  21242. <![CDATA[Lower bound binary search. Find the index to the first element in the list
  21243. that compares greater than or equal to key.
  21244. @param <T>
  21245. Type of the input key.
  21246. @param list
  21247. The list
  21248. @param key
  21249. The input key.
  21250. @return The index to the desired element if it exists; or list.size()
  21251. otherwise.]]>
  21252. </doc>
  21253. </method>
  21254. <method name="upperBound" return="int"
  21255. abstract="false" native="false" synchronized="false"
  21256. static="true" final="false" visibility="public"
  21257. deprecated="not deprecated">
  21258. <param name="list" type="java.util.List"/>
  21259. <param name="key" type="java.lang.Object"/>
  21260. <doc>
  21261. <![CDATA[Upper bound binary search. Find the index to the first element in the list
  21262. that compares greater than the input key.
  21263. @param <T>
  21264. Type of the input key.
  21265. @param list
  21266. The list
  21267. @param key
  21268. The input key.
  21269. @return The index to the desired element if it exists; or list.size()
  21270. otherwise.]]>
  21271. </doc>
  21272. </method>
  21273. <doc>
  21274. <![CDATA[Supporting Utility classes used by TFile, and shared by users of TFile.]]>
  21275. </doc>
  21276. </class>
  21277. <!-- end class org.apache.hadoop.io.file.tfile.Utils -->
  21278. <!-- start class org.apache.hadoop.io.file.tfile.Utils.Version -->
  21279. <class name="Utils.Version" extends="java.lang.Object"
  21280. abstract="false"
  21281. static="true" final="true" visibility="public"
  21282. deprecated="not deprecated">
  21283. <implements name="java.lang.Comparable"/>
  21284. <constructor name="Utils.Version" type="java.io.DataInput"
  21285. static="false" final="false" visibility="public"
  21286. deprecated="not deprecated">
  21287. <exception name="IOException" type="java.io.IOException"/>
  21288. <doc>
  21289. <![CDATA[Construct the Version object by reading from the input stream.
  21290. @param in
  21291. input stream
  21292. @throws IOException]]>
  21293. </doc>
  21294. </constructor>
  21295. <constructor name="Utils.Version" type="short, short"
  21296. static="false" final="false" visibility="public"
  21297. deprecated="not deprecated">
  21298. <doc>
  21299. <![CDATA[Constructor.
  21300. @param major
  21301. major version.
  21302. @param minor
  21303. minor version.]]>
  21304. </doc>
  21305. </constructor>
  21306. <method name="write"
  21307. abstract="false" native="false" synchronized="false"
  21308. static="false" final="false" visibility="public"
  21309. deprecated="not deprecated">
  21310. <param name="out" type="java.io.DataOutput"/>
  21311. <exception name="IOException" type="java.io.IOException"/>
  21312. <doc>
  21313. <![CDATA[Write the objec to a DataOutput. The serialized format of the Version is
  21314. major version followed by minor version, both as big-endian short
  21315. integers.
  21316. @param out
  21317. The DataOutput object.
  21318. @throws IOException]]>
  21319. </doc>
  21320. </method>
  21321. <method name="getMajor" return="int"
  21322. abstract="false" native="false" synchronized="false"
  21323. static="false" final="false" visibility="public"
  21324. deprecated="not deprecated">
  21325. <doc>
  21326. <![CDATA[Get the major version.
  21327. @return Major version.]]>
  21328. </doc>
  21329. </method>
  21330. <method name="getMinor" return="int"
  21331. abstract="false" native="false" synchronized="false"
  21332. static="false" final="false" visibility="public"
  21333. deprecated="not deprecated">
  21334. <doc>
  21335. <![CDATA[Get the minor version.
  21336. @return The minor version.]]>
  21337. </doc>
  21338. </method>
  21339. <method name="size" return="int"
  21340. abstract="false" native="false" synchronized="false"
  21341. static="true" final="false" visibility="public"
  21342. deprecated="not deprecated">
  21343. <doc>
  21344. <![CDATA[Get the size of the serialized Version object.
  21345. @return serialized size of the version object.]]>
  21346. </doc>
  21347. </method>
  21348. <method name="toString" return="java.lang.String"
  21349. abstract="false" native="false" synchronized="false"
  21350. static="false" final="false" visibility="public"
  21351. deprecated="not deprecated">
  21352. <doc>
  21353. <![CDATA[Return a string representation of the version.]]>
  21354. </doc>
  21355. </method>
  21356. <method name="compatibleWith" return="boolean"
  21357. abstract="false" native="false" synchronized="false"
  21358. static="false" final="false" visibility="public"
  21359. deprecated="not deprecated">
  21360. <param name="other" type="org.apache.hadoop.io.file.tfile.Utils.Version"/>
  21361. <doc>
  21362. <![CDATA[Test compatibility.
  21363. @param other
  21364. The Version object to test compatibility with.
  21365. @return true if both versions have the same major version number; false
  21366. otherwise.]]>
  21367. </doc>
  21368. </method>
  21369. <method name="compareTo" return="int"
  21370. abstract="false" native="false" synchronized="false"
  21371. static="false" final="false" visibility="public"
  21372. deprecated="not deprecated">
  21373. <param name="that" type="org.apache.hadoop.io.file.tfile.Utils.Version"/>
  21374. <doc>
  21375. <![CDATA[Compare this version with another version.]]>
  21376. </doc>
  21377. </method>
  21378. <method name="equals" return="boolean"
  21379. abstract="false" native="false" synchronized="false"
  21380. static="false" final="false" visibility="public"
  21381. deprecated="not deprecated">
  21382. <param name="other" type="java.lang.Object"/>
  21383. </method>
  21384. <method name="hashCode" return="int"
  21385. abstract="false" native="false" synchronized="false"
  21386. static="false" final="false" visibility="public"
  21387. deprecated="not deprecated">
  21388. </method>
  21389. <doc>
  21390. <![CDATA[A generic Version class. We suggest applications built on top of TFile use
  21391. this class to maintain version information in their meta blocks.
  21392. A version number consists of a major version and a minor version. The
  21393. suggested usage of major and minor version number is to increment major
  21394. version number when the new storage format is not backward compatible, and
  21395. increment the minor version otherwise.]]>
  21396. </doc>
  21397. </class>
  21398. <!-- end class org.apache.hadoop.io.file.tfile.Utils.Version -->
  21399. </package>
  21400. <package name="org.apache.hadoop.io.nativeio">
  21401. <!-- start class org.apache.hadoop.io.nativeio.Errno -->
  21402. <class name="Errno" extends="java.lang.Enum"
  21403. abstract="false"
  21404. static="false" final="true" visibility="public"
  21405. deprecated="not deprecated">
  21406. <method name="values" return="org.apache.hadoop.io.nativeio.Errno[]"
  21407. abstract="false" native="false" synchronized="false"
  21408. static="true" final="false" visibility="public"
  21409. deprecated="not deprecated">
  21410. </method>
  21411. <method name="valueOf" return="org.apache.hadoop.io.nativeio.Errno"
  21412. abstract="false" native="false" synchronized="false"
  21413. static="true" final="false" visibility="public"
  21414. deprecated="not deprecated">
  21415. <param name="name" type="java.lang.String"/>
  21416. </method>
  21417. <field name="EPERM" type="org.apache.hadoop.io.nativeio.Errno"
  21418. transient="false" volatile="false"
  21419. static="true" final="true" visibility="public"
  21420. deprecated="not deprecated">
  21421. </field>
  21422. <field name="ENOENT" type="org.apache.hadoop.io.nativeio.Errno"
  21423. transient="false" volatile="false"
  21424. static="true" final="true" visibility="public"
  21425. deprecated="not deprecated">
  21426. </field>
  21427. <field name="ESRCH" type="org.apache.hadoop.io.nativeio.Errno"
  21428. transient="false" volatile="false"
  21429. static="true" final="true" visibility="public"
  21430. deprecated="not deprecated">
  21431. </field>
  21432. <field name="EINTR" type="org.apache.hadoop.io.nativeio.Errno"
  21433. transient="false" volatile="false"
  21434. static="true" final="true" visibility="public"
  21435. deprecated="not deprecated">
  21436. </field>
  21437. <field name="EIO" type="org.apache.hadoop.io.nativeio.Errno"
  21438. transient="false" volatile="false"
  21439. static="true" final="true" visibility="public"
  21440. deprecated="not deprecated">
  21441. </field>
  21442. <field name="ENXIO" type="org.apache.hadoop.io.nativeio.Errno"
  21443. transient="false" volatile="false"
  21444. static="true" final="true" visibility="public"
  21445. deprecated="not deprecated">
  21446. </field>
  21447. <field name="E2BIG" type="org.apache.hadoop.io.nativeio.Errno"
  21448. transient="false" volatile="false"
  21449. static="true" final="true" visibility="public"
  21450. deprecated="not deprecated">
  21451. </field>
  21452. <field name="ENOEXEC" type="org.apache.hadoop.io.nativeio.Errno"
  21453. transient="false" volatile="false"
  21454. static="true" final="true" visibility="public"
  21455. deprecated="not deprecated">
  21456. </field>
  21457. <field name="EBADF" type="org.apache.hadoop.io.nativeio.Errno"
  21458. transient="false" volatile="false"
  21459. static="true" final="true" visibility="public"
  21460. deprecated="not deprecated">
  21461. </field>
  21462. <field name="ECHILD" type="org.apache.hadoop.io.nativeio.Errno"
  21463. transient="false" volatile="false"
  21464. static="true" final="true" visibility="public"
  21465. deprecated="not deprecated">
  21466. </field>
  21467. <field name="EAGAIN" type="org.apache.hadoop.io.nativeio.Errno"
  21468. transient="false" volatile="false"
  21469. static="true" final="true" visibility="public"
  21470. deprecated="not deprecated">
  21471. </field>
  21472. <field name="ENOMEM" type="org.apache.hadoop.io.nativeio.Errno"
  21473. transient="false" volatile="false"
  21474. static="true" final="true" visibility="public"
  21475. deprecated="not deprecated">
  21476. </field>
  21477. <field name="EACCES" type="org.apache.hadoop.io.nativeio.Errno"
  21478. transient="false" volatile="false"
  21479. static="true" final="true" visibility="public"
  21480. deprecated="not deprecated">
  21481. </field>
  21482. <field name="EFAULT" type="org.apache.hadoop.io.nativeio.Errno"
  21483. transient="false" volatile="false"
  21484. static="true" final="true" visibility="public"
  21485. deprecated="not deprecated">
  21486. </field>
  21487. <field name="ENOTBLK" type="org.apache.hadoop.io.nativeio.Errno"
  21488. transient="false" volatile="false"
  21489. static="true" final="true" visibility="public"
  21490. deprecated="not deprecated">
  21491. </field>
  21492. <field name="EBUSY" type="org.apache.hadoop.io.nativeio.Errno"
  21493. transient="false" volatile="false"
  21494. static="true" final="true" visibility="public"
  21495. deprecated="not deprecated">
  21496. </field>
  21497. <field name="EEXIST" type="org.apache.hadoop.io.nativeio.Errno"
  21498. transient="false" volatile="false"
  21499. static="true" final="true" visibility="public"
  21500. deprecated="not deprecated">
  21501. </field>
  21502. <field name="EXDEV" type="org.apache.hadoop.io.nativeio.Errno"
  21503. transient="false" volatile="false"
  21504. static="true" final="true" visibility="public"
  21505. deprecated="not deprecated">
  21506. </field>
  21507. <field name="ENODEV" type="org.apache.hadoop.io.nativeio.Errno"
  21508. transient="false" volatile="false"
  21509. static="true" final="true" visibility="public"
  21510. deprecated="not deprecated">
  21511. </field>
  21512. <field name="ENOTDIR" type="org.apache.hadoop.io.nativeio.Errno"
  21513. transient="false" volatile="false"
  21514. static="true" final="true" visibility="public"
  21515. deprecated="not deprecated">
  21516. </field>
  21517. <field name="EISDIR" type="org.apache.hadoop.io.nativeio.Errno"
  21518. transient="false" volatile="false"
  21519. static="true" final="true" visibility="public"
  21520. deprecated="not deprecated">
  21521. </field>
  21522. <field name="EINVAL" type="org.apache.hadoop.io.nativeio.Errno"
  21523. transient="false" volatile="false"
  21524. static="true" final="true" visibility="public"
  21525. deprecated="not deprecated">
  21526. </field>
  21527. <field name="ENFILE" type="org.apache.hadoop.io.nativeio.Errno"
  21528. transient="false" volatile="false"
  21529. static="true" final="true" visibility="public"
  21530. deprecated="not deprecated">
  21531. </field>
  21532. <field name="EMFILE" type="org.apache.hadoop.io.nativeio.Errno"
  21533. transient="false" volatile="false"
  21534. static="true" final="true" visibility="public"
  21535. deprecated="not deprecated">
  21536. </field>
  21537. <field name="ENOTTY" type="org.apache.hadoop.io.nativeio.Errno"
  21538. transient="false" volatile="false"
  21539. static="true" final="true" visibility="public"
  21540. deprecated="not deprecated">
  21541. </field>
  21542. <field name="ETXTBSY" type="org.apache.hadoop.io.nativeio.Errno"
  21543. transient="false" volatile="false"
  21544. static="true" final="true" visibility="public"
  21545. deprecated="not deprecated">
  21546. </field>
  21547. <field name="EFBIG" type="org.apache.hadoop.io.nativeio.Errno"
  21548. transient="false" volatile="false"
  21549. static="true" final="true" visibility="public"
  21550. deprecated="not deprecated">
  21551. </field>
  21552. <field name="ENOSPC" type="org.apache.hadoop.io.nativeio.Errno"
  21553. transient="false" volatile="false"
  21554. static="true" final="true" visibility="public"
  21555. deprecated="not deprecated">
  21556. </field>
  21557. <field name="ESPIPE" type="org.apache.hadoop.io.nativeio.Errno"
  21558. transient="false" volatile="false"
  21559. static="true" final="true" visibility="public"
  21560. deprecated="not deprecated">
  21561. </field>
  21562. <field name="EROFS" type="org.apache.hadoop.io.nativeio.Errno"
  21563. transient="false" volatile="false"
  21564. static="true" final="true" visibility="public"
  21565. deprecated="not deprecated">
  21566. </field>
  21567. <field name="EMLINK" type="org.apache.hadoop.io.nativeio.Errno"
  21568. transient="false" volatile="false"
  21569. static="true" final="true" visibility="public"
  21570. deprecated="not deprecated">
  21571. </field>
  21572. <field name="EPIPE" type="org.apache.hadoop.io.nativeio.Errno"
  21573. transient="false" volatile="false"
  21574. static="true" final="true" visibility="public"
  21575. deprecated="not deprecated">
  21576. </field>
  21577. <field name="EDOM" type="org.apache.hadoop.io.nativeio.Errno"
  21578. transient="false" volatile="false"
  21579. static="true" final="true" visibility="public"
  21580. deprecated="not deprecated">
  21581. </field>
  21582. <field name="ERANGE" type="org.apache.hadoop.io.nativeio.Errno"
  21583. transient="false" volatile="false"
  21584. static="true" final="true" visibility="public"
  21585. deprecated="not deprecated">
  21586. </field>
  21587. <field name="UNKNOWN" type="org.apache.hadoop.io.nativeio.Errno"
  21588. transient="false" volatile="false"
  21589. static="true" final="true" visibility="public"
  21590. deprecated="not deprecated">
  21591. </field>
  21592. <doc>
  21593. <![CDATA[Enum representing POSIX errno values.]]>
  21594. </doc>
  21595. </class>
  21596. <!-- end class org.apache.hadoop.io.nativeio.Errno -->
  21597. <!-- start class org.apache.hadoop.io.nativeio.NativeIO -->
  21598. <class name="NativeIO" extends="java.lang.Object"
  21599. abstract="false"
  21600. static="false" final="false" visibility="public"
  21601. deprecated="not deprecated">
  21602. <constructor name="NativeIO"
  21603. static="false" final="false" visibility="public"
  21604. deprecated="not deprecated">
  21605. </constructor>
  21606. <method name="isAvailable" return="boolean"
  21607. abstract="false" native="false" synchronized="false"
  21608. static="true" final="false" visibility="public"
  21609. deprecated="not deprecated">
  21610. <doc>
  21611. <![CDATA[Return true if the JNI-based native IO extensions are available.]]>
  21612. </doc>
  21613. </method>
  21614. <method name="open" return="java.io.FileDescriptor"
  21615. abstract="false" native="true" synchronized="false"
  21616. static="true" final="false" visibility="public"
  21617. deprecated="not deprecated">
  21618. <param name="path" type="java.lang.String"/>
  21619. <param name="flags" type="int"/>
  21620. <param name="mode" type="int"/>
  21621. <exception name="IOException" type="java.io.IOException"/>
  21622. <doc>
  21623. <![CDATA[Wrapper around open(2)]]>
  21624. </doc>
  21625. </method>
  21626. <method name="fstat" return="org.apache.hadoop.io.nativeio.NativeIO.Stat"
  21627. abstract="false" native="true" synchronized="false"
  21628. static="true" final="false" visibility="public"
  21629. deprecated="not deprecated">
  21630. <param name="fd" type="java.io.FileDescriptor"/>
  21631. <exception name="IOException" type="java.io.IOException"/>
  21632. <doc>
  21633. <![CDATA[Wrapper around fstat(2)]]>
  21634. </doc>
  21635. </method>
  21636. <method name="chmod"
  21637. abstract="false" native="true" synchronized="false"
  21638. static="true" final="false" visibility="public"
  21639. deprecated="not deprecated">
  21640. <param name="path" type="java.lang.String"/>
  21641. <param name="mode" type="int"/>
  21642. <exception name="IOException" type="java.io.IOException"/>
  21643. <doc>
  21644. <![CDATA[Wrapper around chmod(2)]]>
  21645. </doc>
  21646. </method>
  21647. <method name="posixFadviseIfPossible"
  21648. abstract="false" native="false" synchronized="false"
  21649. static="true" final="false" visibility="public"
  21650. deprecated="not deprecated">
  21651. <param name="fd" type="java.io.FileDescriptor"/>
  21652. <param name="offset" type="long"/>
  21653. <param name="len" type="long"/>
  21654. <param name="flags" type="int"/>
  21655. <exception name="NativeIOException" type="org.apache.hadoop.io.nativeio.NativeIOException"/>
  21656. <doc>
  21657. <![CDATA[Call posix_fadvise on the given file descriptor. See the manpage
  21658. for this syscall for more information. On systems where this
  21659. call is not available, does nothing.
  21660. @throws NativeIOException if there is an error with the syscall]]>
  21661. </doc>
  21662. </method>
  21663. <method name="syncFileRangeIfPossible"
  21664. abstract="false" native="false" synchronized="false"
  21665. static="true" final="false" visibility="public"
  21666. deprecated="not deprecated">
  21667. <param name="fd" type="java.io.FileDescriptor"/>
  21668. <param name="offset" type="long"/>
  21669. <param name="nbytes" type="long"/>
  21670. <param name="flags" type="int"/>
  21671. <exception name="NativeIOException" type="org.apache.hadoop.io.nativeio.NativeIOException"/>
  21672. <doc>
  21673. <![CDATA[Call sync_file_range on the given file descriptor. See the manpage
  21674. for this syscall for more information. On systems where this
  21675. call is not available, does nothing.
  21676. @throws NativeIOException if there is an error with the syscall]]>
  21677. </doc>
  21678. </method>
  21679. <method name="getOwner" return="java.lang.String"
  21680. abstract="false" native="false" synchronized="false"
  21681. static="true" final="false" visibility="public"
  21682. deprecated="not deprecated">
  21683. <param name="fd" type="java.io.FileDescriptor"/>
  21684. <exception name="IOException" type="java.io.IOException"/>
  21685. </method>
  21686. <field name="O_RDONLY" type="int"
  21687. transient="false" volatile="false"
  21688. static="true" final="true" visibility="public"
  21689. deprecated="not deprecated">
  21690. </field>
  21691. <field name="O_WRONLY" type="int"
  21692. transient="false" volatile="false"
  21693. static="true" final="true" visibility="public"
  21694. deprecated="not deprecated">
  21695. </field>
  21696. <field name="O_RDWR" type="int"
  21697. transient="false" volatile="false"
  21698. static="true" final="true" visibility="public"
  21699. deprecated="not deprecated">
  21700. </field>
  21701. <field name="O_CREAT" type="int"
  21702. transient="false" volatile="false"
  21703. static="true" final="true" visibility="public"
  21704. deprecated="not deprecated">
  21705. </field>
  21706. <field name="O_EXCL" type="int"
  21707. transient="false" volatile="false"
  21708. static="true" final="true" visibility="public"
  21709. deprecated="not deprecated">
  21710. </field>
  21711. <field name="O_NOCTTY" type="int"
  21712. transient="false" volatile="false"
  21713. static="true" final="true" visibility="public"
  21714. deprecated="not deprecated">
  21715. </field>
  21716. <field name="O_TRUNC" type="int"
  21717. transient="false" volatile="false"
  21718. static="true" final="true" visibility="public"
  21719. deprecated="not deprecated">
  21720. </field>
  21721. <field name="O_APPEND" type="int"
  21722. transient="false" volatile="false"
  21723. static="true" final="true" visibility="public"
  21724. deprecated="not deprecated">
  21725. </field>
  21726. <field name="O_NONBLOCK" type="int"
  21727. transient="false" volatile="false"
  21728. static="true" final="true" visibility="public"
  21729. deprecated="not deprecated">
  21730. </field>
  21731. <field name="O_SYNC" type="int"
  21732. transient="false" volatile="false"
  21733. static="true" final="true" visibility="public"
  21734. deprecated="not deprecated">
  21735. </field>
  21736. <field name="O_ASYNC" type="int"
  21737. transient="false" volatile="false"
  21738. static="true" final="true" visibility="public"
  21739. deprecated="not deprecated">
  21740. </field>
  21741. <field name="O_FSYNC" type="int"
  21742. transient="false" volatile="false"
  21743. static="true" final="true" visibility="public"
  21744. deprecated="not deprecated">
  21745. </field>
  21746. <field name="O_NDELAY" type="int"
  21747. transient="false" volatile="false"
  21748. static="true" final="true" visibility="public"
  21749. deprecated="not deprecated">
  21750. </field>
  21751. <field name="POSIX_FADV_NORMAL" type="int"
  21752. transient="false" volatile="false"
  21753. static="true" final="true" visibility="public"
  21754. deprecated="not deprecated">
  21755. </field>
  21756. <field name="POSIX_FADV_RANDOM" type="int"
  21757. transient="false" volatile="false"
  21758. static="true" final="true" visibility="public"
  21759. deprecated="not deprecated">
  21760. </field>
  21761. <field name="POSIX_FADV_SEQUENTIAL" type="int"
  21762. transient="false" volatile="false"
  21763. static="true" final="true" visibility="public"
  21764. deprecated="not deprecated">
  21765. </field>
  21766. <field name="POSIX_FADV_WILLNEED" type="int"
  21767. transient="false" volatile="false"
  21768. static="true" final="true" visibility="public"
  21769. deprecated="not deprecated">
  21770. </field>
  21771. <field name="POSIX_FADV_DONTNEED" type="int"
  21772. transient="false" volatile="false"
  21773. static="true" final="true" visibility="public"
  21774. deprecated="not deprecated">
  21775. </field>
  21776. <field name="POSIX_FADV_NOREUSE" type="int"
  21777. transient="false" volatile="false"
  21778. static="true" final="true" visibility="public"
  21779. deprecated="not deprecated">
  21780. </field>
  21781. <field name="SYNC_FILE_RANGE_WAIT_BEFORE" type="int"
  21782. transient="false" volatile="false"
  21783. static="true" final="true" visibility="public"
  21784. deprecated="not deprecated">
  21785. </field>
  21786. <field name="SYNC_FILE_RANGE_WRITE" type="int"
  21787. transient="false" volatile="false"
  21788. static="true" final="true" visibility="public"
  21789. deprecated="not deprecated">
  21790. </field>
  21791. <field name="SYNC_FILE_RANGE_WAIT_AFTER" type="int"
  21792. transient="false" volatile="false"
  21793. static="true" final="true" visibility="public"
  21794. deprecated="not deprecated">
  21795. </field>
  21796. <doc>
  21797. <![CDATA[JNI wrappers for various native IO-related calls not available in Java.
  21798. These functions should generally be used alongside a fallback to another
  21799. more portable mechanism.]]>
  21800. </doc>
  21801. </class>
  21802. <!-- end class org.apache.hadoop.io.nativeio.NativeIO -->
  21803. <!-- start class org.apache.hadoop.io.nativeio.NativeIO.Stat -->
  21804. <class name="NativeIO.Stat" extends="java.lang.Object"
  21805. abstract="false"
  21806. static="true" final="false" visibility="public"
  21807. deprecated="not deprecated">
  21808. <method name="toString" return="java.lang.String"
  21809. abstract="false" native="false" synchronized="false"
  21810. static="false" final="false" visibility="public"
  21811. deprecated="not deprecated">
  21812. </method>
  21813. <method name="getOwner" return="java.lang.String"
  21814. abstract="false" native="false" synchronized="false"
  21815. static="false" final="false" visibility="public"
  21816. deprecated="not deprecated">
  21817. </method>
  21818. <method name="getMode" return="int"
  21819. abstract="false" native="false" synchronized="false"
  21820. static="false" final="false" visibility="public"
  21821. deprecated="not deprecated">
  21822. </method>
  21823. <field name="S_IFMT" type="int"
  21824. transient="false" volatile="false"
  21825. static="true" final="true" visibility="public"
  21826. deprecated="not deprecated">
  21827. </field>
  21828. <field name="S_IFIFO" type="int"
  21829. transient="false" volatile="false"
  21830. static="true" final="true" visibility="public"
  21831. deprecated="not deprecated">
  21832. </field>
  21833. <field name="S_IFCHR" type="int"
  21834. transient="false" volatile="false"
  21835. static="true" final="true" visibility="public"
  21836. deprecated="not deprecated">
  21837. </field>
  21838. <field name="S_IFDIR" type="int"
  21839. transient="false" volatile="false"
  21840. static="true" final="true" visibility="public"
  21841. deprecated="not deprecated">
  21842. </field>
  21843. <field name="S_IFBLK" type="int"
  21844. transient="false" volatile="false"
  21845. static="true" final="true" visibility="public"
  21846. deprecated="not deprecated">
  21847. </field>
  21848. <field name="S_IFREG" type="int"
  21849. transient="false" volatile="false"
  21850. static="true" final="true" visibility="public"
  21851. deprecated="not deprecated">
  21852. </field>
  21853. <field name="S_IFLNK" type="int"
  21854. transient="false" volatile="false"
  21855. static="true" final="true" visibility="public"
  21856. deprecated="not deprecated">
  21857. </field>
  21858. <field name="S_IFSOCK" type="int"
  21859. transient="false" volatile="false"
  21860. static="true" final="true" visibility="public"
  21861. deprecated="not deprecated">
  21862. </field>
  21863. <field name="S_IFWHT" type="int"
  21864. transient="false" volatile="false"
  21865. static="true" final="true" visibility="public"
  21866. deprecated="not deprecated">
  21867. </field>
  21868. <field name="S_ISUID" type="int"
  21869. transient="false" volatile="false"
  21870. static="true" final="true" visibility="public"
  21871. deprecated="not deprecated">
  21872. </field>
  21873. <field name="S_ISGID" type="int"
  21874. transient="false" volatile="false"
  21875. static="true" final="true" visibility="public"
  21876. deprecated="not deprecated">
  21877. </field>
  21878. <field name="S_ISVTX" type="int"
  21879. transient="false" volatile="false"
  21880. static="true" final="true" visibility="public"
  21881. deprecated="not deprecated">
  21882. </field>
  21883. <field name="S_IRUSR" type="int"
  21884. transient="false" volatile="false"
  21885. static="true" final="true" visibility="public"
  21886. deprecated="not deprecated">
  21887. </field>
  21888. <field name="S_IWUSR" type="int"
  21889. transient="false" volatile="false"
  21890. static="true" final="true" visibility="public"
  21891. deprecated="not deprecated">
  21892. </field>
  21893. <field name="S_IXUSR" type="int"
  21894. transient="false" volatile="false"
  21895. static="true" final="true" visibility="public"
  21896. deprecated="not deprecated">
  21897. </field>
  21898. <doc>
  21899. <![CDATA[Result type of the fstat call]]>
  21900. </doc>
  21901. </class>
  21902. <!-- end class org.apache.hadoop.io.nativeio.NativeIO.Stat -->
  21903. <!-- start class org.apache.hadoop.io.nativeio.NativeIOException -->
  21904. <class name="NativeIOException" extends="java.io.IOException"
  21905. abstract="false"
  21906. static="false" final="false" visibility="public"
  21907. deprecated="not deprecated">
  21908. <constructor name="NativeIOException" type="java.lang.String, org.apache.hadoop.io.nativeio.Errno"
  21909. static="false" final="false" visibility="public"
  21910. deprecated="not deprecated">
  21911. </constructor>
  21912. <method name="getErrno" return="org.apache.hadoop.io.nativeio.Errno"
  21913. abstract="false" native="false" synchronized="false"
  21914. static="false" final="false" visibility="public"
  21915. deprecated="not deprecated">
  21916. </method>
  21917. <method name="toString" return="java.lang.String"
  21918. abstract="false" native="false" synchronized="false"
  21919. static="false" final="false" visibility="public"
  21920. deprecated="not deprecated">
  21921. </method>
  21922. <doc>
  21923. <![CDATA[An exception generated by a call to the native IO code.
  21924. These exceptions simply wrap <i>errno</i> result codes.]]>
  21925. </doc>
  21926. </class>
  21927. <!-- end class org.apache.hadoop.io.nativeio.NativeIOException -->
  21928. </package>
  21929. <package name="org.apache.hadoop.io.retry">
  21930. <!-- start class org.apache.hadoop.io.retry.RetryPolicies -->
  21931. <class name="RetryPolicies" extends="java.lang.Object"
  21932. abstract="false"
  21933. static="false" final="false" visibility="public"
  21934. deprecated="not deprecated">
  21935. <constructor name="RetryPolicies"
  21936. static="false" final="false" visibility="public"
  21937. deprecated="not deprecated">
  21938. </constructor>
  21939. <method name="retryUpToMaximumCountWithFixedSleep" return="org.apache.hadoop.io.retry.RetryPolicy"
  21940. abstract="false" native="false" synchronized="false"
  21941. static="true" final="true" visibility="public"
  21942. deprecated="not deprecated">
  21943. <param name="maxRetries" type="int"/>
  21944. <param name="sleepTime" type="long"/>
  21945. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  21946. <doc>
  21947. <![CDATA[<p>
  21948. Keep trying a limited number of times, waiting a fixed time between attempts,
  21949. and then fail by re-throwing the exception.
  21950. </p>]]>
  21951. </doc>
  21952. </method>
  21953. <method name="retryUpToMaximumTimeWithFixedSleep" return="org.apache.hadoop.io.retry.RetryPolicy"
  21954. abstract="false" native="false" synchronized="false"
  21955. static="true" final="true" visibility="public"
  21956. deprecated="not deprecated">
  21957. <param name="maxTime" type="long"/>
  21958. <param name="sleepTime" type="long"/>
  21959. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  21960. <doc>
  21961. <![CDATA[<p>
  21962. Keep trying for a maximum time, waiting a fixed time between attempts,
  21963. and then fail by re-throwing the exception.
  21964. </p>]]>
  21965. </doc>
  21966. </method>
  21967. <method name="retryUpToMaximumCountWithProportionalSleep" return="org.apache.hadoop.io.retry.RetryPolicy"
  21968. abstract="false" native="false" synchronized="false"
  21969. static="true" final="true" visibility="public"
  21970. deprecated="not deprecated">
  21971. <param name="maxRetries" type="int"/>
  21972. <param name="sleepTime" type="long"/>
  21973. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  21974. <doc>
  21975. <![CDATA[<p>
  21976. Keep trying a limited number of times, waiting a growing amount of time between attempts,
  21977. and then fail by re-throwing the exception.
  21978. The time between attempts is <code>sleepTime</code> mutliplied by the number of tries so far.
  21979. </p>]]>
  21980. </doc>
  21981. </method>
  21982. <method name="exponentialBackoffRetry" return="org.apache.hadoop.io.retry.RetryPolicy"
  21983. abstract="false" native="false" synchronized="false"
  21984. static="true" final="true" visibility="public"
  21985. deprecated="not deprecated">
  21986. <param name="maxRetries" type="int"/>
  21987. <param name="sleepTime" type="long"/>
  21988. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  21989. <doc>
  21990. <![CDATA[<p>
  21991. Keep trying a limited number of times, waiting a growing amount of time between attempts,
  21992. and then fail by re-throwing the exception.
  21993. The time between attempts is <code>sleepTime</code> mutliplied by a random
  21994. number in the range of [0, 2 to the number of retries)
  21995. </p>]]>
  21996. </doc>
  21997. </method>
  21998. <method name="retryByException" return="org.apache.hadoop.io.retry.RetryPolicy"
  21999. abstract="false" native="false" synchronized="false"
  22000. static="true" final="true" visibility="public"
  22001. deprecated="not deprecated">
  22002. <param name="defaultPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  22003. <param name="exceptionToPolicyMap" type="java.util.Map"/>
  22004. <doc>
  22005. <![CDATA[<p>
  22006. Set a default policy with some explicit handlers for specific exceptions.
  22007. </p>]]>
  22008. </doc>
  22009. </method>
  22010. <method name="retryByRemoteException" return="org.apache.hadoop.io.retry.RetryPolicy"
  22011. abstract="false" native="false" synchronized="false"
  22012. static="true" final="true" visibility="public"
  22013. deprecated="not deprecated">
  22014. <param name="defaultPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  22015. <param name="exceptionToPolicyMap" type="java.util.Map"/>
  22016. <doc>
  22017. <![CDATA[<p>
  22018. A retry policy for RemoteException
  22019. Set a default policy with some explicit handlers for specific exceptions.
  22020. </p>]]>
  22021. </doc>
  22022. </method>
  22023. <field name="TRY_ONCE_THEN_FAIL" type="org.apache.hadoop.io.retry.RetryPolicy"
  22024. transient="false" volatile="false"
  22025. static="true" final="true" visibility="public"
  22026. deprecated="not deprecated">
  22027. <doc>
  22028. <![CDATA[<p>
  22029. Try once, and fail by re-throwing the exception.
  22030. This corresponds to having no retry mechanism in place.
  22031. </p>]]>
  22032. </doc>
  22033. </field>
  22034. <field name="TRY_ONCE_DONT_FAIL" type="org.apache.hadoop.io.retry.RetryPolicy"
  22035. transient="false" volatile="false"
  22036. static="true" final="true" visibility="public"
  22037. deprecated="not deprecated">
  22038. <doc>
  22039. <![CDATA[<p>
  22040. Try once, and fail silently for <code>void</code> methods, or by
  22041. re-throwing the exception for non-<code>void</code> methods.
  22042. </p>]]>
  22043. </doc>
  22044. </field>
  22045. <field name="RETRY_FOREVER" type="org.apache.hadoop.io.retry.RetryPolicy"
  22046. transient="false" volatile="false"
  22047. static="true" final="true" visibility="public"
  22048. deprecated="not deprecated">
  22049. <doc>
  22050. <![CDATA[<p>
  22051. Keep trying forever.
  22052. </p>]]>
  22053. </doc>
  22054. </field>
  22055. <doc>
  22056. <![CDATA[<p>
  22057. A collection of useful implementations of {@link RetryPolicy}.
  22058. </p>]]>
  22059. </doc>
  22060. </class>
  22061. <!-- end class org.apache.hadoop.io.retry.RetryPolicies -->
  22062. <!-- start class org.apache.hadoop.io.retry.RetryPolicies.MultipleLinearRandomRetry -->
  22063. <class name="RetryPolicies.MultipleLinearRandomRetry" extends="java.lang.Object"
  22064. abstract="false"
  22065. static="true" final="false" visibility="public"
  22066. deprecated="not deprecated">
  22067. <implements name="org.apache.hadoop.io.retry.RetryPolicy"/>
  22068. <constructor name="RetryPolicies.MultipleLinearRandomRetry" type="java.util.List"
  22069. static="false" final="false" visibility="public"
  22070. deprecated="not deprecated">
  22071. </constructor>
  22072. <method name="shouldRetry" return="boolean"
  22073. abstract="false" native="false" synchronized="false"
  22074. static="false" final="false" visibility="public"
  22075. deprecated="not deprecated">
  22076. <param name="e" type="java.lang.Exception"/>
  22077. <param name="curRetry" type="int"/>
  22078. <exception name="Exception" type="java.lang.Exception"/>
  22079. </method>
  22080. <method name="hashCode" return="int"
  22081. abstract="false" native="false" synchronized="false"
  22082. static="false" final="false" visibility="public"
  22083. deprecated="not deprecated">
  22084. </method>
  22085. <method name="equals" return="boolean"
  22086. abstract="false" native="false" synchronized="false"
  22087. static="false" final="false" visibility="public"
  22088. deprecated="not deprecated">
  22089. <param name="that" type="java.lang.Object"/>
  22090. </method>
  22091. <method name="toString" return="java.lang.String"
  22092. abstract="false" native="false" synchronized="false"
  22093. static="false" final="false" visibility="public"
  22094. deprecated="not deprecated">
  22095. </method>
  22096. <method name="parseCommaSeparatedString" return="org.apache.hadoop.io.retry.RetryPolicies.MultipleLinearRandomRetry"
  22097. abstract="false" native="false" synchronized="false"
  22098. static="true" final="false" visibility="public"
  22099. deprecated="not deprecated">
  22100. <param name="s" type="java.lang.String"/>
  22101. <doc>
  22102. <![CDATA[Parse the given string as a MultipleLinearRandomRetry object.
  22103. The format of the string is "t_1, n_1, t_2, n_2, ...",
  22104. where t_i and n_i are the i-th pair of sleep time and number of retires.
  22105. Note that the white spaces in the string are ignored.
  22106. @return the parsed object, or null if the parsing fails.]]>
  22107. </doc>
  22108. </method>
  22109. <doc>
  22110. <![CDATA[Given pairs of number of retries and sleep time (n0, t0), (n1, t1), ...,
  22111. the first n0 retries sleep t0 milliseconds on average,
  22112. the following n1 retries sleep t1 milliseconds on average, and so on.
  22113. For all the sleep, the actual sleep time is randomly uniform distributed
  22114. in the close interval [0.5t, 1.5t], where t is the sleep time specified.
  22115. The objects of this class are immutable.]]>
  22116. </doc>
  22117. </class>
  22118. <!-- end class org.apache.hadoop.io.retry.RetryPolicies.MultipleLinearRandomRetry -->
  22119. <!-- start class org.apache.hadoop.io.retry.RetryPolicies.MultipleLinearRandomRetry.Pair -->
  22120. <class name="RetryPolicies.MultipleLinearRandomRetry.Pair" extends="java.lang.Object"
  22121. abstract="false"
  22122. static="true" final="false" visibility="public"
  22123. deprecated="not deprecated">
  22124. <constructor name="RetryPolicies.MultipleLinearRandomRetry.Pair" type="int, int"
  22125. static="false" final="false" visibility="public"
  22126. deprecated="not deprecated">
  22127. </constructor>
  22128. <method name="toString" return="java.lang.String"
  22129. abstract="false" native="false" synchronized="false"
  22130. static="false" final="false" visibility="public"
  22131. deprecated="not deprecated">
  22132. </method>
  22133. <doc>
  22134. <![CDATA[Pairs of numRetries and sleepSeconds]]>
  22135. </doc>
  22136. </class>
  22137. <!-- end class org.apache.hadoop.io.retry.RetryPolicies.MultipleLinearRandomRetry.Pair -->
  22138. <!-- start interface org.apache.hadoop.io.retry.RetryPolicy -->
  22139. <interface name="RetryPolicy" abstract="true"
  22140. static="false" final="false" visibility="public"
  22141. deprecated="not deprecated">
  22142. <method name="shouldRetry" return="boolean"
  22143. abstract="false" native="false" synchronized="false"
  22144. static="false" final="false" visibility="public"
  22145. deprecated="not deprecated">
  22146. <param name="e" type="java.lang.Exception"/>
  22147. <param name="retries" type="int"/>
  22148. <exception name="Exception" type="java.lang.Exception"/>
  22149. <doc>
  22150. <![CDATA[<p>
  22151. Determines whether the framework should retry a
  22152. method for the given exception, and the number
  22153. of retries that have been made for that operation
  22154. so far.
  22155. </p>
  22156. @param e The exception that caused the method to fail.
  22157. @param retries The number of times the method has been retried.
  22158. @return <code>true</code> if the method should be retried,
  22159. <code>false</code> if the method should not be retried
  22160. but shouldn't fail with an exception (only for void methods).
  22161. @throws Exception The re-thrown exception <code>e</code> indicating
  22162. that the method failed and should not be retried further.]]>
  22163. </doc>
  22164. </method>
  22165. <doc>
  22166. <![CDATA[<p>
  22167. Specifies a policy for retrying method failures.
  22168. Implementations of this interface should be immutable.
  22169. </p>]]>
  22170. </doc>
  22171. </interface>
  22172. <!-- end interface org.apache.hadoop.io.retry.RetryPolicy -->
  22173. <!-- start class org.apache.hadoop.io.retry.RetryProxy -->
  22174. <class name="RetryProxy" extends="java.lang.Object"
  22175. abstract="false"
  22176. static="false" final="false" visibility="public"
  22177. deprecated="not deprecated">
  22178. <constructor name="RetryProxy"
  22179. static="false" final="false" visibility="public"
  22180. deprecated="not deprecated">
  22181. </constructor>
  22182. <method name="create" return="java.lang.Object"
  22183. abstract="false" native="false" synchronized="false"
  22184. static="true" final="false" visibility="public"
  22185. deprecated="not deprecated">
  22186. <param name="iface" type="java.lang.Class"/>
  22187. <param name="implementation" type="java.lang.Object"/>
  22188. <param name="retryPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  22189. <doc>
  22190. <![CDATA[<p>
  22191. Create a proxy for an interface of an implementation class
  22192. using the same retry policy for each method in the interface.
  22193. </p>
  22194. @param iface the interface that the retry will implement
  22195. @param implementation the instance whose methods should be retried
  22196. @param retryPolicy the policy for retirying method call failures
  22197. @return the retry proxy]]>
  22198. </doc>
  22199. </method>
  22200. <method name="create" return="java.lang.Object"
  22201. abstract="false" native="false" synchronized="false"
  22202. static="true" final="false" visibility="public"
  22203. deprecated="not deprecated">
  22204. <param name="iface" type="java.lang.Class"/>
  22205. <param name="implementation" type="java.lang.Object"/>
  22206. <param name="methodNameToPolicyMap" type="java.util.Map"/>
  22207. <doc>
  22208. <![CDATA[<p>
  22209. Create a proxy for an interface of an implementation class
  22210. using the a set of retry policies specified by method name.
  22211. If no retry policy is defined for a method then a default of
  22212. {@link RetryPolicies#TRY_ONCE_THEN_FAIL} is used.
  22213. </p>
  22214. @param iface the interface that the retry will implement
  22215. @param implementation the instance whose methods should be retried
  22216. @param methodNameToPolicyMap a map of method names to retry policies
  22217. @return the retry proxy]]>
  22218. </doc>
  22219. </method>
  22220. <method name="create" return="java.lang.Object"
  22221. abstract="false" native="false" synchronized="false"
  22222. static="true" final="false" visibility="public"
  22223. deprecated="not deprecated">
  22224. <param name="iface" type="java.lang.Class"/>
  22225. <param name="implementation" type="java.lang.Object"/>
  22226. <param name="defaultPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  22227. <param name="methodNameToPolicyMap" type="java.util.Map"/>
  22228. </method>
  22229. <doc>
  22230. <![CDATA[<p>
  22231. A factory for creating retry proxies.
  22232. </p>]]>
  22233. </doc>
  22234. </class>
  22235. <!-- end class org.apache.hadoop.io.retry.RetryProxy -->
  22236. <!-- start class org.apache.hadoop.io.retry.RetryUtils -->
  22237. <class name="RetryUtils" extends="java.lang.Object"
  22238. abstract="false"
  22239. static="false" final="false" visibility="public"
  22240. deprecated="not deprecated">
  22241. <constructor name="RetryUtils"
  22242. static="false" final="false" visibility="public"
  22243. deprecated="not deprecated">
  22244. </constructor>
  22245. <method name="getDefaultRetryPolicy" return="org.apache.hadoop.io.retry.RetryPolicy"
  22246. abstract="false" native="false" synchronized="false"
  22247. static="true" final="false" visibility="public"
  22248. deprecated="not deprecated">
  22249. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22250. <param name="retryPolicyEnabledKey" type="java.lang.String"/>
  22251. <param name="defaultRetryPolicyEnabled" type="boolean"/>
  22252. <param name="retryPolicySpecKey" type="java.lang.String"/>
  22253. <param name="defaultRetryPolicySpec" type="java.lang.String"/>
  22254. <param name="remoteExceptionToRetry" type="java.lang.Class"/>
  22255. <doc>
  22256. <![CDATA[Return the default retry policy set in conf.
  22257. If the value retryPolicyEnabledKey is set to false in conf,
  22258. use TRY_ONCE_THEN_FAIL.
  22259. Otherwise, get the MultipleLinearRandomRetry policy specified in the conf
  22260. and then
  22261. (1) use multipleLinearRandomRetry for
  22262. - remoteExceptionToRetry, or
  22263. - IOException other than RemoteException; and
  22264. (2) use TRY_ONCE_THEN_FAIL for
  22265. - RemoteException other than remoteExceptionToRetry, or
  22266. - non-IOException.
  22267. @param conf
  22268. @param retryPolicyEnabledKey conf property key for enabling retry
  22269. @param defaultRetryPolicyEnabled default retryPolicyEnabledKey conf value
  22270. @param retryPolicySpecKey conf property key for retry policy spec
  22271. @param defaultRetryPolicySpec default retryPolicySpecKey conf value
  22272. @param remoteExceptionToRetry The particular RemoteException to retry
  22273. @return the default retry policy.]]>
  22274. </doc>
  22275. </method>
  22276. <method name="getMultipleLinearRandomRetry" return="org.apache.hadoop.io.retry.RetryPolicy"
  22277. abstract="false" native="false" synchronized="false"
  22278. static="true" final="false" visibility="public"
  22279. deprecated="not deprecated">
  22280. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22281. <param name="retryPolicyEnabledKey" type="java.lang.String"/>
  22282. <param name="defaultRetryPolicyEnabled" type="boolean"/>
  22283. <param name="retryPolicySpecKey" type="java.lang.String"/>
  22284. <param name="defaultRetryPolicySpec" type="java.lang.String"/>
  22285. <doc>
  22286. <![CDATA[Return the MultipleLinearRandomRetry policy specified in the conf,
  22287. or null if the feature is disabled.
  22288. If the policy is specified in the conf but the policy cannot be parsed,
  22289. the default policy is returned.
  22290. Retry policy spec:
  22291. N pairs of sleep-time and number-of-retries "s1,n1,s2,n2,..."
  22292. @param conf
  22293. @param retryPolicyEnabledKey conf property key for enabling retry
  22294. @param defaultRetryPolicyEnabled default retryPolicyEnabledKey conf value
  22295. @param retryPolicySpecKey conf property key for retry policy spec
  22296. @param defaultRetryPolicySpec default retryPolicySpecKey conf value
  22297. @return the MultipleLinearRandomRetry policy specified in the conf,
  22298. or null if the feature is disabled.]]>
  22299. </doc>
  22300. </method>
  22301. <field name="LOG" type="org.apache.commons.logging.Log"
  22302. transient="false" volatile="false"
  22303. static="true" final="true" visibility="public"
  22304. deprecated="not deprecated">
  22305. </field>
  22306. </class>
  22307. <!-- end class org.apache.hadoop.io.retry.RetryUtils -->
  22308. </package>
  22309. <package name="org.apache.hadoop.io.serializer">
  22310. <!-- start interface org.apache.hadoop.io.serializer.Deserializer -->
  22311. <interface name="Deserializer" abstract="true"
  22312. static="false" final="false" visibility="public"
  22313. deprecated="not deprecated">
  22314. <method name="open"
  22315. abstract="false" native="false" synchronized="false"
  22316. static="false" final="false" visibility="public"
  22317. deprecated="not deprecated">
  22318. <param name="in" type="java.io.InputStream"/>
  22319. <exception name="IOException" type="java.io.IOException"/>
  22320. <doc>
  22321. <![CDATA[<p>Prepare the deserializer for reading.</p>]]>
  22322. </doc>
  22323. </method>
  22324. <method name="deserialize" return="java.lang.Object"
  22325. abstract="false" native="false" synchronized="false"
  22326. static="false" final="false" visibility="public"
  22327. deprecated="not deprecated">
  22328. <param name="t" type="java.lang.Object"/>
  22329. <exception name="IOException" type="java.io.IOException"/>
  22330. <doc>
  22331. <![CDATA[<p>
  22332. Deserialize the next object from the underlying input stream.
  22333. If the object <code>t</code> is non-null then this deserializer
  22334. <i>may</i> set its internal state to the next object read from the input
  22335. stream. Otherwise, if the object <code>t</code> is null a new
  22336. deserialized object will be created.
  22337. </p>
  22338. @return the deserialized object]]>
  22339. </doc>
  22340. </method>
  22341. <method name="close"
  22342. abstract="false" native="false" synchronized="false"
  22343. static="false" final="false" visibility="public"
  22344. deprecated="not deprecated">
  22345. <exception name="IOException" type="java.io.IOException"/>
  22346. <doc>
  22347. <![CDATA[<p>Close the underlying input stream and clear up any resources.</p>]]>
  22348. </doc>
  22349. </method>
  22350. <doc>
  22351. <![CDATA[<p>
  22352. Provides a facility for deserializing objects of type <T> from an
  22353. {@link InputStream}.
  22354. </p>
  22355. <p>
  22356. Deserializers are stateful, but must not buffer the input since
  22357. other producers may read from the input between calls to
  22358. {@link #deserialize(Object)}.
  22359. </p>
  22360. @param <T>]]>
  22361. </doc>
  22362. </interface>
  22363. <!-- end interface org.apache.hadoop.io.serializer.Deserializer -->
  22364. <!-- start class org.apache.hadoop.io.serializer.DeserializerComparator -->
  22365. <class name="DeserializerComparator" extends="java.lang.Object"
  22366. abstract="true"
  22367. static="false" final="false" visibility="public"
  22368. deprecated="not deprecated">
  22369. <implements name="org.apache.hadoop.io.RawComparator"/>
  22370. <constructor name="DeserializerComparator" type="org.apache.hadoop.io.serializer.Deserializer"
  22371. static="false" final="false" visibility="protected"
  22372. deprecated="not deprecated">
  22373. <exception name="IOException" type="java.io.IOException"/>
  22374. </constructor>
  22375. <method name="compare" return="int"
  22376. abstract="false" native="false" synchronized="false"
  22377. static="false" final="false" visibility="public"
  22378. deprecated="not deprecated">
  22379. <param name="b1" type="byte[]"/>
  22380. <param name="s1" type="int"/>
  22381. <param name="l1" type="int"/>
  22382. <param name="b2" type="byte[]"/>
  22383. <param name="s2" type="int"/>
  22384. <param name="l2" type="int"/>
  22385. </method>
  22386. <doc>
  22387. <![CDATA[<p>
  22388. A {@link RawComparator} that uses a {@link Deserializer} to deserialize
  22389. the objects to be compared so that the standard {@link Comparator} can
  22390. be used to compare them.
  22391. </p>
  22392. <p>
  22393. One may optimize compare-intensive operations by using a custom
  22394. implementation of {@link RawComparator} that operates directly
  22395. on byte representations.
  22396. </p>
  22397. @param <T>]]>
  22398. </doc>
  22399. </class>
  22400. <!-- end class org.apache.hadoop.io.serializer.DeserializerComparator -->
  22401. <!-- start class org.apache.hadoop.io.serializer.JavaSerialization -->
  22402. <class name="JavaSerialization" extends="java.lang.Object"
  22403. abstract="false"
  22404. static="false" final="false" visibility="public"
  22405. deprecated="not deprecated">
  22406. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  22407. <constructor name="JavaSerialization"
  22408. static="false" final="false" visibility="public"
  22409. deprecated="not deprecated">
  22410. </constructor>
  22411. <method name="accept" return="boolean"
  22412. abstract="false" native="false" synchronized="false"
  22413. static="false" final="false" visibility="public"
  22414. deprecated="not deprecated">
  22415. <param name="c" type="java.lang.Class"/>
  22416. </method>
  22417. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer"
  22418. abstract="false" native="false" synchronized="false"
  22419. static="false" final="false" visibility="public"
  22420. deprecated="not deprecated">
  22421. <param name="c" type="java.lang.Class"/>
  22422. </method>
  22423. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer"
  22424. abstract="false" native="false" synchronized="false"
  22425. static="false" final="false" visibility="public"
  22426. deprecated="not deprecated">
  22427. <param name="c" type="java.lang.Class"/>
  22428. </method>
  22429. <doc>
  22430. <![CDATA[<p>
  22431. An experimental {@link Serialization} for Java {@link Serializable} classes.
  22432. </p>
  22433. @see JavaSerializationComparator]]>
  22434. </doc>
  22435. </class>
  22436. <!-- end class org.apache.hadoop.io.serializer.JavaSerialization -->
  22437. <!-- start class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  22438. <class name="JavaSerializationComparator" extends="org.apache.hadoop.io.serializer.DeserializerComparator"
  22439. abstract="false"
  22440. static="false" final="false" visibility="public"
  22441. deprecated="not deprecated">
  22442. <constructor name="JavaSerializationComparator"
  22443. static="false" final="false" visibility="public"
  22444. deprecated="not deprecated">
  22445. <exception name="IOException" type="java.io.IOException"/>
  22446. </constructor>
  22447. <method name="compare" return="int"
  22448. abstract="false" native="false" synchronized="false"
  22449. static="false" final="false" visibility="public"
  22450. deprecated="not deprecated">
  22451. <param name="o1" type="java.io.Serializable"/>
  22452. <param name="o2" type="java.io.Serializable"/>
  22453. </method>
  22454. <doc>
  22455. <![CDATA[<p>
  22456. A {@link RawComparator} that uses a {@link JavaSerialization}
  22457. {@link Deserializer} to deserialize objects that are then compared via
  22458. their {@link Comparable} interfaces.
  22459. </p>
  22460. @param <T>
  22461. @see JavaSerialization]]>
  22462. </doc>
  22463. </class>
  22464. <!-- end class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  22465. <!-- start interface org.apache.hadoop.io.serializer.Serialization -->
  22466. <interface name="Serialization" abstract="true"
  22467. static="false" final="false" visibility="public"
  22468. deprecated="not deprecated">
  22469. <method name="accept" return="boolean"
  22470. abstract="false" native="false" synchronized="false"
  22471. static="false" final="false" visibility="public"
  22472. deprecated="not deprecated">
  22473. <param name="c" type="java.lang.Class"/>
  22474. <doc>
  22475. <![CDATA[Allows clients to test whether this {@link Serialization}
  22476. supports the given class.]]>
  22477. </doc>
  22478. </method>
  22479. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer"
  22480. abstract="false" native="false" synchronized="false"
  22481. static="false" final="false" visibility="public"
  22482. deprecated="not deprecated">
  22483. <param name="c" type="java.lang.Class"/>
  22484. <doc>
  22485. <![CDATA[@return a {@link Serializer} for the given class.]]>
  22486. </doc>
  22487. </method>
  22488. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer"
  22489. abstract="false" native="false" synchronized="false"
  22490. static="false" final="false" visibility="public"
  22491. deprecated="not deprecated">
  22492. <param name="c" type="java.lang.Class"/>
  22493. <doc>
  22494. <![CDATA[@return a {@link Deserializer} for the given class.]]>
  22495. </doc>
  22496. </method>
  22497. <doc>
  22498. <![CDATA[<p>
  22499. Encapsulates a {@link Serializer}/{@link Deserializer} pair.
  22500. </p>
  22501. @param <T>]]>
  22502. </doc>
  22503. </interface>
  22504. <!-- end interface org.apache.hadoop.io.serializer.Serialization -->
  22505. <!-- start class org.apache.hadoop.io.serializer.SerializationFactory -->
  22506. <class name="SerializationFactory" extends="org.apache.hadoop.conf.Configured"
  22507. abstract="false"
  22508. static="false" final="false" visibility="public"
  22509. deprecated="not deprecated">
  22510. <constructor name="SerializationFactory" type="org.apache.hadoop.conf.Configuration"
  22511. static="false" final="false" visibility="public"
  22512. deprecated="not deprecated">
  22513. <doc>
  22514. <![CDATA[<p>
  22515. Serializations are found by reading the <code>io.serializations</code>
  22516. property from <code>conf</code>, which is a comma-delimited list of
  22517. classnames.
  22518. </p>]]>
  22519. </doc>
  22520. </constructor>
  22521. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer"
  22522. abstract="false" native="false" synchronized="false"
  22523. static="false" final="false" visibility="public"
  22524. deprecated="not deprecated">
  22525. <param name="c" type="java.lang.Class"/>
  22526. </method>
  22527. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer"
  22528. abstract="false" native="false" synchronized="false"
  22529. static="false" final="false" visibility="public"
  22530. deprecated="not deprecated">
  22531. <param name="c" type="java.lang.Class"/>
  22532. </method>
  22533. <method name="getSerialization" return="org.apache.hadoop.io.serializer.Serialization"
  22534. abstract="false" native="false" synchronized="false"
  22535. static="false" final="false" visibility="public"
  22536. deprecated="not deprecated">
  22537. <param name="c" type="java.lang.Class"/>
  22538. </method>
  22539. <doc>
  22540. <![CDATA[<p>
  22541. A factory for {@link Serialization}s.
  22542. </p>]]>
  22543. </doc>
  22544. </class>
  22545. <!-- end class org.apache.hadoop.io.serializer.SerializationFactory -->
  22546. <!-- start interface org.apache.hadoop.io.serializer.Serializer -->
  22547. <interface name="Serializer" abstract="true"
  22548. static="false" final="false" visibility="public"
  22549. deprecated="not deprecated">
  22550. <method name="open"
  22551. abstract="false" native="false" synchronized="false"
  22552. static="false" final="false" visibility="public"
  22553. deprecated="not deprecated">
  22554. <param name="out" type="java.io.OutputStream"/>
  22555. <exception name="IOException" type="java.io.IOException"/>
  22556. <doc>
  22557. <![CDATA[<p>Prepare the serializer for writing.</p>]]>
  22558. </doc>
  22559. </method>
  22560. <method name="serialize"
  22561. abstract="false" native="false" synchronized="false"
  22562. static="false" final="false" visibility="public"
  22563. deprecated="not deprecated">
  22564. <param name="t" type="java.lang.Object"/>
  22565. <exception name="IOException" type="java.io.IOException"/>
  22566. <doc>
  22567. <![CDATA[<p>Serialize <code>t</code> to the underlying output stream.</p>]]>
  22568. </doc>
  22569. </method>
  22570. <method name="close"
  22571. abstract="false" native="false" synchronized="false"
  22572. static="false" final="false" visibility="public"
  22573. deprecated="not deprecated">
  22574. <exception name="IOException" type="java.io.IOException"/>
  22575. <doc>
  22576. <![CDATA[<p>Close the underlying output stream and clear up any resources.</p>]]>
  22577. </doc>
  22578. </method>
  22579. <doc>
  22580. <![CDATA[<p>
  22581. Provides a facility for serializing objects of type <T> to an
  22582. {@link OutputStream}.
  22583. </p>
  22584. <p>
  22585. Serializers are stateful, but must not buffer the output since
  22586. other producers may write to the output between calls to
  22587. {@link #serialize(Object)}.
  22588. </p>
  22589. @param <T>]]>
  22590. </doc>
  22591. </interface>
  22592. <!-- end interface org.apache.hadoop.io.serializer.Serializer -->
  22593. <!-- start class org.apache.hadoop.io.serializer.WritableSerialization -->
  22594. <class name="WritableSerialization" extends="org.apache.hadoop.conf.Configured"
  22595. abstract="false"
  22596. static="false" final="false" visibility="public"
  22597. deprecated="not deprecated">
  22598. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  22599. <constructor name="WritableSerialization"
  22600. static="false" final="false" visibility="public"
  22601. deprecated="not deprecated">
  22602. </constructor>
  22603. <method name="accept" return="boolean"
  22604. abstract="false" native="false" synchronized="false"
  22605. static="false" final="false" visibility="public"
  22606. deprecated="not deprecated">
  22607. <param name="c" type="java.lang.Class"/>
  22608. </method>
  22609. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer"
  22610. abstract="false" native="false" synchronized="false"
  22611. static="false" final="false" visibility="public"
  22612. deprecated="not deprecated">
  22613. <param name="c" type="java.lang.Class"/>
  22614. </method>
  22615. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer"
  22616. abstract="false" native="false" synchronized="false"
  22617. static="false" final="false" visibility="public"
  22618. deprecated="not deprecated">
  22619. <param name="c" type="java.lang.Class"/>
  22620. </method>
  22621. <doc>
  22622. <![CDATA[A {@link Serialization} for {@link Writable}s that delegates to
  22623. {@link Writable#write(java.io.DataOutput)} and
  22624. {@link Writable#readFields(java.io.DataInput)}.]]>
  22625. </doc>
  22626. </class>
  22627. <!-- end class org.apache.hadoop.io.serializer.WritableSerialization -->
  22628. </package>
  22629. <package name="org.apache.hadoop.ipc">
  22630. <!-- start class org.apache.hadoop.ipc.Client -->
  22631. <class name="Client" extends="java.lang.Object"
  22632. abstract="false"
  22633. static="false" final="false" visibility="public"
  22634. deprecated="not deprecated">
  22635. <constructor name="Client" type="java.lang.Class, org.apache.hadoop.conf.Configuration, javax.net.SocketFactory"
  22636. static="false" final="false" visibility="public"
  22637. deprecated="not deprecated">
  22638. <doc>
  22639. <![CDATA[Construct an IPC client whose values are of the given {@link Writable}
  22640. class.]]>
  22641. </doc>
  22642. </constructor>
  22643. <constructor name="Client" type="java.lang.Class, org.apache.hadoop.conf.Configuration"
  22644. static="false" final="false" visibility="public"
  22645. deprecated="not deprecated">
  22646. <doc>
  22647. <![CDATA[Construct an IPC client with the default SocketFactory
  22648. @param valueClass
  22649. @param conf]]>
  22650. </doc>
  22651. </constructor>
  22652. <method name="setPingInterval"
  22653. abstract="false" native="false" synchronized="false"
  22654. static="true" final="true" visibility="public"
  22655. deprecated="not deprecated">
  22656. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22657. <param name="pingInterval" type="int"/>
  22658. <doc>
  22659. <![CDATA[set the ping interval value in configuration
  22660. @param conf Configuration
  22661. @param pingInterval the ping interval]]>
  22662. </doc>
  22663. </method>
  22664. <method name="getTimeout" return="int"
  22665. abstract="false" native="false" synchronized="false"
  22666. static="true" final="true" visibility="public"
  22667. deprecated="not deprecated">
  22668. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22669. <doc>
  22670. <![CDATA[The time after which a RPC will timeout. If ping is not enabled (via
  22671. ipc.client.ping), then the timeout value is the same as the pingInterval.
  22672. If ping is enabled, then there is no timeout value.
  22673. @param conf Configuration
  22674. @return the timeout period in milliseconds. -1 if no timeout value is set]]>
  22675. </doc>
  22676. </method>
  22677. <method name="stop"
  22678. abstract="false" native="false" synchronized="false"
  22679. static="false" final="false" visibility="public"
  22680. deprecated="not deprecated">
  22681. <doc>
  22682. <![CDATA[Stop all threads related to this client. No further calls may be made
  22683. using this client.]]>
  22684. </doc>
  22685. </method>
  22686. <method name="call" return="org.apache.hadoop.io.Writable"
  22687. abstract="false" native="false" synchronized="false"
  22688. static="false" final="false" visibility="public"
  22689. deprecated="Use {@link #call(Writable, ConnectionId)} instead">
  22690. <param name="param" type="org.apache.hadoop.io.Writable"/>
  22691. <param name="address" type="java.net.InetSocketAddress"/>
  22692. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  22693. <exception name="IOException" type="java.io.IOException"/>
  22694. <doc>
  22695. <![CDATA[Make a call, passing <code>param</code>, to the IPC server running at
  22696. <code>address</code>, returning the value. Throws exceptions if there are
  22697. network problems or if the remote code threw an exception.
  22698. @deprecated Use {@link #call(Writable, ConnectionId)} instead]]>
  22699. </doc>
  22700. </method>
  22701. <method name="call" return="org.apache.hadoop.io.Writable"
  22702. abstract="false" native="false" synchronized="false"
  22703. static="false" final="false" visibility="public"
  22704. deprecated="Use {@link #call(Writable, ConnectionId)} instead">
  22705. <param name="param" type="org.apache.hadoop.io.Writable"/>
  22706. <param name="addr" type="java.net.InetSocketAddress"/>
  22707. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  22708. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  22709. <exception name="IOException" type="java.io.IOException"/>
  22710. <doc>
  22711. <![CDATA[Make a call, passing <code>param</code>, to the IPC server running at
  22712. <code>address</code> with the <code>ticket</code> credentials, returning
  22713. the value.
  22714. Throws exceptions if there are network problems or if the remote code
  22715. threw an exception.
  22716. @deprecated Use {@link #call(Writable, ConnectionId)} instead]]>
  22717. </doc>
  22718. </method>
  22719. <method name="call" return="org.apache.hadoop.io.Writable"
  22720. abstract="false" native="false" synchronized="false"
  22721. static="false" final="false" visibility="public"
  22722. deprecated="Use {@link #call(Writable, ConnectionId)} instead">
  22723. <param name="param" type="org.apache.hadoop.io.Writable"/>
  22724. <param name="addr" type="java.net.InetSocketAddress"/>
  22725. <param name="protocol" type="java.lang.Class"/>
  22726. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  22727. <param name="rpcTimeout" type="int"/>
  22728. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  22729. <exception name="IOException" type="java.io.IOException"/>
  22730. <doc>
  22731. <![CDATA[Make a call, passing <code>param</code>, to the IPC server running at
  22732. <code>address</code> which is servicing the <code>protocol</code> protocol,
  22733. with the <code>ticket</code> credentials and <code>rpcTimeout</code> as
  22734. timeout, returning the value.
  22735. Throws exceptions if there are network problems or if the remote code
  22736. threw an exception.
  22737. @deprecated Use {@link #call(Writable, ConnectionId)} instead]]>
  22738. </doc>
  22739. </method>
  22740. <method name="call" return="org.apache.hadoop.io.Writable"
  22741. abstract="false" native="false" synchronized="false"
  22742. static="false" final="false" visibility="public"
  22743. deprecated="not deprecated">
  22744. <param name="param" type="org.apache.hadoop.io.Writable"/>
  22745. <param name="addr" type="java.net.InetSocketAddress"/>
  22746. <param name="protocol" type="java.lang.Class"/>
  22747. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  22748. <param name="rpcTimeout" type="int"/>
  22749. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22750. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  22751. <exception name="IOException" type="java.io.IOException"/>
  22752. <doc>
  22753. <![CDATA[Make a call, passing <code>param</code>, to the IPC server running at
  22754. <code>address</code> which is servicing the <code>protocol</code> protocol,
  22755. with the <code>ticket</code> credentials, <code>rpcTimeout</code> as timeout
  22756. and <code>conf</code> as configuration for this connection, returning the
  22757. value. Throws exceptions if there are network problems or if the remote code
  22758. threw an exception.]]>
  22759. </doc>
  22760. </method>
  22761. <method name="call" return="org.apache.hadoop.io.Writable"
  22762. abstract="false" native="false" synchronized="false"
  22763. static="false" final="false" visibility="public"
  22764. deprecated="not deprecated">
  22765. <param name="param" type="org.apache.hadoop.io.Writable"/>
  22766. <param name="remoteId" type="org.apache.hadoop.ipc.Client.ConnectionId"/>
  22767. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  22768. <exception name="IOException" type="java.io.IOException"/>
  22769. <doc>
  22770. <![CDATA[Make a call, passing <code>param</code>, to the IPC server defined by
  22771. <code>remoteId</code>, returning the value.
  22772. Throws exceptions if there are network problems or if the remote code
  22773. threw an exception.]]>
  22774. </doc>
  22775. </method>
  22776. <method name="call" return="org.apache.hadoop.io.Writable[]"
  22777. abstract="false" native="false" synchronized="false"
  22778. static="false" final="false" visibility="public"
  22779. deprecated="Use {@link #call(Writable[], InetSocketAddress[],
  22780. Class, UserGroupInformation, Configuration)} instead">
  22781. <param name="params" type="org.apache.hadoop.io.Writable[]"/>
  22782. <param name="addresses" type="java.net.InetSocketAddress[]"/>
  22783. <exception name="IOException" type="java.io.IOException"/>
  22784. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  22785. <doc>
  22786. <![CDATA[@deprecated Use {@link #call(Writable[], InetSocketAddress[],
  22787. Class, UserGroupInformation, Configuration)} instead]]>
  22788. </doc>
  22789. </method>
  22790. <method name="call" return="org.apache.hadoop.io.Writable[]"
  22791. abstract="false" native="false" synchronized="false"
  22792. static="false" final="false" visibility="public"
  22793. deprecated="Use {@link #call(Writable[], InetSocketAddress[],
  22794. Class, UserGroupInformation, Configuration)} instead">
  22795. <param name="params" type="org.apache.hadoop.io.Writable[]"/>
  22796. <param name="addresses" type="java.net.InetSocketAddress[]"/>
  22797. <param name="protocol" type="java.lang.Class"/>
  22798. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  22799. <exception name="IOException" type="java.io.IOException"/>
  22800. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  22801. <doc>
  22802. <![CDATA[@deprecated Use {@link #call(Writable[], InetSocketAddress[],
  22803. Class, UserGroupInformation, Configuration)} instead]]>
  22804. </doc>
  22805. </method>
  22806. <method name="call" return="org.apache.hadoop.io.Writable[]"
  22807. abstract="false" native="false" synchronized="false"
  22808. static="false" final="false" visibility="public"
  22809. deprecated="not deprecated">
  22810. <param name="params" type="org.apache.hadoop.io.Writable[]"/>
  22811. <param name="addresses" type="java.net.InetSocketAddress[]"/>
  22812. <param name="protocol" type="java.lang.Class"/>
  22813. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  22814. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22815. <exception name="IOException" type="java.io.IOException"/>
  22816. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  22817. <doc>
  22818. <![CDATA[Makes a set of calls in parallel. Each parameter is sent to the
  22819. corresponding address. When all values are available, or have timed out
  22820. or errored, the collected results are returned in an array. The array
  22821. contains nulls for calls that timed out or errored.]]>
  22822. </doc>
  22823. </method>
  22824. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_KEY" type="java.lang.String"
  22825. transient="false" volatile="false"
  22826. static="true" final="true" visibility="public"
  22827. deprecated="not deprecated">
  22828. </field>
  22829. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_DEFAULT" type="int"
  22830. transient="false" volatile="false"
  22831. static="true" final="true" visibility="public"
  22832. deprecated="not deprecated">
  22833. </field>
  22834. <field name="LOG" type="org.apache.commons.logging.Log"
  22835. transient="false" volatile="false"
  22836. static="true" final="true" visibility="public"
  22837. deprecated="not deprecated">
  22838. </field>
  22839. <doc>
  22840. <![CDATA[A client for an IPC service. IPC calls take a single {@link Writable} as a
  22841. parameter, and return a {@link Writable} as their value. A service runs on
  22842. a port and is defined by a parameter class and a value class.
  22843. @see Server]]>
  22844. </doc>
  22845. </class>
  22846. <!-- end class org.apache.hadoop.ipc.Client -->
  22847. <!-- start class org.apache.hadoop.ipc.RemoteException -->
  22848. <class name="RemoteException" extends="java.io.IOException"
  22849. abstract="false"
  22850. static="false" final="false" visibility="public"
  22851. deprecated="not deprecated">
  22852. <constructor name="RemoteException" type="java.lang.String, java.lang.String"
  22853. static="false" final="false" visibility="public"
  22854. deprecated="not deprecated">
  22855. </constructor>
  22856. <method name="getClassName" return="java.lang.String"
  22857. abstract="false" native="false" synchronized="false"
  22858. static="false" final="false" visibility="public"
  22859. deprecated="not deprecated">
  22860. </method>
  22861. <method name="unwrapRemoteException" return="java.io.IOException"
  22862. abstract="false" native="false" synchronized="false"
  22863. static="false" final="false" visibility="public"
  22864. deprecated="not deprecated">
  22865. <param name="lookupTypes" type="java.lang.Class[]"/>
  22866. <doc>
  22867. <![CDATA[If this remote exception wraps up one of the lookupTypes
  22868. then return this exception.
  22869. <p>
  22870. Unwraps any IOException.
  22871. @param lookupTypes the desired exception class.
  22872. @return IOException, which is either the lookupClass exception or this.]]>
  22873. </doc>
  22874. </method>
  22875. <method name="unwrapRemoteException" return="java.io.IOException"
  22876. abstract="false" native="false" synchronized="false"
  22877. static="false" final="false" visibility="public"
  22878. deprecated="not deprecated">
  22879. <doc>
  22880. <![CDATA[Instantiate and return the exception wrapped up by this remote exception.
  22881. <p> This unwraps any <code>Throwable</code> that has a constructor taking
  22882. a <code>String</code> as a parameter.
  22883. Otherwise it returns this.
  22884. @return <code>Throwable]]>
  22885. </doc>
  22886. </method>
  22887. <method name="valueOf" return="org.apache.hadoop.ipc.RemoteException"
  22888. abstract="false" native="false" synchronized="false"
  22889. static="true" final="false" visibility="public"
  22890. deprecated="not deprecated">
  22891. <param name="attrs" type="org.xml.sax.Attributes"/>
  22892. <doc>
  22893. <![CDATA[Create RemoteException from attributes]]>
  22894. </doc>
  22895. </method>
  22896. </class>
  22897. <!-- end class org.apache.hadoop.ipc.RemoteException -->
  22898. <!-- start class org.apache.hadoop.ipc.RPC -->
  22899. <class name="RPC" extends="java.lang.Object"
  22900. abstract="false"
  22901. static="false" final="false" visibility="public"
  22902. deprecated="not deprecated">
  22903. <method name="waitForProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  22904. abstract="false" native="false" synchronized="false"
  22905. static="true" final="false" visibility="public"
  22906. deprecated="not deprecated">
  22907. <param name="protocol" type="java.lang.Class"/>
  22908. <param name="clientVersion" type="long"/>
  22909. <param name="addr" type="java.net.InetSocketAddress"/>
  22910. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22911. <exception name="IOException" type="java.io.IOException"/>
  22912. </method>
  22913. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  22914. abstract="false" native="false" synchronized="false"
  22915. static="true" final="false" visibility="public"
  22916. deprecated="not deprecated">
  22917. <param name="protocol" type="java.lang.Class"/>
  22918. <param name="clientVersion" type="long"/>
  22919. <param name="addr" type="java.net.InetSocketAddress"/>
  22920. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22921. <param name="factory" type="javax.net.SocketFactory"/>
  22922. <exception name="IOException" type="java.io.IOException"/>
  22923. <doc>
  22924. <![CDATA[Construct a client-side proxy object that implements the named protocol,
  22925. talking to a server at the named address.]]>
  22926. </doc>
  22927. </method>
  22928. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  22929. abstract="false" native="false" synchronized="false"
  22930. static="true" final="false" visibility="public"
  22931. deprecated="not deprecated">
  22932. <param name="protocol" type="java.lang.Class"/>
  22933. <param name="clientVersion" type="long"/>
  22934. <param name="addr" type="java.net.InetSocketAddress"/>
  22935. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22936. <param name="factory" type="javax.net.SocketFactory"/>
  22937. <param name="rpcTimeout" type="int"/>
  22938. <exception name="IOException" type="java.io.IOException"/>
  22939. <doc>
  22940. <![CDATA[Construct a client-side proxy object that implements the named protocol,
  22941. talking to a server at the named address.]]>
  22942. </doc>
  22943. </method>
  22944. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  22945. abstract="false" native="false" synchronized="false"
  22946. static="true" final="false" visibility="public"
  22947. deprecated="not deprecated">
  22948. <param name="protocol" type="java.lang.Class"/>
  22949. <param name="clientVersion" type="long"/>
  22950. <param name="addr" type="java.net.InetSocketAddress"/>
  22951. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  22952. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22953. <param name="factory" type="javax.net.SocketFactory"/>
  22954. <exception name="IOException" type="java.io.IOException"/>
  22955. <doc>
  22956. <![CDATA[Construct a client-side proxy object that implements the named protocol,
  22957. talking to a server at the named address.]]>
  22958. </doc>
  22959. </method>
  22960. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  22961. abstract="false" native="false" synchronized="false"
  22962. static="true" final="false" visibility="public"
  22963. deprecated="not deprecated">
  22964. <param name="protocol" type="java.lang.Class"/>
  22965. <param name="clientVersion" type="long"/>
  22966. <param name="addr" type="java.net.InetSocketAddress"/>
  22967. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  22968. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22969. <param name="factory" type="javax.net.SocketFactory"/>
  22970. <param name="rpcTimeout" type="int"/>
  22971. <exception name="IOException" type="java.io.IOException"/>
  22972. <doc>
  22973. <![CDATA[Construct a client-side proxy object that implements the named protocol,
  22974. talking to a server at the named address.]]>
  22975. </doc>
  22976. </method>
  22977. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  22978. abstract="false" native="false" synchronized="false"
  22979. static="true" final="false" visibility="public"
  22980. deprecated="not deprecated">
  22981. <param name="protocol" type="java.lang.Class"/>
  22982. <param name="clientVersion" type="long"/>
  22983. <param name="addr" type="java.net.InetSocketAddress"/>
  22984. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  22985. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22986. <param name="factory" type="javax.net.SocketFactory"/>
  22987. <param name="rpcTimeout" type="int"/>
  22988. <param name="connectionRetryPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  22989. <exception name="IOException" type="java.io.IOException"/>
  22990. <doc>
  22991. <![CDATA[Construct a client-side proxy object that implements the named protocol,
  22992. talking to a server at the named address.]]>
  22993. </doc>
  22994. </method>
  22995. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  22996. abstract="false" native="false" synchronized="false"
  22997. static="true" final="false" visibility="public"
  22998. deprecated="not deprecated">
  22999. <param name="protocol" type="java.lang.Class"/>
  23000. <param name="clientVersion" type="long"/>
  23001. <param name="addr" type="java.net.InetSocketAddress"/>
  23002. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23003. <exception name="IOException" type="java.io.IOException"/>
  23004. <doc>
  23005. <![CDATA[Construct a client-side proxy object with the default SocketFactory
  23006. @param protocol
  23007. @param clientVersion
  23008. @param addr
  23009. @param conf
  23010. @return a proxy instance
  23011. @throws IOException]]>
  23012. </doc>
  23013. </method>
  23014. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  23015. abstract="false" native="false" synchronized="false"
  23016. static="true" final="false" visibility="public"
  23017. deprecated="not deprecated">
  23018. <param name="protocol" type="java.lang.Class"/>
  23019. <param name="clientVersion" type="long"/>
  23020. <param name="addr" type="java.net.InetSocketAddress"/>
  23021. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23022. <param name="rpcTimeout" type="int"/>
  23023. <exception name="IOException" type="java.io.IOException"/>
  23024. </method>
  23025. <method name="stopProxy"
  23026. abstract="false" native="false" synchronized="false"
  23027. static="true" final="false" visibility="public"
  23028. deprecated="not deprecated">
  23029. <param name="proxy" type="org.apache.hadoop.ipc.VersionedProtocol"/>
  23030. <doc>
  23031. <![CDATA[Stop this proxy and release its invoker's resource
  23032. @param proxy the proxy to be stopped]]>
  23033. </doc>
  23034. </method>
  23035. <method name="call" return="java.lang.Object[]"
  23036. abstract="false" native="false" synchronized="false"
  23037. static="true" final="false" visibility="public"
  23038. deprecated="Use {@link #call(Method, Object[][], InetSocketAddress[], UserGroupInformation, Configuration)} instead">
  23039. <param name="method" type="java.lang.reflect.Method"/>
  23040. <param name="params" type="java.lang.Object[][]"/>
  23041. <param name="addrs" type="java.net.InetSocketAddress[]"/>
  23042. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23043. <exception name="IOException" type="java.io.IOException"/>
  23044. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  23045. <doc>
  23046. <![CDATA[Expert: Make multiple, parallel calls to a set of servers.
  23047. @deprecated Use {@link #call(Method, Object[][], InetSocketAddress[], UserGroupInformation, Configuration)} instead]]>
  23048. </doc>
  23049. </method>
  23050. <method name="call" return="java.lang.Object[]"
  23051. abstract="false" native="false" synchronized="false"
  23052. static="true" final="false" visibility="public"
  23053. deprecated="not deprecated">
  23054. <param name="method" type="java.lang.reflect.Method"/>
  23055. <param name="params" type="java.lang.Object[][]"/>
  23056. <param name="addrs" type="java.net.InetSocketAddress[]"/>
  23057. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  23058. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23059. <exception name="IOException" type="java.io.IOException"/>
  23060. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  23061. <doc>
  23062. <![CDATA[Expert: Make multiple, parallel calls to a set of servers.]]>
  23063. </doc>
  23064. </method>
  23065. <method name="getServer" return="org.apache.hadoop.ipc.RPC.Server"
  23066. abstract="false" native="false" synchronized="false"
  23067. static="true" final="false" visibility="public"
  23068. deprecated="not deprecated">
  23069. <param name="instance" type="java.lang.Object"/>
  23070. <param name="bindAddress" type="java.lang.String"/>
  23071. <param name="port" type="int"/>
  23072. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23073. <exception name="IOException" type="java.io.IOException"/>
  23074. <doc>
  23075. <![CDATA[Construct a server for a protocol implementation instance listening on a
  23076. port and address.]]>
  23077. </doc>
  23078. </method>
  23079. <method name="getServer" return="org.apache.hadoop.ipc.RPC.Server"
  23080. abstract="false" native="false" synchronized="false"
  23081. static="true" final="false" visibility="public"
  23082. deprecated="not deprecated">
  23083. <param name="instance" type="java.lang.Object"/>
  23084. <param name="bindAddress" type="java.lang.String"/>
  23085. <param name="port" type="int"/>
  23086. <param name="numHandlers" type="int"/>
  23087. <param name="verbose" type="boolean"/>
  23088. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23089. <exception name="IOException" type="java.io.IOException"/>
  23090. <doc>
  23091. <![CDATA[Construct a server for a protocol implementation instance listening on a
  23092. port and address.]]>
  23093. </doc>
  23094. </method>
  23095. <method name="getServer" return="org.apache.hadoop.ipc.RPC.Server"
  23096. abstract="false" native="false" synchronized="false"
  23097. static="true" final="false" visibility="public"
  23098. deprecated="not deprecated">
  23099. <param name="instance" type="java.lang.Object"/>
  23100. <param name="bindAddress" type="java.lang.String"/>
  23101. <param name="port" type="int"/>
  23102. <param name="numHandlers" type="int"/>
  23103. <param name="verbose" type="boolean"/>
  23104. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23105. <param name="secretManager" type="org.apache.hadoop.security.token.SecretManager"/>
  23106. <exception name="IOException" type="java.io.IOException"/>
  23107. <doc>
  23108. <![CDATA[Construct a server for a protocol implementation instance listening on a
  23109. port and address, with a secret manager.]]>
  23110. </doc>
  23111. </method>
  23112. <doc>
  23113. <![CDATA[A simple RPC mechanism.
  23114. A <i>protocol</i> is a Java interface. All parameters and return types must
  23115. be one of:
  23116. <ul> <li>a primitive type, <code>boolean</code>, <code>byte</code>,
  23117. <code>char</code>, <code>short</code>, <code>int</code>, <code>long</code>,
  23118. <code>float</code>, <code>double</code>, or <code>void</code>; or</li>
  23119. <li>a {@link String}; or</li>
  23120. <li>a {@link Writable}; or</li>
  23121. <li>an array of the above types</li> </ul>
  23122. All methods in the protocol should throw only IOException. No field data of
  23123. the protocol instance is transmitted.]]>
  23124. </doc>
  23125. </class>
  23126. <!-- end class org.apache.hadoop.ipc.RPC -->
  23127. <!-- start class org.apache.hadoop.ipc.RPC.Server -->
  23128. <class name="RPC.Server" extends="org.apache.hadoop.ipc.Server"
  23129. abstract="false"
  23130. static="true" final="false" visibility="public"
  23131. deprecated="not deprecated">
  23132. <constructor name="RPC.Server" type="java.lang.Object, org.apache.hadoop.conf.Configuration, java.lang.String, int"
  23133. static="false" final="false" visibility="public"
  23134. deprecated="not deprecated">
  23135. <exception name="IOException" type="java.io.IOException"/>
  23136. <doc>
  23137. <![CDATA[Construct an RPC server.
  23138. @param instance the instance whose methods will be called
  23139. @param conf the configuration to use
  23140. @param bindAddress the address to bind on to listen for connection
  23141. @param port the port to listen for connections on]]>
  23142. </doc>
  23143. </constructor>
  23144. <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"
  23145. static="false" final="false" visibility="public"
  23146. deprecated="not deprecated">
  23147. <exception name="IOException" type="java.io.IOException"/>
  23148. <doc>
  23149. <![CDATA[Construct an RPC server.
  23150. @param instance the instance whose methods will be called
  23151. @param conf the configuration to use
  23152. @param bindAddress the address to bind on to listen for connection
  23153. @param port the port to listen for connections on
  23154. @param numHandlers the number of method handler threads to run
  23155. @param verbose whether each call should be logged]]>
  23156. </doc>
  23157. </constructor>
  23158. <method name="call" return="org.apache.hadoop.io.Writable"
  23159. abstract="false" native="false" synchronized="false"
  23160. static="false" final="false" visibility="public"
  23161. deprecated="not deprecated">
  23162. <param name="protocol" type="java.lang.Class"/>
  23163. <param name="param" type="org.apache.hadoop.io.Writable"/>
  23164. <param name="receivedTime" type="long"/>
  23165. <exception name="IOException" type="java.io.IOException"/>
  23166. </method>
  23167. <doc>
  23168. <![CDATA[An RPC Server.]]>
  23169. </doc>
  23170. </class>
  23171. <!-- end class org.apache.hadoop.ipc.RPC.Server -->
  23172. <!-- start class org.apache.hadoop.ipc.RPC.VersionMismatch -->
  23173. <class name="RPC.VersionMismatch" extends="java.io.IOException"
  23174. abstract="false"
  23175. static="true" final="false" visibility="public"
  23176. deprecated="not deprecated">
  23177. <constructor name="RPC.VersionMismatch" type="java.lang.String, long, long"
  23178. static="false" final="false" visibility="public"
  23179. deprecated="not deprecated">
  23180. <doc>
  23181. <![CDATA[Create a version mismatch exception
  23182. @param interfaceName the name of the protocol mismatch
  23183. @param clientVersion the client's version of the protocol
  23184. @param serverVersion the server's version of the protocol]]>
  23185. </doc>
  23186. </constructor>
  23187. <method name="getInterfaceName" return="java.lang.String"
  23188. abstract="false" native="false" synchronized="false"
  23189. static="false" final="false" visibility="public"
  23190. deprecated="not deprecated">
  23191. <doc>
  23192. <![CDATA[Get the interface name
  23193. @return the java class name
  23194. (eg. org.apache.hadoop.mapred.InterTrackerProtocol)]]>
  23195. </doc>
  23196. </method>
  23197. <method name="getClientVersion" return="long"
  23198. abstract="false" native="false" synchronized="false"
  23199. static="false" final="false" visibility="public"
  23200. deprecated="not deprecated">
  23201. <doc>
  23202. <![CDATA[Get the client's preferred version]]>
  23203. </doc>
  23204. </method>
  23205. <method name="getServerVersion" return="long"
  23206. abstract="false" native="false" synchronized="false"
  23207. static="false" final="false" visibility="public"
  23208. deprecated="not deprecated">
  23209. <doc>
  23210. <![CDATA[Get the server's agreed to version.]]>
  23211. </doc>
  23212. </method>
  23213. <doc>
  23214. <![CDATA[A version mismatch for the RPC protocol.]]>
  23215. </doc>
  23216. </class>
  23217. <!-- end class org.apache.hadoop.ipc.RPC.VersionMismatch -->
  23218. <!-- start class org.apache.hadoop.ipc.Server -->
  23219. <class name="Server" extends="java.lang.Object"
  23220. abstract="true"
  23221. static="false" final="false" visibility="public"
  23222. deprecated="not deprecated">
  23223. <constructor name="Server" type="java.lang.String, int, java.lang.Class, int, org.apache.hadoop.conf.Configuration"
  23224. static="false" final="false" visibility="protected"
  23225. deprecated="not deprecated">
  23226. <exception name="IOException" type="java.io.IOException"/>
  23227. </constructor>
  23228. <constructor name="Server" type="java.lang.String, int, java.lang.Class, int, org.apache.hadoop.conf.Configuration, java.lang.String"
  23229. static="false" final="false" visibility="protected"
  23230. deprecated="not deprecated">
  23231. <exception name="IOException" type="java.io.IOException"/>
  23232. </constructor>
  23233. <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"
  23234. static="false" final="false" visibility="protected"
  23235. deprecated="not deprecated">
  23236. <exception name="IOException" type="java.io.IOException"/>
  23237. <doc>
  23238. <![CDATA[Constructs a server listening on the named port and address. Parameters passed must
  23239. be of the named class. The <code>handlerCount</handlerCount> determines
  23240. the number of handler threads that will be used to process calls.]]>
  23241. </doc>
  23242. </constructor>
  23243. <method name="get" return="org.apache.hadoop.ipc.Server"
  23244. abstract="false" native="false" synchronized="false"
  23245. static="true" final="false" visibility="public"
  23246. deprecated="not deprecated">
  23247. <doc>
  23248. <![CDATA[Returns the server instance called under or null. May be called under
  23249. {@link #call(Writable, long)} implementations, and under {@link Writable}
  23250. methods of paramters and return values. Permits applications to access
  23251. the server context.]]>
  23252. </doc>
  23253. </method>
  23254. <method name="getRemoteIp" return="java.net.InetAddress"
  23255. abstract="false" native="false" synchronized="false"
  23256. static="true" final="false" visibility="public"
  23257. deprecated="not deprecated">
  23258. <doc>
  23259. <![CDATA[Returns the remote side ip address when invoked inside an RPC
  23260. Returns null incase of an error.]]>
  23261. </doc>
  23262. </method>
  23263. <method name="getRemoteAddress" return="java.lang.String"
  23264. abstract="false" native="false" synchronized="false"
  23265. static="true" final="false" visibility="public"
  23266. deprecated="not deprecated">
  23267. <doc>
  23268. <![CDATA[Returns remote address as a string when invoked inside an RPC.
  23269. Returns null in case of an error.]]>
  23270. </doc>
  23271. </method>
  23272. <method name="bind"
  23273. abstract="false" native="false" synchronized="false"
  23274. static="true" final="false" visibility="public"
  23275. deprecated="not deprecated">
  23276. <param name="socket" type="java.net.ServerSocket"/>
  23277. <param name="address" type="java.net.InetSocketAddress"/>
  23278. <param name="backlog" type="int"/>
  23279. <exception name="IOException" type="java.io.IOException"/>
  23280. <doc>
  23281. <![CDATA[A convenience method to bind to a given address and report
  23282. better exceptions if the address is not a valid host.
  23283. @param socket the socket to bind
  23284. @param address the address to bind to
  23285. @param backlog the number of connections allowed in the queue
  23286. @throws BindException if the address can't be bound
  23287. @throws UnknownHostException if the address isn't a valid host name
  23288. @throws IOException other random errors from bind]]>
  23289. </doc>
  23290. </method>
  23291. <method name="getRpcMetrics" return="org.apache.hadoop.ipc.metrics.RpcInstrumentation"
  23292. abstract="false" native="false" synchronized="false"
  23293. static="false" final="false" visibility="public"
  23294. deprecated="not deprecated">
  23295. <doc>
  23296. <![CDATA[Returns a handle to the rpcMetrics (required in tests)
  23297. @return rpc metrics]]>
  23298. </doc>
  23299. </method>
  23300. <method name="setSocketSendBufSize"
  23301. abstract="false" native="false" synchronized="false"
  23302. static="false" final="false" visibility="public"
  23303. deprecated="not deprecated">
  23304. <param name="size" type="int"/>
  23305. <doc>
  23306. <![CDATA[Sets the socket buffer size used for responding to RPCs]]>
  23307. </doc>
  23308. </method>
  23309. <method name="start"
  23310. abstract="false" native="false" synchronized="true"
  23311. static="false" final="false" visibility="public"
  23312. deprecated="not deprecated">
  23313. <doc>
  23314. <![CDATA[Starts the service. Must be called before any calls will be handled.]]>
  23315. </doc>
  23316. </method>
  23317. <method name="stop"
  23318. abstract="false" native="false" synchronized="true"
  23319. static="false" final="false" visibility="public"
  23320. deprecated="not deprecated">
  23321. <doc>
  23322. <![CDATA[Stops the service. No new calls will be handled after this is called.]]>
  23323. </doc>
  23324. </method>
  23325. <method name="join"
  23326. abstract="false" native="false" synchronized="true"
  23327. static="false" final="false" visibility="public"
  23328. deprecated="not deprecated">
  23329. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  23330. <doc>
  23331. <![CDATA[Wait for the server to be stopped.
  23332. Does not wait for all subthreads to finish.
  23333. See {@link #stop()}.]]>
  23334. </doc>
  23335. </method>
  23336. <method name="getListenerAddress" return="java.net.InetSocketAddress"
  23337. abstract="false" native="false" synchronized="true"
  23338. static="false" final="false" visibility="public"
  23339. deprecated="not deprecated">
  23340. <doc>
  23341. <![CDATA[Return the socket (ip+port) on which the RPC server is listening to.
  23342. @return the socket (ip+port) on which the RPC server is listening to.]]>
  23343. </doc>
  23344. </method>
  23345. <method name="call" return="org.apache.hadoop.io.Writable"
  23346. abstract="false" native="false" synchronized="false"
  23347. static="false" final="false" visibility="public"
  23348. deprecated="Use {@link #call(Class, Writable, long)} instead">
  23349. <param name="param" type="org.apache.hadoop.io.Writable"/>
  23350. <param name="receiveTime" type="long"/>
  23351. <exception name="IOException" type="java.io.IOException"/>
  23352. <doc>
  23353. <![CDATA[Called for each call.
  23354. @deprecated Use {@link #call(Class, Writable, long)} instead]]>
  23355. </doc>
  23356. </method>
  23357. <method name="call" return="org.apache.hadoop.io.Writable"
  23358. abstract="true" native="false" synchronized="false"
  23359. static="false" final="false" visibility="public"
  23360. deprecated="not deprecated">
  23361. <param name="protocol" type="java.lang.Class"/>
  23362. <param name="param" type="org.apache.hadoop.io.Writable"/>
  23363. <param name="receiveTime" type="long"/>
  23364. <exception name="IOException" type="java.io.IOException"/>
  23365. <doc>
  23366. <![CDATA[Called for each call.]]>
  23367. </doc>
  23368. </method>
  23369. <method name="authorize"
  23370. abstract="false" native="false" synchronized="false"
  23371. static="false" final="false" visibility="public"
  23372. deprecated="not deprecated">
  23373. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  23374. <param name="connection" type="org.apache.hadoop.ipc.ConnectionHeader"/>
  23375. <param name="addr" type="java.net.InetAddress"/>
  23376. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  23377. <doc>
  23378. <![CDATA[Authorize the incoming client connection.
  23379. @param user client user
  23380. @param connection incoming connection
  23381. @param addr InetAddress of incoming connection
  23382. @throws AuthorizationException when the client isn't authorized to talk the protocol]]>
  23383. </doc>
  23384. </method>
  23385. <method name="getNumOpenConnections" return="int"
  23386. abstract="false" native="false" synchronized="false"
  23387. static="false" final="false" visibility="public"
  23388. deprecated="not deprecated">
  23389. <doc>
  23390. <![CDATA[The number of open RPC conections
  23391. @return the number of open rpc connections]]>
  23392. </doc>
  23393. </method>
  23394. <method name="getCallQueueLen" return="int"
  23395. abstract="false" native="false" synchronized="false"
  23396. static="false" final="false" visibility="public"
  23397. deprecated="not deprecated">
  23398. <doc>
  23399. <![CDATA[The number of rpc calls in the queue.
  23400. @return The number of rpc calls in the queue.]]>
  23401. </doc>
  23402. </method>
  23403. <field name="HEADER" type="java.nio.ByteBuffer"
  23404. transient="false" volatile="false"
  23405. static="true" final="true" visibility="public"
  23406. deprecated="not deprecated">
  23407. <doc>
  23408. <![CDATA[The first four bytes of Hadoop RPC connections]]>
  23409. </doc>
  23410. </field>
  23411. <field name="CURRENT_VERSION" type="byte"
  23412. transient="false" volatile="false"
  23413. static="true" final="true" visibility="public"
  23414. deprecated="not deprecated">
  23415. </field>
  23416. <field name="LOG" type="org.apache.commons.logging.Log"
  23417. transient="false" volatile="false"
  23418. static="true" final="true" visibility="public"
  23419. deprecated="not deprecated">
  23420. </field>
  23421. <field name="rpcMetrics" type="org.apache.hadoop.ipc.metrics.RpcInstrumentation"
  23422. transient="false" volatile="false"
  23423. static="false" final="false" visibility="protected"
  23424. deprecated="not deprecated">
  23425. </field>
  23426. <doc>
  23427. <![CDATA[An abstract IPC service. IPC calls take a single {@link Writable} as a
  23428. parameter, and return a {@link Writable} as their value. A service runs on
  23429. a port and is defined by a parameter class and a value class.
  23430. @see Client]]>
  23431. </doc>
  23432. </class>
  23433. <!-- end class org.apache.hadoop.ipc.Server -->
  23434. <!-- start class org.apache.hadoop.ipc.Server.Connection -->
  23435. <class name="Server.Connection" extends="java.lang.Object"
  23436. abstract="false"
  23437. static="false" final="false" visibility="public"
  23438. deprecated="not deprecated">
  23439. <constructor name="Server.Connection" type="java.nio.channels.SelectionKey, java.nio.channels.SocketChannel, long"
  23440. static="false" final="false" visibility="public"
  23441. deprecated="not deprecated">
  23442. </constructor>
  23443. <method name="toString" return="java.lang.String"
  23444. abstract="false" native="false" synchronized="false"
  23445. static="false" final="false" visibility="public"
  23446. deprecated="not deprecated">
  23447. </method>
  23448. <method name="getHostAddress" return="java.lang.String"
  23449. abstract="false" native="false" synchronized="false"
  23450. static="false" final="false" visibility="public"
  23451. deprecated="not deprecated">
  23452. </method>
  23453. <method name="getHostInetAddress" return="java.net.InetAddress"
  23454. abstract="false" native="false" synchronized="false"
  23455. static="false" final="false" visibility="public"
  23456. deprecated="not deprecated">
  23457. </method>
  23458. <method name="setLastContact"
  23459. abstract="false" native="false" synchronized="false"
  23460. static="false" final="false" visibility="public"
  23461. deprecated="not deprecated">
  23462. <param name="lastContact" type="long"/>
  23463. </method>
  23464. <method name="getLastContact" return="long"
  23465. abstract="false" native="false" synchronized="false"
  23466. static="false" final="false" visibility="public"
  23467. deprecated="not deprecated">
  23468. </method>
  23469. <method name="readAndProcess" return="int"
  23470. abstract="false" native="false" synchronized="false"
  23471. static="false" final="false" visibility="public"
  23472. deprecated="not deprecated">
  23473. <exception name="IOException" type="java.io.IOException"/>
  23474. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  23475. </method>
  23476. <field name="attemptingUser" type="org.apache.hadoop.security.UserGroupInformation"
  23477. transient="false" volatile="false"
  23478. static="false" final="false" visibility="public"
  23479. deprecated="not deprecated">
  23480. </field>
  23481. <doc>
  23482. <![CDATA[Reads calls from a connection and queues them for handling.]]>
  23483. </doc>
  23484. </class>
  23485. <!-- end class org.apache.hadoop.ipc.Server.Connection -->
  23486. <!-- start interface org.apache.hadoop.ipc.VersionedProtocol -->
  23487. <interface name="VersionedProtocol" abstract="true"
  23488. static="false" final="false" visibility="public"
  23489. deprecated="not deprecated">
  23490. <method name="getProtocolVersion" return="long"
  23491. abstract="false" native="false" synchronized="false"
  23492. static="false" final="false" visibility="public"
  23493. deprecated="not deprecated">
  23494. <param name="protocol" type="java.lang.String"/>
  23495. <param name="clientVersion" type="long"/>
  23496. <exception name="IOException" type="java.io.IOException"/>
  23497. <doc>
  23498. <![CDATA[Return protocol version corresponding to protocol interface.
  23499. @param protocol The classname of the protocol interface
  23500. @param clientVersion The version of the protocol that the client speaks
  23501. @return the version that the server will speak]]>
  23502. </doc>
  23503. </method>
  23504. <doc>
  23505. <![CDATA[Superclass of all protocols that use Hadoop RPC.
  23506. Subclasses of this interface are also supposed to have
  23507. a static final long versionID field.]]>
  23508. </doc>
  23509. </interface>
  23510. <!-- end interface org.apache.hadoop.ipc.VersionedProtocol -->
  23511. </package>
  23512. <package name="org.apache.hadoop.ipc.metrics">
  23513. <!-- start class org.apache.hadoop.ipc.metrics.RpcInstrumentation -->
  23514. <class name="RpcInstrumentation" extends="java.lang.Object"
  23515. abstract="false"
  23516. static="false" final="false" visibility="public"
  23517. deprecated="not deprecated">
  23518. <implements name="org.apache.hadoop.metrics2.MetricsSource"/>
  23519. <method name="getMetrics"
  23520. abstract="false" native="false" synchronized="false"
  23521. static="false" final="false" visibility="public"
  23522. deprecated="not deprecated">
  23523. <param name="builder" type="org.apache.hadoop.metrics2.MetricsBuilder"/>
  23524. <param name="all" type="boolean"/>
  23525. </method>
  23526. <method name="create" return="org.apache.hadoop.ipc.metrics.RpcInstrumentation"
  23527. abstract="false" native="false" synchronized="false"
  23528. static="true" final="false" visibility="public"
  23529. deprecated="not deprecated">
  23530. <param name="serverName" type="java.lang.String"/>
  23531. <param name="port" type="int"/>
  23532. <doc>
  23533. <![CDATA[Create an RPC instrumentation object
  23534. @param serverName name of the server
  23535. @param port the RPC port
  23536. @return the instrumentation object]]>
  23537. </doc>
  23538. </method>
  23539. <method name="create" return="org.apache.hadoop.ipc.metrics.RpcInstrumentation"
  23540. abstract="false" native="false" synchronized="false"
  23541. static="true" final="false" visibility="public"
  23542. deprecated="not deprecated">
  23543. <param name="serverName" type="java.lang.String"/>
  23544. <param name="port" type="int"/>
  23545. <param name="ms" type="org.apache.hadoop.metrics2.MetricsSystem"/>
  23546. <doc>
  23547. <![CDATA[Create an RPC instrumentation object
  23548. Mostly useful for testing.
  23549. @param serverName name of the server
  23550. @param port the RPC port
  23551. @param ms the metrics system object
  23552. @return the instrumentation object]]>
  23553. </doc>
  23554. </method>
  23555. <method name="detailed" return="org.apache.hadoop.metrics2.MetricsSource"
  23556. abstract="false" native="false" synchronized="false"
  23557. static="false" final="false" visibility="public"
  23558. deprecated="not deprecated">
  23559. <doc>
  23560. <![CDATA[@return the detailed (per call) metrics source for RPC]]>
  23561. </doc>
  23562. </method>
  23563. <method name="incrAuthenticationFailures"
  23564. abstract="false" native="false" synchronized="false"
  23565. static="false" final="false" visibility="public"
  23566. deprecated="not deprecated">
  23567. <doc>
  23568. <![CDATA[One authentication failure event]]>
  23569. </doc>
  23570. </method>
  23571. <method name="incrAuthenticationSuccesses"
  23572. abstract="false" native="false" synchronized="false"
  23573. static="false" final="false" visibility="public"
  23574. deprecated="not deprecated">
  23575. <doc>
  23576. <![CDATA[One authentication success event]]>
  23577. </doc>
  23578. </method>
  23579. <method name="incrAuthorizationSuccesses"
  23580. abstract="false" native="false" synchronized="false"
  23581. static="false" final="false" visibility="public"
  23582. deprecated="not deprecated">
  23583. <doc>
  23584. <![CDATA[One authorization success event]]>
  23585. </doc>
  23586. </method>
  23587. <method name="incrAuthorizationFailures"
  23588. abstract="false" native="false" synchronized="false"
  23589. static="false" final="false" visibility="public"
  23590. deprecated="not deprecated">
  23591. <doc>
  23592. <![CDATA[One authorization failure event]]>
  23593. </doc>
  23594. </method>
  23595. <method name="shutdown"
  23596. abstract="false" native="false" synchronized="false"
  23597. static="false" final="false" visibility="public"
  23598. deprecated="not deprecated">
  23599. <doc>
  23600. <![CDATA[Shutdown the instrumentation for the process]]>
  23601. </doc>
  23602. </method>
  23603. <method name="incrSentBytes"
  23604. abstract="false" native="false" synchronized="false"
  23605. static="false" final="false" visibility="public"
  23606. deprecated="not deprecated">
  23607. <param name="count" type="int"/>
  23608. <doc>
  23609. <![CDATA[Increment sent bytes by count
  23610. @param count to increment]]>
  23611. </doc>
  23612. </method>
  23613. <method name="incrReceivedBytes"
  23614. abstract="false" native="false" synchronized="false"
  23615. static="false" final="false" visibility="public"
  23616. deprecated="not deprecated">
  23617. <param name="count" type="int"/>
  23618. <doc>
  23619. <![CDATA[Increment received bytes by count
  23620. @param count to increment]]>
  23621. </doc>
  23622. </method>
  23623. <method name="addRpcQueueTime"
  23624. abstract="false" native="false" synchronized="false"
  23625. static="false" final="false" visibility="public"
  23626. deprecated="not deprecated">
  23627. <param name="qTime" type="int"/>
  23628. <doc>
  23629. <![CDATA[Add an RPC queue time sample
  23630. @param qTime]]>
  23631. </doc>
  23632. </method>
  23633. <method name="addRpcProcessingTime"
  23634. abstract="false" native="false" synchronized="false"
  23635. static="false" final="false" visibility="public"
  23636. deprecated="not deprecated">
  23637. <param name="processingTime" type="int"/>
  23638. <doc>
  23639. <![CDATA[Add an RPC processing time sample
  23640. @param processingTime]]>
  23641. </doc>
  23642. </method>
  23643. <method name="addRpcProcessingTime"
  23644. abstract="false" native="false" synchronized="false"
  23645. static="false" final="false" visibility="public"
  23646. deprecated="not deprecated">
  23647. <param name="methodName" type="java.lang.String"/>
  23648. <param name="processingTime" type="int"/>
  23649. <doc>
  23650. <![CDATA[Add an RPC processing time sample for a particular RPC method
  23651. @param methodName method name of the RPC
  23652. @param processingTime elapsed processing time of the RPC]]>
  23653. </doc>
  23654. </method>
  23655. <doc>
  23656. <![CDATA[The RPC metrics instrumentation]]>
  23657. </doc>
  23658. </class>
  23659. <!-- end class org.apache.hadoop.ipc.metrics.RpcInstrumentation -->
  23660. <!-- start class org.apache.hadoop.ipc.metrics.RpcInstrumentation.Detailed -->
  23661. <class name="RpcInstrumentation.Detailed" extends="org.apache.hadoop.metrics2.lib.AbstractMetricsSource"
  23662. abstract="false"
  23663. static="true" final="false" visibility="public"
  23664. deprecated="not deprecated">
  23665. <method name="addRpcProcessingTime"
  23666. abstract="false" native="false" synchronized="true"
  23667. static="false" final="false" visibility="public"
  23668. deprecated="not deprecated">
  23669. <param name="methodName" type="java.lang.String"/>
  23670. <param name="processingTime" type="int"/>
  23671. </method>
  23672. <doc>
  23673. <![CDATA[Use a separate source for detailed (per call) RPC metrics for
  23674. easy and efficient filtering]]>
  23675. </doc>
  23676. </class>
  23677. <!-- end class org.apache.hadoop.ipc.metrics.RpcInstrumentation.Detailed -->
  23678. </package>
  23679. <package name="org.apache.hadoop.jmx">
  23680. <!-- start class org.apache.hadoop.jmx.JMXJsonServlet -->
  23681. <class name="JMXJsonServlet" extends="javax.servlet.http.HttpServlet"
  23682. abstract="false"
  23683. static="false" final="false" visibility="public"
  23684. deprecated="not deprecated">
  23685. <constructor name="JMXJsonServlet"
  23686. static="false" final="false" visibility="public"
  23687. deprecated="not deprecated">
  23688. </constructor>
  23689. <method name="init"
  23690. abstract="false" native="false" synchronized="false"
  23691. static="false" final="false" visibility="public"
  23692. deprecated="not deprecated">
  23693. <exception name="ServletException" type="javax.servlet.ServletException"/>
  23694. <doc>
  23695. <![CDATA[Initialize this servlet.]]>
  23696. </doc>
  23697. </method>
  23698. <method name="doGet"
  23699. abstract="false" native="false" synchronized="false"
  23700. static="false" final="false" visibility="public"
  23701. deprecated="not deprecated">
  23702. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  23703. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  23704. <doc>
  23705. <![CDATA[Process a GET request for the specified resource.
  23706. @param request
  23707. The servlet request we are processing
  23708. @param response
  23709. The servlet response we are creating]]>
  23710. </doc>
  23711. </method>
  23712. <field name="mBeanServer" type="javax.management.MBeanServer"
  23713. transient="true" volatile="false"
  23714. static="false" final="false" visibility="protected"
  23715. deprecated="not deprecated">
  23716. <doc>
  23717. <![CDATA[MBean server.]]>
  23718. </doc>
  23719. </field>
  23720. <doc>
  23721. <![CDATA[Provides Read only web access to JMX.
  23722. <p>
  23723. This servlet generally will be placed under the /jmx URL for each
  23724. HttpServer. It provides read only
  23725. access to JMX metrics. The optional <code>qry</code> parameter
  23726. may be used to query only a subset of the JMX Beans. This query
  23727. functionality is provided through the
  23728. {@link MBeanServer#queryNames(ObjectName, javax.management.QueryExp)}
  23729. method.
  23730. <p>
  23731. For example <code>http://.../jmx?qry=Hadoop:*</code> will return
  23732. all hadoop metrics exposed through JMX.
  23733. <p>
  23734. If the <code>qry</code> parameter is not formatted correctly then a
  23735. 400 BAD REQUEST http response code will be returned.
  23736. <p>
  23737. The return format is JSON and in the form
  23738. <p>
  23739. <code><pre>
  23740. {
  23741. "beans" : [
  23742. {
  23743. "name":"bean-name"
  23744. ...
  23745. }
  23746. ]
  23747. }
  23748. </pre></code>
  23749. <p>
  23750. The servlet attempts to convert the the JMXBeans into JSON. Each
  23751. bean's attributes will be converted to a JSON object member.
  23752. If the attribute is a boolean, a number, a string, or an array
  23753. it will be converted to the JSON equivalent.
  23754. If the value is a {@link CompositeData} then it will be converted
  23755. to a JSON object with the keys as the name of the JSON member and
  23756. the value is converted following these same rules.
  23757. If the value is a {@link TabularData} then it will be converted
  23758. to an array of the {@link CompositeData} elements that it contains.
  23759. All other objects will be converted to a string and output as such.
  23760. The bean's name and modelerType will be returned for all beans.]]>
  23761. </doc>
  23762. </class>
  23763. <!-- end class org.apache.hadoop.jmx.JMXJsonServlet -->
  23764. </package>
  23765. <package name="org.apache.hadoop.log">
  23766. <!-- start class org.apache.hadoop.log.EventCounter -->
  23767. <class name="EventCounter" extends="org.apache.hadoop.log.metrics.EventCounter"
  23768. abstract="false"
  23769. static="false" final="false" visibility="public"
  23770. deprecated="use {@link org.apache.hadoop.log.metrics.EventCounter} instead">
  23771. <constructor name="EventCounter"
  23772. static="false" final="false" visibility="public"
  23773. deprecated="not deprecated">
  23774. </constructor>
  23775. <doc>
  23776. <![CDATA[A log4J Appender that simply counts logging events in three levels:
  23777. fatal, error and warn. The class name is used in log4j.properties
  23778. @deprecated use {@link org.apache.hadoop.log.metrics.EventCounter} instead]]>
  23779. </doc>
  23780. </class>
  23781. <!-- end class org.apache.hadoop.log.EventCounter -->
  23782. <!-- start class org.apache.hadoop.log.LogLevel -->
  23783. <class name="LogLevel" extends="java.lang.Object"
  23784. abstract="false"
  23785. static="false" final="false" visibility="public"
  23786. deprecated="not deprecated">
  23787. <constructor name="LogLevel"
  23788. static="false" final="false" visibility="public"
  23789. deprecated="not deprecated">
  23790. </constructor>
  23791. <method name="main"
  23792. abstract="false" native="false" synchronized="false"
  23793. static="true" final="false" visibility="public"
  23794. deprecated="not deprecated">
  23795. <param name="args" type="java.lang.String[]"/>
  23796. <doc>
  23797. <![CDATA[A command line implementation]]>
  23798. </doc>
  23799. </method>
  23800. <field name="USAGES" type="java.lang.String"
  23801. transient="false" volatile="false"
  23802. static="true" final="true" visibility="public"
  23803. deprecated="not deprecated">
  23804. </field>
  23805. <doc>
  23806. <![CDATA[Change log level in runtime.]]>
  23807. </doc>
  23808. </class>
  23809. <!-- end class org.apache.hadoop.log.LogLevel -->
  23810. <!-- start class org.apache.hadoop.log.LogLevel.Servlet -->
  23811. <class name="LogLevel.Servlet" extends="javax.servlet.http.HttpServlet"
  23812. abstract="false"
  23813. static="true" final="false" visibility="public"
  23814. deprecated="not deprecated">
  23815. <constructor name="LogLevel.Servlet"
  23816. static="false" final="false" visibility="public"
  23817. deprecated="not deprecated">
  23818. </constructor>
  23819. <method name="doGet"
  23820. abstract="false" native="false" synchronized="false"
  23821. static="false" final="false" visibility="public"
  23822. deprecated="not deprecated">
  23823. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  23824. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  23825. <exception name="ServletException" type="javax.servlet.ServletException"/>
  23826. <exception name="IOException" type="java.io.IOException"/>
  23827. </method>
  23828. <doc>
  23829. <![CDATA[A servlet implementation]]>
  23830. </doc>
  23831. </class>
  23832. <!-- end class org.apache.hadoop.log.LogLevel.Servlet -->
  23833. </package>
  23834. <package name="org.apache.hadoop.log.metrics">
  23835. <!-- start class org.apache.hadoop.log.metrics.EventCounter -->
  23836. <class name="EventCounter" extends="org.apache.log4j.AppenderSkeleton"
  23837. abstract="false"
  23838. static="false" final="false" visibility="public"
  23839. deprecated="not deprecated">
  23840. <constructor name="EventCounter"
  23841. static="false" final="false" visibility="public"
  23842. deprecated="not deprecated">
  23843. </constructor>
  23844. <method name="getFatal" return="long"
  23845. abstract="false" native="false" synchronized="false"
  23846. static="true" final="false" visibility="public"
  23847. deprecated="not deprecated">
  23848. </method>
  23849. <method name="getError" return="long"
  23850. abstract="false" native="false" synchronized="false"
  23851. static="true" final="false" visibility="public"
  23852. deprecated="not deprecated">
  23853. </method>
  23854. <method name="getWarn" return="long"
  23855. abstract="false" native="false" synchronized="false"
  23856. static="true" final="false" visibility="public"
  23857. deprecated="not deprecated">
  23858. </method>
  23859. <method name="getInfo" return="long"
  23860. abstract="false" native="false" synchronized="false"
  23861. static="true" final="false" visibility="public"
  23862. deprecated="not deprecated">
  23863. </method>
  23864. <method name="append"
  23865. abstract="false" native="false" synchronized="false"
  23866. static="false" final="false" visibility="public"
  23867. deprecated="not deprecated">
  23868. <param name="event" type="org.apache.log4j.spi.LoggingEvent"/>
  23869. </method>
  23870. <method name="close"
  23871. abstract="false" native="false" synchronized="false"
  23872. static="false" final="false" visibility="public"
  23873. deprecated="not deprecated">
  23874. </method>
  23875. <method name="requiresLayout" return="boolean"
  23876. abstract="false" native="false" synchronized="false"
  23877. static="false" final="false" visibility="public"
  23878. deprecated="not deprecated">
  23879. </method>
  23880. <doc>
  23881. <![CDATA[A log4J Appender that simply counts logging events in three levels:
  23882. fatal, error and warn. The class name is used in log4j.properties]]>
  23883. </doc>
  23884. </class>
  23885. <!-- end class org.apache.hadoop.log.metrics.EventCounter -->
  23886. </package>
  23887. <package name="org.apache.hadoop.metrics">
  23888. <!-- start class org.apache.hadoop.metrics.ContextFactory -->
  23889. <class name="ContextFactory" extends="java.lang.Object"
  23890. abstract="false"
  23891. static="false" final="false" visibility="public"
  23892. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  23893. <constructor name="ContextFactory"
  23894. static="false" final="false" visibility="protected"
  23895. deprecated="not deprecated">
  23896. <doc>
  23897. <![CDATA[Creates a new instance of ContextFactory]]>
  23898. </doc>
  23899. </constructor>
  23900. <method name="getAttribute" return="java.lang.Object"
  23901. abstract="false" native="false" synchronized="false"
  23902. static="false" final="false" visibility="public"
  23903. deprecated="not deprecated">
  23904. <param name="attributeName" type="java.lang.String"/>
  23905. <doc>
  23906. <![CDATA[Returns the value of the named attribute, or null if there is no
  23907. attribute of that name.
  23908. @param attributeName the attribute name
  23909. @return the attribute value]]>
  23910. </doc>
  23911. </method>
  23912. <method name="getAttributeNames" return="java.lang.String[]"
  23913. abstract="false" native="false" synchronized="false"
  23914. static="false" final="false" visibility="public"
  23915. deprecated="not deprecated">
  23916. <doc>
  23917. <![CDATA[Returns the names of all the factory's attributes.
  23918. @return the attribute names]]>
  23919. </doc>
  23920. </method>
  23921. <method name="setAttribute"
  23922. abstract="false" native="false" synchronized="false"
  23923. static="false" final="false" visibility="public"
  23924. deprecated="not deprecated">
  23925. <param name="attributeName" type="java.lang.String"/>
  23926. <param name="value" type="java.lang.Object"/>
  23927. <doc>
  23928. <![CDATA[Sets the named factory attribute to the specified value, creating it
  23929. if it did not already exist. If the value is null, this is the same as
  23930. calling removeAttribute.
  23931. @param attributeName the attribute name
  23932. @param value the new attribute value]]>
  23933. </doc>
  23934. </method>
  23935. <method name="removeAttribute"
  23936. abstract="false" native="false" synchronized="false"
  23937. static="false" final="false" visibility="public"
  23938. deprecated="not deprecated">
  23939. <param name="attributeName" type="java.lang.String"/>
  23940. <doc>
  23941. <![CDATA[Removes the named attribute if it exists.
  23942. @param attributeName the attribute name]]>
  23943. </doc>
  23944. </method>
  23945. <method name="getContext" return="org.apache.hadoop.metrics.MetricsContext"
  23946. abstract="false" native="false" synchronized="true"
  23947. static="false" final="false" visibility="public"
  23948. deprecated="not deprecated">
  23949. <param name="refName" type="java.lang.String"/>
  23950. <param name="contextName" type="java.lang.String"/>
  23951. <exception name="IOException" type="java.io.IOException"/>
  23952. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  23953. <exception name="InstantiationException" type="java.lang.InstantiationException"/>
  23954. <exception name="IllegalAccessException" type="java.lang.IllegalAccessException"/>
  23955. <doc>
  23956. <![CDATA[Returns the named MetricsContext instance, constructing it if necessary
  23957. using the factory's current configuration attributes. <p/>
  23958. When constructing the instance, if the factory property
  23959. <i>contextName</i>.class</code> exists,
  23960. its value is taken to be the name of the class to instantiate. Otherwise,
  23961. the default is to create an instance of
  23962. <code>org.apache.hadoop.metrics.spi.NullContext</code>, which is a
  23963. dummy "no-op" context which will cause all metric data to be discarded.
  23964. @param contextName the name of the context
  23965. @return the named MetricsContext]]>
  23966. </doc>
  23967. </method>
  23968. <method name="getContext" return="org.apache.hadoop.metrics.MetricsContext"
  23969. abstract="false" native="false" synchronized="true"
  23970. static="false" final="false" visibility="public"
  23971. deprecated="not deprecated">
  23972. <param name="contextName" type="java.lang.String"/>
  23973. <exception name="IOException" type="java.io.IOException"/>
  23974. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  23975. <exception name="InstantiationException" type="java.lang.InstantiationException"/>
  23976. <exception name="IllegalAccessException" type="java.lang.IllegalAccessException"/>
  23977. </method>
  23978. <method name="getAllContexts" return="java.util.Collection"
  23979. abstract="false" native="false" synchronized="true"
  23980. static="false" final="false" visibility="public"
  23981. deprecated="not deprecated">
  23982. <doc>
  23983. <![CDATA[Returns all MetricsContexts built by this factory.]]>
  23984. </doc>
  23985. </method>
  23986. <method name="getNullContext" return="org.apache.hadoop.metrics.MetricsContext"
  23987. abstract="false" native="false" synchronized="true"
  23988. static="true" final="false" visibility="public"
  23989. deprecated="not deprecated">
  23990. <param name="contextName" type="java.lang.String"/>
  23991. <doc>
  23992. <![CDATA[Returns a "null" context - one which does nothing.]]>
  23993. </doc>
  23994. </method>
  23995. <method name="getFactory" return="org.apache.hadoop.metrics.ContextFactory"
  23996. abstract="false" native="false" synchronized="true"
  23997. static="true" final="false" visibility="public"
  23998. deprecated="not deprecated">
  23999. <exception name="IOException" type="java.io.IOException"/>
  24000. <doc>
  24001. <![CDATA[Returns the singleton ContextFactory instance, constructing it if
  24002. necessary. <p/>
  24003. When the instance is constructed, this method checks if the file
  24004. <code>hadoop-metrics.properties</code> exists on the class path. If it
  24005. exists, it must be in the format defined by java.util.Properties, and all
  24006. the properties in the file are set as attributes on the newly created
  24007. ContextFactory instance.
  24008. @return the singleton ContextFactory instance]]>
  24009. </doc>
  24010. </method>
  24011. <doc>
  24012. <![CDATA[Factory class for creating MetricsContext objects. To obtain an instance
  24013. of this class, use the static <code>getFactory()</code> method.
  24014. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24015. </doc>
  24016. </class>
  24017. <!-- end class org.apache.hadoop.metrics.ContextFactory -->
  24018. <!-- start interface org.apache.hadoop.metrics.MetricsContext -->
  24019. <interface name="MetricsContext" abstract="true"
  24020. static="false" final="false" visibility="public"
  24021. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24022. <method name="init"
  24023. abstract="false" native="false" synchronized="false"
  24024. static="false" final="false" visibility="public"
  24025. deprecated="not deprecated">
  24026. <param name="contextName" type="java.lang.String"/>
  24027. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  24028. <doc>
  24029. <![CDATA[Initialize this context.
  24030. @param contextName The given name for this context
  24031. @param factory The creator of this context]]>
  24032. </doc>
  24033. </method>
  24034. <method name="getContextName" return="java.lang.String"
  24035. abstract="false" native="false" synchronized="false"
  24036. static="false" final="false" visibility="public"
  24037. deprecated="not deprecated">
  24038. <doc>
  24039. <![CDATA[Returns the context name.
  24040. @return the context name]]>
  24041. </doc>
  24042. </method>
  24043. <method name="startMonitoring"
  24044. abstract="false" native="false" synchronized="false"
  24045. static="false" final="false" visibility="public"
  24046. deprecated="not deprecated">
  24047. <exception name="IOException" type="java.io.IOException"/>
  24048. <doc>
  24049. <![CDATA[Starts or restarts monitoring, the emitting of metrics records as they are
  24050. updated.]]>
  24051. </doc>
  24052. </method>
  24053. <method name="stopMonitoring"
  24054. abstract="false" native="false" synchronized="false"
  24055. static="false" final="false" visibility="public"
  24056. deprecated="not deprecated">
  24057. <doc>
  24058. <![CDATA[Stops monitoring. This does not free any data that the implementation
  24059. may have buffered for sending at the next timer event. It
  24060. is OK to call <code>startMonitoring()</code> again after calling
  24061. this.
  24062. @see #close()]]>
  24063. </doc>
  24064. </method>
  24065. <method name="isMonitoring" return="boolean"
  24066. abstract="false" native="false" synchronized="false"
  24067. static="false" final="false" visibility="public"
  24068. deprecated="not deprecated">
  24069. <doc>
  24070. <![CDATA[Returns true if monitoring is currently in progress.]]>
  24071. </doc>
  24072. </method>
  24073. <method name="close"
  24074. abstract="false" native="false" synchronized="false"
  24075. static="false" final="false" visibility="public"
  24076. deprecated="not deprecated">
  24077. <doc>
  24078. <![CDATA[Stops monitoring and also frees any buffered data, returning this
  24079. object to its initial state.]]>
  24080. </doc>
  24081. </method>
  24082. <method name="createRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  24083. abstract="false" native="false" synchronized="false"
  24084. static="false" final="false" visibility="public"
  24085. deprecated="not deprecated">
  24086. <param name="recordName" type="java.lang.String"/>
  24087. <doc>
  24088. <![CDATA[Creates a new MetricsRecord instance with the given <code>recordName</code>.
  24089. Throws an exception if the metrics implementation is configured with a fixed
  24090. set of record names and <code>recordName</code> is not in that set.
  24091. @param recordName the name of the record
  24092. @throws MetricsException if recordName conflicts with configuration data]]>
  24093. </doc>
  24094. </method>
  24095. <method name="registerUpdater"
  24096. abstract="false" native="false" synchronized="false"
  24097. static="false" final="false" visibility="public"
  24098. deprecated="not deprecated">
  24099. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  24100. <doc>
  24101. <![CDATA[Registers a callback to be called at regular time intervals, as
  24102. determined by the implementation-class specific configuration.
  24103. @param updater object to be run periodically; it should updated
  24104. some metrics records and then return]]>
  24105. </doc>
  24106. </method>
  24107. <method name="unregisterUpdater"
  24108. abstract="false" native="false" synchronized="false"
  24109. static="false" final="false" visibility="public"
  24110. deprecated="not deprecated">
  24111. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  24112. <doc>
  24113. <![CDATA[Removes a callback, if it exists.
  24114. @param updater object to be removed from the callback list]]>
  24115. </doc>
  24116. </method>
  24117. <method name="getPeriod" return="int"
  24118. abstract="false" native="false" synchronized="false"
  24119. static="false" final="false" visibility="public"
  24120. deprecated="not deprecated">
  24121. <doc>
  24122. <![CDATA[Returns the timer period.]]>
  24123. </doc>
  24124. </method>
  24125. <method name="getAllRecords" return="java.util.Map"
  24126. abstract="false" native="false" synchronized="false"
  24127. static="false" final="false" visibility="public"
  24128. deprecated="not deprecated">
  24129. <doc>
  24130. <![CDATA[Retrieves all the records managed by this MetricsContext.
  24131. Useful for monitoring systems that are polling-based.
  24132. @return A non-null map from all record names to the records managed.]]>
  24133. </doc>
  24134. </method>
  24135. <field name="DEFAULT_PERIOD" type="int"
  24136. transient="false" volatile="false"
  24137. static="true" final="true" visibility="public"
  24138. deprecated="not deprecated">
  24139. <doc>
  24140. <![CDATA[Default period in seconds at which data is sent to the metrics system.]]>
  24141. </doc>
  24142. </field>
  24143. <doc>
  24144. <![CDATA[The main interface to the metrics package.
  24145. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24146. </doc>
  24147. </interface>
  24148. <!-- end interface org.apache.hadoop.metrics.MetricsContext -->
  24149. <!-- start class org.apache.hadoop.metrics.MetricsException -->
  24150. <class name="MetricsException" extends="java.lang.RuntimeException"
  24151. abstract="false"
  24152. static="false" final="false" visibility="public"
  24153. deprecated="in favor of {@link org.apache.hadoop.metrics2.MetricsException}.">
  24154. <constructor name="MetricsException"
  24155. static="false" final="false" visibility="public"
  24156. deprecated="not deprecated">
  24157. <doc>
  24158. <![CDATA[Creates a new instance of MetricsException]]>
  24159. </doc>
  24160. </constructor>
  24161. <constructor name="MetricsException" type="java.lang.String"
  24162. static="false" final="false" visibility="public"
  24163. deprecated="not deprecated">
  24164. <doc>
  24165. <![CDATA[Creates a new instance of MetricsException
  24166. @param message an error message]]>
  24167. </doc>
  24168. </constructor>
  24169. <doc>
  24170. <![CDATA[General-purpose, unchecked metrics exception.
  24171. @deprecated in favor of {@link org.apache.hadoop.metrics2.MetricsException}.]]>
  24172. </doc>
  24173. </class>
  24174. <!-- end class org.apache.hadoop.metrics.MetricsException -->
  24175. <!-- start interface org.apache.hadoop.metrics.MetricsRecord -->
  24176. <interface name="MetricsRecord" abstract="true"
  24177. static="false" final="false" visibility="public"
  24178. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24179. <method name="getRecordName" return="java.lang.String"
  24180. abstract="false" native="false" synchronized="false"
  24181. static="false" final="false" visibility="public"
  24182. deprecated="not deprecated">
  24183. <doc>
  24184. <![CDATA[Returns the record name.
  24185. @return the record name]]>
  24186. </doc>
  24187. </method>
  24188. <method name="setTag"
  24189. abstract="false" native="false" synchronized="false"
  24190. static="false" final="false" visibility="public"
  24191. deprecated="not deprecated">
  24192. <param name="tagName" type="java.lang.String"/>
  24193. <param name="tagValue" type="java.lang.String"/>
  24194. <doc>
  24195. <![CDATA[Sets the named tag to the specified value. The tagValue may be null,
  24196. which is treated the same as an empty String.
  24197. @param tagName name of the tag
  24198. @param tagValue new value of the tag
  24199. @throws MetricsException if the tagName conflicts with the configuration]]>
  24200. </doc>
  24201. </method>
  24202. <method name="setTag"
  24203. abstract="false" native="false" synchronized="false"
  24204. static="false" final="false" visibility="public"
  24205. deprecated="not deprecated">
  24206. <param name="tagName" type="java.lang.String"/>
  24207. <param name="tagValue" type="int"/>
  24208. <doc>
  24209. <![CDATA[Sets the named tag to the specified value.
  24210. @param tagName name of the tag
  24211. @param tagValue new value of the tag
  24212. @throws MetricsException if the tagName conflicts with the configuration]]>
  24213. </doc>
  24214. </method>
  24215. <method name="setTag"
  24216. abstract="false" native="false" synchronized="false"
  24217. static="false" final="false" visibility="public"
  24218. deprecated="not deprecated">
  24219. <param name="tagName" type="java.lang.String"/>
  24220. <param name="tagValue" type="long"/>
  24221. <doc>
  24222. <![CDATA[Sets the named tag to the specified value.
  24223. @param tagName name of the tag
  24224. @param tagValue new value of the tag
  24225. @throws MetricsException if the tagName conflicts with the configuration]]>
  24226. </doc>
  24227. </method>
  24228. <method name="setTag"
  24229. abstract="false" native="false" synchronized="false"
  24230. static="false" final="false" visibility="public"
  24231. deprecated="not deprecated">
  24232. <param name="tagName" type="java.lang.String"/>
  24233. <param name="tagValue" type="short"/>
  24234. <doc>
  24235. <![CDATA[Sets the named tag to the specified value.
  24236. @param tagName name of the tag
  24237. @param tagValue new value of the tag
  24238. @throws MetricsException if the tagName conflicts with the configuration]]>
  24239. </doc>
  24240. </method>
  24241. <method name="setTag"
  24242. abstract="false" native="false" synchronized="false"
  24243. static="false" final="false" visibility="public"
  24244. deprecated="not deprecated">
  24245. <param name="tagName" type="java.lang.String"/>
  24246. <param name="tagValue" type="byte"/>
  24247. <doc>
  24248. <![CDATA[Sets the named tag to the specified value.
  24249. @param tagName name of the tag
  24250. @param tagValue new value of the tag
  24251. @throws MetricsException if the tagName conflicts with the configuration]]>
  24252. </doc>
  24253. </method>
  24254. <method name="removeTag"
  24255. abstract="false" native="false" synchronized="false"
  24256. static="false" final="false" visibility="public"
  24257. deprecated="not deprecated">
  24258. <param name="tagName" type="java.lang.String"/>
  24259. <doc>
  24260. <![CDATA[Removes any tag of the specified name.
  24261. @param tagName name of a tag]]>
  24262. </doc>
  24263. </method>
  24264. <method name="setMetric"
  24265. abstract="false" native="false" synchronized="false"
  24266. static="false" final="false" visibility="public"
  24267. deprecated="not deprecated">
  24268. <param name="metricName" type="java.lang.String"/>
  24269. <param name="metricValue" type="int"/>
  24270. <doc>
  24271. <![CDATA[Sets the named metric to the specified value.
  24272. @param metricName name of the metric
  24273. @param metricValue new value of the metric
  24274. @throws MetricsException if the metricName or the type of the metricValue
  24275. conflicts with the configuration]]>
  24276. </doc>
  24277. </method>
  24278. <method name="setMetric"
  24279. abstract="false" native="false" synchronized="false"
  24280. static="false" final="false" visibility="public"
  24281. deprecated="not deprecated">
  24282. <param name="metricName" type="java.lang.String"/>
  24283. <param name="metricValue" type="long"/>
  24284. <doc>
  24285. <![CDATA[Sets the named metric to the specified value.
  24286. @param metricName name of the metric
  24287. @param metricValue new value of the metric
  24288. @throws MetricsException if the metricName or the type of the metricValue
  24289. conflicts with the configuration]]>
  24290. </doc>
  24291. </method>
  24292. <method name="setMetric"
  24293. abstract="false" native="false" synchronized="false"
  24294. static="false" final="false" visibility="public"
  24295. deprecated="not deprecated">
  24296. <param name="metricName" type="java.lang.String"/>
  24297. <param name="metricValue" type="short"/>
  24298. <doc>
  24299. <![CDATA[Sets the named metric to the specified value.
  24300. @param metricName name of the metric
  24301. @param metricValue new value of the metric
  24302. @throws MetricsException if the metricName or the type of the metricValue
  24303. conflicts with the configuration]]>
  24304. </doc>
  24305. </method>
  24306. <method name="setMetric"
  24307. abstract="false" native="false" synchronized="false"
  24308. static="false" final="false" visibility="public"
  24309. deprecated="not deprecated">
  24310. <param name="metricName" type="java.lang.String"/>
  24311. <param name="metricValue" type="byte"/>
  24312. <doc>
  24313. <![CDATA[Sets the named metric to the specified value.
  24314. @param metricName name of the metric
  24315. @param metricValue new value of the metric
  24316. @throws MetricsException if the metricName or the type of the metricValue
  24317. conflicts with the configuration]]>
  24318. </doc>
  24319. </method>
  24320. <method name="setMetric"
  24321. abstract="false" native="false" synchronized="false"
  24322. static="false" final="false" visibility="public"
  24323. deprecated="not deprecated">
  24324. <param name="metricName" type="java.lang.String"/>
  24325. <param name="metricValue" type="float"/>
  24326. <doc>
  24327. <![CDATA[Sets the named metric to the specified value.
  24328. @param metricName name of the metric
  24329. @param metricValue new value of the metric
  24330. @throws MetricsException if the metricName or the type of the metricValue
  24331. conflicts with the configuration]]>
  24332. </doc>
  24333. </method>
  24334. <method name="incrMetric"
  24335. abstract="false" native="false" synchronized="false"
  24336. static="false" final="false" visibility="public"
  24337. deprecated="not deprecated">
  24338. <param name="metricName" type="java.lang.String"/>
  24339. <param name="metricValue" type="int"/>
  24340. <doc>
  24341. <![CDATA[Increments the named metric by the specified value.
  24342. @param metricName name of the metric
  24343. @param metricValue incremental value
  24344. @throws MetricsException if the metricName or the type of the metricValue
  24345. conflicts with the configuration]]>
  24346. </doc>
  24347. </method>
  24348. <method name="incrMetric"
  24349. abstract="false" native="false" synchronized="false"
  24350. static="false" final="false" visibility="public"
  24351. deprecated="not deprecated">
  24352. <param name="metricName" type="java.lang.String"/>
  24353. <param name="metricValue" type="long"/>
  24354. <doc>
  24355. <![CDATA[Increments the named metric by the specified value.
  24356. @param metricName name of the metric
  24357. @param metricValue incremental value
  24358. @throws MetricsException if the metricName or the type of the metricValue
  24359. conflicts with the configuration]]>
  24360. </doc>
  24361. </method>
  24362. <method name="incrMetric"
  24363. abstract="false" native="false" synchronized="false"
  24364. static="false" final="false" visibility="public"
  24365. deprecated="not deprecated">
  24366. <param name="metricName" type="java.lang.String"/>
  24367. <param name="metricValue" type="short"/>
  24368. <doc>
  24369. <![CDATA[Increments the named metric by the specified value.
  24370. @param metricName name of the metric
  24371. @param metricValue incremental value
  24372. @throws MetricsException if the metricName or the type of the metricValue
  24373. conflicts with the configuration]]>
  24374. </doc>
  24375. </method>
  24376. <method name="incrMetric"
  24377. abstract="false" native="false" synchronized="false"
  24378. static="false" final="false" visibility="public"
  24379. deprecated="not deprecated">
  24380. <param name="metricName" type="java.lang.String"/>
  24381. <param name="metricValue" type="byte"/>
  24382. <doc>
  24383. <![CDATA[Increments the named metric by the specified value.
  24384. @param metricName name of the metric
  24385. @param metricValue incremental value
  24386. @throws MetricsException if the metricName or the type of the metricValue
  24387. conflicts with the configuration]]>
  24388. </doc>
  24389. </method>
  24390. <method name="incrMetric"
  24391. abstract="false" native="false" synchronized="false"
  24392. static="false" final="false" visibility="public"
  24393. deprecated="not deprecated">
  24394. <param name="metricName" type="java.lang.String"/>
  24395. <param name="metricValue" type="float"/>
  24396. <doc>
  24397. <![CDATA[Increments the named metric by the specified value.
  24398. @param metricName name of the metric
  24399. @param metricValue incremental value
  24400. @throws MetricsException if the metricName or the type of the metricValue
  24401. conflicts with the configuration]]>
  24402. </doc>
  24403. </method>
  24404. <method name="update"
  24405. abstract="false" native="false" synchronized="false"
  24406. static="false" final="false" visibility="public"
  24407. deprecated="not deprecated">
  24408. <doc>
  24409. <![CDATA[Updates the table of buffered data which is to be sent periodically.
  24410. If the tag values match an existing row, that row is updated;
  24411. otherwise, a new row is added.]]>
  24412. </doc>
  24413. </method>
  24414. <method name="remove"
  24415. abstract="false" native="false" synchronized="false"
  24416. static="false" final="false" visibility="public"
  24417. deprecated="not deprecated">
  24418. <doc>
  24419. <![CDATA[Removes, from the buffered data table, all rows having tags
  24420. that equal the tags that have been set on this record. For example,
  24421. if there are no tags on this record, all rows for this record name
  24422. would be removed. Or, if there is a single tag on this record, then
  24423. just rows containing a tag with the same name and value would be removed.]]>
  24424. </doc>
  24425. </method>
  24426. <doc>
  24427. <![CDATA[A named and optionally tagged set of records to be sent to the metrics
  24428. system. <p/>
  24429. A record name identifies the kind of data to be reported. For example, a
  24430. program reporting statistics relating to the disks on a computer might use
  24431. a record name "diskStats".<p/>
  24432. A record has zero or more <i>tags</i>. A tag has a name and a value. To
  24433. continue the example, the "diskStats" record might use a tag named
  24434. "diskName" to identify a particular disk. Sometimes it is useful to have
  24435. more than one tag, so there might also be a "diskType" with value "ide" or
  24436. "scsi" or whatever.<p/>
  24437. A record also has zero or more <i>metrics</i>. These are the named
  24438. values that are to be reported to the metrics system. In the "diskStats"
  24439. example, possible metric names would be "diskPercentFull", "diskPercentBusy",
  24440. "kbReadPerSecond", etc.<p/>
  24441. The general procedure for using a MetricsRecord is to fill in its tag and
  24442. metric values, and then call <code>update()</code> to pass the record to the
  24443. client library.
  24444. Metric data is not immediately sent to the metrics system
  24445. each time that <code>update()</code> is called.
  24446. An internal table is maintained, identified by the record name. This
  24447. table has columns
  24448. corresponding to the tag and the metric names, and rows
  24449. corresponding to each unique set of tag values. An update
  24450. either modifies an existing row in the table, or adds a new row with a set of
  24451. tag values that are different from all the other rows. Note that if there
  24452. are no tags, then there can be at most one row in the table. <p/>
  24453. Once a row is added to the table, its data will be sent to the metrics system
  24454. on every timer period, whether or not it has been updated since the previous
  24455. timer period. If this is inappropriate, for example if metrics were being
  24456. reported by some transient object in an application, the <code>remove()</code>
  24457. method can be used to remove the row and thus stop the data from being
  24458. sent.<p/>
  24459. Note that the <code>update()</code> method is atomic. This means that it is
  24460. safe for different threads to be updating the same metric. More precisely,
  24461. it is OK for different threads to call <code>update()</code> on MetricsRecord instances
  24462. with the same set of tag names and tag values. Different threads should
  24463. <b>not</b> use the same MetricsRecord instance at the same time.
  24464. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24465. </doc>
  24466. </interface>
  24467. <!-- end interface org.apache.hadoop.metrics.MetricsRecord -->
  24468. <!-- start class org.apache.hadoop.metrics.MetricsServlet -->
  24469. <class name="MetricsServlet" extends="javax.servlet.http.HttpServlet"
  24470. abstract="false"
  24471. static="false" final="false" visibility="public"
  24472. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24473. <constructor name="MetricsServlet"
  24474. static="false" final="false" visibility="public"
  24475. deprecated="not deprecated">
  24476. </constructor>
  24477. <method name="doGet"
  24478. abstract="false" native="false" synchronized="false"
  24479. static="false" final="false" visibility="public"
  24480. deprecated="not deprecated">
  24481. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  24482. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  24483. <exception name="ServletException" type="javax.servlet.ServletException"/>
  24484. <exception name="IOException" type="java.io.IOException"/>
  24485. </method>
  24486. <doc>
  24487. <![CDATA[A servlet to print out metrics data. By default, the servlet returns a
  24488. textual representation (no promises are made for parseability), and
  24489. users can use "?format=json" for parseable output.
  24490. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24491. </doc>
  24492. </class>
  24493. <!-- end class org.apache.hadoop.metrics.MetricsServlet -->
  24494. <!-- start class org.apache.hadoop.metrics.MetricsUtil -->
  24495. <class name="MetricsUtil" extends="java.lang.Object"
  24496. abstract="false"
  24497. static="false" final="false" visibility="public"
  24498. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24499. <method name="getContext" return="org.apache.hadoop.metrics.MetricsContext"
  24500. abstract="false" native="false" synchronized="false"
  24501. static="true" final="false" visibility="public"
  24502. deprecated="not deprecated">
  24503. <param name="contextName" type="java.lang.String"/>
  24504. </method>
  24505. <method name="getContext" return="org.apache.hadoop.metrics.MetricsContext"
  24506. abstract="false" native="false" synchronized="false"
  24507. static="true" final="false" visibility="public"
  24508. deprecated="not deprecated">
  24509. <param name="refName" type="java.lang.String"/>
  24510. <param name="contextName" type="java.lang.String"/>
  24511. <doc>
  24512. <![CDATA[Utility method to return the named context.
  24513. If the desired context cannot be created for any reason, the exception
  24514. is logged, and a null context is returned.]]>
  24515. </doc>
  24516. </method>
  24517. <method name="createRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  24518. abstract="false" native="false" synchronized="false"
  24519. static="true" final="false" visibility="public"
  24520. deprecated="not deprecated">
  24521. <param name="context" type="org.apache.hadoop.metrics.MetricsContext"/>
  24522. <param name="recordName" type="java.lang.String"/>
  24523. <doc>
  24524. <![CDATA[Utility method to create and return new metrics record instance within the
  24525. given context. This record is tagged with the host name.
  24526. @param context the context
  24527. @param recordName name of the record
  24528. @return newly created metrics record]]>
  24529. </doc>
  24530. </method>
  24531. <field name="LOG" type="org.apache.commons.logging.Log"
  24532. transient="false" volatile="false"
  24533. static="true" final="true" visibility="public"
  24534. deprecated="not deprecated">
  24535. </field>
  24536. <doc>
  24537. <![CDATA[Utility class to simplify creation and reporting of hadoop metrics.
  24538. For examples of usage, see NameNodeMetrics.
  24539. @see org.apache.hadoop.metrics.MetricsRecord
  24540. @see org.apache.hadoop.metrics.MetricsContext
  24541. @see org.apache.hadoop.metrics.ContextFactory
  24542. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24543. </doc>
  24544. </class>
  24545. <!-- end class org.apache.hadoop.metrics.MetricsUtil -->
  24546. <!-- start interface org.apache.hadoop.metrics.Updater -->
  24547. <interface name="Updater" abstract="true"
  24548. static="false" final="false" visibility="public"
  24549. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24550. <method name="doUpdates"
  24551. abstract="false" native="false" synchronized="false"
  24552. static="false" final="false" visibility="public"
  24553. deprecated="not deprecated">
  24554. <param name="context" type="org.apache.hadoop.metrics.MetricsContext"/>
  24555. <doc>
  24556. <![CDATA[Timer-based call-back from the metric library.]]>
  24557. </doc>
  24558. </method>
  24559. <doc>
  24560. <![CDATA[Call-back interface. See <code>MetricsContext.registerUpdater()</code>.
  24561. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24562. </doc>
  24563. </interface>
  24564. <!-- end interface org.apache.hadoop.metrics.Updater -->
  24565. </package>
  24566. <package name="org.apache.hadoop.metrics.file">
  24567. <!-- start class org.apache.hadoop.metrics.file.FileContext -->
  24568. <class name="FileContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  24569. abstract="false"
  24570. static="false" final="false" visibility="public"
  24571. deprecated="use {@link org.apache.hadoop.metrics2.sink.FileSink} instead.">
  24572. <constructor name="FileContext"
  24573. static="false" final="false" visibility="public"
  24574. deprecated="not deprecated">
  24575. <doc>
  24576. <![CDATA[Creates a new instance of FileContext]]>
  24577. </doc>
  24578. </constructor>
  24579. <method name="init"
  24580. abstract="false" native="false" synchronized="false"
  24581. static="false" final="false" visibility="public"
  24582. deprecated="not deprecated">
  24583. <param name="contextName" type="java.lang.String"/>
  24584. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  24585. </method>
  24586. <method name="getFileName" return="java.lang.String"
  24587. abstract="false" native="false" synchronized="false"
  24588. static="false" final="false" visibility="public"
  24589. deprecated="not deprecated">
  24590. <doc>
  24591. <![CDATA[Returns the configured file name, or null.]]>
  24592. </doc>
  24593. </method>
  24594. <method name="startMonitoring"
  24595. abstract="false" native="false" synchronized="false"
  24596. static="false" final="false" visibility="public"
  24597. deprecated="not deprecated">
  24598. <exception name="IOException" type="java.io.IOException"/>
  24599. <doc>
  24600. <![CDATA[Starts or restarts monitoring, by opening in append-mode, the
  24601. file specified by the <code>fileName</code> attribute,
  24602. if specified. Otherwise the data will be written to standard
  24603. output.]]>
  24604. </doc>
  24605. </method>
  24606. <method name="stopMonitoring"
  24607. abstract="false" native="false" synchronized="false"
  24608. static="false" final="false" visibility="public"
  24609. deprecated="not deprecated">
  24610. <doc>
  24611. <![CDATA[Stops monitoring, closing the file.
  24612. @see #close()]]>
  24613. </doc>
  24614. </method>
  24615. <method name="emitRecord"
  24616. abstract="false" native="false" synchronized="false"
  24617. static="false" final="false" visibility="public"
  24618. deprecated="not deprecated">
  24619. <param name="contextName" type="java.lang.String"/>
  24620. <param name="recordName" type="java.lang.String"/>
  24621. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  24622. <doc>
  24623. <![CDATA[Emits a metrics record to a file.]]>
  24624. </doc>
  24625. </method>
  24626. <method name="flush"
  24627. abstract="false" native="false" synchronized="false"
  24628. static="false" final="false" visibility="public"
  24629. deprecated="not deprecated">
  24630. <doc>
  24631. <![CDATA[Flushes the output writer, forcing updates to disk.]]>
  24632. </doc>
  24633. </method>
  24634. <field name="FILE_NAME_PROPERTY" type="java.lang.String"
  24635. transient="false" volatile="false"
  24636. static="true" final="true" visibility="protected"
  24637. deprecated="not deprecated">
  24638. </field>
  24639. <field name="PERIOD_PROPERTY" type="java.lang.String"
  24640. transient="false" volatile="false"
  24641. static="true" final="true" visibility="protected"
  24642. deprecated="not deprecated">
  24643. </field>
  24644. <doc>
  24645. <![CDATA[Metrics context for writing metrics to a file.<p/>
  24646. This class is configured by setting ContextFactory attributes which in turn
  24647. are usually configured through a properties file. All the attributes are
  24648. prefixed by the contextName. For example, the properties file might contain:
  24649. <pre>
  24650. myContextName.fileName=/tmp/metrics.log
  24651. myContextName.period=5
  24652. </pre>
  24653. @deprecated use {@link org.apache.hadoop.metrics2.sink.FileSink} instead.]]>
  24654. </doc>
  24655. </class>
  24656. <!-- end class org.apache.hadoop.metrics.file.FileContext -->
  24657. </package>
  24658. <package name="org.apache.hadoop.metrics.ganglia">
  24659. <!-- start class org.apache.hadoop.metrics.ganglia.GangliaContext -->
  24660. <class name="GangliaContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  24661. abstract="false"
  24662. static="false" final="false" visibility="public"
  24663. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24664. <constructor name="GangliaContext"
  24665. static="false" final="false" visibility="public"
  24666. deprecated="not deprecated">
  24667. <doc>
  24668. <![CDATA[Creates a new instance of GangliaContext]]>
  24669. </doc>
  24670. </constructor>
  24671. <method name="init"
  24672. abstract="false" native="false" synchronized="false"
  24673. static="false" final="false" visibility="public"
  24674. deprecated="not deprecated">
  24675. <param name="contextName" type="java.lang.String"/>
  24676. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  24677. </method>
  24678. <method name="emitRecord"
  24679. abstract="false" native="false" synchronized="false"
  24680. static="false" final="false" visibility="public"
  24681. deprecated="not deprecated">
  24682. <param name="contextName" type="java.lang.String"/>
  24683. <param name="recordName" type="java.lang.String"/>
  24684. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  24685. <exception name="IOException" type="java.io.IOException"/>
  24686. </method>
  24687. <method name="emitMetric"
  24688. abstract="false" native="false" synchronized="false"
  24689. static="false" final="false" visibility="protected"
  24690. deprecated="not deprecated">
  24691. <param name="name" type="java.lang.String"/>
  24692. <param name="type" type="java.lang.String"/>
  24693. <param name="value" type="java.lang.String"/>
  24694. <exception name="IOException" type="java.io.IOException"/>
  24695. </method>
  24696. <method name="getUnits" return="java.lang.String"
  24697. abstract="false" native="false" synchronized="false"
  24698. static="false" final="false" visibility="protected"
  24699. deprecated="not deprecated">
  24700. <param name="metricName" type="java.lang.String"/>
  24701. </method>
  24702. <method name="getSlope" return="int"
  24703. abstract="false" native="false" synchronized="false"
  24704. static="false" final="false" visibility="protected"
  24705. deprecated="not deprecated">
  24706. <param name="metricName" type="java.lang.String"/>
  24707. </method>
  24708. <method name="getTmax" return="int"
  24709. abstract="false" native="false" synchronized="false"
  24710. static="false" final="false" visibility="protected"
  24711. deprecated="not deprecated">
  24712. <param name="metricName" type="java.lang.String"/>
  24713. </method>
  24714. <method name="getDmax" return="int"
  24715. abstract="false" native="false" synchronized="false"
  24716. static="false" final="false" visibility="protected"
  24717. deprecated="not deprecated">
  24718. <param name="metricName" type="java.lang.String"/>
  24719. </method>
  24720. <method name="xdr_string"
  24721. abstract="false" native="false" synchronized="false"
  24722. static="false" final="false" visibility="protected"
  24723. deprecated="not deprecated">
  24724. <param name="s" type="java.lang.String"/>
  24725. <doc>
  24726. <![CDATA[Puts a string into the buffer by first writing the size of the string
  24727. as an int, followed by the bytes of the string, padded if necessary to
  24728. a multiple of 4.]]>
  24729. </doc>
  24730. </method>
  24731. <method name="xdr_int"
  24732. abstract="false" native="false" synchronized="false"
  24733. static="false" final="false" visibility="protected"
  24734. deprecated="not deprecated">
  24735. <param name="i" type="int"/>
  24736. <doc>
  24737. <![CDATA[Puts an integer into the buffer as 4 bytes, big-endian.]]>
  24738. </doc>
  24739. </method>
  24740. <field name="buffer" type="byte[]"
  24741. transient="false" volatile="false"
  24742. static="false" final="false" visibility="protected"
  24743. deprecated="not deprecated">
  24744. </field>
  24745. <field name="offset" type="int"
  24746. transient="false" volatile="false"
  24747. static="false" final="false" visibility="protected"
  24748. deprecated="not deprecated">
  24749. </field>
  24750. <field name="metricsServers" type="java.util.List"
  24751. transient="false" volatile="false"
  24752. static="false" final="false" visibility="protected"
  24753. deprecated="not deprecated">
  24754. </field>
  24755. <field name="datagramSocket" type="java.net.DatagramSocket"
  24756. transient="false" volatile="false"
  24757. static="false" final="false" visibility="protected"
  24758. deprecated="not deprecated">
  24759. </field>
  24760. <doc>
  24761. <![CDATA[Context for sending metrics to Ganglia.
  24762. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24763. </doc>
  24764. </class>
  24765. <!-- end class org.apache.hadoop.metrics.ganglia.GangliaContext -->
  24766. <!-- start class org.apache.hadoop.metrics.ganglia.GangliaContext31 -->
  24767. <class name="GangliaContext31" extends="org.apache.hadoop.metrics.ganglia.GangliaContext"
  24768. abstract="false"
  24769. static="false" final="false" visibility="public"
  24770. deprecated="not deprecated">
  24771. <constructor name="GangliaContext31"
  24772. static="false" final="false" visibility="public"
  24773. deprecated="not deprecated">
  24774. </constructor>
  24775. <method name="init"
  24776. abstract="false" native="false" synchronized="false"
  24777. static="false" final="false" visibility="public"
  24778. deprecated="not deprecated">
  24779. <param name="contextName" type="java.lang.String"/>
  24780. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  24781. </method>
  24782. <method name="emitMetric"
  24783. abstract="false" native="false" synchronized="false"
  24784. static="false" final="false" visibility="protected"
  24785. deprecated="not deprecated">
  24786. <param name="name" type="java.lang.String"/>
  24787. <param name="type" type="java.lang.String"/>
  24788. <param name="value" type="java.lang.String"/>
  24789. <exception name="IOException" type="java.io.IOException"/>
  24790. </method>
  24791. <doc>
  24792. <![CDATA[Context for sending metrics to Ganglia version 3.1.x.
  24793. 3.1.1 has a slightly different wire portal compared to 3.0.x.]]>
  24794. </doc>
  24795. </class>
  24796. <!-- end class org.apache.hadoop.metrics.ganglia.GangliaContext31 -->
  24797. </package>
  24798. <package name="org.apache.hadoop.metrics.jvm">
  24799. <!-- start class org.apache.hadoop.metrics.jvm.EventCounter -->
  24800. <class name="EventCounter" extends="org.apache.hadoop.log.metrics.EventCounter"
  24801. abstract="false"
  24802. static="false" final="false" visibility="public"
  24803. deprecated="use {@link org.apache.hadoop.log.metrics.EventCounter} instead">
  24804. <constructor name="EventCounter"
  24805. static="false" final="false" visibility="public"
  24806. deprecated="not deprecated">
  24807. </constructor>
  24808. <doc>
  24809. <![CDATA[A log4J Appender that simply counts logging events in three levels:
  24810. fatal, error and warn.
  24811. @deprecated use {@link org.apache.hadoop.log.metrics.EventCounter} instead]]>
  24812. </doc>
  24813. </class>
  24814. <!-- end class org.apache.hadoop.metrics.jvm.EventCounter -->
  24815. <!-- start class org.apache.hadoop.metrics.jvm.JvmMetrics -->
  24816. <class name="JvmMetrics" extends="java.lang.Object"
  24817. abstract="false"
  24818. static="false" final="false" visibility="public"
  24819. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24820. <implements name="org.apache.hadoop.metrics.Updater"/>
  24821. <method name="init" return="org.apache.hadoop.metrics.jvm.JvmMetrics"
  24822. abstract="false" native="false" synchronized="true"
  24823. static="true" final="false" visibility="public"
  24824. deprecated="not deprecated">
  24825. <param name="processName" type="java.lang.String"/>
  24826. <param name="sessionId" type="java.lang.String"/>
  24827. </method>
  24828. <method name="init" return="org.apache.hadoop.metrics.jvm.JvmMetrics"
  24829. abstract="false" native="false" synchronized="true"
  24830. static="true" final="false" visibility="public"
  24831. deprecated="not deprecated">
  24832. <param name="processName" type="java.lang.String"/>
  24833. <param name="sessionId" type="java.lang.String"/>
  24834. <param name="recordName" type="java.lang.String"/>
  24835. </method>
  24836. <method name="doUpdates"
  24837. abstract="false" native="false" synchronized="false"
  24838. static="false" final="false" visibility="public"
  24839. deprecated="not deprecated">
  24840. <param name="context" type="org.apache.hadoop.metrics.MetricsContext"/>
  24841. <doc>
  24842. <![CDATA[This will be called periodically (with the period being configuration
  24843. dependent).]]>
  24844. </doc>
  24845. </method>
  24846. <doc>
  24847. <![CDATA[Singleton class which reports Java Virtual Machine metrics to the metrics API.
  24848. Any application can create an instance of this class in order to emit
  24849. Java VM metrics.
  24850. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24851. </doc>
  24852. </class>
  24853. <!-- end class org.apache.hadoop.metrics.jvm.JvmMetrics -->
  24854. </package>
  24855. <package name="org.apache.hadoop.metrics.spi">
  24856. <!-- start class org.apache.hadoop.metrics.spi.AbstractMetricsContext -->
  24857. <class name="AbstractMetricsContext" extends="java.lang.Object"
  24858. abstract="true"
  24859. static="false" final="false" visibility="public"
  24860. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24861. <implements name="org.apache.hadoop.metrics.MetricsContext"/>
  24862. <constructor name="AbstractMetricsContext"
  24863. static="false" final="false" visibility="protected"
  24864. deprecated="not deprecated">
  24865. <doc>
  24866. <![CDATA[Creates a new instance of AbstractMetricsContext]]>
  24867. </doc>
  24868. </constructor>
  24869. <method name="init"
  24870. abstract="false" native="false" synchronized="false"
  24871. static="false" final="false" visibility="public"
  24872. deprecated="not deprecated">
  24873. <param name="contextName" type="java.lang.String"/>
  24874. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  24875. <doc>
  24876. <![CDATA[Initializes the context.]]>
  24877. </doc>
  24878. </method>
  24879. <method name="getAttribute" return="java.lang.String"
  24880. abstract="false" native="false" synchronized="false"
  24881. static="false" final="false" visibility="protected"
  24882. deprecated="not deprecated">
  24883. <param name="attributeName" type="java.lang.String"/>
  24884. <doc>
  24885. <![CDATA[Convenience method for subclasses to access factory attributes.]]>
  24886. </doc>
  24887. </method>
  24888. <method name="getAttributeTable" return="java.util.Map"
  24889. abstract="false" native="false" synchronized="false"
  24890. static="false" final="false" visibility="protected"
  24891. deprecated="not deprecated">
  24892. <param name="tableName" type="java.lang.String"/>
  24893. <doc>
  24894. <![CDATA[Returns an attribute-value map derived from the factory attributes
  24895. by finding all factory attributes that begin with
  24896. <i>contextName</i>.<i>tableName</i>. The returned map consists of
  24897. those attributes with the contextName and tableName stripped off.]]>
  24898. </doc>
  24899. </method>
  24900. <method name="getContextName" return="java.lang.String"
  24901. abstract="false" native="false" synchronized="false"
  24902. static="false" final="false" visibility="public"
  24903. deprecated="not deprecated">
  24904. <doc>
  24905. <![CDATA[Returns the context name.]]>
  24906. </doc>
  24907. </method>
  24908. <method name="getContextFactory" return="org.apache.hadoop.metrics.ContextFactory"
  24909. abstract="false" native="false" synchronized="false"
  24910. static="false" final="false" visibility="public"
  24911. deprecated="not deprecated">
  24912. <doc>
  24913. <![CDATA[Returns the factory by which this context was created.]]>
  24914. </doc>
  24915. </method>
  24916. <method name="startMonitoring"
  24917. abstract="false" native="false" synchronized="true"
  24918. static="false" final="false" visibility="public"
  24919. deprecated="not deprecated">
  24920. <exception name="IOException" type="java.io.IOException"/>
  24921. <doc>
  24922. <![CDATA[Starts or restarts monitoring, the emitting of metrics records.]]>
  24923. </doc>
  24924. </method>
  24925. <method name="stopMonitoring"
  24926. abstract="false" native="false" synchronized="true"
  24927. static="false" final="false" visibility="public"
  24928. deprecated="not deprecated">
  24929. <doc>
  24930. <![CDATA[Stops monitoring. This does not free buffered data.
  24931. @see #close()]]>
  24932. </doc>
  24933. </method>
  24934. <method name="isMonitoring" return="boolean"
  24935. abstract="false" native="false" synchronized="false"
  24936. static="false" final="false" visibility="public"
  24937. deprecated="not deprecated">
  24938. <doc>
  24939. <![CDATA[Returns true if monitoring is currently in progress.]]>
  24940. </doc>
  24941. </method>
  24942. <method name="close"
  24943. abstract="false" native="false" synchronized="true"
  24944. static="false" final="false" visibility="public"
  24945. deprecated="not deprecated">
  24946. <doc>
  24947. <![CDATA[Stops monitoring and frees buffered data, returning this
  24948. object to its initial state.]]>
  24949. </doc>
  24950. </method>
  24951. <method name="createRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  24952. abstract="false" native="false" synchronized="true"
  24953. static="false" final="true" visibility="public"
  24954. deprecated="not deprecated">
  24955. <param name="recordName" type="java.lang.String"/>
  24956. <doc>
  24957. <![CDATA[Creates a new AbstractMetricsRecord instance with the given <code>recordName</code>.
  24958. Throws an exception if the metrics implementation is configured with a fixed
  24959. set of record names and <code>recordName</code> is not in that set.
  24960. @param recordName the name of the record
  24961. @throws MetricsException if recordName conflicts with configuration data]]>
  24962. </doc>
  24963. </method>
  24964. <method name="newRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  24965. abstract="false" native="false" synchronized="false"
  24966. static="false" final="false" visibility="protected"
  24967. deprecated="not deprecated">
  24968. <param name="recordName" type="java.lang.String"/>
  24969. <doc>
  24970. <![CDATA[Subclasses should override this if they subclass MetricsRecordImpl.
  24971. @param recordName the name of the record
  24972. @return newly created instance of MetricsRecordImpl or subclass]]>
  24973. </doc>
  24974. </method>
  24975. <method name="registerUpdater"
  24976. abstract="false" native="false" synchronized="true"
  24977. static="false" final="false" visibility="public"
  24978. deprecated="not deprecated">
  24979. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  24980. <doc>
  24981. <![CDATA[Registers a callback to be called at time intervals determined by
  24982. the configuration.
  24983. @param updater object to be run periodically; it should update
  24984. some metrics records]]>
  24985. </doc>
  24986. </method>
  24987. <method name="unregisterUpdater"
  24988. abstract="false" native="false" synchronized="true"
  24989. static="false" final="false" visibility="public"
  24990. deprecated="not deprecated">
  24991. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  24992. <doc>
  24993. <![CDATA[Removes a callback, if it exists.
  24994. @param updater object to be removed from the callback list]]>
  24995. </doc>
  24996. </method>
  24997. <method name="getAllRecords" return="java.util.Map"
  24998. abstract="false" native="false" synchronized="true"
  24999. static="false" final="false" visibility="public"
  25000. deprecated="not deprecated">
  25001. <doc>
  25002. <![CDATA[Retrieves all the records managed by this MetricsContext.
  25003. Useful for monitoring systems that are polling-based.
  25004. @return A non-null collection of all monitoring records.]]>
  25005. </doc>
  25006. </method>
  25007. <method name="emitRecord"
  25008. abstract="true" native="false" synchronized="false"
  25009. static="false" final="false" visibility="protected"
  25010. deprecated="not deprecated">
  25011. <param name="contextName" type="java.lang.String"/>
  25012. <param name="recordName" type="java.lang.String"/>
  25013. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  25014. <exception name="IOException" type="java.io.IOException"/>
  25015. <doc>
  25016. <![CDATA[Sends a record to the metrics system.]]>
  25017. </doc>
  25018. </method>
  25019. <method name="flush"
  25020. abstract="false" native="false" synchronized="false"
  25021. static="false" final="false" visibility="protected"
  25022. deprecated="not deprecated">
  25023. <exception name="IOException" type="java.io.IOException"/>
  25024. <doc>
  25025. <![CDATA[Called each period after all records have been emitted, this method does nothing.
  25026. Subclasses may override it in order to perform some kind of flush.]]>
  25027. </doc>
  25028. </method>
  25029. <method name="update"
  25030. abstract="false" native="false" synchronized="false"
  25031. static="false" final="false" visibility="protected"
  25032. deprecated="not deprecated">
  25033. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  25034. <doc>
  25035. <![CDATA[Called by MetricsRecordImpl.update(). Creates or updates a row in
  25036. the internal table of metric data.]]>
  25037. </doc>
  25038. </method>
  25039. <method name="remove"
  25040. abstract="false" native="false" synchronized="false"
  25041. static="false" final="false" visibility="protected"
  25042. deprecated="not deprecated">
  25043. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  25044. <doc>
  25045. <![CDATA[Called by MetricsRecordImpl.remove(). Removes all matching rows in
  25046. the internal table of metric data. A row matches if it has the same
  25047. tag names and values as record, but it may also have additional
  25048. tags.]]>
  25049. </doc>
  25050. </method>
  25051. <method name="getPeriod" return="int"
  25052. abstract="false" native="false" synchronized="false"
  25053. static="false" final="false" visibility="public"
  25054. deprecated="not deprecated">
  25055. <doc>
  25056. <![CDATA[Returns the timer period.]]>
  25057. </doc>
  25058. </method>
  25059. <method name="setPeriod"
  25060. abstract="false" native="false" synchronized="false"
  25061. static="false" final="false" visibility="protected"
  25062. deprecated="not deprecated">
  25063. <param name="period" type="int"/>
  25064. <doc>
  25065. <![CDATA[Sets the timer period]]>
  25066. </doc>
  25067. </method>
  25068. <method name="parseAndSetPeriod"
  25069. abstract="false" native="false" synchronized="false"
  25070. static="false" final="false" visibility="protected"
  25071. deprecated="not deprecated">
  25072. <param name="attributeName" type="java.lang.String"/>
  25073. <doc>
  25074. <![CDATA[If a period is set in the attribute passed in, override
  25075. the default with it.]]>
  25076. </doc>
  25077. </method>
  25078. <doc>
  25079. <![CDATA[The main class of the Service Provider Interface. This class should be
  25080. extended in order to integrate the Metrics API with a specific metrics
  25081. client library. <p/>
  25082. This class implements the internal table of metric data, and the timer
  25083. on which data is to be sent to the metrics system. Subclasses must
  25084. override the abstract <code>emitRecord</code> method in order to transmit
  25085. the data. <p/>
  25086. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  25087. </doc>
  25088. </class>
  25089. <!-- end class org.apache.hadoop.metrics.spi.AbstractMetricsContext -->
  25090. <!-- start class org.apache.hadoop.metrics.spi.AbstractMetricsContext.MetricMap -->
  25091. <class name="AbstractMetricsContext.MetricMap" extends="java.util.TreeMap"
  25092. abstract="false"
  25093. static="true" final="false" visibility="public"
  25094. deprecated="not deprecated">
  25095. </class>
  25096. <!-- end class org.apache.hadoop.metrics.spi.AbstractMetricsContext.MetricMap -->
  25097. <!-- start class org.apache.hadoop.metrics.spi.AbstractMetricsContext.TagMap -->
  25098. <class name="AbstractMetricsContext.TagMap" extends="java.util.TreeMap"
  25099. abstract="false"
  25100. static="true" final="false" visibility="public"
  25101. deprecated="not deprecated">
  25102. <method name="containsAll" return="boolean"
  25103. abstract="false" native="false" synchronized="false"
  25104. static="false" final="false" visibility="public"
  25105. deprecated="not deprecated">
  25106. <param name="other" type="org.apache.hadoop.metrics.spi.AbstractMetricsContext.TagMap"/>
  25107. <doc>
  25108. <![CDATA[Returns true if this tagmap contains every tag in other.]]>
  25109. </doc>
  25110. </method>
  25111. </class>
  25112. <!-- end class org.apache.hadoop.metrics.spi.AbstractMetricsContext.TagMap -->
  25113. <!-- start class org.apache.hadoop.metrics.spi.CompositeContext -->
  25114. <class name="CompositeContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  25115. abstract="false"
  25116. static="false" final="false" visibility="public"
  25117. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  25118. <constructor name="CompositeContext"
  25119. static="false" final="false" visibility="public"
  25120. deprecated="not deprecated">
  25121. </constructor>
  25122. <method name="init"
  25123. abstract="false" native="false" synchronized="false"
  25124. static="false" final="false" visibility="public"
  25125. deprecated="not deprecated">
  25126. <param name="contextName" type="java.lang.String"/>
  25127. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  25128. </method>
  25129. <method name="newRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  25130. abstract="false" native="false" synchronized="false"
  25131. static="false" final="false" visibility="public"
  25132. deprecated="not deprecated">
  25133. <param name="recordName" type="java.lang.String"/>
  25134. </method>
  25135. <method name="emitRecord"
  25136. abstract="false" native="false" synchronized="false"
  25137. static="false" final="false" visibility="protected"
  25138. deprecated="not deprecated">
  25139. <param name="contextName" type="java.lang.String"/>
  25140. <param name="recordName" type="java.lang.String"/>
  25141. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  25142. <exception name="IOException" type="java.io.IOException"/>
  25143. </method>
  25144. <method name="flush"
  25145. abstract="false" native="false" synchronized="false"
  25146. static="false" final="false" visibility="protected"
  25147. deprecated="not deprecated">
  25148. <exception name="IOException" type="java.io.IOException"/>
  25149. </method>
  25150. <method name="startMonitoring"
  25151. abstract="false" native="false" synchronized="false"
  25152. static="false" final="false" visibility="public"
  25153. deprecated="not deprecated">
  25154. <exception name="IOException" type="java.io.IOException"/>
  25155. </method>
  25156. <method name="stopMonitoring"
  25157. abstract="false" native="false" synchronized="false"
  25158. static="false" final="false" visibility="public"
  25159. deprecated="not deprecated">
  25160. </method>
  25161. <method name="isMonitoring" return="boolean"
  25162. abstract="false" native="false" synchronized="false"
  25163. static="false" final="false" visibility="public"
  25164. deprecated="not deprecated">
  25165. <doc>
  25166. <![CDATA[Return true if all subcontexts are monitoring.]]>
  25167. </doc>
  25168. </method>
  25169. <method name="close"
  25170. abstract="false" native="false" synchronized="false"
  25171. static="false" final="false" visibility="public"
  25172. deprecated="not deprecated">
  25173. </method>
  25174. <method name="registerUpdater"
  25175. abstract="false" native="false" synchronized="false"
  25176. static="false" final="false" visibility="public"
  25177. deprecated="not deprecated">
  25178. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  25179. </method>
  25180. <method name="unregisterUpdater"
  25181. abstract="false" native="false" synchronized="false"
  25182. static="false" final="false" visibility="public"
  25183. deprecated="not deprecated">
  25184. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  25185. </method>
  25186. <doc>
  25187. <![CDATA[@deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  25188. </doc>
  25189. </class>
  25190. <!-- end class org.apache.hadoop.metrics.spi.CompositeContext -->
  25191. <!-- start class org.apache.hadoop.metrics.spi.MetricsRecordImpl -->
  25192. <class name="MetricsRecordImpl" extends="java.lang.Object"
  25193. abstract="false"
  25194. static="false" final="false" visibility="public"
  25195. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  25196. <implements name="org.apache.hadoop.metrics.MetricsRecord"/>
  25197. <constructor name="MetricsRecordImpl" type="java.lang.String, org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  25198. static="false" final="false" visibility="protected"
  25199. deprecated="not deprecated">
  25200. <doc>
  25201. <![CDATA[Creates a new instance of FileRecord]]>
  25202. </doc>
  25203. </constructor>
  25204. <method name="getRecordName" return="java.lang.String"
  25205. abstract="false" native="false" synchronized="false"
  25206. static="false" final="false" visibility="public"
  25207. deprecated="not deprecated">
  25208. <doc>
  25209. <![CDATA[Returns the record name.
  25210. @return the record name]]>
  25211. </doc>
  25212. </method>
  25213. <method name="setTag"
  25214. abstract="false" native="false" synchronized="false"
  25215. static="false" final="false" visibility="public"
  25216. deprecated="not deprecated">
  25217. <param name="tagName" type="java.lang.String"/>
  25218. <param name="tagValue" type="java.lang.String"/>
  25219. <doc>
  25220. <![CDATA[Sets the named tag to the specified value.
  25221. @param tagName name of the tag
  25222. @param tagValue new value of the tag
  25223. @throws MetricsException if the tagName conflicts with the configuration]]>
  25224. </doc>
  25225. </method>
  25226. <method name="setTag"
  25227. abstract="false" native="false" synchronized="false"
  25228. static="false" final="false" visibility="public"
  25229. deprecated="not deprecated">
  25230. <param name="tagName" type="java.lang.String"/>
  25231. <param name="tagValue" type="int"/>
  25232. <doc>
  25233. <![CDATA[Sets the named tag to the specified value.
  25234. @param tagName name of the tag
  25235. @param tagValue new value of the tag
  25236. @throws MetricsException if the tagName conflicts with the configuration]]>
  25237. </doc>
  25238. </method>
  25239. <method name="setTag"
  25240. abstract="false" native="false" synchronized="false"
  25241. static="false" final="false" visibility="public"
  25242. deprecated="not deprecated">
  25243. <param name="tagName" type="java.lang.String"/>
  25244. <param name="tagValue" type="long"/>
  25245. <doc>
  25246. <![CDATA[Sets the named tag to the specified value.
  25247. @param tagName name of the tag
  25248. @param tagValue new value of the tag
  25249. @throws MetricsException if the tagName conflicts with the configuration]]>
  25250. </doc>
  25251. </method>
  25252. <method name="setTag"
  25253. abstract="false" native="false" synchronized="false"
  25254. static="false" final="false" visibility="public"
  25255. deprecated="not deprecated">
  25256. <param name="tagName" type="java.lang.String"/>
  25257. <param name="tagValue" type="short"/>
  25258. <doc>
  25259. <![CDATA[Sets the named tag to the specified value.
  25260. @param tagName name of the tag
  25261. @param tagValue new value of the tag
  25262. @throws MetricsException if the tagName conflicts with the configuration]]>
  25263. </doc>
  25264. </method>
  25265. <method name="setTag"
  25266. abstract="false" native="false" synchronized="false"
  25267. static="false" final="false" visibility="public"
  25268. deprecated="not deprecated">
  25269. <param name="tagName" type="java.lang.String"/>
  25270. <param name="tagValue" type="byte"/>
  25271. <doc>
  25272. <![CDATA[Sets the named tag to the specified value.
  25273. @param tagName name of the tag
  25274. @param tagValue new value of the tag
  25275. @throws MetricsException if the tagName conflicts with the configuration]]>
  25276. </doc>
  25277. </method>
  25278. <method name="removeTag"
  25279. abstract="false" native="false" synchronized="false"
  25280. static="false" final="false" visibility="public"
  25281. deprecated="not deprecated">
  25282. <param name="tagName" type="java.lang.String"/>
  25283. <doc>
  25284. <![CDATA[Removes any tag of the specified name.]]>
  25285. </doc>
  25286. </method>
  25287. <method name="setMetric"
  25288. abstract="false" native="false" synchronized="false"
  25289. static="false" final="false" visibility="public"
  25290. deprecated="not deprecated">
  25291. <param name="metricName" type="java.lang.String"/>
  25292. <param name="metricValue" type="int"/>
  25293. <doc>
  25294. <![CDATA[Sets the named metric to the specified value.
  25295. @param metricName name of the metric
  25296. @param metricValue new value of the metric
  25297. @throws MetricsException if the metricName or the type of the metricValue
  25298. conflicts with the configuration]]>
  25299. </doc>
  25300. </method>
  25301. <method name="setMetric"
  25302. abstract="false" native="false" synchronized="false"
  25303. static="false" final="false" visibility="public"
  25304. deprecated="not deprecated">
  25305. <param name="metricName" type="java.lang.String"/>
  25306. <param name="metricValue" type="long"/>
  25307. <doc>
  25308. <![CDATA[Sets the named metric to the specified value.
  25309. @param metricName name of the metric
  25310. @param metricValue new value of the metric
  25311. @throws MetricsException if the metricName or the type of the metricValue
  25312. conflicts with the configuration]]>
  25313. </doc>
  25314. </method>
  25315. <method name="setMetric"
  25316. abstract="false" native="false" synchronized="false"
  25317. static="false" final="false" visibility="public"
  25318. deprecated="not deprecated">
  25319. <param name="metricName" type="java.lang.String"/>
  25320. <param name="metricValue" type="short"/>
  25321. <doc>
  25322. <![CDATA[Sets the named metric to the specified value.
  25323. @param metricName name of the metric
  25324. @param metricValue new value of the metric
  25325. @throws MetricsException if the metricName or the type of the metricValue
  25326. conflicts with the configuration]]>
  25327. </doc>
  25328. </method>
  25329. <method name="setMetric"
  25330. abstract="false" native="false" synchronized="false"
  25331. static="false" final="false" visibility="public"
  25332. deprecated="not deprecated">
  25333. <param name="metricName" type="java.lang.String"/>
  25334. <param name="metricValue" type="byte"/>
  25335. <doc>
  25336. <![CDATA[Sets the named metric to the specified value.
  25337. @param metricName name of the metric
  25338. @param metricValue new value of the metric
  25339. @throws MetricsException if the metricName or the type of the metricValue
  25340. conflicts with the configuration]]>
  25341. </doc>
  25342. </method>
  25343. <method name="setMetric"
  25344. abstract="false" native="false" synchronized="false"
  25345. static="false" final="false" visibility="public"
  25346. deprecated="not deprecated">
  25347. <param name="metricName" type="java.lang.String"/>
  25348. <param name="metricValue" type="float"/>
  25349. <doc>
  25350. <![CDATA[Sets the named metric to the specified value.
  25351. @param metricName name of the metric
  25352. @param metricValue new value of the metric
  25353. @throws MetricsException if the metricName or the type of the metricValue
  25354. conflicts with the configuration]]>
  25355. </doc>
  25356. </method>
  25357. <method name="incrMetric"
  25358. abstract="false" native="false" synchronized="false"
  25359. static="false" final="false" visibility="public"
  25360. deprecated="not deprecated">
  25361. <param name="metricName" type="java.lang.String"/>
  25362. <param name="metricValue" type="int"/>
  25363. <doc>
  25364. <![CDATA[Increments the named metric by the specified value.
  25365. @param metricName name of the metric
  25366. @param metricValue incremental value
  25367. @throws MetricsException if the metricName or the type of the metricValue
  25368. conflicts with the configuration]]>
  25369. </doc>
  25370. </method>
  25371. <method name="incrMetric"
  25372. abstract="false" native="false" synchronized="false"
  25373. static="false" final="false" visibility="public"
  25374. deprecated="not deprecated">
  25375. <param name="metricName" type="java.lang.String"/>
  25376. <param name="metricValue" type="long"/>
  25377. <doc>
  25378. <![CDATA[Increments the named metric by the specified value.
  25379. @param metricName name of the metric
  25380. @param metricValue incremental value
  25381. @throws MetricsException if the metricName or the type of the metricValue
  25382. conflicts with the configuration]]>
  25383. </doc>
  25384. </method>
  25385. <method name="incrMetric"
  25386. abstract="false" native="false" synchronized="false"
  25387. static="false" final="false" visibility="public"
  25388. deprecated="not deprecated">
  25389. <param name="metricName" type="java.lang.String"/>
  25390. <param name="metricValue" type="short"/>
  25391. <doc>
  25392. <![CDATA[Increments the named metric by the specified value.
  25393. @param metricName name of the metric
  25394. @param metricValue incremental value
  25395. @throws MetricsException if the metricName or the type of the metricValue
  25396. conflicts with the configuration]]>
  25397. </doc>
  25398. </method>
  25399. <method name="incrMetric"
  25400. abstract="false" native="false" synchronized="false"
  25401. static="false" final="false" visibility="public"
  25402. deprecated="not deprecated">
  25403. <param name="metricName" type="java.lang.String"/>
  25404. <param name="metricValue" type="byte"/>
  25405. <doc>
  25406. <![CDATA[Increments the named metric by the specified value.
  25407. @param metricName name of the metric
  25408. @param metricValue incremental value
  25409. @throws MetricsException if the metricName or the type of the metricValue
  25410. conflicts with the configuration]]>
  25411. </doc>
  25412. </method>
  25413. <method name="incrMetric"
  25414. abstract="false" native="false" synchronized="false"
  25415. static="false" final="false" visibility="public"
  25416. deprecated="not deprecated">
  25417. <param name="metricName" type="java.lang.String"/>
  25418. <param name="metricValue" type="float"/>
  25419. <doc>
  25420. <![CDATA[Increments the named metric by the specified value.
  25421. @param metricName name of the metric
  25422. @param metricValue incremental value
  25423. @throws MetricsException if the metricName or the type of the metricValue
  25424. conflicts with the configuration]]>
  25425. </doc>
  25426. </method>
  25427. <method name="update"
  25428. abstract="false" native="false" synchronized="false"
  25429. static="false" final="false" visibility="public"
  25430. deprecated="not deprecated">
  25431. <doc>
  25432. <![CDATA[Updates the table of buffered data which is to be sent periodically.
  25433. If the tag values match an existing row, that row is updated;
  25434. otherwise, a new row is added.]]>
  25435. </doc>
  25436. </method>
  25437. <method name="remove"
  25438. abstract="false" native="false" synchronized="false"
  25439. static="false" final="false" visibility="public"
  25440. deprecated="not deprecated">
  25441. <doc>
  25442. <![CDATA[Removes the row, if it exists, in the buffered data table having tags
  25443. that equal the tags that have been set on this record.]]>
  25444. </doc>
  25445. </method>
  25446. <doc>
  25447. <![CDATA[An implementation of MetricsRecord. Keeps a back-pointer to the context
  25448. from which it was created, and delegates back to it on <code>update</code>
  25449. and <code>remove()</code>.
  25450. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  25451. </doc>
  25452. </class>
  25453. <!-- end class org.apache.hadoop.metrics.spi.MetricsRecordImpl -->
  25454. <!-- start class org.apache.hadoop.metrics.spi.MetricValue -->
  25455. <class name="MetricValue" extends="java.lang.Object"
  25456. abstract="false"
  25457. static="false" final="false" visibility="public"
  25458. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  25459. <constructor name="MetricValue" type="java.lang.Number, boolean"
  25460. static="false" final="false" visibility="public"
  25461. deprecated="not deprecated">
  25462. <doc>
  25463. <![CDATA[Creates a new instance of MetricValue]]>
  25464. </doc>
  25465. </constructor>
  25466. <method name="isIncrement" return="boolean"
  25467. abstract="false" native="false" synchronized="false"
  25468. static="false" final="false" visibility="public"
  25469. deprecated="not deprecated">
  25470. </method>
  25471. <method name="isAbsolute" return="boolean"
  25472. abstract="false" native="false" synchronized="false"
  25473. static="false" final="false" visibility="public"
  25474. deprecated="not deprecated">
  25475. </method>
  25476. <method name="getNumber" return="java.lang.Number"
  25477. abstract="false" native="false" synchronized="false"
  25478. static="false" final="false" visibility="public"
  25479. deprecated="not deprecated">
  25480. </method>
  25481. <field name="ABSOLUTE" type="boolean"
  25482. transient="false" volatile="false"
  25483. static="true" final="true" visibility="public"
  25484. deprecated="not deprecated">
  25485. </field>
  25486. <field name="INCREMENT" type="boolean"
  25487. transient="false" volatile="false"
  25488. static="true" final="true" visibility="public"
  25489. deprecated="not deprecated">
  25490. </field>
  25491. <doc>
  25492. <![CDATA[A Number that is either an absolute or an incremental amount.
  25493. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  25494. </doc>
  25495. </class>
  25496. <!-- end class org.apache.hadoop.metrics.spi.MetricValue -->
  25497. <!-- start class org.apache.hadoop.metrics.spi.NoEmitMetricsContext -->
  25498. <class name="NoEmitMetricsContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  25499. abstract="false"
  25500. static="false" final="false" visibility="public"
  25501. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  25502. <constructor name="NoEmitMetricsContext"
  25503. static="false" final="false" visibility="public"
  25504. deprecated="not deprecated">
  25505. <doc>
  25506. <![CDATA[Creates a new instance of NullContextWithUpdateThread]]>
  25507. </doc>
  25508. </constructor>
  25509. <method name="init"
  25510. abstract="false" native="false" synchronized="false"
  25511. static="false" final="false" visibility="public"
  25512. deprecated="not deprecated">
  25513. <param name="contextName" type="java.lang.String"/>
  25514. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  25515. </method>
  25516. <method name="emitRecord"
  25517. abstract="false" native="false" synchronized="false"
  25518. static="false" final="false" visibility="protected"
  25519. deprecated="not deprecated">
  25520. <param name="contextName" type="java.lang.String"/>
  25521. <param name="recordName" type="java.lang.String"/>
  25522. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  25523. <doc>
  25524. <![CDATA[Do-nothing version of emitRecord]]>
  25525. </doc>
  25526. </method>
  25527. <doc>
  25528. <![CDATA[A MetricsContext that does not emit data, but, unlike NullContextWithUpdate,
  25529. does save it for retrieval with getAllRecords().
  25530. This is useful if you want to support {@link MetricsServlet}, but
  25531. not emit metrics in any other way.
  25532. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  25533. </doc>
  25534. </class>
  25535. <!-- end class org.apache.hadoop.metrics.spi.NoEmitMetricsContext -->
  25536. <!-- start class org.apache.hadoop.metrics.spi.NullContext -->
  25537. <class name="NullContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  25538. abstract="false"
  25539. static="false" final="false" visibility="public"
  25540. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  25541. <constructor name="NullContext"
  25542. static="false" final="false" visibility="public"
  25543. deprecated="not deprecated">
  25544. <doc>
  25545. <![CDATA[Creates a new instance of NullContext]]>
  25546. </doc>
  25547. </constructor>
  25548. <method name="startMonitoring"
  25549. abstract="false" native="false" synchronized="false"
  25550. static="false" final="false" visibility="public"
  25551. deprecated="not deprecated">
  25552. <doc>
  25553. <![CDATA[Do-nothing version of startMonitoring]]>
  25554. </doc>
  25555. </method>
  25556. <method name="emitRecord"
  25557. abstract="false" native="false" synchronized="false"
  25558. static="false" final="false" visibility="protected"
  25559. deprecated="not deprecated">
  25560. <param name="contextName" type="java.lang.String"/>
  25561. <param name="recordName" type="java.lang.String"/>
  25562. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  25563. <doc>
  25564. <![CDATA[Do-nothing version of emitRecord]]>
  25565. </doc>
  25566. </method>
  25567. <method name="update"
  25568. abstract="false" native="false" synchronized="false"
  25569. static="false" final="false" visibility="protected"
  25570. deprecated="not deprecated">
  25571. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  25572. <doc>
  25573. <![CDATA[Do-nothing version of update]]>
  25574. </doc>
  25575. </method>
  25576. <method name="remove"
  25577. abstract="false" native="false" synchronized="false"
  25578. static="false" final="false" visibility="protected"
  25579. deprecated="not deprecated">
  25580. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  25581. <doc>
  25582. <![CDATA[Do-nothing version of remove]]>
  25583. </doc>
  25584. </method>
  25585. <doc>
  25586. <![CDATA[Null metrics context: a metrics context which does nothing. Used as the
  25587. default context, so that no performance data is emitted if no configuration
  25588. data is found.
  25589. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  25590. </doc>
  25591. </class>
  25592. <!-- end class org.apache.hadoop.metrics.spi.NullContext -->
  25593. <!-- start class org.apache.hadoop.metrics.spi.NullContextWithUpdateThread -->
  25594. <class name="NullContextWithUpdateThread" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  25595. abstract="false"
  25596. static="false" final="false" visibility="public"
  25597. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  25598. <constructor name="NullContextWithUpdateThread"
  25599. static="false" final="false" visibility="public"
  25600. deprecated="not deprecated">
  25601. <doc>
  25602. <![CDATA[Creates a new instance of NullContextWithUpdateThread]]>
  25603. </doc>
  25604. </constructor>
  25605. <method name="init"
  25606. abstract="false" native="false" synchronized="false"
  25607. static="false" final="false" visibility="public"
  25608. deprecated="not deprecated">
  25609. <param name="contextName" type="java.lang.String"/>
  25610. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  25611. </method>
  25612. <method name="emitRecord"
  25613. abstract="false" native="false" synchronized="false"
  25614. static="false" final="false" visibility="protected"
  25615. deprecated="not deprecated">
  25616. <param name="contextName" type="java.lang.String"/>
  25617. <param name="recordName" type="java.lang.String"/>
  25618. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  25619. <doc>
  25620. <![CDATA[Do-nothing version of emitRecord]]>
  25621. </doc>
  25622. </method>
  25623. <method name="update"
  25624. abstract="false" native="false" synchronized="false"
  25625. static="false" final="false" visibility="protected"
  25626. deprecated="not deprecated">
  25627. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  25628. <doc>
  25629. <![CDATA[Do-nothing version of update]]>
  25630. </doc>
  25631. </method>
  25632. <method name="remove"
  25633. abstract="false" native="false" synchronized="false"
  25634. static="false" final="false" visibility="protected"
  25635. deprecated="not deprecated">
  25636. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  25637. <doc>
  25638. <![CDATA[Do-nothing version of remove]]>
  25639. </doc>
  25640. </method>
  25641. <doc>
  25642. <![CDATA[A null context which has a thread calling
  25643. periodically when monitoring is started. This keeps the data sampled
  25644. correctly.
  25645. In all other respects, this is like the NULL context: No data is emitted.
  25646. This is suitable for Monitoring systems like JMX which reads the metrics
  25647. when someone reads the data from JMX.
  25648. The default impl of start and stop monitoring:
  25649. is the AbstractMetricsContext is good enough.
  25650. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  25651. </doc>
  25652. </class>
  25653. <!-- end class org.apache.hadoop.metrics.spi.NullContextWithUpdateThread -->
  25654. <!-- start class org.apache.hadoop.metrics.spi.OutputRecord -->
  25655. <class name="OutputRecord" extends="java.lang.Object"
  25656. abstract="false"
  25657. static="false" final="false" visibility="public"
  25658. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  25659. <method name="getTagNames" return="java.util.Set"
  25660. abstract="false" native="false" synchronized="false"
  25661. static="false" final="false" visibility="public"
  25662. deprecated="not deprecated">
  25663. <doc>
  25664. <![CDATA[Returns the set of tag names]]>
  25665. </doc>
  25666. </method>
  25667. <method name="getTag" return="java.lang.Object"
  25668. abstract="false" native="false" synchronized="false"
  25669. static="false" final="false" visibility="public"
  25670. deprecated="not deprecated">
  25671. <param name="name" type="java.lang.String"/>
  25672. <doc>
  25673. <![CDATA[Returns a tag object which is can be a String, Integer, Short or Byte.
  25674. @return the tag value, or null if there is no such tag]]>
  25675. </doc>
  25676. </method>
  25677. <method name="getMetricNames" return="java.util.Set"
  25678. abstract="false" native="false" synchronized="false"
  25679. static="false" final="false" visibility="public"
  25680. deprecated="not deprecated">
  25681. <doc>
  25682. <![CDATA[Returns the set of metric names.]]>
  25683. </doc>
  25684. </method>
  25685. <method name="getMetric" return="java.lang.Number"
  25686. abstract="false" native="false" synchronized="false"
  25687. static="false" final="false" visibility="public"
  25688. deprecated="not deprecated">
  25689. <param name="name" type="java.lang.String"/>
  25690. <doc>
  25691. <![CDATA[Returns the metric object which can be a Float, Integer, Short or Byte.]]>
  25692. </doc>
  25693. </method>
  25694. <method name="getTagsCopy" return="org.apache.hadoop.metrics.spi.AbstractMetricsContext.TagMap"
  25695. abstract="false" native="false" synchronized="false"
  25696. static="false" final="false" visibility="public"
  25697. deprecated="not deprecated">
  25698. <doc>
  25699. <![CDATA[Returns a copy of this record's tags.]]>
  25700. </doc>
  25701. </method>
  25702. <method name="getMetricsCopy" return="org.apache.hadoop.metrics.spi.AbstractMetricsContext.MetricMap"
  25703. abstract="false" native="false" synchronized="false"
  25704. static="false" final="false" visibility="public"
  25705. deprecated="not deprecated">
  25706. <doc>
  25707. <![CDATA[Returns a copy of this record's metrics.]]>
  25708. </doc>
  25709. </method>
  25710. <doc>
  25711. <![CDATA[Represents a record of metric data to be sent to a metrics system.
  25712. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  25713. </doc>
  25714. </class>
  25715. <!-- end class org.apache.hadoop.metrics.spi.OutputRecord -->
  25716. <!-- start class org.apache.hadoop.metrics.spi.Util -->
  25717. <class name="Util" extends="java.lang.Object"
  25718. abstract="false"
  25719. static="false" final="false" visibility="public"
  25720. deprecated="not deprecated">
  25721. <method name="parse" return="java.util.List"
  25722. abstract="false" native="false" synchronized="false"
  25723. static="true" final="false" visibility="public"
  25724. deprecated="not deprecated">
  25725. <param name="specs" type="java.lang.String"/>
  25726. <param name="defaultPort" type="int"/>
  25727. <doc>
  25728. <![CDATA[Parses a space and/or comma separated sequence of server specifications
  25729. of the form <i>hostname</i> or <i>hostname:port</i>. If
  25730. the specs string is null, defaults to localhost:defaultPort.
  25731. @return a list of InetSocketAddress objects.]]>
  25732. </doc>
  25733. </method>
  25734. <doc>
  25735. <![CDATA[Static utility methods]]>
  25736. </doc>
  25737. </class>
  25738. <!-- end class org.apache.hadoop.metrics.spi.Util -->
  25739. </package>
  25740. <package name="org.apache.hadoop.metrics.util">
  25741. <!-- start class org.apache.hadoop.metrics.util.MBeanUtil -->
  25742. <class name="MBeanUtil" extends="java.lang.Object"
  25743. abstract="false"
  25744. static="false" final="false" visibility="public"
  25745. deprecated="in favor of {@link org.apache.hadoop.metrics2.util.MBeans}.">
  25746. <constructor name="MBeanUtil"
  25747. static="false" final="false" visibility="public"
  25748. deprecated="not deprecated">
  25749. </constructor>
  25750. <method name="registerMBean" return="javax.management.ObjectName"
  25751. abstract="false" native="false" synchronized="false"
  25752. static="true" final="false" visibility="public"
  25753. deprecated="not deprecated">
  25754. <param name="serviceName" type="java.lang.String"/>
  25755. <param name="nameName" type="java.lang.String"/>
  25756. <param name="theMbean" type="java.lang.Object"/>
  25757. <doc>
  25758. <![CDATA[Register the MBean using our standard MBeanName format
  25759. "hadoop:service=<serviceName>,name=<nameName>"
  25760. Where the <serviceName> and <nameName> are the supplied parameters
  25761. @param serviceName
  25762. @param nameName
  25763. @param theMbean - the MBean to register
  25764. @return the named used to register the MBean]]>
  25765. </doc>
  25766. </method>
  25767. <method name="unregisterMBean"
  25768. abstract="false" native="false" synchronized="false"
  25769. static="true" final="false" visibility="public"
  25770. deprecated="not deprecated">
  25771. <param name="mbeanName" type="javax.management.ObjectName"/>
  25772. </method>
  25773. <doc>
  25774. <![CDATA[This util class provides a method to register an MBean using
  25775. our standard naming convention as described in the doc
  25776. for {@link #registerMBean(String, String, Object)}
  25777. @deprecated in favor of {@link org.apache.hadoop.metrics2.util.MBeans}.]]>
  25778. </doc>
  25779. </class>
  25780. <!-- end class org.apache.hadoop.metrics.util.MBeanUtil -->
  25781. <!-- start class org.apache.hadoop.metrics.util.MetricsBase -->
  25782. <class name="MetricsBase" extends="java.lang.Object"
  25783. abstract="true"
  25784. static="false" final="false" visibility="public"
  25785. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  25786. <constructor name="MetricsBase" type="java.lang.String"
  25787. static="false" final="false" visibility="protected"
  25788. deprecated="not deprecated">
  25789. </constructor>
  25790. <constructor name="MetricsBase" type="java.lang.String, java.lang.String"
  25791. static="false" final="false" visibility="protected"
  25792. deprecated="not deprecated">
  25793. </constructor>
  25794. <method name="pushMetric"
  25795. abstract="true" native="false" synchronized="false"
  25796. static="false" final="false" visibility="public"
  25797. deprecated="not deprecated">
  25798. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  25799. </method>
  25800. <method name="getName" return="java.lang.String"
  25801. abstract="false" native="false" synchronized="false"
  25802. static="false" final="false" visibility="public"
  25803. deprecated="not deprecated">
  25804. </method>
  25805. <method name="getDescription" return="java.lang.String"
  25806. abstract="false" native="false" synchronized="false"
  25807. static="false" final="false" visibility="public"
  25808. deprecated="not deprecated">
  25809. </method>
  25810. <field name="NO_DESCRIPTION" type="java.lang.String"
  25811. transient="false" volatile="false"
  25812. static="true" final="true" visibility="public"
  25813. deprecated="not deprecated">
  25814. </field>
  25815. <doc>
  25816. <![CDATA[This is base class for all metrics
  25817. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  25818. </doc>
  25819. </class>
  25820. <!-- end class org.apache.hadoop.metrics.util.MetricsBase -->
  25821. <!-- start class org.apache.hadoop.metrics.util.MetricsDynamicMBeanBase -->
  25822. <class name="MetricsDynamicMBeanBase" extends="java.lang.Object"
  25823. abstract="true"
  25824. static="false" final="false" visibility="public"
  25825. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  25826. <implements name="javax.management.DynamicMBean"/>
  25827. <constructor name="MetricsDynamicMBeanBase" type="org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  25828. static="false" final="false" visibility="protected"
  25829. deprecated="not deprecated">
  25830. </constructor>
  25831. <method name="getAttribute" return="java.lang.Object"
  25832. abstract="false" native="false" synchronized="false"
  25833. static="false" final="false" visibility="public"
  25834. deprecated="not deprecated">
  25835. <param name="attributeName" type="java.lang.String"/>
  25836. <exception name="AttributeNotFoundException" type="javax.management.AttributeNotFoundException"/>
  25837. <exception name="MBeanException" type="javax.management.MBeanException"/>
  25838. <exception name="ReflectionException" type="javax.management.ReflectionException"/>
  25839. </method>
  25840. <method name="getAttributes" return="javax.management.AttributeList"
  25841. abstract="false" native="false" synchronized="false"
  25842. static="false" final="false" visibility="public"
  25843. deprecated="not deprecated">
  25844. <param name="attributeNames" type="java.lang.String[]"/>
  25845. </method>
  25846. <method name="getMBeanInfo" return="javax.management.MBeanInfo"
  25847. abstract="false" native="false" synchronized="false"
  25848. static="false" final="false" visibility="public"
  25849. deprecated="not deprecated">
  25850. </method>
  25851. <method name="invoke" return="java.lang.Object"
  25852. abstract="false" native="false" synchronized="false"
  25853. static="false" final="false" visibility="public"
  25854. deprecated="not deprecated">
  25855. <param name="actionName" type="java.lang.String"/>
  25856. <param name="parms" type="java.lang.Object[]"/>
  25857. <param name="signature" type="java.lang.String[]"/>
  25858. <exception name="MBeanException" type="javax.management.MBeanException"/>
  25859. <exception name="ReflectionException" type="javax.management.ReflectionException"/>
  25860. </method>
  25861. <method name="setAttribute"
  25862. abstract="false" native="false" synchronized="false"
  25863. static="false" final="false" visibility="public"
  25864. deprecated="not deprecated">
  25865. <param name="attribute" type="javax.management.Attribute"/>
  25866. <exception name="AttributeNotFoundException" type="javax.management.AttributeNotFoundException"/>
  25867. <exception name="InvalidAttributeValueException" type="javax.management.InvalidAttributeValueException"/>
  25868. <exception name="MBeanException" type="javax.management.MBeanException"/>
  25869. <exception name="ReflectionException" type="javax.management.ReflectionException"/>
  25870. </method>
  25871. <method name="setAttributes" return="javax.management.AttributeList"
  25872. abstract="false" native="false" synchronized="false"
  25873. static="false" final="false" visibility="public"
  25874. deprecated="not deprecated">
  25875. <param name="attributes" type="javax.management.AttributeList"/>
  25876. </method>
  25877. <doc>
  25878. <![CDATA[This abstract base class facilitates creating dynamic mbeans automatically from
  25879. metrics.
  25880. The metrics constructors registers metrics in a registry.
  25881. Different categories of metrics should be in differnt classes with their own
  25882. registry (as in NameNodeMetrics and DataNodeMetrics).
  25883. Then the MBean can be created passing the registry to the constructor.
  25884. The MBean should be then registered using a mbean name (example):
  25885. MetricsHolder myMetrics = new MetricsHolder(); // has metrics and registry
  25886. MetricsTestMBean theMBean = new MetricsTestMBean(myMetrics.mregistry);
  25887. ObjectName mbeanName = MBeanUtil.registerMBean("ServiceFoo",
  25888. "TestStatistics", theMBean);
  25889. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  25890. </doc>
  25891. </class>
  25892. <!-- end class org.apache.hadoop.metrics.util.MetricsDynamicMBeanBase -->
  25893. <!-- start class org.apache.hadoop.metrics.util.MetricsIntValue -->
  25894. <class name="MetricsIntValue" extends="org.apache.hadoop.metrics.util.MetricsBase"
  25895. abstract="false"
  25896. static="false" final="false" visibility="public"
  25897. deprecated="in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt}.">
  25898. <constructor name="MetricsIntValue" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  25899. static="false" final="false" visibility="public"
  25900. deprecated="not deprecated">
  25901. <doc>
  25902. <![CDATA[Constructor - create a new metric
  25903. @param nam the name of the metrics to be used to publish the metric
  25904. @param registry - where the metrics object will be registered]]>
  25905. </doc>
  25906. </constructor>
  25907. <constructor name="MetricsIntValue" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  25908. static="false" final="false" visibility="public"
  25909. deprecated="not deprecated">
  25910. <doc>
  25911. <![CDATA[Constructor - create a new metric
  25912. @param nam the name of the metrics to be used to publish the metric
  25913. @param registry - where the metrics object will be registered
  25914. A description of {@link #NO_DESCRIPTION} is used]]>
  25915. </doc>
  25916. </constructor>
  25917. <method name="set"
  25918. abstract="false" native="false" synchronized="true"
  25919. static="false" final="false" visibility="public"
  25920. deprecated="not deprecated">
  25921. <param name="newValue" type="int"/>
  25922. <doc>
  25923. <![CDATA[Set the value
  25924. @param newValue]]>
  25925. </doc>
  25926. </method>
  25927. <method name="get" return="int"
  25928. abstract="false" native="false" synchronized="true"
  25929. static="false" final="false" visibility="public"
  25930. deprecated="not deprecated">
  25931. <doc>
  25932. <![CDATA[Get value
  25933. @return the value last set]]>
  25934. </doc>
  25935. </method>
  25936. <method name="pushMetric"
  25937. abstract="false" native="false" synchronized="true"
  25938. static="false" final="false" visibility="public"
  25939. deprecated="not deprecated">
  25940. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  25941. <doc>
  25942. <![CDATA[Push the metric to the mr.
  25943. The metric is pushed only if it was updated since last push
  25944. Note this does NOT push to JMX
  25945. (JMX gets the info via {@link #get()}
  25946. @param mr]]>
  25947. </doc>
  25948. </method>
  25949. <doc>
  25950. <![CDATA[The MetricsIntValue class is for a metric that is not time varied
  25951. but changes only when it is set.
  25952. Each time its value is set, it is published only *once* at the next update
  25953. call.
  25954. @deprecated in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt}.]]>
  25955. </doc>
  25956. </class>
  25957. <!-- end class org.apache.hadoop.metrics.util.MetricsIntValue -->
  25958. <!-- start class org.apache.hadoop.metrics.util.MetricsLongValue -->
  25959. <class name="MetricsLongValue" extends="org.apache.hadoop.metrics.util.MetricsBase"
  25960. abstract="false"
  25961. static="false" final="false" visibility="public"
  25962. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  25963. <constructor name="MetricsLongValue" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  25964. static="false" final="false" visibility="public"
  25965. deprecated="not deprecated">
  25966. <doc>
  25967. <![CDATA[Constructor - create a new metric
  25968. @param nam the name of the metrics to be used to publish the metric
  25969. @param registry - where the metrics object will be registered]]>
  25970. </doc>
  25971. </constructor>
  25972. <constructor name="MetricsLongValue" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  25973. static="false" final="false" visibility="public"
  25974. deprecated="not deprecated">
  25975. <doc>
  25976. <![CDATA[Constructor - create a new metric
  25977. @param nam the name of the metrics to be used to publish the metric
  25978. @param registry - where the metrics object will be registered
  25979. A description of {@link #NO_DESCRIPTION} is used]]>
  25980. </doc>
  25981. </constructor>
  25982. <method name="set"
  25983. abstract="false" native="false" synchronized="true"
  25984. static="false" final="false" visibility="public"
  25985. deprecated="not deprecated">
  25986. <param name="newValue" type="long"/>
  25987. <doc>
  25988. <![CDATA[Set the value
  25989. @param newValue]]>
  25990. </doc>
  25991. </method>
  25992. <method name="get" return="long"
  25993. abstract="false" native="false" synchronized="true"
  25994. static="false" final="false" visibility="public"
  25995. deprecated="not deprecated">
  25996. <doc>
  25997. <![CDATA[Get value
  25998. @return the value last set]]>
  25999. </doc>
  26000. </method>
  26001. <method name="pushMetric"
  26002. abstract="false" native="false" synchronized="true"
  26003. static="false" final="false" visibility="public"
  26004. deprecated="not deprecated">
  26005. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  26006. <doc>
  26007. <![CDATA[Push the metric to the mr.
  26008. The metric is pushed only if it was updated since last push
  26009. Note this does NOT push to JMX
  26010. (JMX gets the info via {@link #get()}
  26011. @param mr]]>
  26012. </doc>
  26013. </method>
  26014. <doc>
  26015. <![CDATA[The MetricsLongValue class is for a metric that is not time varied
  26016. but changes only when it is set.
  26017. Each time its value is set, it is published only *once* at the next update
  26018. call.
  26019. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  26020. </doc>
  26021. </class>
  26022. <!-- end class org.apache.hadoop.metrics.util.MetricsLongValue -->
  26023. <!-- start class org.apache.hadoop.metrics.util.MetricsRegistry -->
  26024. <class name="MetricsRegistry" extends="java.lang.Object"
  26025. abstract="false"
  26026. static="false" final="false" visibility="public"
  26027. deprecated="in favor of {@link org.apache.hadoop.metrics2.lib.MetricsRegistry}.">
  26028. <constructor name="MetricsRegistry"
  26029. static="false" final="false" visibility="public"
  26030. deprecated="not deprecated">
  26031. </constructor>
  26032. <method name="size" return="int"
  26033. abstract="false" native="false" synchronized="false"
  26034. static="false" final="false" visibility="public"
  26035. deprecated="not deprecated">
  26036. <doc>
  26037. <![CDATA[@return number of metrics in the registry]]>
  26038. </doc>
  26039. </method>
  26040. <method name="add"
  26041. abstract="false" native="false" synchronized="true"
  26042. static="false" final="false" visibility="public"
  26043. deprecated="not deprecated">
  26044. <param name="metricsName" type="java.lang.String"/>
  26045. <param name="theMetricsObj" type="org.apache.hadoop.metrics.util.MetricsBase"/>
  26046. <doc>
  26047. <![CDATA[Add a new metrics to the registry
  26048. @param metricsName - the name
  26049. @param theMetricsObj - the metrics
  26050. @throws IllegalArgumentException if a name is already registered]]>
  26051. </doc>
  26052. </method>
  26053. <method name="get" return="org.apache.hadoop.metrics.util.MetricsBase"
  26054. abstract="false" native="false" synchronized="true"
  26055. static="false" final="false" visibility="public"
  26056. deprecated="not deprecated">
  26057. <param name="metricsName" type="java.lang.String"/>
  26058. <doc>
  26059. <![CDATA[@param metricsName
  26060. @return the metrics if there is one registered by the supplied name.
  26061. Returns null if none is registered]]>
  26062. </doc>
  26063. </method>
  26064. <method name="getKeyList" return="java.util.Collection"
  26065. abstract="false" native="false" synchronized="true"
  26066. static="false" final="false" visibility="public"
  26067. deprecated="not deprecated">
  26068. <doc>
  26069. <![CDATA[@return the list of metrics names]]>
  26070. </doc>
  26071. </method>
  26072. <method name="getMetricsList" return="java.util.Collection"
  26073. abstract="false" native="false" synchronized="true"
  26074. static="false" final="false" visibility="public"
  26075. deprecated="not deprecated">
  26076. <doc>
  26077. <![CDATA[@return the list of metrics]]>
  26078. </doc>
  26079. </method>
  26080. <doc>
  26081. <![CDATA[This is the registry for metrics.
  26082. Related set of metrics should be declared in a holding class and registered
  26083. in a registry for those metrics which is also stored in the the holding class.
  26084. @deprecated in favor of {@link org.apache.hadoop.metrics2.lib.MetricsRegistry}.]]>
  26085. </doc>
  26086. </class>
  26087. <!-- end class org.apache.hadoop.metrics.util.MetricsRegistry -->
  26088. <!-- start class org.apache.hadoop.metrics.util.MetricsTimeVaryingInt -->
  26089. <class name="MetricsTimeVaryingInt" extends="org.apache.hadoop.metrics.util.MetricsBase"
  26090. abstract="false"
  26091. static="false" final="false" visibility="public"
  26092. deprecated="in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableCounterInt}.">
  26093. <constructor name="MetricsTimeVaryingInt" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  26094. static="false" final="false" visibility="public"
  26095. deprecated="not deprecated">
  26096. <doc>
  26097. <![CDATA[Constructor - create a new metric
  26098. @param nam the name of the metrics to be used to publish the metric
  26099. @param registry - where the metrics object will be registered
  26100. @param description - the description]]>
  26101. </doc>
  26102. </constructor>
  26103. <constructor name="MetricsTimeVaryingInt" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  26104. static="false" final="false" visibility="public"
  26105. deprecated="not deprecated">
  26106. <doc>
  26107. <![CDATA[Constructor - create a new metric
  26108. @param nam the name of the metrics to be used to publish the metric
  26109. @param registry - where the metrics object will be registered
  26110. A description of {@link #NO_DESCRIPTION} is used]]>
  26111. </doc>
  26112. </constructor>
  26113. <method name="inc"
  26114. abstract="false" native="false" synchronized="true"
  26115. static="false" final="false" visibility="public"
  26116. deprecated="not deprecated">
  26117. <param name="incr" type="int"/>
  26118. <doc>
  26119. <![CDATA[Inc metrics for incr vlaue
  26120. @param incr - number of operations]]>
  26121. </doc>
  26122. </method>
  26123. <method name="inc"
  26124. abstract="false" native="false" synchronized="true"
  26125. static="false" final="false" visibility="public"
  26126. deprecated="not deprecated">
  26127. <doc>
  26128. <![CDATA[Inc metrics by one]]>
  26129. </doc>
  26130. </method>
  26131. <method name="pushMetric"
  26132. abstract="false" native="false" synchronized="true"
  26133. static="false" final="false" visibility="public"
  26134. deprecated="not deprecated">
  26135. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  26136. <doc>
  26137. <![CDATA[Push the delta metrics to the mr.
  26138. The delta is since the last push/interval.
  26139. Note this does NOT push to JMX
  26140. (JMX gets the info via {@link #previousIntervalValue}
  26141. @param mr]]>
  26142. </doc>
  26143. </method>
  26144. <method name="getPreviousIntervalValue" return="int"
  26145. abstract="false" native="false" synchronized="true"
  26146. static="false" final="false" visibility="public"
  26147. deprecated="not deprecated">
  26148. <doc>
  26149. <![CDATA[The Value at the Previous interval
  26150. @return prev interval value]]>
  26151. </doc>
  26152. </method>
  26153. <method name="getCurrentIntervalValue" return="int"
  26154. abstract="false" native="false" synchronized="true"
  26155. static="false" final="false" visibility="public"
  26156. deprecated="not deprecated">
  26157. <doc>
  26158. <![CDATA[The Value at the current interval
  26159. @return prev interval value]]>
  26160. </doc>
  26161. </method>
  26162. <doc>
  26163. <![CDATA[The MetricsTimeVaryingInt class is for a metric that naturally
  26164. varies over time (e.g. number of files created). The metrics is accumulated
  26165. over an interval (set in the metrics config file); the metrics is
  26166. published at the end of each interval and then
  26167. reset to zero. Hence the counter has the value in the current interval.
  26168. Note if one wants a time associated with the metric then use
  26169. @see org.apache.hadoop.metrics.util.MetricsTimeVaryingRate
  26170. @deprecated in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableCounterInt}.]]>
  26171. </doc>
  26172. </class>
  26173. <!-- end class org.apache.hadoop.metrics.util.MetricsTimeVaryingInt -->
  26174. <!-- start class org.apache.hadoop.metrics.util.MetricsTimeVaryingLong -->
  26175. <class name="MetricsTimeVaryingLong" extends="org.apache.hadoop.metrics.util.MetricsBase"
  26176. abstract="false"
  26177. static="false" final="false" visibility="public"
  26178. deprecated="in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableCounterLong}.">
  26179. <constructor name="MetricsTimeVaryingLong" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  26180. static="false" final="false" visibility="public"
  26181. deprecated="not deprecated">
  26182. <doc>
  26183. <![CDATA[Constructor - create a new metric
  26184. @param nam the name of the metrics to be used to publish the metric
  26185. @param registry - where the metrics object will be registered]]>
  26186. </doc>
  26187. </constructor>
  26188. <constructor name="MetricsTimeVaryingLong" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  26189. static="false" final="false" visibility="public"
  26190. deprecated="not deprecated">
  26191. <doc>
  26192. <![CDATA[Constructor - create a new metric
  26193. @param nam the name of the metrics to be used to publish the metric
  26194. @param registry - where the metrics object will be registered
  26195. A description of {@link #NO_DESCRIPTION} is used]]>
  26196. </doc>
  26197. </constructor>
  26198. <method name="inc"
  26199. abstract="false" native="false" synchronized="true"
  26200. static="false" final="false" visibility="public"
  26201. deprecated="not deprecated">
  26202. <param name="incr" type="long"/>
  26203. <doc>
  26204. <![CDATA[Inc metrics for incr vlaue
  26205. @param incr - number of operations]]>
  26206. </doc>
  26207. </method>
  26208. <method name="inc"
  26209. abstract="false" native="false" synchronized="true"
  26210. static="false" final="false" visibility="public"
  26211. deprecated="not deprecated">
  26212. <doc>
  26213. <![CDATA[Inc metrics by one]]>
  26214. </doc>
  26215. </method>
  26216. <method name="pushMetric"
  26217. abstract="false" native="false" synchronized="true"
  26218. static="false" final="false" visibility="public"
  26219. deprecated="not deprecated">
  26220. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  26221. <doc>
  26222. <![CDATA[Push the delta metrics to the mr.
  26223. The delta is since the last push/interval.
  26224. Note this does NOT push to JMX
  26225. (JMX gets the info via {@link #previousIntervalValue}
  26226. @param mr]]>
  26227. </doc>
  26228. </method>
  26229. <method name="getPreviousIntervalValue" return="long"
  26230. abstract="false" native="false" synchronized="true"
  26231. static="false" final="false" visibility="public"
  26232. deprecated="not deprecated">
  26233. <doc>
  26234. <![CDATA[The Value at the Previous interval
  26235. @return prev interval value]]>
  26236. </doc>
  26237. </method>
  26238. <method name="getCurrentIntervalValue" return="long"
  26239. abstract="false" native="false" synchronized="true"
  26240. static="false" final="false" visibility="public"
  26241. deprecated="not deprecated">
  26242. <doc>
  26243. <![CDATA[The Value at the current interval
  26244. @return prev interval value]]>
  26245. </doc>
  26246. </method>
  26247. <doc>
  26248. <![CDATA[The MetricsTimeVaryingLong class is for a metric that naturally
  26249. varies over time (e.g. number of files created). The metrics is accumulated
  26250. over an interval (set in the metrics config file); the metrics is
  26251. published at the end of each interval and then
  26252. reset to zero. Hence the counter has the value in the current interval.
  26253. Note if one wants a time associated with the metric then use
  26254. @see org.apache.hadoop.metrics.util.MetricsTimeVaryingRate
  26255. @deprecated in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableCounterLong}.]]>
  26256. </doc>
  26257. </class>
  26258. <!-- end class org.apache.hadoop.metrics.util.MetricsTimeVaryingLong -->
  26259. <!-- start class org.apache.hadoop.metrics.util.MetricsTimeVaryingRate -->
  26260. <class name="MetricsTimeVaryingRate" extends="org.apache.hadoop.metrics.util.MetricsBase"
  26261. abstract="false"
  26262. static="false" final="false" visibility="public"
  26263. deprecated="in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableGauge}.">
  26264. <constructor name="MetricsTimeVaryingRate" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  26265. static="false" final="false" visibility="public"
  26266. deprecated="not deprecated">
  26267. <doc>
  26268. <![CDATA[Constructor - create a new metric
  26269. @param nam the name of the metrics to be used to publish the metric
  26270. @param registry - where the metrics object will be registered]]>
  26271. </doc>
  26272. </constructor>
  26273. <constructor name="MetricsTimeVaryingRate" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  26274. static="false" final="false" visibility="public"
  26275. deprecated="not deprecated">
  26276. <doc>
  26277. <![CDATA[Constructor - create a new metric
  26278. @param nam the name of the metrics to be used to publish the metric
  26279. @param registry - where the metrics object will be registered
  26280. A description of {@link #NO_DESCRIPTION} is used]]>
  26281. </doc>
  26282. </constructor>
  26283. <method name="inc"
  26284. abstract="false" native="false" synchronized="true"
  26285. static="false" final="false" visibility="public"
  26286. deprecated="not deprecated">
  26287. <param name="numOps" type="int"/>
  26288. <param name="time" type="long"/>
  26289. <doc>
  26290. <![CDATA[Increment the metrics for numOps operations
  26291. @param numOps - number of operations
  26292. @param time - time for numOps operations]]>
  26293. </doc>
  26294. </method>
  26295. <method name="inc"
  26296. abstract="false" native="false" synchronized="true"
  26297. static="false" final="false" visibility="public"
  26298. deprecated="not deprecated">
  26299. <param name="time" type="long"/>
  26300. <doc>
  26301. <![CDATA[Increment the metrics for one operation
  26302. @param time for one operation]]>
  26303. </doc>
  26304. </method>
  26305. <method name="pushMetric"
  26306. abstract="false" native="false" synchronized="true"
  26307. static="false" final="false" visibility="public"
  26308. deprecated="not deprecated">
  26309. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  26310. <doc>
  26311. <![CDATA[Push the delta metrics to the mr.
  26312. The delta is since the last push/interval.
  26313. Note this does NOT push to JMX
  26314. (JMX gets the info via {@link #getPreviousIntervalAverageTime()} and
  26315. {@link #getPreviousIntervalNumOps()}
  26316. @param mr]]>
  26317. </doc>
  26318. </method>
  26319. <method name="getPreviousIntervalNumOps" return="int"
  26320. abstract="false" native="false" synchronized="true"
  26321. static="false" final="false" visibility="public"
  26322. deprecated="not deprecated">
  26323. <doc>
  26324. <![CDATA[The number of operations in the previous interval
  26325. @return - ops in prev interval]]>
  26326. </doc>
  26327. </method>
  26328. <method name="getPreviousIntervalAverageTime" return="long"
  26329. abstract="false" native="false" synchronized="true"
  26330. static="false" final="false" visibility="public"
  26331. deprecated="not deprecated">
  26332. <doc>
  26333. <![CDATA[The average rate of an operation in the previous interval
  26334. @return - the average rate.]]>
  26335. </doc>
  26336. </method>
  26337. <method name="getMinTime" return="long"
  26338. abstract="false" native="false" synchronized="true"
  26339. static="false" final="false" visibility="public"
  26340. deprecated="not deprecated">
  26341. <doc>
  26342. <![CDATA[The min time for a single operation since the last reset
  26343. {@link #resetMinMax()}
  26344. @return min time for an operation]]>
  26345. </doc>
  26346. </method>
  26347. <method name="getMaxTime" return="long"
  26348. abstract="false" native="false" synchronized="true"
  26349. static="false" final="false" visibility="public"
  26350. deprecated="not deprecated">
  26351. <doc>
  26352. <![CDATA[The max time for a single operation since the last reset
  26353. {@link #resetMinMax()}
  26354. @return max time for an operation]]>
  26355. </doc>
  26356. </method>
  26357. <method name="resetMinMax"
  26358. abstract="false" native="false" synchronized="true"
  26359. static="false" final="false" visibility="public"
  26360. deprecated="not deprecated">
  26361. <doc>
  26362. <![CDATA[Reset the min max values]]>
  26363. </doc>
  26364. </method>
  26365. <doc>
  26366. <![CDATA[The MetricsTimeVaryingRate class is for a rate based metric that
  26367. naturally varies over time (e.g. time taken to create a file).
  26368. The rate is averaged at each interval heart beat (the interval
  26369. is set in the metrics config file).
  26370. This class also keeps track of the min and max rates along with
  26371. a method to reset the min-max.
  26372. @deprecated in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableGauge}.]]>
  26373. </doc>
  26374. </class>
  26375. <!-- end class org.apache.hadoop.metrics.util.MetricsTimeVaryingRate -->
  26376. </package>
  26377. <package name="org.apache.hadoop.metrics2">
  26378. <!-- start class org.apache.hadoop.metrics2.Metric -->
  26379. <class name="Metric" extends="java.lang.Object"
  26380. abstract="true"
  26381. static="false" final="false" visibility="public"
  26382. deprecated="not deprecated">
  26383. <constructor name="Metric" type="java.lang.String"
  26384. static="false" final="false" visibility="public"
  26385. deprecated="not deprecated">
  26386. <doc>
  26387. <![CDATA[Construct the metric with name only
  26388. @param name of the metric]]>
  26389. </doc>
  26390. </constructor>
  26391. <constructor name="Metric" type="java.lang.String, java.lang.String"
  26392. static="false" final="false" visibility="public"
  26393. deprecated="not deprecated">
  26394. <doc>
  26395. <![CDATA[Construct the metric with a name and a description
  26396. @param name of the metric
  26397. @param desc description of the metric]]>
  26398. </doc>
  26399. </constructor>
  26400. <method name="name" return="java.lang.String"
  26401. abstract="false" native="false" synchronized="false"
  26402. static="false" final="false" visibility="public"
  26403. deprecated="not deprecated">
  26404. <doc>
  26405. <![CDATA[Get the name of the metric
  26406. @return the name]]>
  26407. </doc>
  26408. </method>
  26409. <method name="description" return="java.lang.String"
  26410. abstract="false" native="false" synchronized="false"
  26411. static="false" final="false" visibility="public"
  26412. deprecated="not deprecated">
  26413. <doc>
  26414. <![CDATA[Get the description of the metric
  26415. @return the description]]>
  26416. </doc>
  26417. </method>
  26418. <method name="value" return="java.lang.Number"
  26419. abstract="true" native="false" synchronized="false"
  26420. static="false" final="false" visibility="public"
  26421. deprecated="not deprecated">
  26422. <doc>
  26423. <![CDATA[Get the value of the metric
  26424. @return the value of the metric]]>
  26425. </doc>
  26426. </method>
  26427. <method name="visit"
  26428. abstract="true" native="false" synchronized="false"
  26429. static="false" final="false" visibility="public"
  26430. deprecated="not deprecated">
  26431. <param name="visitor" type="org.apache.hadoop.metrics2.MetricsVisitor"/>
  26432. <doc>
  26433. <![CDATA[Accept a visitor interface
  26434. @param visitor of the metric]]>
  26435. </doc>
  26436. </method>
  26437. <method name="equals" return="boolean"
  26438. abstract="false" native="false" synchronized="false"
  26439. static="false" final="false" visibility="public"
  26440. deprecated="not deprecated">
  26441. <param name="obj" type="java.lang.Object"/>
  26442. </method>
  26443. <method name="hashCode" return="int"
  26444. abstract="false" native="false" synchronized="false"
  26445. static="false" final="false" visibility="public"
  26446. deprecated="not deprecated">
  26447. </method>
  26448. <method name="toString" return="java.lang.String"
  26449. abstract="false" native="false" synchronized="false"
  26450. static="false" final="false" visibility="public"
  26451. deprecated="not deprecated">
  26452. </method>
  26453. <field name="NO_DESCRIPTION" type="java.lang.String"
  26454. transient="false" volatile="false"
  26455. static="true" final="true" visibility="public"
  26456. deprecated="not deprecated">
  26457. </field>
  26458. <doc>
  26459. <![CDATA[The immutable metric]]>
  26460. </doc>
  26461. </class>
  26462. <!-- end class org.apache.hadoop.metrics2.Metric -->
  26463. <!-- start class org.apache.hadoop.metrics2.MetricCounter -->
  26464. <class name="MetricCounter" extends="org.apache.hadoop.metrics2.Metric"
  26465. abstract="true"
  26466. static="false" final="false" visibility="public"
  26467. deprecated="not deprecated">
  26468. <constructor name="MetricCounter" type="java.lang.String, java.lang.String"
  26469. static="false" final="false" visibility="public"
  26470. deprecated="not deprecated">
  26471. <doc>
  26472. <![CDATA[Construct a counter metric
  26473. @param name of the metric
  26474. @param description of the metric]]>
  26475. </doc>
  26476. </constructor>
  26477. <method name="value" return="java.lang.Number"
  26478. abstract="true" native="false" synchronized="false"
  26479. static="false" final="false" visibility="public"
  26480. deprecated="not deprecated">
  26481. </method>
  26482. <doc>
  26483. <![CDATA[A generic immutable counter metric type
  26484. @param <T> value type of the metric]]>
  26485. </doc>
  26486. </class>
  26487. <!-- end class org.apache.hadoop.metrics2.MetricCounter -->
  26488. <!-- start class org.apache.hadoop.metrics2.MetricGauge -->
  26489. <class name="MetricGauge" extends="org.apache.hadoop.metrics2.Metric"
  26490. abstract="true"
  26491. static="false" final="false" visibility="public"
  26492. deprecated="not deprecated">
  26493. <constructor name="MetricGauge" type="java.lang.String, java.lang.String"
  26494. static="false" final="false" visibility="public"
  26495. deprecated="not deprecated">
  26496. <doc>
  26497. <![CDATA[Construct a gauge metric
  26498. @param name of the metric
  26499. @param description of the metric]]>
  26500. </doc>
  26501. </constructor>
  26502. <method name="value" return="java.lang.Number"
  26503. abstract="true" native="false" synchronized="false"
  26504. static="false" final="false" visibility="public"
  26505. deprecated="not deprecated">
  26506. </method>
  26507. <doc>
  26508. <![CDATA[A generic immutable gauge metric
  26509. @param <T> value type of the metric]]>
  26510. </doc>
  26511. </class>
  26512. <!-- end class org.apache.hadoop.metrics2.MetricGauge -->
  26513. <!-- start interface org.apache.hadoop.metrics2.MetricsBuilder -->
  26514. <interface name="MetricsBuilder" abstract="true"
  26515. static="false" final="false" visibility="public"
  26516. deprecated="not deprecated">
  26517. <method name="addRecord" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26518. abstract="false" native="false" synchronized="false"
  26519. static="false" final="false" visibility="public"
  26520. deprecated="not deprecated">
  26521. <param name="name" type="java.lang.String"/>
  26522. <doc>
  26523. <![CDATA[Add a metrics record
  26524. @param name of the record
  26525. @return a metrics record builder for the record]]>
  26526. </doc>
  26527. </method>
  26528. <doc>
  26529. <![CDATA[The metrics builder interface]]>
  26530. </doc>
  26531. </interface>
  26532. <!-- end interface org.apache.hadoop.metrics2.MetricsBuilder -->
  26533. <!-- start class org.apache.hadoop.metrics2.MetricsException -->
  26534. <class name="MetricsException" extends="java.lang.RuntimeException"
  26535. abstract="false"
  26536. static="false" final="false" visibility="public"
  26537. deprecated="not deprecated">
  26538. <constructor name="MetricsException" type="java.lang.String"
  26539. static="false" final="false" visibility="public"
  26540. deprecated="not deprecated">
  26541. <doc>
  26542. <![CDATA[Construct the exception with a message
  26543. @param message for the exception]]>
  26544. </doc>
  26545. </constructor>
  26546. <constructor name="MetricsException" type="java.lang.String, java.lang.Throwable"
  26547. static="false" final="false" visibility="public"
  26548. deprecated="not deprecated">
  26549. <doc>
  26550. <![CDATA[Construct the exception with a message and a cause
  26551. @param message for the exception
  26552. @param cause of the exception]]>
  26553. </doc>
  26554. </constructor>
  26555. <constructor name="MetricsException" type="java.lang.Throwable"
  26556. static="false" final="false" visibility="public"
  26557. deprecated="not deprecated">
  26558. <doc>
  26559. <![CDATA[Construct the exception with a cause
  26560. @param cause of the exception]]>
  26561. </doc>
  26562. </constructor>
  26563. <doc>
  26564. <![CDATA[A general metrics exception wrapper]]>
  26565. </doc>
  26566. </class>
  26567. <!-- end class org.apache.hadoop.metrics2.MetricsException -->
  26568. <!-- start class org.apache.hadoop.metrics2.MetricsFilter -->
  26569. <class name="MetricsFilter" extends="java.lang.Object"
  26570. abstract="true"
  26571. static="false" final="false" visibility="public"
  26572. deprecated="not deprecated">
  26573. <implements name="org.apache.hadoop.metrics2.MetricsPlugin"/>
  26574. <constructor name="MetricsFilter"
  26575. static="false" final="false" visibility="public"
  26576. deprecated="not deprecated">
  26577. </constructor>
  26578. <method name="init"
  26579. abstract="true" native="false" synchronized="false"
  26580. static="false" final="false" visibility="public"
  26581. deprecated="not deprecated">
  26582. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  26583. </method>
  26584. <method name="accepts" return="boolean"
  26585. abstract="true" native="false" synchronized="false"
  26586. static="false" final="false" visibility="public"
  26587. deprecated="not deprecated">
  26588. <param name="name" type="java.lang.String"/>
  26589. <doc>
  26590. <![CDATA[Whether to accept the name
  26591. @param name to filter on
  26592. @return true to accept; false otherwise.]]>
  26593. </doc>
  26594. </method>
  26595. <method name="accepts" return="boolean"
  26596. abstract="true" native="false" synchronized="false"
  26597. static="false" final="false" visibility="public"
  26598. deprecated="not deprecated">
  26599. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  26600. <doc>
  26601. <![CDATA[Whether to accept the tag
  26602. @param tag to filter on
  26603. @return true to accept; false otherwise]]>
  26604. </doc>
  26605. </method>
  26606. <method name="accepts" return="boolean"
  26607. abstract="true" native="false" synchronized="false"
  26608. static="false" final="false" visibility="public"
  26609. deprecated="not deprecated">
  26610. <param name="tags" type="java.lang.Iterable"/>
  26611. <doc>
  26612. <![CDATA[Whether to accept the tags
  26613. @param tags to filter on
  26614. @return true to accept; false otherwise]]>
  26615. </doc>
  26616. </method>
  26617. <method name="accepts" return="boolean"
  26618. abstract="false" native="false" synchronized="false"
  26619. static="false" final="false" visibility="public"
  26620. deprecated="not deprecated">
  26621. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  26622. <doc>
  26623. <![CDATA[Whether to accept the record
  26624. @param record to filter on
  26625. @return true to accept; false otherwise.]]>
  26626. </doc>
  26627. </method>
  26628. <doc>
  26629. <![CDATA[The metrics filter interface]]>
  26630. </doc>
  26631. </class>
  26632. <!-- end class org.apache.hadoop.metrics2.MetricsFilter -->
  26633. <!-- start interface org.apache.hadoop.metrics2.MetricsPlugin -->
  26634. <interface name="MetricsPlugin" abstract="true"
  26635. static="false" final="false" visibility="public"
  26636. deprecated="not deprecated">
  26637. <method name="init"
  26638. abstract="false" native="false" synchronized="false"
  26639. static="false" final="false" visibility="public"
  26640. deprecated="not deprecated">
  26641. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  26642. <doc>
  26643. <![CDATA[Initialize the plugin
  26644. @param conf the configuration object for the plugin]]>
  26645. </doc>
  26646. </method>
  26647. <doc>
  26648. <![CDATA[A fairly generic plugin interface]]>
  26649. </doc>
  26650. </interface>
  26651. <!-- end interface org.apache.hadoop.metrics2.MetricsPlugin -->
  26652. <!-- start interface org.apache.hadoop.metrics2.MetricsRecord -->
  26653. <interface name="MetricsRecord" abstract="true"
  26654. static="false" final="false" visibility="public"
  26655. deprecated="not deprecated">
  26656. <method name="timestamp" return="long"
  26657. abstract="false" native="false" synchronized="false"
  26658. static="false" final="false" visibility="public"
  26659. deprecated="not deprecated">
  26660. <doc>
  26661. <![CDATA[Get the timestamp of the metrics
  26662. @return the timestamp]]>
  26663. </doc>
  26664. </method>
  26665. <method name="name" return="java.lang.String"
  26666. abstract="false" native="false" synchronized="false"
  26667. static="false" final="false" visibility="public"
  26668. deprecated="not deprecated">
  26669. <doc>
  26670. <![CDATA[Get the record name of the metrics
  26671. @return the record name]]>
  26672. </doc>
  26673. </method>
  26674. <method name="context" return="java.lang.String"
  26675. abstract="false" native="false" synchronized="false"
  26676. static="false" final="false" visibility="public"
  26677. deprecated="not deprecated">
  26678. <doc>
  26679. <![CDATA[Get the context name of the metrics
  26680. @return the context name]]>
  26681. </doc>
  26682. </method>
  26683. <method name="tags" return="java.lang.Iterable"
  26684. abstract="false" native="false" synchronized="false"
  26685. static="false" final="false" visibility="public"
  26686. deprecated="not deprecated">
  26687. <doc>
  26688. <![CDATA[Get the tags of the record
  26689. @return the tags]]>
  26690. </doc>
  26691. </method>
  26692. <method name="metrics" return="java.lang.Iterable"
  26693. abstract="false" native="false" synchronized="false"
  26694. static="false" final="false" visibility="public"
  26695. deprecated="not deprecated">
  26696. <doc>
  26697. <![CDATA[Get the metrics of the record
  26698. @return the metrics]]>
  26699. </doc>
  26700. </method>
  26701. <doc>
  26702. <![CDATA[An immutable snapshot of metrics with a timestamp]]>
  26703. </doc>
  26704. </interface>
  26705. <!-- end interface org.apache.hadoop.metrics2.MetricsRecord -->
  26706. <!-- start class org.apache.hadoop.metrics2.MetricsRecordBuilder -->
  26707. <class name="MetricsRecordBuilder" extends="java.lang.Object"
  26708. abstract="true"
  26709. static="false" final="false" visibility="public"
  26710. deprecated="not deprecated">
  26711. <constructor name="MetricsRecordBuilder"
  26712. static="false" final="false" visibility="public"
  26713. deprecated="not deprecated">
  26714. </constructor>
  26715. <method name="tag" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26716. abstract="true" native="false" synchronized="false"
  26717. static="false" final="false" visibility="public"
  26718. deprecated="not deprecated">
  26719. <param name="name" type="java.lang.String"/>
  26720. <param name="description" type="java.lang.String"/>
  26721. <param name="value" type="java.lang.String"/>
  26722. <doc>
  26723. <![CDATA[Add a metrics tag
  26724. @param name of the tag
  26725. @param description of the tag
  26726. @param value of the tag
  26727. @return self]]>
  26728. </doc>
  26729. </method>
  26730. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26731. abstract="true" native="false" synchronized="false"
  26732. static="false" final="false" visibility="public"
  26733. deprecated="not deprecated">
  26734. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  26735. <doc>
  26736. <![CDATA[Add an immutable metrics tag object
  26737. @param tag a pre-made tag object (potentially save an object construction)
  26738. @return self]]>
  26739. </doc>
  26740. </method>
  26741. <method name="setContext" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26742. abstract="true" native="false" synchronized="false"
  26743. static="false" final="false" visibility="public"
  26744. deprecated="not deprecated">
  26745. <param name="value" type="java.lang.String"/>
  26746. <doc>
  26747. <![CDATA[Set the context tag
  26748. @param value of the context
  26749. @return self]]>
  26750. </doc>
  26751. </method>
  26752. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26753. abstract="true" native="false" synchronized="false"
  26754. static="false" final="false" visibility="public"
  26755. deprecated="not deprecated">
  26756. <param name="name" type="java.lang.String"/>
  26757. <param name="description" type="java.lang.String"/>
  26758. <param name="value" type="int"/>
  26759. <doc>
  26760. <![CDATA[Add an int counter metric
  26761. @param name of the metric
  26762. @param description of the metric
  26763. @param value of the metric
  26764. @return self]]>
  26765. </doc>
  26766. </method>
  26767. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26768. abstract="true" native="false" synchronized="false"
  26769. static="false" final="false" visibility="public"
  26770. deprecated="not deprecated">
  26771. <param name="name" type="java.lang.String"/>
  26772. <param name="description" type="java.lang.String"/>
  26773. <param name="value" type="long"/>
  26774. <doc>
  26775. <![CDATA[Add an long counter metric
  26776. @param name of the metric
  26777. @param description of the metric
  26778. @param value of the metric
  26779. @return self]]>
  26780. </doc>
  26781. </method>
  26782. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26783. abstract="true" native="false" synchronized="false"
  26784. static="false" final="false" visibility="public"
  26785. deprecated="not deprecated">
  26786. <param name="name" type="java.lang.String"/>
  26787. <param name="description" type="java.lang.String"/>
  26788. <param name="value" type="int"/>
  26789. <doc>
  26790. <![CDATA[Add a int gauge metric
  26791. @param name of the metric
  26792. @param description of the metric
  26793. @param value of the metric
  26794. @return self]]>
  26795. </doc>
  26796. </method>
  26797. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26798. abstract="true" native="false" synchronized="false"
  26799. static="false" final="false" visibility="public"
  26800. deprecated="not deprecated">
  26801. <param name="name" type="java.lang.String"/>
  26802. <param name="description" type="java.lang.String"/>
  26803. <param name="value" type="long"/>
  26804. <doc>
  26805. <![CDATA[Add a long gauge metric
  26806. @param name of the metric
  26807. @param description of the metric
  26808. @param value of the metric
  26809. @return self]]>
  26810. </doc>
  26811. </method>
  26812. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26813. abstract="true" native="false" synchronized="false"
  26814. static="false" final="false" visibility="public"
  26815. deprecated="not deprecated">
  26816. <param name="name" type="java.lang.String"/>
  26817. <param name="description" type="java.lang.String"/>
  26818. <param name="value" type="float"/>
  26819. <doc>
  26820. <![CDATA[Add a float gauge metric
  26821. @param name of the metric
  26822. @param description of the metric
  26823. @param value of the metric
  26824. @return self]]>
  26825. </doc>
  26826. </method>
  26827. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26828. abstract="true" native="false" synchronized="false"
  26829. static="false" final="false" visibility="public"
  26830. deprecated="not deprecated">
  26831. <param name="name" type="java.lang.String"/>
  26832. <param name="description" type="java.lang.String"/>
  26833. <param name="value" type="double"/>
  26834. <doc>
  26835. <![CDATA[Add a double gauge metric
  26836. @param name of the metric
  26837. @param description of the metric
  26838. @param value of the metric
  26839. @return self]]>
  26840. </doc>
  26841. </method>
  26842. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26843. abstract="true" native="false" synchronized="false"
  26844. static="false" final="false" visibility="public"
  26845. deprecated="not deprecated">
  26846. <param name="metric" type="org.apache.hadoop.metrics2.Metric"/>
  26847. <doc>
  26848. <![CDATA[Add a pre-made immutable metric object
  26849. @param metric the pre-made metric to save an object construction
  26850. @return self]]>
  26851. </doc>
  26852. </method>
  26853. <doc>
  26854. <![CDATA[The metrics record builder interface]]>
  26855. </doc>
  26856. </class>
  26857. <!-- end class org.apache.hadoop.metrics2.MetricsRecordBuilder -->
  26858. <!-- start interface org.apache.hadoop.metrics2.MetricsSink -->
  26859. <interface name="MetricsSink" abstract="true"
  26860. static="false" final="false" visibility="public"
  26861. deprecated="not deprecated">
  26862. <implements name="org.apache.hadoop.metrics2.MetricsPlugin"/>
  26863. <method name="putMetrics"
  26864. abstract="false" native="false" synchronized="false"
  26865. static="false" final="false" visibility="public"
  26866. deprecated="not deprecated">
  26867. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  26868. <doc>
  26869. <![CDATA[Put a metrics record in the sink
  26870. @param record the record to put]]>
  26871. </doc>
  26872. </method>
  26873. <method name="flush"
  26874. abstract="false" native="false" synchronized="false"
  26875. static="false" final="false" visibility="public"
  26876. deprecated="not deprecated">
  26877. <doc>
  26878. <![CDATA[Flush any buffered metrics]]>
  26879. </doc>
  26880. </method>
  26881. <doc>
  26882. <![CDATA[The metrics sink interface]]>
  26883. </doc>
  26884. </interface>
  26885. <!-- end interface org.apache.hadoop.metrics2.MetricsSink -->
  26886. <!-- start interface org.apache.hadoop.metrics2.MetricsSource -->
  26887. <interface name="MetricsSource" abstract="true"
  26888. static="false" final="false" visibility="public"
  26889. deprecated="not deprecated">
  26890. <method name="getMetrics"
  26891. abstract="false" native="false" synchronized="false"
  26892. static="false" final="false" visibility="public"
  26893. deprecated="not deprecated">
  26894. <param name="builder" type="org.apache.hadoop.metrics2.MetricsBuilder"/>
  26895. <param name="all" type="boolean"/>
  26896. <doc>
  26897. <![CDATA[Get metrics from the source
  26898. @param builder to contain the resulting metrics snapshot
  26899. @param all if true, return all metrics even if unchanged.]]>
  26900. </doc>
  26901. </method>
  26902. <doc>
  26903. <![CDATA[The metrics source interface]]>
  26904. </doc>
  26905. </interface>
  26906. <!-- end interface org.apache.hadoop.metrics2.MetricsSource -->
  26907. <!-- start interface org.apache.hadoop.metrics2.MetricsSystem -->
  26908. <interface name="MetricsSystem" abstract="true"
  26909. static="false" final="false" visibility="public"
  26910. deprecated="not deprecated">
  26911. <implements name="org.apache.hadoop.metrics2.MetricsSystemMXBean"/>
  26912. <method name="register" return="org.apache.hadoop.metrics2.MetricsSource"
  26913. abstract="false" native="false" synchronized="false"
  26914. static="false" final="false" visibility="public"
  26915. deprecated="not deprecated">
  26916. <param name="name" type="java.lang.String"/>
  26917. <param name="desc" type="java.lang.String"/>
  26918. <param name="source" type="org.apache.hadoop.metrics2.MetricsSource"/>
  26919. <doc>
  26920. <![CDATA[Register a metrics source
  26921. @param <T> the type of the source
  26922. @param source to register
  26923. @param name of the source. Must be unique.
  26924. @param desc the description of the source.
  26925. @return the source
  26926. @exception MetricsException]]>
  26927. </doc>
  26928. </method>
  26929. <method name="register" return="org.apache.hadoop.metrics2.MetricsSink"
  26930. abstract="false" native="false" synchronized="false"
  26931. static="false" final="false" visibility="public"
  26932. deprecated="not deprecated">
  26933. <param name="name" type="java.lang.String"/>
  26934. <param name="desc" type="java.lang.String"/>
  26935. <param name="sink" type="org.apache.hadoop.metrics2.MetricsSink"/>
  26936. <doc>
  26937. <![CDATA[Register a metrics sink
  26938. @param <T> the type of the sink
  26939. @param sink to register
  26940. @param name of the sink. Must be unique.
  26941. @param desc the description of the sink
  26942. @return the sink
  26943. @exception MetricsException]]>
  26944. </doc>
  26945. </method>
  26946. <method name="register"
  26947. abstract="false" native="false" synchronized="false"
  26948. static="false" final="false" visibility="public"
  26949. deprecated="not deprecated">
  26950. <param name="callback" type="org.apache.hadoop.metrics2.MetricsSystem.Callback"/>
  26951. <doc>
  26952. <![CDATA[Register a callback interface for JMX events
  26953. @param callback the callback object implementing the MBean interface.]]>
  26954. </doc>
  26955. </method>
  26956. <method name="shutdown"
  26957. abstract="false" native="false" synchronized="false"
  26958. static="false" final="false" visibility="public"
  26959. deprecated="not deprecated">
  26960. <doc>
  26961. <![CDATA[Shutdown the metrics system completely (usually during server shutdown.)
  26962. The MetricsSystemMXBean will be unregistered.]]>
  26963. </doc>
  26964. </method>
  26965. <doc>
  26966. <![CDATA[The metrics system interface]]>
  26967. </doc>
  26968. </interface>
  26969. <!-- end interface org.apache.hadoop.metrics2.MetricsSystem -->
  26970. <!-- start class org.apache.hadoop.metrics2.MetricsSystem.AbstractCallback -->
  26971. <class name="MetricsSystem.AbstractCallback" extends="java.lang.Object"
  26972. abstract="true"
  26973. static="true" final="false" visibility="public"
  26974. deprecated="not deprecated">
  26975. <implements name="org.apache.hadoop.metrics2.MetricsSystem.Callback"/>
  26976. <constructor name="MetricsSystem.AbstractCallback"
  26977. static="false" final="false" visibility="public"
  26978. deprecated="not deprecated">
  26979. </constructor>
  26980. <method name="preStart"
  26981. abstract="false" native="false" synchronized="false"
  26982. static="false" final="false" visibility="public"
  26983. deprecated="not deprecated">
  26984. </method>
  26985. <method name="postStart"
  26986. abstract="false" native="false" synchronized="false"
  26987. static="false" final="false" visibility="public"
  26988. deprecated="not deprecated">
  26989. </method>
  26990. <method name="preStop"
  26991. abstract="false" native="false" synchronized="false"
  26992. static="false" final="false" visibility="public"
  26993. deprecated="not deprecated">
  26994. </method>
  26995. <method name="postStop"
  26996. abstract="false" native="false" synchronized="false"
  26997. static="false" final="false" visibility="public"
  26998. deprecated="not deprecated">
  26999. </method>
  27000. <doc>
  27001. <![CDATA[Convenient abstract class for implementing callback interface]]>
  27002. </doc>
  27003. </class>
  27004. <!-- end class org.apache.hadoop.metrics2.MetricsSystem.AbstractCallback -->
  27005. <!-- start interface org.apache.hadoop.metrics2.MetricsSystem.Callback -->
  27006. <interface name="MetricsSystem.Callback" abstract="true"
  27007. static="true" final="false" visibility="public"
  27008. deprecated="not deprecated">
  27009. <method name="preStart"
  27010. abstract="false" native="false" synchronized="false"
  27011. static="false" final="false" visibility="public"
  27012. deprecated="not deprecated">
  27013. <doc>
  27014. <![CDATA[Called before start()]]>
  27015. </doc>
  27016. </method>
  27017. <method name="postStart"
  27018. abstract="false" native="false" synchronized="false"
  27019. static="false" final="false" visibility="public"
  27020. deprecated="not deprecated">
  27021. <doc>
  27022. <![CDATA[Called after start()]]>
  27023. </doc>
  27024. </method>
  27025. <method name="preStop"
  27026. abstract="false" native="false" synchronized="false"
  27027. static="false" final="false" visibility="public"
  27028. deprecated="not deprecated">
  27029. <doc>
  27030. <![CDATA[Called before stop()]]>
  27031. </doc>
  27032. </method>
  27033. <method name="postStop"
  27034. abstract="false" native="false" synchronized="false"
  27035. static="false" final="false" visibility="public"
  27036. deprecated="not deprecated">
  27037. <doc>
  27038. <![CDATA[Called after stop()]]>
  27039. </doc>
  27040. </method>
  27041. <doc>
  27042. <![CDATA[The metrics system callback interface]]>
  27043. </doc>
  27044. </interface>
  27045. <!-- end interface org.apache.hadoop.metrics2.MetricsSystem.Callback -->
  27046. <!-- start interface org.apache.hadoop.metrics2.MetricsSystemMXBean -->
  27047. <interface name="MetricsSystemMXBean" abstract="true"
  27048. static="false" final="false" visibility="public"
  27049. deprecated="not deprecated">
  27050. <method name="start"
  27051. abstract="false" native="false" synchronized="false"
  27052. static="false" final="false" visibility="public"
  27053. deprecated="not deprecated">
  27054. <doc>
  27055. <![CDATA[Start the metrics system
  27056. @exception MetricsException]]>
  27057. </doc>
  27058. </method>
  27059. <method name="stop"
  27060. abstract="false" native="false" synchronized="false"
  27061. static="false" final="false" visibility="public"
  27062. deprecated="not deprecated">
  27063. <doc>
  27064. <![CDATA[Stop the metrics system
  27065. @exception MetricsException]]>
  27066. </doc>
  27067. </method>
  27068. <method name="refreshMBeans"
  27069. abstract="false" native="false" synchronized="false"
  27070. static="false" final="false" visibility="public"
  27071. deprecated="not deprecated">
  27072. <doc>
  27073. <![CDATA[Force a refresh of MBeans
  27074. @exception MetricsException]]>
  27075. </doc>
  27076. </method>
  27077. <method name="currentConfig" return="java.lang.String"
  27078. abstract="false" native="false" synchronized="false"
  27079. static="false" final="false" visibility="public"
  27080. deprecated="not deprecated">
  27081. <doc>
  27082. <![CDATA[@return the current config
  27083. Note, avoid getConfig, as it'll turn it into an attribute,
  27084. which doesn't support multiple lines in the values.
  27085. @exception MetricsException]]>
  27086. </doc>
  27087. </method>
  27088. <doc>
  27089. <![CDATA[The JMX interface to the metrics system]]>
  27090. </doc>
  27091. </interface>
  27092. <!-- end interface org.apache.hadoop.metrics2.MetricsSystemMXBean -->
  27093. <!-- start class org.apache.hadoop.metrics2.MetricsTag -->
  27094. <class name="MetricsTag" extends="java.lang.Object"
  27095. abstract="false"
  27096. static="false" final="false" visibility="public"
  27097. deprecated="not deprecated">
  27098. <constructor name="MetricsTag" type="java.lang.String, java.lang.String, java.lang.String"
  27099. static="false" final="false" visibility="public"
  27100. deprecated="not deprecated">
  27101. <doc>
  27102. <![CDATA[Construct the tag with name, description and value
  27103. @param name of the tag
  27104. @param description of the tag
  27105. @param value of the tag]]>
  27106. </doc>
  27107. </constructor>
  27108. <method name="name" return="java.lang.String"
  27109. abstract="false" native="false" synchronized="false"
  27110. static="false" final="false" visibility="public"
  27111. deprecated="not deprecated">
  27112. <doc>
  27113. <![CDATA[Get the name of the tag
  27114. @return the name]]>
  27115. </doc>
  27116. </method>
  27117. <method name="description" return="java.lang.String"
  27118. abstract="false" native="false" synchronized="false"
  27119. static="false" final="false" visibility="public"
  27120. deprecated="not deprecated">
  27121. <doc>
  27122. <![CDATA[Get the description of the tag
  27123. @return the description]]>
  27124. </doc>
  27125. </method>
  27126. <method name="value" return="java.lang.String"
  27127. abstract="false" native="false" synchronized="false"
  27128. static="false" final="false" visibility="public"
  27129. deprecated="not deprecated">
  27130. <doc>
  27131. <![CDATA[Get the value of the tag
  27132. @return the value]]>
  27133. </doc>
  27134. </method>
  27135. <method name="equals" return="boolean"
  27136. abstract="false" native="false" synchronized="false"
  27137. static="false" final="false" visibility="public"
  27138. deprecated="not deprecated">
  27139. <param name="obj" type="java.lang.Object"/>
  27140. </method>
  27141. <method name="hashCode" return="int"
  27142. abstract="false" native="false" synchronized="false"
  27143. static="false" final="false" visibility="public"
  27144. deprecated="not deprecated">
  27145. </method>
  27146. <method name="toString" return="java.lang.String"
  27147. abstract="false" native="false" synchronized="false"
  27148. static="false" final="false" visibility="public"
  27149. deprecated="not deprecated">
  27150. </method>
  27151. <doc>
  27152. <![CDATA[Immutable tag for metrics (for grouping on host/queue/username etc.)]]>
  27153. </doc>
  27154. </class>
  27155. <!-- end class org.apache.hadoop.metrics2.MetricsTag -->
  27156. <!-- start interface org.apache.hadoop.metrics2.MetricsVisitor -->
  27157. <interface name="MetricsVisitor" abstract="true"
  27158. static="false" final="false" visibility="public"
  27159. deprecated="not deprecated">
  27160. <method name="gauge"
  27161. abstract="false" native="false" synchronized="false"
  27162. static="false" final="false" visibility="public"
  27163. deprecated="not deprecated">
  27164. <param name="metric" type="org.apache.hadoop.metrics2.MetricGauge"/>
  27165. <param name="value" type="int"/>
  27166. <doc>
  27167. <![CDATA[Callback for int value gauges
  27168. @param metric the metric object
  27169. @param value of the metric]]>
  27170. </doc>
  27171. </method>
  27172. <method name="gauge"
  27173. abstract="false" native="false" synchronized="false"
  27174. static="false" final="false" visibility="public"
  27175. deprecated="not deprecated">
  27176. <param name="metric" type="org.apache.hadoop.metrics2.MetricGauge"/>
  27177. <param name="value" type="long"/>
  27178. <doc>
  27179. <![CDATA[Callback for long value gauges
  27180. @param metric the metric object
  27181. @param value of the metric]]>
  27182. </doc>
  27183. </method>
  27184. <method name="gauge"
  27185. abstract="false" native="false" synchronized="false"
  27186. static="false" final="false" visibility="public"
  27187. deprecated="not deprecated">
  27188. <param name="metric" type="org.apache.hadoop.metrics2.MetricGauge"/>
  27189. <param name="value" type="float"/>
  27190. <doc>
  27191. <![CDATA[Callback for float value gauges
  27192. @param metric the metric object
  27193. @param value of the metric]]>
  27194. </doc>
  27195. </method>
  27196. <method name="gauge"
  27197. abstract="false" native="false" synchronized="false"
  27198. static="false" final="false" visibility="public"
  27199. deprecated="not deprecated">
  27200. <param name="metric" type="org.apache.hadoop.metrics2.MetricGauge"/>
  27201. <param name="value" type="double"/>
  27202. <doc>
  27203. <![CDATA[Callback for double value gauges
  27204. @param metric the metric object
  27205. @param value of the metric]]>
  27206. </doc>
  27207. </method>
  27208. <method name="counter"
  27209. abstract="false" native="false" synchronized="false"
  27210. static="false" final="false" visibility="public"
  27211. deprecated="not deprecated">
  27212. <param name="metric" type="org.apache.hadoop.metrics2.MetricCounter"/>
  27213. <param name="value" type="int"/>
  27214. <doc>
  27215. <![CDATA[Callback for integer value counters
  27216. @param metric the metric object
  27217. @param value of the metric]]>
  27218. </doc>
  27219. </method>
  27220. <method name="counter"
  27221. abstract="false" native="false" synchronized="false"
  27222. static="false" final="false" visibility="public"
  27223. deprecated="not deprecated">
  27224. <param name="metric" type="org.apache.hadoop.metrics2.MetricCounter"/>
  27225. <param name="value" type="long"/>
  27226. <doc>
  27227. <![CDATA[Callback for long value counters
  27228. @param metric the metric object
  27229. @param value of the metric]]>
  27230. </doc>
  27231. </method>
  27232. <doc>
  27233. <![CDATA[A visitor interface for metrics]]>
  27234. </doc>
  27235. </interface>
  27236. <!-- end interface org.apache.hadoop.metrics2.MetricsVisitor -->
  27237. </package>
  27238. <package name="org.apache.hadoop.metrics2.filter">
  27239. <!-- start class org.apache.hadoop.metrics2.filter.GlobFilter -->
  27240. <class name="GlobFilter" extends="org.apache.hadoop.metrics2.filter.AbstractPatternFilter"
  27241. abstract="false"
  27242. static="false" final="false" visibility="public"
  27243. deprecated="not deprecated">
  27244. <constructor name="GlobFilter"
  27245. static="false" final="false" visibility="public"
  27246. deprecated="not deprecated">
  27247. </constructor>
  27248. <method name="compile" return="java.util.regex.Pattern"
  27249. abstract="false" native="false" synchronized="false"
  27250. static="false" final="false" visibility="protected"
  27251. deprecated="not deprecated">
  27252. <param name="s" type="java.lang.String"/>
  27253. </method>
  27254. <doc>
  27255. <![CDATA[A glob pattern filter for metrics]]>
  27256. </doc>
  27257. </class>
  27258. <!-- end class org.apache.hadoop.metrics2.filter.GlobFilter -->
  27259. <!-- start class org.apache.hadoop.metrics2.filter.RegexFilter -->
  27260. <class name="RegexFilter" extends="org.apache.hadoop.metrics2.filter.AbstractPatternFilter"
  27261. abstract="false"
  27262. static="false" final="false" visibility="public"
  27263. deprecated="not deprecated">
  27264. <constructor name="RegexFilter"
  27265. static="false" final="false" visibility="public"
  27266. deprecated="not deprecated">
  27267. </constructor>
  27268. <method name="compile" return="java.util.regex.Pattern"
  27269. abstract="false" native="false" synchronized="false"
  27270. static="false" final="false" visibility="protected"
  27271. deprecated="not deprecated">
  27272. <param name="s" type="java.lang.String"/>
  27273. </method>
  27274. <doc>
  27275. <![CDATA[A regex pattern filter for metrics]]>
  27276. </doc>
  27277. </class>
  27278. <!-- end class org.apache.hadoop.metrics2.filter.RegexFilter -->
  27279. </package>
  27280. <package name="org.apache.hadoop.metrics2.impl">
  27281. <!-- start class org.apache.hadoop.metrics2.impl.MetricsConfigException -->
  27282. <class name="MetricsConfigException" extends="org.apache.hadoop.metrics2.MetricsException"
  27283. abstract="false"
  27284. static="false" final="false" visibility="public"
  27285. deprecated="not deprecated">
  27286. <doc>
  27287. <![CDATA[The metrics configuration runtime exception]]>
  27288. </doc>
  27289. </class>
  27290. <!-- end class org.apache.hadoop.metrics2.impl.MetricsConfigException -->
  27291. <!-- start class org.apache.hadoop.metrics2.impl.MetricsRecordImpl -->
  27292. <class name="MetricsRecordImpl" extends="java.lang.Object"
  27293. abstract="false"
  27294. static="false" final="false" visibility="public"
  27295. deprecated="not deprecated">
  27296. <implements name="org.apache.hadoop.metrics2.MetricsRecord"/>
  27297. <constructor name="MetricsRecordImpl" type="java.lang.String, long, java.lang.Iterable, java.lang.Iterable"
  27298. static="false" final="false" visibility="public"
  27299. deprecated="not deprecated">
  27300. <doc>
  27301. <![CDATA[Construct a metrics record
  27302. @param name of the record
  27303. @param timestamp of the record
  27304. @param tags of the record
  27305. @param metrics of the record]]>
  27306. </doc>
  27307. </constructor>
  27308. <method name="timestamp" return="long"
  27309. abstract="false" native="false" synchronized="false"
  27310. static="false" final="false" visibility="public"
  27311. deprecated="not deprecated">
  27312. </method>
  27313. <method name="name" return="java.lang.String"
  27314. abstract="false" native="false" synchronized="false"
  27315. static="false" final="false" visibility="public"
  27316. deprecated="not deprecated">
  27317. </method>
  27318. <method name="context" return="java.lang.String"
  27319. abstract="false" native="false" synchronized="false"
  27320. static="false" final="false" visibility="public"
  27321. deprecated="not deprecated">
  27322. </method>
  27323. <method name="tags" return="java.lang.Iterable"
  27324. abstract="false" native="false" synchronized="false"
  27325. static="false" final="false" visibility="public"
  27326. deprecated="not deprecated">
  27327. </method>
  27328. <method name="metrics" return="java.lang.Iterable"
  27329. abstract="false" native="false" synchronized="false"
  27330. static="false" final="false" visibility="public"
  27331. deprecated="not deprecated">
  27332. </method>
  27333. <method name="equals" return="boolean"
  27334. abstract="false" native="false" synchronized="false"
  27335. static="false" final="false" visibility="public"
  27336. deprecated="not deprecated">
  27337. <param name="obj" type="java.lang.Object"/>
  27338. </method>
  27339. <method name="hashCode" return="int"
  27340. abstract="false" native="false" synchronized="false"
  27341. static="false" final="false" visibility="public"
  27342. deprecated="not deprecated">
  27343. </method>
  27344. <method name="toString" return="java.lang.String"
  27345. abstract="false" native="false" synchronized="false"
  27346. static="false" final="false" visibility="public"
  27347. deprecated="not deprecated">
  27348. </method>
  27349. <field name="CONTEXT_KEY" type="java.lang.String"
  27350. transient="false" volatile="false"
  27351. static="true" final="true" visibility="protected"
  27352. deprecated="not deprecated">
  27353. </field>
  27354. <field name="DEFAULT_CONTEXT" type="java.lang.String"
  27355. transient="false" volatile="false"
  27356. static="true" final="true" visibility="protected"
  27357. deprecated="not deprecated">
  27358. </field>
  27359. </class>
  27360. <!-- end class org.apache.hadoop.metrics2.impl.MetricsRecordImpl -->
  27361. <!-- start class org.apache.hadoop.metrics2.impl.MetricsSystemImpl -->
  27362. <class name="MetricsSystemImpl" extends="java.lang.Object"
  27363. abstract="false"
  27364. static="false" final="false" visibility="public"
  27365. deprecated="not deprecated">
  27366. <implements name="org.apache.hadoop.metrics2.MetricsSystem"/>
  27367. <constructor name="MetricsSystemImpl" type="java.lang.String"
  27368. static="false" final="false" visibility="public"
  27369. deprecated="not deprecated">
  27370. <doc>
  27371. <![CDATA[Construct the metrics system
  27372. @param prefix for the system]]>
  27373. </doc>
  27374. </constructor>
  27375. <constructor name="MetricsSystemImpl"
  27376. static="false" final="false" visibility="public"
  27377. deprecated="not deprecated">
  27378. <doc>
  27379. <![CDATA[Construct the system but not initializing (read config etc.) it.]]>
  27380. </doc>
  27381. </constructor>
  27382. <method name="init"
  27383. abstract="false" native="false" synchronized="true"
  27384. static="false" final="false" visibility="public"
  27385. deprecated="not deprecated">
  27386. <param name="prefix" type="java.lang.String"/>
  27387. <doc>
  27388. <![CDATA[Initialized the metrics system with a prefix.
  27389. @param prefix the system will look for configs with the prefix]]>
  27390. </doc>
  27391. </method>
  27392. <method name="start"
  27393. abstract="false" native="false" synchronized="true"
  27394. static="false" final="false" visibility="public"
  27395. deprecated="not deprecated">
  27396. </method>
  27397. <method name="stop"
  27398. abstract="false" native="false" synchronized="true"
  27399. static="false" final="false" visibility="public"
  27400. deprecated="not deprecated">
  27401. </method>
  27402. <method name="register" return="org.apache.hadoop.metrics2.MetricsSource"
  27403. abstract="false" native="false" synchronized="true"
  27404. static="false" final="false" visibility="public"
  27405. deprecated="not deprecated">
  27406. <param name="name" type="java.lang.String"/>
  27407. <param name="desc" type="java.lang.String"/>
  27408. <param name="source" type="org.apache.hadoop.metrics2.MetricsSource"/>
  27409. </method>
  27410. <method name="register" return="org.apache.hadoop.metrics2.MetricsSink"
  27411. abstract="false" native="false" synchronized="true"
  27412. static="false" final="false" visibility="public"
  27413. deprecated="not deprecated">
  27414. <param name="name" type="java.lang.String"/>
  27415. <param name="description" type="java.lang.String"/>
  27416. <param name="sink" type="org.apache.hadoop.metrics2.MetricsSink"/>
  27417. </method>
  27418. <method name="register"
  27419. abstract="false" native="false" synchronized="true"
  27420. static="false" final="false" visibility="public"
  27421. deprecated="not deprecated">
  27422. <param name="callback" type="org.apache.hadoop.metrics2.MetricsSystem.Callback"/>
  27423. </method>
  27424. <method name="refreshMBeans"
  27425. abstract="false" native="false" synchronized="true"
  27426. static="false" final="false" visibility="public"
  27427. deprecated="not deprecated">
  27428. </method>
  27429. <method name="currentConfig" return="java.lang.String"
  27430. abstract="false" native="false" synchronized="true"
  27431. static="false" final="false" visibility="public"
  27432. deprecated="not deprecated">
  27433. </method>
  27434. <method name="shutdown"
  27435. abstract="false" native="false" synchronized="true"
  27436. static="false" final="false" visibility="public"
  27437. deprecated="not deprecated">
  27438. </method>
  27439. <doc>
  27440. <![CDATA[A base class for metrics system singletons]]>
  27441. </doc>
  27442. </class>
  27443. <!-- end class org.apache.hadoop.metrics2.impl.MetricsSystemImpl -->
  27444. </package>
  27445. <package name="org.apache.hadoop.metrics2.lib">
  27446. <!-- start class org.apache.hadoop.metrics2.lib.AbstractMetricsSource -->
  27447. <class name="AbstractMetricsSource" extends="java.lang.Object"
  27448. abstract="true"
  27449. static="false" final="false" visibility="public"
  27450. deprecated="not deprecated">
  27451. <implements name="org.apache.hadoop.metrics2.MetricsSource"/>
  27452. <constructor name="AbstractMetricsSource" type="java.lang.String, org.apache.hadoop.metrics2.lib.MetricMutableFactory"
  27453. static="false" final="false" visibility="public"
  27454. deprecated="not deprecated">
  27455. <doc>
  27456. <![CDATA[Construct the source with name and a mutable metrics factory
  27457. @param name of the default record
  27458. @param mf the factory to create mutable metrics]]>
  27459. </doc>
  27460. </constructor>
  27461. <constructor name="AbstractMetricsSource" type="java.lang.String"
  27462. static="false" final="false" visibility="public"
  27463. deprecated="not deprecated">
  27464. <doc>
  27465. <![CDATA[Construct the source with a name with a default factory
  27466. @param name of the default record]]>
  27467. </doc>
  27468. </constructor>
  27469. <method name="registry" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  27470. abstract="false" native="false" synchronized="false"
  27471. static="false" final="false" visibility="public"
  27472. deprecated="not deprecated">
  27473. <doc>
  27474. <![CDATA[@return the registry for mutable metrics]]>
  27475. </doc>
  27476. </method>
  27477. <method name="getMetrics"
  27478. abstract="false" native="false" synchronized="false"
  27479. static="false" final="false" visibility="public"
  27480. deprecated="not deprecated">
  27481. <param name="builder" type="org.apache.hadoop.metrics2.MetricsBuilder"/>
  27482. <param name="all" type="boolean"/>
  27483. </method>
  27484. <field name="registry" type="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  27485. transient="false" volatile="false"
  27486. static="false" final="true" visibility="protected"
  27487. deprecated="not deprecated">
  27488. </field>
  27489. <doc>
  27490. <![CDATA[A convenient base class for writing metrics sources]]>
  27491. </doc>
  27492. </class>
  27493. <!-- end class org.apache.hadoop.metrics2.lib.AbstractMetricsSource -->
  27494. <!-- start class org.apache.hadoop.metrics2.lib.DefaultMetricsSystem -->
  27495. <class name="DefaultMetricsSystem" extends="java.lang.Enum"
  27496. abstract="false"
  27497. static="false" final="true" visibility="public"
  27498. deprecated="not deprecated">
  27499. <implements name="org.apache.hadoop.metrics2.MetricsSystem"/>
  27500. <method name="values" return="org.apache.hadoop.metrics2.lib.DefaultMetricsSystem[]"
  27501. abstract="false" native="false" synchronized="false"
  27502. static="true" final="false" visibility="public"
  27503. deprecated="not deprecated">
  27504. </method>
  27505. <method name="valueOf" return="org.apache.hadoop.metrics2.lib.DefaultMetricsSystem"
  27506. abstract="false" native="false" synchronized="false"
  27507. static="true" final="false" visibility="public"
  27508. deprecated="not deprecated">
  27509. <param name="name" type="java.lang.String"/>
  27510. </method>
  27511. <method name="initialize" return="org.apache.hadoop.metrics2.MetricsSystem"
  27512. abstract="false" native="false" synchronized="false"
  27513. static="true" final="false" visibility="public"
  27514. deprecated="not deprecated">
  27515. <param name="prefix" type="java.lang.String"/>
  27516. <doc>
  27517. <![CDATA[Common static convenience method to initialize the metrics system
  27518. @param prefix for configuration
  27519. @return the metrics system instance]]>
  27520. </doc>
  27521. </method>
  27522. <method name="register" return="org.apache.hadoop.metrics2.MetricsSource"
  27523. abstract="false" native="false" synchronized="false"
  27524. static="false" final="false" visibility="public"
  27525. deprecated="not deprecated">
  27526. <param name="name" type="java.lang.String"/>
  27527. <param name="desc" type="java.lang.String"/>
  27528. <param name="source" type="org.apache.hadoop.metrics2.MetricsSource"/>
  27529. </method>
  27530. <method name="registerSource" return="org.apache.hadoop.metrics2.MetricsSource"
  27531. abstract="false" native="false" synchronized="false"
  27532. static="true" final="false" visibility="public"
  27533. deprecated="not deprecated">
  27534. <param name="name" type="java.lang.String"/>
  27535. <param name="desc" type="java.lang.String"/>
  27536. <param name="source" type="org.apache.hadoop.metrics2.MetricsSource"/>
  27537. <doc>
  27538. <![CDATA[Common static method to register a source
  27539. @param <T> type of the source
  27540. @param name of the source
  27541. @param desc description
  27542. @param source the source object to register
  27543. @return the source object]]>
  27544. </doc>
  27545. </method>
  27546. <method name="register" return="org.apache.hadoop.metrics2.MetricsSink"
  27547. abstract="false" native="false" synchronized="false"
  27548. static="false" final="false" visibility="public"
  27549. deprecated="not deprecated">
  27550. <param name="name" type="java.lang.String"/>
  27551. <param name="desc" type="java.lang.String"/>
  27552. <param name="sink" type="org.apache.hadoop.metrics2.MetricsSink"/>
  27553. </method>
  27554. <method name="register"
  27555. abstract="false" native="false" synchronized="false"
  27556. static="false" final="false" visibility="public"
  27557. deprecated="not deprecated">
  27558. <param name="callback" type="org.apache.hadoop.metrics2.MetricsSystem.Callback"/>
  27559. </method>
  27560. <method name="start"
  27561. abstract="false" native="false" synchronized="false"
  27562. static="false" final="false" visibility="public"
  27563. deprecated="not deprecated">
  27564. </method>
  27565. <method name="stop"
  27566. abstract="false" native="false" synchronized="false"
  27567. static="false" final="false" visibility="public"
  27568. deprecated="not deprecated">
  27569. </method>
  27570. <method name="refreshMBeans"
  27571. abstract="false" native="false" synchronized="false"
  27572. static="false" final="false" visibility="public"
  27573. deprecated="not deprecated">
  27574. </method>
  27575. <method name="currentConfig" return="java.lang.String"
  27576. abstract="false" native="false" synchronized="false"
  27577. static="false" final="false" visibility="public"
  27578. deprecated="not deprecated">
  27579. </method>
  27580. <method name="shutdown"
  27581. abstract="false" native="false" synchronized="false"
  27582. static="false" final="false" visibility="public"
  27583. deprecated="not deprecated">
  27584. </method>
  27585. <field name="INSTANCE" type="org.apache.hadoop.metrics2.lib.DefaultMetricsSystem"
  27586. transient="false" volatile="false"
  27587. static="true" final="true" visibility="public"
  27588. deprecated="not deprecated">
  27589. <doc>
  27590. <![CDATA[The singleton instance]]>
  27591. </doc>
  27592. </field>
  27593. <doc>
  27594. <![CDATA[The default metrics system singleton]]>
  27595. </doc>
  27596. </class>
  27597. <!-- end class org.apache.hadoop.metrics2.lib.DefaultMetricsSystem -->
  27598. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutable -->
  27599. <class name="MetricMutable" extends="java.lang.Object"
  27600. abstract="true"
  27601. static="false" final="false" visibility="public"
  27602. deprecated="not deprecated">
  27603. <constructor name="MetricMutable" type="java.lang.String, java.lang.String"
  27604. static="false" final="false" visibility="public"
  27605. deprecated="not deprecated">
  27606. <doc>
  27607. <![CDATA[Construct a mutable metric
  27608. @param name of the metric
  27609. @param description of the metric]]>
  27610. </doc>
  27611. </constructor>
  27612. <method name="snapshot"
  27613. abstract="true" native="false" synchronized="false"
  27614. static="false" final="false" visibility="public"
  27615. deprecated="not deprecated">
  27616. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  27617. <param name="all" type="boolean"/>
  27618. <doc>
  27619. <![CDATA[Get a snapshot/snapshot of the metric
  27620. @param builder the metrics record builder
  27621. @param all if true, snapshot unchanged metrics as well]]>
  27622. </doc>
  27623. </method>
  27624. <method name="snapshot"
  27625. abstract="false" native="false" synchronized="false"
  27626. static="false" final="false" visibility="public"
  27627. deprecated="not deprecated">
  27628. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  27629. <doc>
  27630. <![CDATA[Get a sampe/snapshot of metric if changed
  27631. @param builder the metrics record builder]]>
  27632. </doc>
  27633. </method>
  27634. <method name="setChanged"
  27635. abstract="false" native="false" synchronized="false"
  27636. static="false" final="false" visibility="protected"
  27637. deprecated="not deprecated">
  27638. <doc>
  27639. <![CDATA[Set the changed flag in mutable operations]]>
  27640. </doc>
  27641. </method>
  27642. <method name="clearChanged"
  27643. abstract="false" native="false" synchronized="false"
  27644. static="false" final="false" visibility="protected"
  27645. deprecated="not deprecated">
  27646. <doc>
  27647. <![CDATA[Clear the changed flag in the snapshot operations]]>
  27648. </doc>
  27649. </method>
  27650. <method name="changed" return="boolean"
  27651. abstract="false" native="false" synchronized="false"
  27652. static="false" final="false" visibility="public"
  27653. deprecated="not deprecated">
  27654. <doc>
  27655. <![CDATA[@return true if metric is changed since last snapshot/snapshot]]>
  27656. </doc>
  27657. </method>
  27658. <field name="name" type="java.lang.String"
  27659. transient="false" volatile="false"
  27660. static="false" final="true" visibility="public"
  27661. deprecated="not deprecated">
  27662. <doc>
  27663. <![CDATA[name of the metric]]>
  27664. </doc>
  27665. </field>
  27666. <field name="description" type="java.lang.String"
  27667. transient="false" volatile="false"
  27668. static="false" final="true" visibility="public"
  27669. deprecated="not deprecated">
  27670. <doc>
  27671. <![CDATA[description of the metric]]>
  27672. </doc>
  27673. </field>
  27674. <doc>
  27675. <![CDATA[The mutable metric interface]]>
  27676. </doc>
  27677. </class>
  27678. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutable -->
  27679. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableCounter -->
  27680. <class name="MetricMutableCounter" extends="org.apache.hadoop.metrics2.lib.MetricMutable"
  27681. abstract="true"
  27682. static="false" final="false" visibility="public"
  27683. deprecated="not deprecated">
  27684. <constructor name="MetricMutableCounter" type="java.lang.String, java.lang.String"
  27685. static="false" final="false" visibility="public"
  27686. deprecated="not deprecated">
  27687. <doc>
  27688. <![CDATA[Construct the metric with name and description
  27689. @param name
  27690. @param description]]>
  27691. </doc>
  27692. </constructor>
  27693. <method name="incr"
  27694. abstract="true" native="false" synchronized="false"
  27695. static="false" final="false" visibility="public"
  27696. deprecated="not deprecated">
  27697. <doc>
  27698. <![CDATA[Increment the metric value by 1.]]>
  27699. </doc>
  27700. </method>
  27701. <doc>
  27702. <![CDATA[The mutable counter (monotonically increasing) metric interface
  27703. @param <T> the type of the metric]]>
  27704. </doc>
  27705. </class>
  27706. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableCounter -->
  27707. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableCounterInt -->
  27708. <class name="MetricMutableCounterInt" extends="org.apache.hadoop.metrics2.lib.MetricMutableCounter"
  27709. abstract="false"
  27710. static="false" final="false" visibility="public"
  27711. deprecated="not deprecated">
  27712. <constructor name="MetricMutableCounterInt" type="java.lang.String, java.lang.String, int"
  27713. static="false" final="false" visibility="public"
  27714. deprecated="not deprecated">
  27715. <doc>
  27716. <![CDATA[Construct a mutable int counter
  27717. @param name of the counter
  27718. @param description of the counter
  27719. @param initValue the initial value of the counter]]>
  27720. </doc>
  27721. </constructor>
  27722. <method name="incr"
  27723. abstract="false" native="false" synchronized="true"
  27724. static="false" final="false" visibility="public"
  27725. deprecated="not deprecated">
  27726. </method>
  27727. <method name="incr"
  27728. abstract="false" native="false" synchronized="true"
  27729. static="false" final="false" visibility="public"
  27730. deprecated="not deprecated">
  27731. <param name="delta" type="int"/>
  27732. <doc>
  27733. <![CDATA[Increment the value by a delta
  27734. @param delta of the increment]]>
  27735. </doc>
  27736. </method>
  27737. <method name="snapshot"
  27738. abstract="false" native="false" synchronized="false"
  27739. static="false" final="false" visibility="public"
  27740. deprecated="not deprecated">
  27741. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  27742. <param name="all" type="boolean"/>
  27743. </method>
  27744. <doc>
  27745. <![CDATA[A mutable int counter for implementing metrics sources]]>
  27746. </doc>
  27747. </class>
  27748. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableCounterInt -->
  27749. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableCounterLong -->
  27750. <class name="MetricMutableCounterLong" extends="org.apache.hadoop.metrics2.lib.MetricMutableCounter"
  27751. abstract="false"
  27752. static="false" final="false" visibility="public"
  27753. deprecated="not deprecated">
  27754. <constructor name="MetricMutableCounterLong" type="java.lang.String, java.lang.String, long"
  27755. static="false" final="false" visibility="public"
  27756. deprecated="not deprecated">
  27757. <doc>
  27758. <![CDATA[Construct a mutable long counter
  27759. @param name of the counter
  27760. @param description of the counter
  27761. @param initValue the initial value of the counter]]>
  27762. </doc>
  27763. </constructor>
  27764. <method name="incr"
  27765. abstract="false" native="false" synchronized="true"
  27766. static="false" final="false" visibility="public"
  27767. deprecated="not deprecated">
  27768. </method>
  27769. <method name="incr"
  27770. abstract="false" native="false" synchronized="true"
  27771. static="false" final="false" visibility="public"
  27772. deprecated="not deprecated">
  27773. <param name="delta" type="long"/>
  27774. <doc>
  27775. <![CDATA[Increment the value by a delta
  27776. @param delta of the increment]]>
  27777. </doc>
  27778. </method>
  27779. <method name="snapshot"
  27780. abstract="false" native="false" synchronized="false"
  27781. static="false" final="false" visibility="public"
  27782. deprecated="not deprecated">
  27783. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  27784. <param name="all" type="boolean"/>
  27785. </method>
  27786. <doc>
  27787. <![CDATA[A mutable long counter]]>
  27788. </doc>
  27789. </class>
  27790. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableCounterLong -->
  27791. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableFactory -->
  27792. <class name="MetricMutableFactory" extends="java.lang.Object"
  27793. abstract="false"
  27794. static="false" final="false" visibility="public"
  27795. deprecated="not deprecated">
  27796. <constructor name="MetricMutableFactory"
  27797. static="false" final="false" visibility="public"
  27798. deprecated="not deprecated">
  27799. </constructor>
  27800. <method name="newMetric" return="org.apache.hadoop.metrics2.lib.MetricMutable"
  27801. abstract="false" native="false" synchronized="false"
  27802. static="false" final="false" visibility="public"
  27803. deprecated="not deprecated">
  27804. <param name="name" type="java.lang.String"/>
  27805. <doc>
  27806. <![CDATA[Create a new mutable metric by name
  27807. Usually overridden by app specific factory
  27808. @param name of the metric
  27809. @return a new metric object]]>
  27810. </doc>
  27811. </method>
  27812. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MetricMutableCounterInt"
  27813. abstract="false" native="false" synchronized="false"
  27814. static="false" final="false" visibility="public"
  27815. deprecated="not deprecated">
  27816. <param name="name" type="java.lang.String"/>
  27817. <param name="description" type="java.lang.String"/>
  27818. <param name="initValue" type="int"/>
  27819. <doc>
  27820. <![CDATA[Create a mutable integer counter
  27821. @param name of the metric
  27822. @param description of the metric
  27823. @param initValue of the metric
  27824. @return a new metric object]]>
  27825. </doc>
  27826. </method>
  27827. <method name="newCounterInt" return="org.apache.hadoop.metrics2.lib.MetricMutableCounterInt"
  27828. abstract="false" native="false" synchronized="false"
  27829. static="false" final="false" visibility="public"
  27830. deprecated="not deprecated">
  27831. <param name="name" type="java.lang.String"/>
  27832. <doc>
  27833. <![CDATA[Create a mutable integer counter with name only.
  27834. Usually gets overridden.
  27835. @param name of the metric
  27836. @return a new metric object]]>
  27837. </doc>
  27838. </method>
  27839. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MetricMutableCounterLong"
  27840. abstract="false" native="false" synchronized="false"
  27841. static="false" final="false" visibility="public"
  27842. deprecated="not deprecated">
  27843. <param name="name" type="java.lang.String"/>
  27844. <param name="description" type="java.lang.String"/>
  27845. <param name="initValue" type="long"/>
  27846. <doc>
  27847. <![CDATA[Create a mutable long integer counter
  27848. @param name of the metric
  27849. @param description of the metric
  27850. @param initValue of the metric
  27851. @return a new metric object]]>
  27852. </doc>
  27853. </method>
  27854. <method name="newCounterLong" return="org.apache.hadoop.metrics2.lib.MetricMutableCounterLong"
  27855. abstract="false" native="false" synchronized="false"
  27856. static="false" final="false" visibility="public"
  27857. deprecated="not deprecated">
  27858. <param name="name" type="java.lang.String"/>
  27859. <doc>
  27860. <![CDATA[Create a mutable long integer counter with a name
  27861. Usually gets overridden.
  27862. @param name of the metric
  27863. @return a new metric object]]>
  27864. </doc>
  27865. </method>
  27866. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt"
  27867. abstract="false" native="false" synchronized="false"
  27868. static="false" final="false" visibility="public"
  27869. deprecated="not deprecated">
  27870. <param name="name" type="java.lang.String"/>
  27871. <param name="description" type="java.lang.String"/>
  27872. <param name="initValue" type="int"/>
  27873. <doc>
  27874. <![CDATA[Create a mutable integer gauge
  27875. @param name of the metric
  27876. @param description of the metric
  27877. @param initValue of the metric
  27878. @return a new metric object]]>
  27879. </doc>
  27880. </method>
  27881. <method name="newGaugeInt" return="org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt"
  27882. abstract="false" native="false" synchronized="false"
  27883. static="false" final="false" visibility="public"
  27884. deprecated="not deprecated">
  27885. <param name="name" type="java.lang.String"/>
  27886. <doc>
  27887. <![CDATA[Create a mutable integer gauge with name only.
  27888. Usually gets overridden.
  27889. @param name of the metric
  27890. @return a new metric object]]>
  27891. </doc>
  27892. </method>
  27893. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MetricMutableGaugeLong"
  27894. abstract="false" native="false" synchronized="false"
  27895. static="false" final="false" visibility="public"
  27896. deprecated="not deprecated">
  27897. <param name="name" type="java.lang.String"/>
  27898. <param name="description" type="java.lang.String"/>
  27899. <param name="initValue" type="long"/>
  27900. <doc>
  27901. <![CDATA[Create a mutable long integer gauge
  27902. @param name of the metric
  27903. @param description of the metric
  27904. @param initValue of the metric
  27905. @return a new metric object]]>
  27906. </doc>
  27907. </method>
  27908. <method name="newGaugeLong" return="org.apache.hadoop.metrics2.lib.MetricMutableGaugeLong"
  27909. abstract="false" native="false" synchronized="false"
  27910. static="false" final="false" visibility="public"
  27911. deprecated="not deprecated">
  27912. <param name="name" type="java.lang.String"/>
  27913. <doc>
  27914. <![CDATA[Create a mutable long integer gauge with name only.
  27915. Usually gets overridden.
  27916. @param name of the metric
  27917. @return a new metric object]]>
  27918. </doc>
  27919. </method>
  27920. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MetricMutableStat"
  27921. abstract="false" native="false" synchronized="false"
  27922. static="false" final="false" visibility="public"
  27923. deprecated="not deprecated">
  27924. <param name="name" type="java.lang.String"/>
  27925. <param name="description" type="java.lang.String"/>
  27926. <param name="sampleName" type="java.lang.String"/>
  27927. <param name="valueName" type="java.lang.String"/>
  27928. <param name="extended" type="boolean"/>
  27929. <doc>
  27930. <![CDATA[Create a mutable stat metric
  27931. @param name of the metric
  27932. @param description of the metric
  27933. @param sampleName of the metric (e.g., ops)
  27934. @param valueName of the metric (e.g., time or latency)
  27935. @param extended if true, produces extended stat (stdev, min/max etc.)
  27936. @return a new metric object]]>
  27937. </doc>
  27938. </method>
  27939. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MetricMutableStat"
  27940. abstract="false" native="false" synchronized="false"
  27941. static="false" final="false" visibility="public"
  27942. deprecated="not deprecated">
  27943. <param name="name" type="java.lang.String"/>
  27944. <doc>
  27945. <![CDATA[Create a mutable stat metric with name only.
  27946. Usually gets overridden.
  27947. @param name of the metric
  27948. @return a new metric object]]>
  27949. </doc>
  27950. </method>
  27951. <doc>
  27952. <![CDATA[Factory class for mutable metrics]]>
  27953. </doc>
  27954. </class>
  27955. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableFactory -->
  27956. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableGauge -->
  27957. <class name="MetricMutableGauge" extends="org.apache.hadoop.metrics2.lib.MetricMutable"
  27958. abstract="true"
  27959. static="false" final="false" visibility="public"
  27960. deprecated="not deprecated">
  27961. <constructor name="MetricMutableGauge" type="java.lang.String, java.lang.String"
  27962. static="false" final="false" visibility="public"
  27963. deprecated="not deprecated">
  27964. <doc>
  27965. <![CDATA[Construct the metric with name and description
  27966. @param name of the metric
  27967. @param description of the metric]]>
  27968. </doc>
  27969. </constructor>
  27970. <method name="incr"
  27971. abstract="true" native="false" synchronized="false"
  27972. static="false" final="false" visibility="public"
  27973. deprecated="not deprecated">
  27974. <doc>
  27975. <![CDATA[Increment the value of the metric by 1]]>
  27976. </doc>
  27977. </method>
  27978. <method name="decr"
  27979. abstract="true" native="false" synchronized="false"
  27980. static="false" final="false" visibility="public"
  27981. deprecated="not deprecated">
  27982. <doc>
  27983. <![CDATA[Decrement the value of the metric by 1]]>
  27984. </doc>
  27985. </method>
  27986. <doc>
  27987. <![CDATA[The mutable gauge metric interface
  27988. @param <T> the type of the metric]]>
  27989. </doc>
  27990. </class>
  27991. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableGauge -->
  27992. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt -->
  27993. <class name="MetricMutableGaugeInt" extends="org.apache.hadoop.metrics2.lib.MetricMutableGauge"
  27994. abstract="false"
  27995. static="false" final="false" visibility="public"
  27996. deprecated="not deprecated">
  27997. <constructor name="MetricMutableGaugeInt" type="java.lang.String, java.lang.String, int"
  27998. static="false" final="false" visibility="public"
  27999. deprecated="not deprecated">
  28000. <doc>
  28001. <![CDATA[Construct a mutable int gauge metric
  28002. @param name of the gauge
  28003. @param description of the gauge
  28004. @param initValue the initial value of the gauge]]>
  28005. </doc>
  28006. </constructor>
  28007. <method name="incr"
  28008. abstract="false" native="false" synchronized="true"
  28009. static="false" final="false" visibility="public"
  28010. deprecated="not deprecated">
  28011. </method>
  28012. <method name="incr"
  28013. abstract="false" native="false" synchronized="true"
  28014. static="false" final="false" visibility="public"
  28015. deprecated="not deprecated">
  28016. <param name="delta" type="int"/>
  28017. <doc>
  28018. <![CDATA[Increment by delta
  28019. @param delta of the increment]]>
  28020. </doc>
  28021. </method>
  28022. <method name="decr"
  28023. abstract="false" native="false" synchronized="true"
  28024. static="false" final="false" visibility="public"
  28025. deprecated="not deprecated">
  28026. </method>
  28027. <method name="decr"
  28028. abstract="false" native="false" synchronized="true"
  28029. static="false" final="false" visibility="public"
  28030. deprecated="not deprecated">
  28031. <param name="delta" type="int"/>
  28032. <doc>
  28033. <![CDATA[decrement by delta
  28034. @param delta of the decrement]]>
  28035. </doc>
  28036. </method>
  28037. <method name="set"
  28038. abstract="false" native="false" synchronized="false"
  28039. static="false" final="false" visibility="public"
  28040. deprecated="not deprecated">
  28041. <param name="value" type="int"/>
  28042. <doc>
  28043. <![CDATA[Set the value of the metric
  28044. @param value to set]]>
  28045. </doc>
  28046. </method>
  28047. <method name="snapshot"
  28048. abstract="false" native="false" synchronized="false"
  28049. static="false" final="false" visibility="public"
  28050. deprecated="not deprecated">
  28051. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  28052. <param name="all" type="boolean"/>
  28053. </method>
  28054. <doc>
  28055. <![CDATA[A mutable int gauge]]>
  28056. </doc>
  28057. </class>
  28058. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt -->
  28059. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableGaugeLong -->
  28060. <class name="MetricMutableGaugeLong" extends="org.apache.hadoop.metrics2.lib.MetricMutableGauge"
  28061. abstract="false"
  28062. static="false" final="false" visibility="public"
  28063. deprecated="not deprecated">
  28064. <constructor name="MetricMutableGaugeLong" type="java.lang.String, java.lang.String, long"
  28065. static="false" final="false" visibility="public"
  28066. deprecated="not deprecated">
  28067. <doc>
  28068. <![CDATA[Construct a mutable long gauge metric
  28069. @param name of the gauge
  28070. @param description of the gauge
  28071. @param initValue the initial value of the gauge]]>
  28072. </doc>
  28073. </constructor>
  28074. <method name="incr"
  28075. abstract="false" native="false" synchronized="true"
  28076. static="false" final="false" visibility="public"
  28077. deprecated="not deprecated">
  28078. </method>
  28079. <method name="incr"
  28080. abstract="false" native="false" synchronized="true"
  28081. static="false" final="false" visibility="public"
  28082. deprecated="not deprecated">
  28083. <param name="delta" type="long"/>
  28084. <doc>
  28085. <![CDATA[Increment by delta
  28086. @param delta of the increment]]>
  28087. </doc>
  28088. </method>
  28089. <method name="decr"
  28090. abstract="false" native="false" synchronized="true"
  28091. static="false" final="false" visibility="public"
  28092. deprecated="not deprecated">
  28093. </method>
  28094. <method name="decr"
  28095. abstract="false" native="false" synchronized="true"
  28096. static="false" final="false" visibility="public"
  28097. deprecated="not deprecated">
  28098. <param name="delta" type="long"/>
  28099. <doc>
  28100. <![CDATA[decrement by delta
  28101. @param delta of the decrement]]>
  28102. </doc>
  28103. </method>
  28104. <method name="set"
  28105. abstract="false" native="false" synchronized="false"
  28106. static="false" final="false" visibility="public"
  28107. deprecated="not deprecated">
  28108. <param name="value" type="long"/>
  28109. <doc>
  28110. <![CDATA[Set the value of the metric
  28111. @param value to set]]>
  28112. </doc>
  28113. </method>
  28114. <method name="snapshot"
  28115. abstract="false" native="false" synchronized="false"
  28116. static="false" final="false" visibility="public"
  28117. deprecated="not deprecated">
  28118. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  28119. <param name="all" type="boolean"/>
  28120. </method>
  28121. <doc>
  28122. <![CDATA[A mutable long gauge]]>
  28123. </doc>
  28124. </class>
  28125. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableGaugeLong -->
  28126. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableStat -->
  28127. <class name="MetricMutableStat" extends="org.apache.hadoop.metrics2.lib.MetricMutable"
  28128. abstract="false"
  28129. static="false" final="false" visibility="public"
  28130. deprecated="not deprecated">
  28131. <constructor name="MetricMutableStat" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean"
  28132. static="false" final="false" visibility="public"
  28133. deprecated="not deprecated">
  28134. <doc>
  28135. <![CDATA[Construct a sample statistics metric
  28136. @param name of the metric
  28137. @param description of the metric
  28138. @param sampleName of the metric (e.g. "ops")
  28139. @param valueName of the metric (e.g. "time", "latency")
  28140. @param extended create extended stats (stdev, min/max etc.) by default.]]>
  28141. </doc>
  28142. </constructor>
  28143. <constructor name="MetricMutableStat" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String"
  28144. static="false" final="false" visibility="public"
  28145. deprecated="not deprecated">
  28146. <doc>
  28147. <![CDATA[Construct a snapshot stat metric with extended stat off by default
  28148. @param name of the metric
  28149. @param description of the metric
  28150. @param sampleName of the metric (e.g. "ops")
  28151. @param valueName of the metric (e.g. "time", "latency")]]>
  28152. </doc>
  28153. </constructor>
  28154. <method name="add"
  28155. abstract="false" native="false" synchronized="true"
  28156. static="false" final="false" visibility="public"
  28157. deprecated="not deprecated">
  28158. <param name="numSamples" type="long"/>
  28159. <param name="sum" type="long"/>
  28160. <doc>
  28161. <![CDATA[Add a number of samples and their sum to the running stat
  28162. @param numSamples number of samples
  28163. @param sum of the samples]]>
  28164. </doc>
  28165. </method>
  28166. <method name="add"
  28167. abstract="false" native="false" synchronized="true"
  28168. static="false" final="false" visibility="public"
  28169. deprecated="not deprecated">
  28170. <param name="value" type="long"/>
  28171. <doc>
  28172. <![CDATA[Add a snapshot to the metric
  28173. @param value of the metric]]>
  28174. </doc>
  28175. </method>
  28176. <method name="snapshot"
  28177. abstract="false" native="false" synchronized="true"
  28178. static="false" final="false" visibility="public"
  28179. deprecated="not deprecated">
  28180. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  28181. <param name="all" type="boolean"/>
  28182. </method>
  28183. <method name="resetMinMax"
  28184. abstract="false" native="false" synchronized="false"
  28185. static="false" final="false" visibility="public"
  28186. deprecated="not deprecated">
  28187. <doc>
  28188. <![CDATA[Reset the all time min max of the metric]]>
  28189. </doc>
  28190. </method>
  28191. <doc>
  28192. <![CDATA[A mutable metric with stats
  28193. Useful for keep throughput/latency stats.
  28194. e.g., new MetricMutableStat("rpcName", "rpcName stats", "ops", "time");]]>
  28195. </doc>
  28196. </class>
  28197. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableStat -->
  28198. <!-- start class org.apache.hadoop.metrics2.lib.MetricsRegistry -->
  28199. <class name="MetricsRegistry" extends="java.lang.Object"
  28200. abstract="false"
  28201. static="false" final="false" visibility="public"
  28202. deprecated="not deprecated">
  28203. <constructor name="MetricsRegistry" type="java.lang.String"
  28204. static="false" final="false" visibility="public"
  28205. deprecated="not deprecated">
  28206. <doc>
  28207. <![CDATA[Construct the registry with a record name
  28208. @param name of the record of the metrics]]>
  28209. </doc>
  28210. </constructor>
  28211. <constructor name="MetricsRegistry" type="java.lang.String, org.apache.hadoop.metrics2.lib.MetricMutableFactory"
  28212. static="false" final="false" visibility="public"
  28213. deprecated="not deprecated">
  28214. <doc>
  28215. <![CDATA[Construct the registry with a name and a metric factory
  28216. @param name of the record of the metrics
  28217. @param factory for creating new mutable metrics]]>
  28218. </doc>
  28219. </constructor>
  28220. <method name="name" return="java.lang.String"
  28221. abstract="false" native="false" synchronized="false"
  28222. static="false" final="false" visibility="public"
  28223. deprecated="not deprecated">
  28224. <doc>
  28225. <![CDATA[@return the name of the metrics registry]]>
  28226. </doc>
  28227. </method>
  28228. <method name="get" return="org.apache.hadoop.metrics2.lib.MetricMutable"
  28229. abstract="false" native="false" synchronized="false"
  28230. static="false" final="false" visibility="public"
  28231. deprecated="not deprecated">
  28232. <param name="name" type="java.lang.String"/>
  28233. <doc>
  28234. <![CDATA[Get a metric by name
  28235. @param name of the metric
  28236. @return the metric object]]>
  28237. </doc>
  28238. </method>
  28239. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MetricMutableCounterInt"
  28240. abstract="false" native="false" synchronized="false"
  28241. static="false" final="false" visibility="public"
  28242. deprecated="not deprecated">
  28243. <param name="name" type="java.lang.String"/>
  28244. <param name="description" type="java.lang.String"/>
  28245. <param name="initValue" type="int"/>
  28246. <doc>
  28247. <![CDATA[Create a mutable integer counter
  28248. @param name of the metric
  28249. @param description of the metric
  28250. @param initValue of the metric
  28251. @return a new counter object]]>
  28252. </doc>
  28253. </method>
  28254. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MetricMutableCounterLong"
  28255. abstract="false" native="false" synchronized="false"
  28256. static="false" final="false" visibility="public"
  28257. deprecated="not deprecated">
  28258. <param name="name" type="java.lang.String"/>
  28259. <param name="description" type="java.lang.String"/>
  28260. <param name="initValue" type="long"/>
  28261. <doc>
  28262. <![CDATA[Create a mutable long integer counter
  28263. @param name of the metric
  28264. @param description of the metric
  28265. @param initValue of the metric
  28266. @return a new counter object]]>
  28267. </doc>
  28268. </method>
  28269. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt"
  28270. abstract="false" native="false" synchronized="false"
  28271. static="false" final="false" visibility="public"
  28272. deprecated="not deprecated">
  28273. <param name="name" type="java.lang.String"/>
  28274. <param name="description" type="java.lang.String"/>
  28275. <param name="initValue" type="int"/>
  28276. <doc>
  28277. <![CDATA[Create a mutable integer gauge
  28278. @param name of the metric
  28279. @param description of the metric
  28280. @param initValue of the metric
  28281. @return a new gauge object]]>
  28282. </doc>
  28283. </method>
  28284. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MetricMutableGaugeLong"
  28285. abstract="false" native="false" synchronized="false"
  28286. static="false" final="false" visibility="public"
  28287. deprecated="not deprecated">
  28288. <param name="name" type="java.lang.String"/>
  28289. <param name="description" type="java.lang.String"/>
  28290. <param name="initValue" type="long"/>
  28291. <doc>
  28292. <![CDATA[Create a mutable long integer gauge
  28293. @param name of the metric
  28294. @param description of the metric
  28295. @param initValue of the metric
  28296. @return a new gauge object]]>
  28297. </doc>
  28298. </method>
  28299. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MetricMutableStat"
  28300. abstract="false" native="false" synchronized="false"
  28301. static="false" final="false" visibility="public"
  28302. deprecated="not deprecated">
  28303. <param name="name" type="java.lang.String"/>
  28304. <param name="description" type="java.lang.String"/>
  28305. <param name="sampleName" type="java.lang.String"/>
  28306. <param name="valueName" type="java.lang.String"/>
  28307. <param name="extended" type="boolean"/>
  28308. <doc>
  28309. <![CDATA[Create a mutable metric with stats
  28310. @param name of the metric
  28311. @param description of the metric
  28312. @param sampleName of the metric (e.g., "ops")
  28313. @param valueName of the metric (e.g., "time" or "latency")
  28314. @param extended produce extended stat (stdev, min/max etc.) if true.
  28315. @return a new metric object]]>
  28316. </doc>
  28317. </method>
  28318. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MetricMutableStat"
  28319. abstract="false" native="false" synchronized="false"
  28320. static="false" final="false" visibility="public"
  28321. deprecated="not deprecated">
  28322. <param name="name" type="java.lang.String"/>
  28323. <param name="description" type="java.lang.String"/>
  28324. <param name="sampleName" type="java.lang.String"/>
  28325. <param name="valueName" type="java.lang.String"/>
  28326. <doc>
  28327. <![CDATA[Create a mutable metric with stats
  28328. @param name of the metric
  28329. @param description of the metric
  28330. @param sampleName of the metric (e.g., "ops")
  28331. @param valueName of the metric (e.g., "time" or "latency")
  28332. @return a new metric object]]>
  28333. </doc>
  28334. </method>
  28335. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MetricMutableStat"
  28336. abstract="false" native="false" synchronized="false"
  28337. static="false" final="false" visibility="public"
  28338. deprecated="not deprecated">
  28339. <param name="name" type="java.lang.String"/>
  28340. <doc>
  28341. <![CDATA[Create a mutable metric with stats using the name only
  28342. @param name of the metric
  28343. @return a new metric object]]>
  28344. </doc>
  28345. </method>
  28346. <method name="incr"
  28347. abstract="false" native="false" synchronized="false"
  28348. static="false" final="false" visibility="public"
  28349. deprecated="not deprecated">
  28350. <param name="name" type="java.lang.String"/>
  28351. <doc>
  28352. <![CDATA[Increment a metric by name.
  28353. @param name of the metric]]>
  28354. </doc>
  28355. </method>
  28356. <method name="incr"
  28357. abstract="false" native="false" synchronized="false"
  28358. static="false" final="false" visibility="public"
  28359. deprecated="not deprecated">
  28360. <param name="name" type="java.lang.String"/>
  28361. <param name="factory" type="org.apache.hadoop.metrics2.lib.MetricMutableFactory"/>
  28362. <doc>
  28363. <![CDATA[Increment a metric by name.
  28364. @param name of the metric
  28365. @param factory to lazily create the metric if not null]]>
  28366. </doc>
  28367. </method>
  28368. <method name="decr"
  28369. abstract="false" native="false" synchronized="false"
  28370. static="false" final="false" visibility="public"
  28371. deprecated="not deprecated">
  28372. <param name="name" type="java.lang.String"/>
  28373. <doc>
  28374. <![CDATA[Decrement a metric by name.
  28375. @param name of the metric]]>
  28376. </doc>
  28377. </method>
  28378. <method name="decr"
  28379. abstract="false" native="false" synchronized="false"
  28380. static="false" final="false" visibility="public"
  28381. deprecated="not deprecated">
  28382. <param name="name" type="java.lang.String"/>
  28383. <param name="factory" type="org.apache.hadoop.metrics2.lib.MetricMutableFactory"/>
  28384. <doc>
  28385. <![CDATA[Decrement a metric by name.
  28386. @param name of the metric
  28387. @param factory to lazily create the metric if not null]]>
  28388. </doc>
  28389. </method>
  28390. <method name="add"
  28391. abstract="false" native="false" synchronized="false"
  28392. static="false" final="false" visibility="public"
  28393. deprecated="not deprecated">
  28394. <param name="name" type="java.lang.String"/>
  28395. <param name="value" type="long"/>
  28396. <doc>
  28397. <![CDATA[Add a value to a metric by name.
  28398. @param name of the metric
  28399. @param value of the snapshot to add]]>
  28400. </doc>
  28401. </method>
  28402. <method name="add"
  28403. abstract="false" native="false" synchronized="false"
  28404. static="false" final="false" visibility="public"
  28405. deprecated="not deprecated">
  28406. <param name="name" type="java.lang.String"/>
  28407. <param name="value" type="long"/>
  28408. <param name="factory" type="org.apache.hadoop.metrics2.lib.MetricMutableFactory"/>
  28409. <doc>
  28410. <![CDATA[Decrement a metric by name.
  28411. @param name of the metric
  28412. @param value of the snapshot to add
  28413. @param factory to lazily create the metric if not null]]>
  28414. </doc>
  28415. </method>
  28416. <method name="setContext" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  28417. abstract="false" native="false" synchronized="false"
  28418. static="false" final="false" visibility="public"
  28419. deprecated="not deprecated">
  28420. <param name="name" type="java.lang.String"/>
  28421. <doc>
  28422. <![CDATA[Set the metrics context tag
  28423. @param name of the context
  28424. @return the registry itself as a convenience]]>
  28425. </doc>
  28426. </method>
  28427. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  28428. abstract="false" native="false" synchronized="false"
  28429. static="false" final="false" visibility="public"
  28430. deprecated="not deprecated">
  28431. <param name="name" type="java.lang.String"/>
  28432. <param name="description" type="java.lang.String"/>
  28433. <param name="value" type="java.lang.String"/>
  28434. <doc>
  28435. <![CDATA[Add a tag to the metrics
  28436. @param name of the tag
  28437. @param description of the tag
  28438. @param value of the tag
  28439. @return the registry (for keep adding tags)]]>
  28440. </doc>
  28441. </method>
  28442. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  28443. abstract="false" native="false" synchronized="false"
  28444. static="false" final="false" visibility="public"
  28445. deprecated="not deprecated">
  28446. <param name="name" type="java.lang.String"/>
  28447. <param name="description" type="java.lang.String"/>
  28448. <param name="value" type="java.lang.String"/>
  28449. <param name="override" type="boolean"/>
  28450. <doc>
  28451. <![CDATA[Add a tag to the metrics
  28452. @param name of the tag
  28453. @param description of the tag
  28454. @param value of the tag
  28455. @param override existing tag if true
  28456. @return the registry (for keep adding tags)]]>
  28457. </doc>
  28458. </method>
  28459. <method name="tags" return="java.util.Set"
  28460. abstract="false" native="false" synchronized="false"
  28461. static="false" final="false" visibility="public"
  28462. deprecated="not deprecated">
  28463. <doc>
  28464. <![CDATA[Get the tags
  28465. @return the tags set]]>
  28466. </doc>
  28467. </method>
  28468. <method name="metrics" return="java.util.Set"
  28469. abstract="false" native="false" synchronized="false"
  28470. static="false" final="false" visibility="public"
  28471. deprecated="not deprecated">
  28472. <doc>
  28473. <![CDATA[Get the metrics
  28474. @return the metrics set]]>
  28475. </doc>
  28476. </method>
  28477. <method name="snapshot"
  28478. abstract="false" native="false" synchronized="false"
  28479. static="false" final="false" visibility="public"
  28480. deprecated="not deprecated">
  28481. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  28482. <param name="all" type="boolean"/>
  28483. <doc>
  28484. <![CDATA[Sample all the mutable metrics and put the snapshot in the builder
  28485. @param builder to contain the metrics snapshot
  28486. @param all get all the metrics even if the values are not changed.]]>
  28487. </doc>
  28488. </method>
  28489. <field name="CONTEXT_KEY" type="java.lang.String"
  28490. transient="false" volatile="false"
  28491. static="true" final="true" visibility="public"
  28492. deprecated="not deprecated">
  28493. <doc>
  28494. <![CDATA[key for the context tag]]>
  28495. </doc>
  28496. </field>
  28497. <field name="CONTEXT_DESC" type="java.lang.String"
  28498. transient="false" volatile="false"
  28499. static="true" final="true" visibility="public"
  28500. deprecated="not deprecated">
  28501. <doc>
  28502. <![CDATA[description for the context tag]]>
  28503. </doc>
  28504. </field>
  28505. <doc>
  28506. <![CDATA[An optional metrics registry class for creating and maintaining a
  28507. collection of MetricsMutables, making writing metrics source easier.]]>
  28508. </doc>
  28509. </class>
  28510. <!-- end class org.apache.hadoop.metrics2.lib.MetricsRegistry -->
  28511. </package>
  28512. <package name="org.apache.hadoop.metrics2.sink">
  28513. <!-- start class org.apache.hadoop.metrics2.sink.FileSink -->
  28514. <class name="FileSink" extends="java.lang.Object"
  28515. abstract="false"
  28516. static="false" final="false" visibility="public"
  28517. deprecated="not deprecated">
  28518. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  28519. <constructor name="FileSink"
  28520. static="false" final="false" visibility="public"
  28521. deprecated="not deprecated">
  28522. </constructor>
  28523. <method name="init"
  28524. abstract="false" native="false" synchronized="false"
  28525. static="false" final="false" visibility="public"
  28526. deprecated="not deprecated">
  28527. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  28528. </method>
  28529. <method name="putMetrics"
  28530. abstract="false" native="false" synchronized="false"
  28531. static="false" final="false" visibility="public"
  28532. deprecated="not deprecated">
  28533. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  28534. </method>
  28535. <method name="flush"
  28536. abstract="false" native="false" synchronized="false"
  28537. static="false" final="false" visibility="public"
  28538. deprecated="not deprecated">
  28539. </method>
  28540. </class>
  28541. <!-- end class org.apache.hadoop.metrics2.sink.FileSink -->
  28542. </package>
  28543. <package name="org.apache.hadoop.metrics2.sink.ganglia">
  28544. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink -->
  28545. <class name="AbstractGangliaSink" extends="java.lang.Object"
  28546. abstract="true"
  28547. static="false" final="false" visibility="public"
  28548. deprecated="not deprecated">
  28549. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  28550. <constructor name="AbstractGangliaSink"
  28551. static="false" final="false" visibility="public"
  28552. deprecated="not deprecated">
  28553. </constructor>
  28554. <method name="init"
  28555. abstract="false" native="false" synchronized="false"
  28556. static="false" final="false" visibility="public"
  28557. deprecated="not deprecated">
  28558. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  28559. </method>
  28560. <method name="flush"
  28561. abstract="false" native="false" synchronized="false"
  28562. static="false" final="false" visibility="public"
  28563. deprecated="not deprecated">
  28564. </method>
  28565. <method name="getGangliaConfForMetric" return="org.apache.hadoop.metrics2.sink.ganglia.GangliaConf"
  28566. abstract="false" native="false" synchronized="false"
  28567. static="false" final="false" visibility="protected"
  28568. deprecated="not deprecated">
  28569. <param name="metricName" type="java.lang.String"/>
  28570. <doc>
  28571. <![CDATA[Lookup GangliaConf from cache. If not found, return default values
  28572. @param metricName
  28573. @return looked up GangliaConf]]>
  28574. </doc>
  28575. </method>
  28576. <method name="getHostName" return="java.lang.String"
  28577. abstract="false" native="false" synchronized="false"
  28578. static="false" final="false" visibility="protected"
  28579. deprecated="not deprecated">
  28580. <doc>
  28581. <![CDATA[@return the hostName]]>
  28582. </doc>
  28583. </method>
  28584. <method name="xdr_string"
  28585. abstract="false" native="false" synchronized="false"
  28586. static="false" final="false" visibility="protected"
  28587. deprecated="not deprecated">
  28588. <param name="s" type="java.lang.String"/>
  28589. <doc>
  28590. <![CDATA[Puts a string into the buffer by first writing the size of the string as an
  28591. int, followed by the bytes of the string, padded if necessary to a multiple
  28592. of 4.
  28593. @param s the string to be written to buffer at offset location]]>
  28594. </doc>
  28595. </method>
  28596. <method name="xdr_int"
  28597. abstract="false" native="false" synchronized="false"
  28598. static="false" final="false" visibility="protected"
  28599. deprecated="not deprecated">
  28600. <param name="i" type="int"/>
  28601. <doc>
  28602. <![CDATA[Puts an integer into the buffer as 4 bytes, big-endian.]]>
  28603. </doc>
  28604. </method>
  28605. <method name="emitToGangliaHosts"
  28606. abstract="false" native="false" synchronized="false"
  28607. static="false" final="false" visibility="protected"
  28608. deprecated="not deprecated">
  28609. <exception name="IOException" type="java.io.IOException"/>
  28610. <doc>
  28611. <![CDATA[Sends Ganglia Metrics to the configured hosts
  28612. @throws IOException]]>
  28613. </doc>
  28614. </method>
  28615. <method name="isSupportSparseMetrics" return="boolean"
  28616. abstract="false" native="false" synchronized="false"
  28617. static="false" final="false" visibility="protected"
  28618. deprecated="not deprecated">
  28619. <doc>
  28620. <![CDATA[@return whether sparse metrics are supported]]>
  28621. </doc>
  28622. </method>
  28623. <field name="LOG" type="org.apache.commons.logging.Log"
  28624. transient="false" volatile="false"
  28625. static="false" final="true" visibility="public"
  28626. deprecated="not deprecated">
  28627. </field>
  28628. <field name="DEFAULT_UNITS" type="java.lang.String"
  28629. transient="false" volatile="false"
  28630. static="true" final="true" visibility="public"
  28631. deprecated="not deprecated">
  28632. </field>
  28633. <field name="DEFAULT_TMAX" type="int"
  28634. transient="false" volatile="false"
  28635. static="true" final="true" visibility="public"
  28636. deprecated="not deprecated">
  28637. </field>
  28638. <field name="DEFAULT_DMAX" type="int"
  28639. transient="false" volatile="false"
  28640. static="true" final="true" visibility="public"
  28641. deprecated="not deprecated">
  28642. </field>
  28643. <field name="DEFAULT_SLOPE" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  28644. transient="false" volatile="false"
  28645. static="true" final="true" visibility="public"
  28646. deprecated="not deprecated">
  28647. </field>
  28648. <field name="DEFAULT_PORT" type="int"
  28649. transient="false" volatile="false"
  28650. static="true" final="true" visibility="public"
  28651. deprecated="not deprecated">
  28652. </field>
  28653. <field name="SERVERS_PROPERTY" type="java.lang.String"
  28654. transient="false" volatile="false"
  28655. static="true" final="true" visibility="public"
  28656. deprecated="not deprecated">
  28657. </field>
  28658. <field name="BUFFER_SIZE" type="int"
  28659. transient="false" volatile="false"
  28660. static="true" final="true" visibility="public"
  28661. deprecated="not deprecated">
  28662. </field>
  28663. <field name="SUPPORT_SPARSE_METRICS_PROPERTY" type="java.lang.String"
  28664. transient="false" volatile="false"
  28665. static="true" final="true" visibility="public"
  28666. deprecated="not deprecated">
  28667. </field>
  28668. <field name="SUPPORT_SPARSE_METRICS_DEFAULT" type="boolean"
  28669. transient="false" volatile="false"
  28670. static="true" final="true" visibility="public"
  28671. deprecated="not deprecated">
  28672. </field>
  28673. <field name="EQUAL" type="java.lang.String"
  28674. transient="false" volatile="false"
  28675. static="true" final="true" visibility="public"
  28676. deprecated="not deprecated">
  28677. </field>
  28678. <field name="gangliaMetricVisitor" type="org.apache.hadoop.metrics2.sink.ganglia.GangliaMetricVisitor"
  28679. transient="false" volatile="false"
  28680. static="false" final="true" visibility="protected"
  28681. deprecated="not deprecated">
  28682. <doc>
  28683. <![CDATA[Used for visiting Metrics]]>
  28684. </doc>
  28685. </field>
  28686. <doc>
  28687. <![CDATA[This the base class for Ganglia sink classes using metrics2. Lot of the code
  28688. has been derived from org.apache.hadoop.metrics.ganglia.GangliaContext.
  28689. As per the documentation, sink implementations doesn't have to worry about
  28690. thread safety. Hence the code wasn't written for thread safety and should
  28691. be modified in case the above assumption changes in the future.]]>
  28692. </doc>
  28693. </class>
  28694. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink -->
  28695. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType -->
  28696. <class name="AbstractGangliaSink.GangliaConfType" extends="java.lang.Enum"
  28697. abstract="false"
  28698. static="true" final="true" visibility="public"
  28699. deprecated="not deprecated">
  28700. <method name="values" return="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType[]"
  28701. abstract="false" native="false" synchronized="false"
  28702. static="true" final="false" visibility="public"
  28703. deprecated="not deprecated">
  28704. </method>
  28705. <method name="valueOf" return="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType"
  28706. abstract="false" native="false" synchronized="false"
  28707. static="true" final="false" visibility="public"
  28708. deprecated="not deprecated">
  28709. <param name="name" type="java.lang.String"/>
  28710. </method>
  28711. <field name="slope" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType"
  28712. transient="false" volatile="false"
  28713. static="true" final="true" visibility="public"
  28714. deprecated="not deprecated">
  28715. </field>
  28716. <field name="units" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType"
  28717. transient="false" volatile="false"
  28718. static="true" final="true" visibility="public"
  28719. deprecated="not deprecated">
  28720. </field>
  28721. <field name="dmax" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType"
  28722. transient="false" volatile="false"
  28723. static="true" final="true" visibility="public"
  28724. deprecated="not deprecated">
  28725. </field>
  28726. <field name="tmax" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType"
  28727. transient="false" volatile="false"
  28728. static="true" final="true" visibility="public"
  28729. deprecated="not deprecated">
  28730. </field>
  28731. <doc>
  28732. <![CDATA[define enum for various type of conf]]>
  28733. </doc>
  28734. </class>
  28735. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType -->
  28736. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope -->
  28737. <class name="AbstractGangliaSink.GangliaSlope" extends="java.lang.Enum"
  28738. abstract="false"
  28739. static="true" final="true" visibility="public"
  28740. deprecated="not deprecated">
  28741. <method name="values" return="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope[]"
  28742. abstract="false" native="false" synchronized="false"
  28743. static="true" final="false" visibility="public"
  28744. deprecated="not deprecated">
  28745. </method>
  28746. <method name="valueOf" return="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  28747. abstract="false" native="false" synchronized="false"
  28748. static="true" final="false" visibility="public"
  28749. deprecated="not deprecated">
  28750. <param name="name" type="java.lang.String"/>
  28751. </method>
  28752. <field name="zero" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  28753. transient="false" volatile="false"
  28754. static="true" final="true" visibility="public"
  28755. deprecated="not deprecated">
  28756. </field>
  28757. <field name="positive" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  28758. transient="false" volatile="false"
  28759. static="true" final="true" visibility="public"
  28760. deprecated="not deprecated">
  28761. </field>
  28762. <field name="negative" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  28763. transient="false" volatile="false"
  28764. static="true" final="true" visibility="public"
  28765. deprecated="not deprecated">
  28766. </field>
  28767. <field name="both" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  28768. transient="false" volatile="false"
  28769. static="true" final="true" visibility="public"
  28770. deprecated="not deprecated">
  28771. </field>
  28772. <doc>
  28773. <![CDATA[ganglia slope values which equal the ordinal]]>
  28774. </doc>
  28775. </class>
  28776. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope -->
  28777. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.GangliaSink30 -->
  28778. <class name="GangliaSink30" extends="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink"
  28779. abstract="false"
  28780. static="false" final="false" visibility="public"
  28781. deprecated="not deprecated">
  28782. <constructor name="GangliaSink30"
  28783. static="false" final="false" visibility="public"
  28784. deprecated="not deprecated">
  28785. </constructor>
  28786. <method name="putMetrics"
  28787. abstract="false" native="false" synchronized="false"
  28788. static="false" final="false" visibility="public"
  28789. deprecated="not deprecated">
  28790. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  28791. </method>
  28792. <method name="emitMetric"
  28793. abstract="false" native="false" synchronized="false"
  28794. static="false" final="false" visibility="protected"
  28795. deprecated="not deprecated">
  28796. <param name="groupName" type="java.lang.String"/>
  28797. <param name="name" type="java.lang.String"/>
  28798. <param name="type" type="java.lang.String"/>
  28799. <param name="value" type="java.lang.String"/>
  28800. <param name="gConf" type="org.apache.hadoop.metrics2.sink.ganglia.GangliaConf"/>
  28801. <param name="gSlope" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"/>
  28802. <exception name="IOException" type="java.io.IOException"/>
  28803. <doc>
  28804. <![CDATA[The method sends metrics to Ganglia servers. The method has been taken from
  28805. org.apache.hadoop.metrics.ganglia.GangliaContext30 with minimal changes in
  28806. order to keep it in sync.
  28807. @param groupName The group name of the metric
  28808. @param name The metric name
  28809. @param type The type of the metric
  28810. @param value The value of the metric
  28811. @param gConf The GangliaConf for this metric
  28812. @param gSlope The slope for this metric
  28813. @throws IOException]]>
  28814. </doc>
  28815. </method>
  28816. <field name="LOG" type="org.apache.commons.logging.Log"
  28817. transient="false" volatile="false"
  28818. static="false" final="true" visibility="public"
  28819. deprecated="not deprecated">
  28820. </field>
  28821. <field name="metricsCache" type="org.apache.hadoop.metrics2.util.MetricsCache"
  28822. transient="false" volatile="false"
  28823. static="false" final="false" visibility="protected"
  28824. deprecated="not deprecated">
  28825. </field>
  28826. <doc>
  28827. <![CDATA[This code supports Ganglia 3.0]]>
  28828. </doc>
  28829. </class>
  28830. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.GangliaSink30 -->
  28831. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.GangliaSink31 -->
  28832. <class name="GangliaSink31" extends="org.apache.hadoop.metrics2.sink.ganglia.GangliaSink30"
  28833. abstract="false"
  28834. static="false" final="false" visibility="public"
  28835. deprecated="not deprecated">
  28836. <constructor name="GangliaSink31"
  28837. static="false" final="false" visibility="public"
  28838. deprecated="not deprecated">
  28839. </constructor>
  28840. <method name="emitMetric"
  28841. abstract="false" native="false" synchronized="false"
  28842. static="false" final="false" visibility="protected"
  28843. deprecated="not deprecated">
  28844. <param name="groupName" type="java.lang.String"/>
  28845. <param name="name" type="java.lang.String"/>
  28846. <param name="type" type="java.lang.String"/>
  28847. <param name="value" type="java.lang.String"/>
  28848. <param name="gConf" type="org.apache.hadoop.metrics2.sink.ganglia.GangliaConf"/>
  28849. <param name="gSlope" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"/>
  28850. <exception name="IOException" type="java.io.IOException"/>
  28851. <doc>
  28852. <![CDATA[The method sends metrics to Ganglia servers. The method has been taken from
  28853. org.apache.hadoop.metrics.ganglia.GangliaContext31 with minimal changes in
  28854. order to keep it in sync.
  28855. @param groupName The group name of the metric
  28856. @param name The metric name
  28857. @param type The type of the metric
  28858. @param value The value of the metric
  28859. @param gConf The GangliaConf for this metric
  28860. @param gSlope The slope for this metric
  28861. @throws IOException]]>
  28862. </doc>
  28863. </method>
  28864. <field name="LOG" type="org.apache.commons.logging.Log"
  28865. transient="false" volatile="false"
  28866. static="false" final="true" visibility="public"
  28867. deprecated="not deprecated">
  28868. </field>
  28869. <doc>
  28870. <![CDATA[This code supports Ganglia 3.1]]>
  28871. </doc>
  28872. </class>
  28873. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.GangliaSink31 -->
  28874. </package>
  28875. <package name="org.apache.hadoop.metrics2.source">
  28876. <!-- start class org.apache.hadoop.metrics2.source.JvmMetricsSource -->
  28877. <class name="JvmMetricsSource" extends="java.lang.Object"
  28878. abstract="false"
  28879. static="false" final="false" visibility="public"
  28880. deprecated="not deprecated">
  28881. <implements name="org.apache.hadoop.metrics2.MetricsSource"/>
  28882. <method name="create" return="org.apache.hadoop.metrics2.source.JvmMetricsSource"
  28883. abstract="false" native="false" synchronized="false"
  28884. static="true" final="false" visibility="public"
  28885. deprecated="not deprecated">
  28886. <param name="processName" type="java.lang.String"/>
  28887. <param name="sessionId" type="java.lang.String"/>
  28888. <param name="ms" type="org.apache.hadoop.metrics2.MetricsSystem"/>
  28889. </method>
  28890. <method name="create" return="org.apache.hadoop.metrics2.source.JvmMetricsSource"
  28891. abstract="false" native="false" synchronized="false"
  28892. static="true" final="false" visibility="public"
  28893. deprecated="not deprecated">
  28894. <param name="processName" type="java.lang.String"/>
  28895. <param name="sessionId" type="java.lang.String"/>
  28896. </method>
  28897. <method name="getMetrics"
  28898. abstract="false" native="false" synchronized="false"
  28899. static="false" final="false" visibility="public"
  28900. deprecated="not deprecated">
  28901. <param name="builder" type="org.apache.hadoop.metrics2.MetricsBuilder"/>
  28902. <param name="all" type="boolean"/>
  28903. </method>
  28904. </class>
  28905. <!-- end class org.apache.hadoop.metrics2.source.JvmMetricsSource -->
  28906. </package>
  28907. <package name="org.apache.hadoop.metrics2.util">
  28908. <!-- start class org.apache.hadoop.metrics2.util.Contracts -->
  28909. <class name="Contracts" extends="java.lang.Object"
  28910. abstract="false"
  28911. static="false" final="false" visibility="public"
  28912. deprecated="not deprecated">
  28913. <method name="checkNotNull" return="java.lang.Object"
  28914. abstract="false" native="false" synchronized="false"
  28915. static="true" final="false" visibility="public"
  28916. deprecated="not deprecated">
  28917. <param name="ref" type="java.lang.Object"/>
  28918. <param name="msg" type="java.lang.Object"/>
  28919. <doc>
  28920. <![CDATA[Check that a reference is not null.
  28921. @param <T> type of the reference
  28922. @param ref the reference to check
  28923. @param msg the error message
  28924. @throws NullPointerException if {@code ref} is null
  28925. @return the checked reference for convenience]]>
  28926. </doc>
  28927. </method>
  28928. <method name="checkState"
  28929. abstract="false" native="false" synchronized="false"
  28930. static="true" final="false" visibility="public"
  28931. deprecated="not deprecated">
  28932. <param name="expression" type="boolean"/>
  28933. <param name="msg" type="java.lang.Object"/>
  28934. <doc>
  28935. <![CDATA[Check the state expression for false conditions
  28936. @param expression the boolean expression to check
  28937. @param msg the error message if {@code expression} is false
  28938. @throws IllegalStateException if {@code expression} is false]]>
  28939. </doc>
  28940. </method>
  28941. <method name="checkArg" return="java.lang.Object"
  28942. abstract="false" native="false" synchronized="false"
  28943. static="true" final="false" visibility="public"
  28944. deprecated="not deprecated">
  28945. <param name="arg" type="java.lang.Object"/>
  28946. <param name="expression" type="boolean"/>
  28947. <param name="msg" type="java.lang.Object"/>
  28948. <doc>
  28949. <![CDATA[Check an argument for false conditions
  28950. @param <T> type of the argument
  28951. @param arg the argument to check
  28952. @param expression the boolean expression for the condition
  28953. @param msg the error message if {@code expression} is false
  28954. @return the argument for convenience]]>
  28955. </doc>
  28956. </method>
  28957. <method name="checkArg" return="int"
  28958. abstract="false" native="false" synchronized="false"
  28959. static="true" final="false" visibility="public"
  28960. deprecated="not deprecated">
  28961. <param name="arg" type="int"/>
  28962. <param name="expression" type="boolean"/>
  28963. <param name="msg" type="java.lang.Object"/>
  28964. <doc>
  28965. <![CDATA[Check an argument for false conditions
  28966. @param arg the argument to check
  28967. @param expression the boolean expression for the condition
  28968. @param msg the error message if {@code expression} is false
  28969. @return the argument for convenience]]>
  28970. </doc>
  28971. </method>
  28972. <method name="checkArg" return="long"
  28973. abstract="false" native="false" synchronized="false"
  28974. static="true" final="false" visibility="public"
  28975. deprecated="not deprecated">
  28976. <param name="arg" type="long"/>
  28977. <param name="expression" type="boolean"/>
  28978. <param name="msg" type="java.lang.Object"/>
  28979. <doc>
  28980. <![CDATA[Check an argument for false conditions
  28981. @param arg the argument to check
  28982. @param expression the boolean expression for the condition
  28983. @param msg the error message if {@code expression} is false
  28984. @return the argument for convenience]]>
  28985. </doc>
  28986. </method>
  28987. <method name="checkArg" return="float"
  28988. abstract="false" native="false" synchronized="false"
  28989. static="true" final="false" visibility="public"
  28990. deprecated="not deprecated">
  28991. <param name="arg" type="float"/>
  28992. <param name="expression" type="boolean"/>
  28993. <param name="msg" type="java.lang.Object"/>
  28994. <doc>
  28995. <![CDATA[Check an argument for false conditions
  28996. @param arg the argument to check
  28997. @param expression the boolean expression for the condition
  28998. @param msg the error message if {@code expression} is false
  28999. @return the argument for convenience]]>
  29000. </doc>
  29001. </method>
  29002. <method name="checkArg" return="double"
  29003. abstract="false" native="false" synchronized="false"
  29004. static="true" final="false" visibility="public"
  29005. deprecated="not deprecated">
  29006. <param name="arg" type="double"/>
  29007. <param name="expression" type="boolean"/>
  29008. <param name="msg" type="java.lang.Object"/>
  29009. <doc>
  29010. <![CDATA[Check an argument for false conditions
  29011. @param arg the argument to check
  29012. @param expression the boolean expression for the condition
  29013. @param msg the error message if {@code expression} is false
  29014. @return the argument for convenience]]>
  29015. </doc>
  29016. </method>
  29017. <doc>
  29018. <![CDATA[Utilities for programming by contract (preconditions, postconditions etc.)]]>
  29019. </doc>
  29020. </class>
  29021. <!-- end class org.apache.hadoop.metrics2.util.Contracts -->
  29022. <!-- start class org.apache.hadoop.metrics2.util.MBeans -->
  29023. <class name="MBeans" extends="java.lang.Object"
  29024. abstract="false"
  29025. static="false" final="false" visibility="public"
  29026. deprecated="not deprecated">
  29027. <constructor name="MBeans"
  29028. static="false" final="false" visibility="public"
  29029. deprecated="not deprecated">
  29030. </constructor>
  29031. <method name="register" return="javax.management.ObjectName"
  29032. abstract="false" native="false" synchronized="false"
  29033. static="true" final="false" visibility="public"
  29034. deprecated="not deprecated">
  29035. <param name="serviceName" type="java.lang.String"/>
  29036. <param name="nameName" type="java.lang.String"/>
  29037. <param name="theMbean" type="java.lang.Object"/>
  29038. <doc>
  29039. <![CDATA[Register the MBean using our standard MBeanName format
  29040. "hadoop:service=<serviceName>,name=<nameName>"
  29041. Where the <serviceName> and <nameName> are the supplied parameters
  29042. @param serviceName
  29043. @param nameName
  29044. @param theMbean - the MBean to register
  29045. @return the named used to register the MBean]]>
  29046. </doc>
  29047. </method>
  29048. <method name="unregister"
  29049. abstract="false" native="false" synchronized="false"
  29050. static="true" final="false" visibility="public"
  29051. deprecated="not deprecated">
  29052. <param name="mbeanName" type="javax.management.ObjectName"/>
  29053. </method>
  29054. <doc>
  29055. <![CDATA[This util class provides a method to register an MBean using
  29056. our standard naming convention as described in the doc
  29057. for {link {@link #register(String, String, Object)}]]>
  29058. </doc>
  29059. </class>
  29060. <!-- end class org.apache.hadoop.metrics2.util.MBeans -->
  29061. <!-- start class org.apache.hadoop.metrics2.util.MetricsCache -->
  29062. <class name="MetricsCache" extends="java.lang.Object"
  29063. abstract="false"
  29064. static="false" final="false" visibility="public"
  29065. deprecated="not deprecated">
  29066. <constructor name="MetricsCache"
  29067. static="false" final="false" visibility="public"
  29068. deprecated="not deprecated">
  29069. </constructor>
  29070. <method name="update" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  29071. abstract="false" native="false" synchronized="false"
  29072. static="false" final="false" visibility="public"
  29073. deprecated="not deprecated">
  29074. <param name="mr" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  29075. <param name="includingTags" type="boolean"/>
  29076. <doc>
  29077. <![CDATA[Update the cache and return the cached record
  29078. @param mr the update record
  29079. @param includingTags cache tag values (for later lookup by name) if true
  29080. @return the updated cached record]]>
  29081. </doc>
  29082. </method>
  29083. <method name="update" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  29084. abstract="false" native="false" synchronized="false"
  29085. static="false" final="false" visibility="public"
  29086. deprecated="not deprecated">
  29087. <param name="mr" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  29088. </method>
  29089. <method name="get" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  29090. abstract="false" native="false" synchronized="false"
  29091. static="false" final="false" visibility="public"
  29092. deprecated="not deprecated">
  29093. <param name="name" type="java.lang.String"/>
  29094. <param name="tags" type="java.util.Collection"/>
  29095. <doc>
  29096. <![CDATA[Get the cached record
  29097. @param name of the record
  29098. @param tags of the record
  29099. @return the cached record or null]]>
  29100. </doc>
  29101. </method>
  29102. <doc>
  29103. <![CDATA[A metrics cache for sinks that don't support sparse updates.]]>
  29104. </doc>
  29105. </class>
  29106. <!-- end class org.apache.hadoop.metrics2.util.MetricsCache -->
  29107. <!-- start class org.apache.hadoop.metrics2.util.MetricsCache.Record -->
  29108. <class name="MetricsCache.Record" extends="java.lang.Object"
  29109. abstract="false"
  29110. static="true" final="false" visibility="public"
  29111. deprecated="not deprecated">
  29112. <constructor name="MetricsCache.Record"
  29113. static="false" final="false" visibility="public"
  29114. deprecated="not deprecated">
  29115. </constructor>
  29116. <method name="getTag" return="java.lang.String"
  29117. abstract="false" native="false" synchronized="false"
  29118. static="false" final="false" visibility="public"
  29119. deprecated="not deprecated">
  29120. <param name="key" type="java.lang.String"/>
  29121. <doc>
  29122. <![CDATA[Get the tag value
  29123. @param key name of the tag
  29124. @return the tag value]]>
  29125. </doc>
  29126. </method>
  29127. <method name="getMetric" return="java.lang.Number"
  29128. abstract="false" native="false" synchronized="false"
  29129. static="false" final="false" visibility="public"
  29130. deprecated="not deprecated">
  29131. <param name="key" type="java.lang.String"/>
  29132. <doc>
  29133. <![CDATA[Get the metric value
  29134. @param key name of the metric
  29135. @return the metric value]]>
  29136. </doc>
  29137. </method>
  29138. <method name="getMetricInstance" return="org.apache.hadoop.metrics2.Metric"
  29139. abstract="false" native="false" synchronized="false"
  29140. static="false" final="false" visibility="public"
  29141. deprecated="not deprecated">
  29142. <param name="key" type="java.lang.String"/>
  29143. <doc>
  29144. <![CDATA[Get the metric value
  29145. @param key name of the metric
  29146. @return the metric value]]>
  29147. </doc>
  29148. </method>
  29149. <method name="metrics" return="java.util.Set"
  29150. abstract="false" native="false" synchronized="false"
  29151. static="false" final="false" visibility="public"
  29152. deprecated="not deprecated">
  29153. <doc>
  29154. <![CDATA[@return entry set of metrics]]>
  29155. </doc>
  29156. </method>
  29157. <method name="metricsEntrySet" return="java.util.Set"
  29158. abstract="false" native="false" synchronized="false"
  29159. static="false" final="false" visibility="public"
  29160. deprecated="not deprecated">
  29161. <doc>
  29162. <![CDATA[@return entry set of metrics]]>
  29163. </doc>
  29164. </method>
  29165. <doc>
  29166. <![CDATA[Cached record]]>
  29167. </doc>
  29168. </class>
  29169. <!-- end class org.apache.hadoop.metrics2.util.MetricsCache.Record -->
  29170. <!-- start class org.apache.hadoop.metrics2.util.SampleStat -->
  29171. <class name="SampleStat" extends="java.lang.Object"
  29172. abstract="false"
  29173. static="false" final="false" visibility="public"
  29174. deprecated="not deprecated">
  29175. <constructor name="SampleStat"
  29176. static="false" final="false" visibility="public"
  29177. deprecated="not deprecated">
  29178. <doc>
  29179. <![CDATA[Construct a new running sample stat]]>
  29180. </doc>
  29181. </constructor>
  29182. <method name="reset"
  29183. abstract="false" native="false" synchronized="false"
  29184. static="false" final="false" visibility="public"
  29185. deprecated="not deprecated">
  29186. </method>
  29187. <method name="copyTo"
  29188. abstract="false" native="false" synchronized="false"
  29189. static="false" final="false" visibility="public"
  29190. deprecated="not deprecated">
  29191. <param name="other" type="org.apache.hadoop.metrics2.util.SampleStat"/>
  29192. <doc>
  29193. <![CDATA[Copy the values to other (saves object creation and gc.)
  29194. @param other the destination to hold our values]]>
  29195. </doc>
  29196. </method>
  29197. <method name="add" return="org.apache.hadoop.metrics2.util.SampleStat"
  29198. abstract="false" native="false" synchronized="false"
  29199. static="false" final="false" visibility="public"
  29200. deprecated="not deprecated">
  29201. <param name="x" type="double"/>
  29202. <doc>
  29203. <![CDATA[Add a sample the running stat.
  29204. @param x the sample number
  29205. @return self]]>
  29206. </doc>
  29207. </method>
  29208. <method name="add" return="org.apache.hadoop.metrics2.util.SampleStat"
  29209. abstract="false" native="false" synchronized="false"
  29210. static="false" final="false" visibility="public"
  29211. deprecated="not deprecated">
  29212. <param name="nSamples" type="long"/>
  29213. <param name="x" type="double"/>
  29214. <doc>
  29215. <![CDATA[Add some sample and a partial sum to the running stat.
  29216. Note, min/max is not evaluated using this method.
  29217. @param nSamples number of samples
  29218. @param x the partial sum
  29219. @return self]]>
  29220. </doc>
  29221. </method>
  29222. <method name="numSamples" return="long"
  29223. abstract="false" native="false" synchronized="false"
  29224. static="false" final="false" visibility="public"
  29225. deprecated="not deprecated">
  29226. <doc>
  29227. <![CDATA[@return the total number of samples]]>
  29228. </doc>
  29229. </method>
  29230. <method name="mean" return="double"
  29231. abstract="false" native="false" synchronized="false"
  29232. static="false" final="false" visibility="public"
  29233. deprecated="not deprecated">
  29234. <doc>
  29235. <![CDATA[@return the arithmetic mean of the samples]]>
  29236. </doc>
  29237. </method>
  29238. <method name="variance" return="double"
  29239. abstract="false" native="false" synchronized="false"
  29240. static="false" final="false" visibility="public"
  29241. deprecated="not deprecated">
  29242. <doc>
  29243. <![CDATA[@return the variance of the samples]]>
  29244. </doc>
  29245. </method>
  29246. <method name="stddev" return="double"
  29247. abstract="false" native="false" synchronized="false"
  29248. static="false" final="false" visibility="public"
  29249. deprecated="not deprecated">
  29250. <doc>
  29251. <![CDATA[@return the standard deviation of the samples]]>
  29252. </doc>
  29253. </method>
  29254. <method name="min" return="double"
  29255. abstract="false" native="false" synchronized="false"
  29256. static="false" final="false" visibility="public"
  29257. deprecated="not deprecated">
  29258. <doc>
  29259. <![CDATA[@return the minimum value of the samples]]>
  29260. </doc>
  29261. </method>
  29262. <method name="max" return="double"
  29263. abstract="false" native="false" synchronized="false"
  29264. static="false" final="false" visibility="public"
  29265. deprecated="not deprecated">
  29266. <doc>
  29267. <![CDATA[@return the maximum value of the samples]]>
  29268. </doc>
  29269. </method>
  29270. <doc>
  29271. <![CDATA[Helper to compute running sample stats]]>
  29272. </doc>
  29273. </class>
  29274. <!-- end class org.apache.hadoop.metrics2.util.SampleStat -->
  29275. <!-- start class org.apache.hadoop.metrics2.util.SampleStat.MinMax -->
  29276. <class name="SampleStat.MinMax" extends="java.lang.Object"
  29277. abstract="false"
  29278. static="true" final="false" visibility="public"
  29279. deprecated="not deprecated">
  29280. <constructor name="SampleStat.MinMax"
  29281. static="false" final="false" visibility="public"
  29282. deprecated="not deprecated">
  29283. </constructor>
  29284. <method name="add"
  29285. abstract="false" native="false" synchronized="false"
  29286. static="false" final="false" visibility="public"
  29287. deprecated="not deprecated">
  29288. <param name="value" type="double"/>
  29289. </method>
  29290. <method name="min" return="double"
  29291. abstract="false" native="false" synchronized="false"
  29292. static="false" final="false" visibility="public"
  29293. deprecated="not deprecated">
  29294. </method>
  29295. <method name="max" return="double"
  29296. abstract="false" native="false" synchronized="false"
  29297. static="false" final="false" visibility="public"
  29298. deprecated="not deprecated">
  29299. </method>
  29300. <method name="reset"
  29301. abstract="false" native="false" synchronized="false"
  29302. static="false" final="false" visibility="public"
  29303. deprecated="not deprecated">
  29304. </method>
  29305. <method name="reset"
  29306. abstract="false" native="false" synchronized="false"
  29307. static="false" final="false" visibility="public"
  29308. deprecated="not deprecated">
  29309. <param name="other" type="org.apache.hadoop.metrics2.util.SampleStat.MinMax"/>
  29310. </method>
  29311. <doc>
  29312. <![CDATA[Helper to keep running min/max]]>
  29313. </doc>
  29314. </class>
  29315. <!-- end class org.apache.hadoop.metrics2.util.SampleStat.MinMax -->
  29316. <!-- start class org.apache.hadoop.metrics2.util.Servers -->
  29317. <class name="Servers" extends="java.lang.Object"
  29318. abstract="false"
  29319. static="false" final="false" visibility="public"
  29320. deprecated="not deprecated">
  29321. <method name="parse" return="java.util.List"
  29322. abstract="false" native="false" synchronized="false"
  29323. static="true" final="false" visibility="public"
  29324. deprecated="not deprecated">
  29325. <param name="specs" type="java.lang.String"/>
  29326. <param name="defaultPort" type="int"/>
  29327. <doc>
  29328. <![CDATA[Parses a space and/or comma separated sequence of server specifications
  29329. of the form <i>hostname</i> or <i>hostname:port</i>. If
  29330. the specs string is null, defaults to localhost:defaultPort.
  29331. @param specs server specs (see description)
  29332. @param defaultPort the default port if not specified
  29333. @return a list of InetSocketAddress objects.]]>
  29334. </doc>
  29335. </method>
  29336. <doc>
  29337. <![CDATA[Helpers to handle server addresses]]>
  29338. </doc>
  29339. </class>
  29340. <!-- end class org.apache.hadoop.metrics2.util.Servers -->
  29341. <!-- start class org.apache.hadoop.metrics2.util.TryIterator -->
  29342. <class name="TryIterator" extends="java.lang.Object"
  29343. abstract="true"
  29344. static="false" final="false" visibility="public"
  29345. deprecated="not deprecated">
  29346. <implements name="java.util.Iterator"/>
  29347. <constructor name="TryIterator"
  29348. static="false" final="false" visibility="public"
  29349. deprecated="not deprecated">
  29350. </constructor>
  29351. <method name="tryNext" return="java.lang.Object"
  29352. abstract="true" native="false" synchronized="false"
  29353. static="false" final="false" visibility="protected"
  29354. deprecated="not deprecated">
  29355. <doc>
  29356. <![CDATA[Return the next element. Must call {@link #done()} when done, otherwise
  29357. infinite loop could occur. If this method throws an exception, any
  29358. further attempts to use the iterator would result in an
  29359. {@link IllegalStateException}.
  29360. @return the next element if there is one or return {@link #done()}]]>
  29361. </doc>
  29362. </method>
  29363. <method name="done" return="java.lang.Object"
  29364. abstract="false" native="false" synchronized="false"
  29365. static="false" final="true" visibility="protected"
  29366. deprecated="not deprecated">
  29367. <doc>
  29368. <![CDATA[Implementations of {@link #tryNext} <b>must</b> call this method
  29369. when there are no more elements left in the iteration.
  29370. @return null as a convenience to implement {@link #tryNext()}]]>
  29371. </doc>
  29372. </method>
  29373. <method name="hasNext" return="boolean"
  29374. abstract="false" native="false" synchronized="false"
  29375. static="false" final="true" visibility="public"
  29376. deprecated="not deprecated">
  29377. <doc>
  29378. <![CDATA[@return true if we have a next element or false otherwise.]]>
  29379. </doc>
  29380. </method>
  29381. <method name="next" return="java.lang.Object"
  29382. abstract="false" native="false" synchronized="false"
  29383. static="false" final="true" visibility="public"
  29384. deprecated="not deprecated">
  29385. <doc>
  29386. <![CDATA[@return the next element if we have one.]]>
  29387. </doc>
  29388. </method>
  29389. <method name="current" return="java.lang.Object"
  29390. abstract="false" native="false" synchronized="false"
  29391. static="false" final="true" visibility="public"
  29392. deprecated="not deprecated">
  29393. <doc>
  29394. <![CDATA[@return the current element without advancing the iterator]]>
  29395. </doc>
  29396. </method>
  29397. <method name="remove"
  29398. abstract="false" native="false" synchronized="false"
  29399. static="false" final="true" visibility="public"
  29400. deprecated="not deprecated">
  29401. <doc>
  29402. <![CDATA[Guaranteed to throw UnsupportedOperationException]]>
  29403. </doc>
  29404. </method>
  29405. <doc>
  29406. <![CDATA[A base class for unmodifiable iterators (throws on remove)
  29407. This class also makes writing filtering iterators easier, where the only
  29408. way to discover the end of data is by trying to read it. The same applies
  29409. to writing iterator wrappers around stream read calls.
  29410. One only needs to implement the tryNext() method and call done() when done.
  29411. @param <T> the type of the iterator]]>
  29412. </doc>
  29413. </class>
  29414. <!-- end class org.apache.hadoop.metrics2.util.TryIterator -->
  29415. </package>
  29416. <package name="org.apache.hadoop.net">
  29417. <!-- start class org.apache.hadoop.net.CachedDNSToSwitchMapping -->
  29418. <class name="CachedDNSToSwitchMapping" extends="java.lang.Object"
  29419. abstract="false"
  29420. static="false" final="false" visibility="public"
  29421. deprecated="not deprecated">
  29422. <implements name="org.apache.hadoop.net.DNSToSwitchMapping"/>
  29423. <constructor name="CachedDNSToSwitchMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  29424. static="false" final="false" visibility="public"
  29425. deprecated="not deprecated">
  29426. </constructor>
  29427. <method name="resolve" return="java.util.List"
  29428. abstract="false" native="false" synchronized="false"
  29429. static="false" final="false" visibility="public"
  29430. deprecated="not deprecated">
  29431. <param name="names" type="java.util.List"/>
  29432. </method>
  29433. <field name="rawMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  29434. transient="false" volatile="false"
  29435. static="false" final="false" visibility="protected"
  29436. deprecated="not deprecated">
  29437. </field>
  29438. <doc>
  29439. <![CDATA[A cached implementation of DNSToSwitchMapping that takes an
  29440. raw DNSToSwitchMapping and stores the resolved network location in
  29441. a cache. The following calls to a resolved network location
  29442. will get its location from the cache.]]>
  29443. </doc>
  29444. </class>
  29445. <!-- end class org.apache.hadoop.net.CachedDNSToSwitchMapping -->
  29446. <!-- start class org.apache.hadoop.net.DNS -->
  29447. <class name="DNS" extends="java.lang.Object"
  29448. abstract="false"
  29449. static="false" final="false" visibility="public"
  29450. deprecated="not deprecated">
  29451. <constructor name="DNS"
  29452. static="false" final="false" visibility="public"
  29453. deprecated="not deprecated">
  29454. </constructor>
  29455. <method name="reverseDns" return="java.lang.String"
  29456. abstract="false" native="false" synchronized="false"
  29457. static="true" final="false" visibility="public"
  29458. deprecated="not deprecated">
  29459. <param name="hostIp" type="java.net.InetAddress"/>
  29460. <param name="ns" type="java.lang.String"/>
  29461. <exception name="NamingException" type="javax.naming.NamingException"/>
  29462. <doc>
  29463. <![CDATA[Returns the hostname associated with the specified IP address by the
  29464. provided nameserver.
  29465. @param hostIp
  29466. The address to reverse lookup
  29467. @param ns
  29468. The host name of a reachable DNS server
  29469. @return The host name associated with the provided IP
  29470. @throws NamingException
  29471. If a NamingException is encountered]]>
  29472. </doc>
  29473. </method>
  29474. <method name="getIPs" return="java.lang.String[]"
  29475. abstract="false" native="false" synchronized="false"
  29476. static="true" final="false" visibility="public"
  29477. deprecated="not deprecated">
  29478. <param name="strInterface" type="java.lang.String"/>
  29479. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  29480. <doc>
  29481. <![CDATA[Like {@link DNS#getIPs(String, boolean)}, but returns all
  29482. IPs associated with the given interface and its subinterfaces.]]>
  29483. </doc>
  29484. </method>
  29485. <method name="getIPs" return="java.lang.String[]"
  29486. abstract="false" native="false" synchronized="false"
  29487. static="true" final="false" visibility="public"
  29488. deprecated="not deprecated">
  29489. <param name="strInterface" type="java.lang.String"/>
  29490. <param name="returnSubinterfaces" type="boolean"/>
  29491. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  29492. <doc>
  29493. <![CDATA[Returns all the IPs associated with the provided interface, if any, in
  29494. textual form.
  29495. @param strInterface
  29496. The name of the network interface or subinterface to query
  29497. (eg eth0 or eth0:0) or the string "default"
  29498. @param returnSubinterfaces
  29499. Whether to return IPs associated with subinterfaces of
  29500. the given interface
  29501. @return A string vector of all the IPs associated with the provided
  29502. interface
  29503. @throws UnknownHostException
  29504. If an UnknownHostException is encountered in querying the
  29505. default interface or the given interface can not be found]]>
  29506. </doc>
  29507. </method>
  29508. <method name="getDefaultIP" return="java.lang.String"
  29509. abstract="false" native="false" synchronized="false"
  29510. static="true" final="false" visibility="public"
  29511. deprecated="not deprecated">
  29512. <param name="strInterface" type="java.lang.String"/>
  29513. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  29514. <doc>
  29515. <![CDATA[Returns the first available IP address associated with the provided
  29516. network interface
  29517. @param strInterface
  29518. The name of the network interface or subinterface to query
  29519. (e.g. eth0 or eth0:0) or the string "default"
  29520. @return The IP address in text form
  29521. @throws UnknownHostException
  29522. If one is encountered in querying the default interface]]>
  29523. </doc>
  29524. </method>
  29525. <method name="getHosts" return="java.lang.String[]"
  29526. abstract="false" native="false" synchronized="false"
  29527. static="true" final="false" visibility="public"
  29528. deprecated="not deprecated">
  29529. <param name="strInterface" type="java.lang.String"/>
  29530. <param name="nameserver" type="java.lang.String"/>
  29531. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  29532. <doc>
  29533. <![CDATA[Returns all the host names associated by the provided nameserver with the
  29534. address bound to the specified network interface
  29535. @param strInterface
  29536. The name of the network interface or subinterface to query
  29537. (e.g. eth0 or eth0:0) or the string "default"
  29538. @param nameserver
  29539. The DNS host name
  29540. @return A string vector of all host names associated with the IPs tied to
  29541. the specified interface
  29542. @throws UnknownHostException]]>
  29543. </doc>
  29544. </method>
  29545. <method name="getHosts" return="java.lang.String[]"
  29546. abstract="false" native="false" synchronized="false"
  29547. static="true" final="false" visibility="public"
  29548. deprecated="not deprecated">
  29549. <param name="strInterface" type="java.lang.String"/>
  29550. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  29551. <doc>
  29552. <![CDATA[Returns all the host names associated by the default nameserver with the
  29553. address bound to the specified network interface
  29554. @param strInterface
  29555. The name of the network interface to query (e.g. eth0)
  29556. @return The list of host names associated with IPs bound to the network
  29557. interface
  29558. @throws UnknownHostException
  29559. If one is encountered while querying the deault interface]]>
  29560. </doc>
  29561. </method>
  29562. <method name="getDefaultHost" return="java.lang.String"
  29563. abstract="false" native="false" synchronized="false"
  29564. static="true" final="false" visibility="public"
  29565. deprecated="not deprecated">
  29566. <param name="strInterface" type="java.lang.String"/>
  29567. <param name="nameserver" type="java.lang.String"/>
  29568. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  29569. <doc>
  29570. <![CDATA[Returns the default (first) host name associated by the provided
  29571. nameserver with the address bound to the specified network interface
  29572. @param strInterface
  29573. The name of the network interface to query (e.g. eth0)
  29574. @param nameserver
  29575. The DNS host name
  29576. @return The default host names associated with IPs bound to the network
  29577. interface
  29578. @throws UnknownHostException
  29579. If one is encountered while querying the deault interface]]>
  29580. </doc>
  29581. </method>
  29582. <method name="getDefaultHost" return="java.lang.String"
  29583. abstract="false" native="false" synchronized="false"
  29584. static="true" final="false" visibility="public"
  29585. deprecated="not deprecated">
  29586. <param name="strInterface" type="java.lang.String"/>
  29587. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  29588. <doc>
  29589. <![CDATA[Returns the default (first) host name associated by the default
  29590. nameserver with the address bound to the specified network interface
  29591. @param strInterface
  29592. The name of the network interface to query (e.g. eth0)
  29593. @return The default host name associated with IPs bound to the network
  29594. interface
  29595. @throws UnknownHostException
  29596. If one is encountered while querying the deault interface]]>
  29597. </doc>
  29598. </method>
  29599. <field name="LOG" type="org.apache.commons.logging.Log"
  29600. transient="false" volatile="false"
  29601. static="true" final="true" visibility="public"
  29602. deprecated="not deprecated">
  29603. </field>
  29604. <doc>
  29605. <![CDATA[A class that provides direct and reverse lookup functionalities, allowing
  29606. the querying of specific network interfaces or nameservers.]]>
  29607. </doc>
  29608. </class>
  29609. <!-- end class org.apache.hadoop.net.DNS -->
  29610. <!-- start interface org.apache.hadoop.net.DNSToSwitchMapping -->
  29611. <interface name="DNSToSwitchMapping" abstract="true"
  29612. static="false" final="false" visibility="public"
  29613. deprecated="not deprecated">
  29614. <method name="resolve" return="java.util.List"
  29615. abstract="false" native="false" synchronized="false"
  29616. static="false" final="false" visibility="public"
  29617. deprecated="not deprecated">
  29618. <param name="names" type="java.util.List"/>
  29619. <doc>
  29620. <![CDATA[Resolves a list of DNS-names/IP-addresses and returns back a list of
  29621. switch information (network paths). One-to-one correspondence must be
  29622. maintained between the elements in the lists.
  29623. Consider an element in the argument list - x.y.com. The switch information
  29624. that is returned must be a network path of the form /foo/rack,
  29625. where / is the root, and 'foo' is the switch where 'rack' is connected.
  29626. Note the hostname/ip-address is not part of the returned path.
  29627. The network topology of the cluster would determine the number of
  29628. components in the network path.
  29629. @param names
  29630. @return list of resolved network paths]]>
  29631. </doc>
  29632. </method>
  29633. <doc>
  29634. <![CDATA[An interface that should be implemented to allow pluggable
  29635. DNS-name/IP-address to RackID resolvers.]]>
  29636. </doc>
  29637. </interface>
  29638. <!-- end interface org.apache.hadoop.net.DNSToSwitchMapping -->
  29639. <!-- start class org.apache.hadoop.net.NetUtils -->
  29640. <class name="NetUtils" extends="java.lang.Object"
  29641. abstract="false"
  29642. static="false" final="false" visibility="public"
  29643. deprecated="not deprecated">
  29644. <constructor name="NetUtils"
  29645. static="false" final="false" visibility="public"
  29646. deprecated="not deprecated">
  29647. </constructor>
  29648. <method name="getSocketFactory" return="javax.net.SocketFactory"
  29649. abstract="false" native="false" synchronized="false"
  29650. static="true" final="false" visibility="public"
  29651. deprecated="not deprecated">
  29652. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29653. <param name="clazz" type="java.lang.Class"/>
  29654. <doc>
  29655. <![CDATA[Get the socket factory for the given class according to its
  29656. configuration parameter
  29657. <tt>hadoop.rpc.socket.factory.class.&lt;ClassName&gt;</tt>. When no
  29658. such parameter exists then fall back on the default socket factory as
  29659. configured by <tt>hadoop.rpc.socket.factory.class.default</tt>. If
  29660. this default socket factory is not configured, then fall back on the JVM
  29661. default socket factory.
  29662. @param conf the configuration
  29663. @param clazz the class (usually a {@link VersionedProtocol})
  29664. @return a socket factory]]>
  29665. </doc>
  29666. </method>
  29667. <method name="getDefaultSocketFactory" return="javax.net.SocketFactory"
  29668. abstract="false" native="false" synchronized="false"
  29669. static="true" final="false" visibility="public"
  29670. deprecated="not deprecated">
  29671. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29672. <doc>
  29673. <![CDATA[Get the default socket factory as specified by the configuration
  29674. parameter <tt>hadoop.rpc.socket.factory.default</tt>
  29675. @param conf the configuration
  29676. @return the default socket factory as specified in the configuration or
  29677. the JVM default socket factory if the configuration does not
  29678. contain a default socket factory property.]]>
  29679. </doc>
  29680. </method>
  29681. <method name="getSocketFactoryFromProperty" return="javax.net.SocketFactory"
  29682. abstract="false" native="false" synchronized="false"
  29683. static="true" final="false" visibility="public"
  29684. deprecated="not deprecated">
  29685. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29686. <param name="propValue" type="java.lang.String"/>
  29687. <doc>
  29688. <![CDATA[Get the socket factory corresponding to the given proxy URI. If the
  29689. given proxy URI corresponds to an absence of configuration parameter,
  29690. returns null. If the URI is malformed raises an exception.
  29691. @param propValue the property which is the class name of the
  29692. SocketFactory to instantiate; assumed non null and non empty.
  29693. @return a socket factory as defined in the property value.]]>
  29694. </doc>
  29695. </method>
  29696. <method name="createSocketAddr" return="java.net.InetSocketAddress"
  29697. abstract="false" native="false" synchronized="false"
  29698. static="true" final="false" visibility="public"
  29699. deprecated="not deprecated">
  29700. <param name="target" type="java.lang.String"/>
  29701. <doc>
  29702. <![CDATA[Util method to build socket addr from either:
  29703. <host>:<post>
  29704. <fs>://<host>:<port>/<path>]]>
  29705. </doc>
  29706. </method>
  29707. <method name="createSocketAddr" return="java.net.InetSocketAddress"
  29708. abstract="false" native="false" synchronized="false"
  29709. static="true" final="false" visibility="public"
  29710. deprecated="not deprecated">
  29711. <param name="target" type="java.lang.String"/>
  29712. <param name="defaultPort" type="int"/>
  29713. <doc>
  29714. <![CDATA[Util method to build socket addr from either:
  29715. <host>
  29716. <host>:<post>
  29717. <fs>://<host>:<port>/<path>]]>
  29718. </doc>
  29719. </method>
  29720. <method name="makeSocketAddr" return="java.net.InetSocketAddress"
  29721. abstract="false" native="false" synchronized="false"
  29722. static="true" final="false" visibility="public"
  29723. deprecated="not deprecated">
  29724. <param name="host" type="java.lang.String"/>
  29725. <param name="port" type="int"/>
  29726. <doc>
  29727. <![CDATA[Create a socket address with the given host and port. The hostname
  29728. might be replaced with another host that was set via
  29729. {@link #addStaticResolution(String, String)}. The value of
  29730. hadoop.security.token.service.use_ip will determine whether the
  29731. standard java host resolver is used, or if the fully qualified resolver
  29732. is used.
  29733. @param host the hostname or IP use to instantiate the object
  29734. @param port the port number
  29735. @return InetSocketAddress]]>
  29736. </doc>
  29737. </method>
  29738. <method name="getCanonicalUri" return="java.net.URI"
  29739. abstract="false" native="false" synchronized="false"
  29740. static="true" final="false" visibility="public"
  29741. deprecated="not deprecated">
  29742. <param name="uri" type="java.net.URI"/>
  29743. <param name="defaultPort" type="int"/>
  29744. <doc>
  29745. <![CDATA[Resolve the uri's hostname and add the default port if not in the uri
  29746. @param uri to resolve
  29747. @param defaultPort if none is given
  29748. @return URI
  29749. @throws UnknownHostException]]>
  29750. </doc>
  29751. </method>
  29752. <method name="getServerAddress" return="java.lang.String"
  29753. abstract="false" native="false" synchronized="false"
  29754. static="true" final="false" visibility="public"
  29755. deprecated="not deprecated">
  29756. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29757. <param name="oldBindAddressName" type="java.lang.String"/>
  29758. <param name="oldPortName" type="java.lang.String"/>
  29759. <param name="newBindAddressName" type="java.lang.String"/>
  29760. <doc>
  29761. <![CDATA[Handle the transition from pairs of attributes specifying a host and port
  29762. to a single colon separated one.
  29763. @param conf the configuration to check
  29764. @param oldBindAddressName the old address attribute name
  29765. @param oldPortName the old port attribute name
  29766. @param newBindAddressName the new combined name
  29767. @return the complete address from the configuration]]>
  29768. </doc>
  29769. </method>
  29770. <method name="addStaticResolution"
  29771. abstract="false" native="false" synchronized="false"
  29772. static="true" final="false" visibility="public"
  29773. deprecated="not deprecated">
  29774. <param name="host" type="java.lang.String"/>
  29775. <param name="resolvedName" type="java.lang.String"/>
  29776. <doc>
  29777. <![CDATA[Adds a static resolution for host. This can be used for setting up
  29778. hostnames with names that are fake to point to a well known host. For e.g.
  29779. in some testcases we require to have daemons with different hostnames
  29780. running on the same machine. In order to create connections to these
  29781. daemons, one can set up mappings from those hostnames to "localhost".
  29782. {@link NetUtils#getStaticResolution(String)} can be used to query for
  29783. the actual hostname.
  29784. @param host
  29785. @param resolvedName]]>
  29786. </doc>
  29787. </method>
  29788. <method name="getStaticResolution" return="java.lang.String"
  29789. abstract="false" native="false" synchronized="false"
  29790. static="true" final="false" visibility="public"
  29791. deprecated="not deprecated">
  29792. <param name="host" type="java.lang.String"/>
  29793. <doc>
  29794. <![CDATA[Retrieves the resolved name for the passed host. The resolved name must
  29795. have been set earlier using
  29796. {@link NetUtils#addStaticResolution(String, String)}
  29797. @param host
  29798. @return the resolution]]>
  29799. </doc>
  29800. </method>
  29801. <method name="getAllStaticResolutions" return="java.util.List"
  29802. abstract="false" native="false" synchronized="false"
  29803. static="true" final="false" visibility="public"
  29804. deprecated="not deprecated">
  29805. <doc>
  29806. <![CDATA[This is used to get all the resolutions that were added using
  29807. {@link NetUtils#addStaticResolution(String, String)}. The return
  29808. value is a List each element of which contains an array of String
  29809. of the form String[0]=hostname, String[1]=resolved-hostname
  29810. @return the list of resolutions]]>
  29811. </doc>
  29812. </method>
  29813. <method name="getConnectAddress" return="java.net.InetSocketAddress"
  29814. abstract="false" native="false" synchronized="false"
  29815. static="true" final="false" visibility="public"
  29816. deprecated="not deprecated">
  29817. <param name="server" type="org.apache.hadoop.ipc.Server"/>
  29818. <doc>
  29819. <![CDATA[Returns InetSocketAddress that a client can use to
  29820. connect to the server. Server.getListenerAddress() is not correct when
  29821. the server binds to "0.0.0.0". This returns "127.0.0.1:port" when
  29822. the getListenerAddress() returns "0.0.0.0:port".
  29823. @param server
  29824. @return socket address that a client can use to connect to the server.]]>
  29825. </doc>
  29826. </method>
  29827. <method name="getInputStream" return="java.io.InputStream"
  29828. abstract="false" native="false" synchronized="false"
  29829. static="true" final="false" visibility="public"
  29830. deprecated="not deprecated">
  29831. <param name="socket" type="java.net.Socket"/>
  29832. <exception name="IOException" type="java.io.IOException"/>
  29833. <doc>
  29834. <![CDATA[Same as getInputStream(socket, socket.getSoTimeout()).<br><br>
  29835. From documentation for {@link #getInputStream(Socket, long)}:<br>
  29836. Returns InputStream for the socket. If the socket has an associated
  29837. SocketChannel then it returns a
  29838. {@link SocketInputStream} with the given timeout. If the socket does not
  29839. have a channel, {@link Socket#getInputStream()} is returned. In the later
  29840. case, the timeout argument is ignored and the timeout set with
  29841. {@link Socket#setSoTimeout(int)} applies for reads.<br><br>
  29842. Any socket created using socket factories returned by {@link NetUtils},
  29843. must use this interface instead of {@link Socket#getInputStream()}.
  29844. @see #getInputStream(Socket, long)
  29845. @param socket
  29846. @return InputStream for reading from the socket.
  29847. @throws IOException]]>
  29848. </doc>
  29849. </method>
  29850. <method name="getInputStream" return="java.io.InputStream"
  29851. abstract="false" native="false" synchronized="false"
  29852. static="true" final="false" visibility="public"
  29853. deprecated="not deprecated">
  29854. <param name="socket" type="java.net.Socket"/>
  29855. <param name="timeout" type="long"/>
  29856. <exception name="IOException" type="java.io.IOException"/>
  29857. <doc>
  29858. <![CDATA[Returns InputStream for the socket. If the socket has an associated
  29859. SocketChannel then it returns a
  29860. {@link SocketInputStream} with the given timeout. If the socket does not
  29861. have a channel, {@link Socket#getInputStream()} is returned. In the later
  29862. case, the timeout argument is ignored and the timeout set with
  29863. {@link Socket#setSoTimeout(int)} applies for reads.<br><br>
  29864. Any socket created using socket factories returned by {@link NetUtils},
  29865. must use this interface instead of {@link Socket#getInputStream()}.
  29866. @see Socket#getChannel()
  29867. @param socket
  29868. @param timeout timeout in milliseconds. This may not always apply. zero
  29869. for waiting as long as necessary.
  29870. @return InputStream for reading from the socket.
  29871. @throws IOException]]>
  29872. </doc>
  29873. </method>
  29874. <method name="getOutputStream" return="java.io.OutputStream"
  29875. abstract="false" native="false" synchronized="false"
  29876. static="true" final="false" visibility="public"
  29877. deprecated="not deprecated">
  29878. <param name="socket" type="java.net.Socket"/>
  29879. <exception name="IOException" type="java.io.IOException"/>
  29880. <doc>
  29881. <![CDATA[Same as getOutputStream(socket, 0). Timeout of zero implies write will
  29882. wait until data is available.<br><br>
  29883. From documentation for {@link #getOutputStream(Socket, long)} : <br>
  29884. Returns OutputStream for the socket. If the socket has an associated
  29885. SocketChannel then it returns a
  29886. {@link SocketOutputStream} with the given timeout. If the socket does not
  29887. have a channel, {@link Socket#getOutputStream()} is returned. In the later
  29888. case, the timeout argument is ignored and the write will wait until
  29889. data is available.<br><br>
  29890. Any socket created using socket factories returned by {@link NetUtils},
  29891. must use this interface instead of {@link Socket#getOutputStream()}.
  29892. @see #getOutputStream(Socket, long)
  29893. @param socket
  29894. @return OutputStream for writing to the socket.
  29895. @throws IOException]]>
  29896. </doc>
  29897. </method>
  29898. <method name="getOutputStream" return="java.io.OutputStream"
  29899. abstract="false" native="false" synchronized="false"
  29900. static="true" final="false" visibility="public"
  29901. deprecated="not deprecated">
  29902. <param name="socket" type="java.net.Socket"/>
  29903. <param name="timeout" type="long"/>
  29904. <exception name="IOException" type="java.io.IOException"/>
  29905. <doc>
  29906. <![CDATA[Returns OutputStream for the socket. If the socket has an associated
  29907. SocketChannel then it returns a
  29908. {@link SocketOutputStream} with the given timeout. If the socket does not
  29909. have a channel, {@link Socket#getOutputStream()} is returned. In the later
  29910. case, the timeout argument is ignored and the write will wait until
  29911. data is available.<br><br>
  29912. Any socket created using socket factories returned by {@link NetUtils},
  29913. must use this interface instead of {@link Socket#getOutputStream()}.
  29914. @see Socket#getChannel()
  29915. @param socket
  29916. @param timeout timeout in milliseconds. This may not always apply. zero
  29917. for waiting as long as necessary.
  29918. @return OutputStream for writing to the socket.
  29919. @throws IOException]]>
  29920. </doc>
  29921. </method>
  29922. <method name="connect"
  29923. abstract="false" native="false" synchronized="false"
  29924. static="true" final="false" visibility="public"
  29925. deprecated="not deprecated">
  29926. <param name="socket" type="java.net.Socket"/>
  29927. <param name="address" type="java.net.SocketAddress"/>
  29928. <param name="timeout" type="int"/>
  29929. <exception name="IOException" type="java.io.IOException"/>
  29930. <doc>
  29931. <![CDATA[This is a drop-in replacement for
  29932. {@link Socket#connect(SocketAddress, int)}.
  29933. In the case of normal sockets that don't have associated channels, this
  29934. just invokes <code>socket.connect(endpoint, timeout)</code>. If
  29935. <code>socket.getChannel()</code> returns a non-null channel,
  29936. connect is implemented using Hadoop's selectors. This is done mainly
  29937. to avoid Sun's connect implementation from creating thread-local
  29938. selectors, since Hadoop does not have control on when these are closed
  29939. and could end up taking all the available file descriptors.
  29940. @see java.net.Socket#connect(java.net.SocketAddress, int)
  29941. @param socket
  29942. @param address the remote address
  29943. @param timeout timeout in milliseconds]]>
  29944. </doc>
  29945. </method>
  29946. <method name="connect"
  29947. abstract="false" native="false" synchronized="false"
  29948. static="true" final="false" visibility="public"
  29949. deprecated="not deprecated">
  29950. <param name="socket" type="java.net.Socket"/>
  29951. <param name="endpoint" type="java.net.SocketAddress"/>
  29952. <param name="localAddr" type="java.net.SocketAddress"/>
  29953. <param name="timeout" type="int"/>
  29954. <exception name="IOException" type="java.io.IOException"/>
  29955. <doc>
  29956. <![CDATA[Like {@link NetUtils#connect(Socket, SocketAddress, int)} but
  29957. also takes a local address and port to bind the socket to.
  29958. @param socket
  29959. @param endpoint the remote address
  29960. @param localAddr the local address to bind the socket to
  29961. @param timeout timeout in milliseconds]]>
  29962. </doc>
  29963. </method>
  29964. <method name="normalizeHostName" return="java.lang.String"
  29965. abstract="false" native="false" synchronized="false"
  29966. static="true" final="false" visibility="public"
  29967. deprecated="not deprecated">
  29968. <param name="name" type="java.lang.String"/>
  29969. <doc>
  29970. <![CDATA[Given a string representation of a host, return its ip address
  29971. in textual presentation.
  29972. @param name a string representation of a host:
  29973. either a textual representation its IP address or its host name
  29974. @return its IP address in the string format]]>
  29975. </doc>
  29976. </method>
  29977. <method name="normalizeHostNames" return="java.util.List"
  29978. abstract="false" native="false" synchronized="false"
  29979. static="true" final="false" visibility="public"
  29980. deprecated="not deprecated">
  29981. <param name="names" type="java.util.Collection"/>
  29982. <doc>
  29983. <![CDATA[Given a collection of string representation of hosts, return a list of
  29984. corresponding IP addresses in the textual representation.
  29985. @param names a collection of string representations of hosts
  29986. @return a list of corresponding IP addresses in the string format
  29987. @see #normalizeHostName(String)]]>
  29988. </doc>
  29989. </method>
  29990. <method name="verifyHostnames"
  29991. abstract="false" native="false" synchronized="false"
  29992. static="true" final="false" visibility="public"
  29993. deprecated="not deprecated">
  29994. <param name="names" type="java.lang.String[]"/>
  29995. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  29996. <doc>
  29997. <![CDATA[Performs a sanity check on the list of hostnames/IPs to verify they at least
  29998. appear to be valid.
  29999. @param names - List of hostnames/IPs
  30000. @throws UnknownHostException]]>
  30001. </doc>
  30002. </method>
  30003. <method name="getLocalInetAddress" return="java.net.InetAddress"
  30004. abstract="false" native="false" synchronized="false"
  30005. static="true" final="false" visibility="public"
  30006. deprecated="not deprecated">
  30007. <param name="host" type="java.lang.String"/>
  30008. <exception name="SocketException" type="java.net.SocketException"/>
  30009. <doc>
  30010. <![CDATA[Checks if {@code host} is a local host name and return {@link InetAddress}
  30011. corresponding to that address.
  30012. @param host the specified host
  30013. @return a valid local {@link InetAddress} or null
  30014. @throws SocketException if an I/O error occurs]]>
  30015. </doc>
  30016. </method>
  30017. <method name="isValidSubnet" return="boolean"
  30018. abstract="false" native="false" synchronized="false"
  30019. static="true" final="false" visibility="public"
  30020. deprecated="not deprecated">
  30021. <param name="subnet" type="java.lang.String"/>
  30022. <doc>
  30023. <![CDATA[@return true if the given string is a subnet specified
  30024. using CIDR notation, false otherwise]]>
  30025. </doc>
  30026. </method>
  30027. <method name="getIPs" return="java.util.List"
  30028. abstract="false" native="false" synchronized="false"
  30029. static="true" final="false" visibility="public"
  30030. deprecated="not deprecated">
  30031. <param name="subnet" type="java.lang.String"/>
  30032. <param name="returnSubinterfaces" type="boolean"/>
  30033. <doc>
  30034. <![CDATA[Return an InetAddress for each interface that matches the
  30035. given subnet specified using CIDR notation.
  30036. @param subnet subnet specified using CIDR notation
  30037. @param returnSubinterfaces
  30038. whether to return IPs associated with subinterfaces
  30039. @throws IllegalArgumentException if subnet is invalid]]>
  30040. </doc>
  30041. </method>
  30042. </class>
  30043. <!-- end class org.apache.hadoop.net.NetUtils -->
  30044. <!-- start class org.apache.hadoop.net.NetworkTopology -->
  30045. <class name="NetworkTopology" extends="java.lang.Object"
  30046. abstract="false"
  30047. static="false" final="false" visibility="public"
  30048. deprecated="not deprecated">
  30049. <constructor name="NetworkTopology"
  30050. static="false" final="false" visibility="public"
  30051. deprecated="not deprecated">
  30052. </constructor>
  30053. <method name="add"
  30054. abstract="false" native="false" synchronized="false"
  30055. static="false" final="false" visibility="public"
  30056. deprecated="not deprecated">
  30057. <param name="node" type="org.apache.hadoop.net.Node"/>
  30058. <doc>
  30059. <![CDATA[Add a leaf node
  30060. Update node counter & rack counter if neccessary
  30061. @param node
  30062. node to be added
  30063. @exception IllegalArgumentException if add a node to a leave
  30064. or node to be added is not a leaf]]>
  30065. </doc>
  30066. </method>
  30067. <method name="remove"
  30068. abstract="false" native="false" synchronized="false"
  30069. static="false" final="false" visibility="public"
  30070. deprecated="not deprecated">
  30071. <param name="node" type="org.apache.hadoop.net.Node"/>
  30072. <doc>
  30073. <![CDATA[Remove a node
  30074. Update node counter & rack counter if neccessary
  30075. @param node
  30076. node to be removed]]>
  30077. </doc>
  30078. </method>
  30079. <method name="contains" return="boolean"
  30080. abstract="false" native="false" synchronized="false"
  30081. static="false" final="false" visibility="public"
  30082. deprecated="not deprecated">
  30083. <param name="node" type="org.apache.hadoop.net.Node"/>
  30084. <doc>
  30085. <![CDATA[Check if the tree contains node <i>node</i>
  30086. @param node
  30087. a node
  30088. @return true if <i>node</i> is already in the tree; false otherwise]]>
  30089. </doc>
  30090. </method>
  30091. <method name="getNode" return="org.apache.hadoop.net.Node"
  30092. abstract="false" native="false" synchronized="false"
  30093. static="false" final="false" visibility="public"
  30094. deprecated="not deprecated">
  30095. <param name="loc" type="java.lang.String"/>
  30096. <doc>
  30097. <![CDATA[Given a string representation of a node, return its reference
  30098. @param loc
  30099. a path-like string representation of a node
  30100. @return a reference to the node; null if the node is not in the tree]]>
  30101. </doc>
  30102. </method>
  30103. <method name="getNumOfRacks" return="int"
  30104. abstract="false" native="false" synchronized="false"
  30105. static="false" final="false" visibility="public"
  30106. deprecated="not deprecated">
  30107. <doc>
  30108. <![CDATA[Return the total number of racks]]>
  30109. </doc>
  30110. </method>
  30111. <method name="getNumOfLeaves" return="int"
  30112. abstract="false" native="false" synchronized="false"
  30113. static="false" final="false" visibility="public"
  30114. deprecated="not deprecated">
  30115. <doc>
  30116. <![CDATA[Return the total number of nodes]]>
  30117. </doc>
  30118. </method>
  30119. <method name="getDistance" return="int"
  30120. abstract="false" native="false" synchronized="false"
  30121. static="false" final="false" visibility="public"
  30122. deprecated="not deprecated">
  30123. <param name="node1" type="org.apache.hadoop.net.Node"/>
  30124. <param name="node2" type="org.apache.hadoop.net.Node"/>
  30125. <doc>
  30126. <![CDATA[Return the distance between two nodes
  30127. It is assumed that the distance from one node to its parent is 1
  30128. The distance between two nodes is calculated by summing up their distances
  30129. to their closest common ancestor.
  30130. @param node1 one node
  30131. @param node2 another node
  30132. @return the distance between node1 and node2
  30133. node1 or node2 do not belong to the cluster]]>
  30134. </doc>
  30135. </method>
  30136. <method name="isOnSameRack" return="boolean"
  30137. abstract="false" native="false" synchronized="false"
  30138. static="false" final="false" visibility="public"
  30139. deprecated="not deprecated">
  30140. <param name="node1" type="org.apache.hadoop.net.Node"/>
  30141. <param name="node2" type="org.apache.hadoop.net.Node"/>
  30142. <doc>
  30143. <![CDATA[Check if two nodes are on the same rack
  30144. @param node1 one node
  30145. @param node2 another node
  30146. @return true if node1 and node2 are pm the same rack; false otherwise
  30147. @exception IllegalArgumentException when either node1 or node2 is null, or
  30148. node1 or node2 do not belong to the cluster]]>
  30149. </doc>
  30150. </method>
  30151. <method name="chooseRandom" return="org.apache.hadoop.net.Node"
  30152. abstract="false" native="false" synchronized="false"
  30153. static="false" final="false" visibility="public"
  30154. deprecated="not deprecated">
  30155. <param name="scope" type="java.lang.String"/>
  30156. <doc>
  30157. <![CDATA[randomly choose one node from <i>scope</i>
  30158. if scope starts with ~, choose one from the all nodes except for the
  30159. ones in <i>scope</i>; otherwise, choose one from <i>scope</i>
  30160. @param scope range of nodes from which a node will be choosen
  30161. @return the choosen node]]>
  30162. </doc>
  30163. </method>
  30164. <method name="countNumOfAvailableNodes" return="int"
  30165. abstract="false" native="false" synchronized="false"
  30166. static="false" final="false" visibility="public"
  30167. deprecated="not deprecated">
  30168. <param name="scope" type="java.lang.String"/>
  30169. <param name="excludedNodes" type="java.util.List"/>
  30170. <doc>
  30171. <![CDATA[return the number of leaves in <i>scope</i> but not in <i>excludedNodes</i>
  30172. if scope starts with ~, return the number of nodes that are not
  30173. in <i>scope</i> and <i>excludedNodes</i>;
  30174. @param scope a path string that may start with ~
  30175. @param excludedNodes a list of nodes
  30176. @return number of available nodes]]>
  30177. </doc>
  30178. </method>
  30179. <method name="toString" return="java.lang.String"
  30180. abstract="false" native="false" synchronized="false"
  30181. static="false" final="false" visibility="public"
  30182. deprecated="not deprecated">
  30183. <doc>
  30184. <![CDATA[convert a network tree to a string]]>
  30185. </doc>
  30186. </method>
  30187. <method name="pseudoSortByDistance"
  30188. abstract="false" native="false" synchronized="false"
  30189. static="false" final="false" visibility="public"
  30190. deprecated="not deprecated">
  30191. <param name="reader" type="org.apache.hadoop.net.Node"/>
  30192. <param name="nodes" type="org.apache.hadoop.net.Node[]"/>
  30193. <doc>
  30194. <![CDATA[Sort nodes array by their distances to <i>reader</i>
  30195. It linearly scans the array, if a local node is found, swap it with
  30196. the first element of the array.
  30197. If a local rack node is found, swap it with the first element following
  30198. the local node.
  30199. If neither local node or local rack node is found, put a random replica
  30200. location at postion 0.
  30201. It leaves the rest nodes untouched.]]>
  30202. </doc>
  30203. </method>
  30204. <field name="DEFAULT_RACK" type="java.lang.String"
  30205. transient="false" volatile="false"
  30206. static="true" final="true" visibility="public"
  30207. deprecated="not deprecated">
  30208. </field>
  30209. <field name="DEFAULT_HOST_LEVEL" type="int"
  30210. transient="false" volatile="false"
  30211. static="true" final="true" visibility="public"
  30212. deprecated="not deprecated">
  30213. </field>
  30214. <field name="LOG" type="org.apache.commons.logging.Log"
  30215. transient="false" volatile="false"
  30216. static="true" final="true" visibility="public"
  30217. deprecated="not deprecated">
  30218. </field>
  30219. <doc>
  30220. <![CDATA[The class represents a cluster of computer with a tree hierarchical
  30221. network topology.
  30222. For example, a cluster may be consists of many data centers filled
  30223. with racks of computers.
  30224. In a network topology, leaves represent data nodes (computers) and inner
  30225. nodes represent switches/routers that manage traffic in/out of data centers
  30226. or racks.]]>
  30227. </doc>
  30228. </class>
  30229. <!-- end class org.apache.hadoop.net.NetworkTopology -->
  30230. <!-- start class org.apache.hadoop.net.NetworkTopology.InvalidTopologyException -->
  30231. <class name="NetworkTopology.InvalidTopologyException" extends="java.lang.RuntimeException"
  30232. abstract="false"
  30233. static="true" final="false" visibility="public"
  30234. deprecated="not deprecated">
  30235. <constructor name="NetworkTopology.InvalidTopologyException" type="java.lang.String"
  30236. static="false" final="false" visibility="public"
  30237. deprecated="not deprecated">
  30238. </constructor>
  30239. </class>
  30240. <!-- end class org.apache.hadoop.net.NetworkTopology.InvalidTopologyException -->
  30241. <!-- start interface org.apache.hadoop.net.Node -->
  30242. <interface name="Node" abstract="true"
  30243. static="false" final="false" visibility="public"
  30244. deprecated="not deprecated">
  30245. <method name="getNetworkLocation" return="java.lang.String"
  30246. abstract="false" native="false" synchronized="false"
  30247. static="false" final="false" visibility="public"
  30248. deprecated="not deprecated">
  30249. <doc>
  30250. <![CDATA[Return the string representation of this node's network location]]>
  30251. </doc>
  30252. </method>
  30253. <method name="setNetworkLocation"
  30254. abstract="false" native="false" synchronized="false"
  30255. static="false" final="false" visibility="public"
  30256. deprecated="not deprecated">
  30257. <param name="location" type="java.lang.String"/>
  30258. <doc>
  30259. <![CDATA[Set the node's network location]]>
  30260. </doc>
  30261. </method>
  30262. <method name="getName" return="java.lang.String"
  30263. abstract="false" native="false" synchronized="false"
  30264. static="false" final="false" visibility="public"
  30265. deprecated="not deprecated">
  30266. <doc>
  30267. <![CDATA[Return this node's name]]>
  30268. </doc>
  30269. </method>
  30270. <method name="getParent" return="org.apache.hadoop.net.Node"
  30271. abstract="false" native="false" synchronized="false"
  30272. static="false" final="false" visibility="public"
  30273. deprecated="not deprecated">
  30274. <doc>
  30275. <![CDATA[Return this node's parent]]>
  30276. </doc>
  30277. </method>
  30278. <method name="setParent"
  30279. abstract="false" native="false" synchronized="false"
  30280. static="false" final="false" visibility="public"
  30281. deprecated="not deprecated">
  30282. <param name="parent" type="org.apache.hadoop.net.Node"/>
  30283. <doc>
  30284. <![CDATA[Set this node's parent]]>
  30285. </doc>
  30286. </method>
  30287. <method name="getLevel" return="int"
  30288. abstract="false" native="false" synchronized="false"
  30289. static="false" final="false" visibility="public"
  30290. deprecated="not deprecated">
  30291. <doc>
  30292. <![CDATA[Return this node's level in the tree.
  30293. E.g. the root of a tree returns 0 and its children return 1]]>
  30294. </doc>
  30295. </method>
  30296. <method name="setLevel"
  30297. abstract="false" native="false" synchronized="false"
  30298. static="false" final="false" visibility="public"
  30299. deprecated="not deprecated">
  30300. <param name="i" type="int"/>
  30301. <doc>
  30302. <![CDATA[Set this node's level in the tree.]]>
  30303. </doc>
  30304. </method>
  30305. <doc>
  30306. <![CDATA[The interface defines a node in a network topology.
  30307. A node may be a leave representing a data node or an inner
  30308. node representing a datacenter or rack.
  30309. Each data has a name and its location in the network is
  30310. decided by a string with syntax similar to a file name.
  30311. For example, a data node's name is hostname:port# and if it's located at
  30312. rack "orange" in datacenter "dog", the string representation of its
  30313. network location is /dog/orange]]>
  30314. </doc>
  30315. </interface>
  30316. <!-- end interface org.apache.hadoop.net.Node -->
  30317. <!-- start class org.apache.hadoop.net.NodeBase -->
  30318. <class name="NodeBase" extends="java.lang.Object"
  30319. abstract="false"
  30320. static="false" final="false" visibility="public"
  30321. deprecated="not deprecated">
  30322. <implements name="org.apache.hadoop.net.Node"/>
  30323. <constructor name="NodeBase"
  30324. static="false" final="false" visibility="public"
  30325. deprecated="not deprecated">
  30326. <doc>
  30327. <![CDATA[Default constructor]]>
  30328. </doc>
  30329. </constructor>
  30330. <constructor name="NodeBase" type="java.lang.String"
  30331. static="false" final="false" visibility="public"
  30332. deprecated="not deprecated">
  30333. <doc>
  30334. <![CDATA[Construct a node from its path
  30335. @param path
  30336. a concatenation of this node's location, the path seperator, and its name]]>
  30337. </doc>
  30338. </constructor>
  30339. <constructor name="NodeBase" type="java.lang.String, java.lang.String"
  30340. static="false" final="false" visibility="public"
  30341. deprecated="not deprecated">
  30342. <doc>
  30343. <![CDATA[Construct a node from its name and its location
  30344. @param name this node's name
  30345. @param location this node's location]]>
  30346. </doc>
  30347. </constructor>
  30348. <constructor name="NodeBase" type="java.lang.String, java.lang.String, org.apache.hadoop.net.Node, int"
  30349. static="false" final="false" visibility="public"
  30350. deprecated="not deprecated">
  30351. <doc>
  30352. <![CDATA[Construct a node from its name and its location
  30353. @param name this node's name
  30354. @param location this node's location
  30355. @param parent this node's parent node
  30356. @param level this node's level in the tree]]>
  30357. </doc>
  30358. </constructor>
  30359. <method name="getName" return="java.lang.String"
  30360. abstract="false" native="false" synchronized="false"
  30361. static="false" final="false" visibility="public"
  30362. deprecated="not deprecated">
  30363. <doc>
  30364. <![CDATA[Return this node's name]]>
  30365. </doc>
  30366. </method>
  30367. <method name="getNetworkLocation" return="java.lang.String"
  30368. abstract="false" native="false" synchronized="false"
  30369. static="false" final="false" visibility="public"
  30370. deprecated="not deprecated">
  30371. <doc>
  30372. <![CDATA[Return this node's network location]]>
  30373. </doc>
  30374. </method>
  30375. <method name="setNetworkLocation"
  30376. abstract="false" native="false" synchronized="false"
  30377. static="false" final="false" visibility="public"
  30378. deprecated="not deprecated">
  30379. <param name="location" type="java.lang.String"/>
  30380. <doc>
  30381. <![CDATA[Set this node's network location]]>
  30382. </doc>
  30383. </method>
  30384. <method name="getPath" return="java.lang.String"
  30385. abstract="false" native="false" synchronized="false"
  30386. static="true" final="false" visibility="public"
  30387. deprecated="not deprecated">
  30388. <param name="node" type="org.apache.hadoop.net.Node"/>
  30389. <doc>
  30390. <![CDATA[Return this node's path]]>
  30391. </doc>
  30392. </method>
  30393. <method name="toString" return="java.lang.String"
  30394. abstract="false" native="false" synchronized="false"
  30395. static="false" final="false" visibility="public"
  30396. deprecated="not deprecated">
  30397. <doc>
  30398. <![CDATA[Return this node's string representation]]>
  30399. </doc>
  30400. </method>
  30401. <method name="normalize" return="java.lang.String"
  30402. abstract="false" native="false" synchronized="false"
  30403. static="true" final="false" visibility="public"
  30404. deprecated="not deprecated">
  30405. <param name="path" type="java.lang.String"/>
  30406. <doc>
  30407. <![CDATA[Normalize a path]]>
  30408. </doc>
  30409. </method>
  30410. <method name="getParent" return="org.apache.hadoop.net.Node"
  30411. abstract="false" native="false" synchronized="false"
  30412. static="false" final="false" visibility="public"
  30413. deprecated="not deprecated">
  30414. <doc>
  30415. <![CDATA[Return this node's parent]]>
  30416. </doc>
  30417. </method>
  30418. <method name="setParent"
  30419. abstract="false" native="false" synchronized="false"
  30420. static="false" final="false" visibility="public"
  30421. deprecated="not deprecated">
  30422. <param name="parent" type="org.apache.hadoop.net.Node"/>
  30423. <doc>
  30424. <![CDATA[Set this node's parent]]>
  30425. </doc>
  30426. </method>
  30427. <method name="getLevel" return="int"
  30428. abstract="false" native="false" synchronized="false"
  30429. static="false" final="false" visibility="public"
  30430. deprecated="not deprecated">
  30431. <doc>
  30432. <![CDATA[Return this node's level in the tree.
  30433. E.g. the root of a tree returns 0 and its children return 1]]>
  30434. </doc>
  30435. </method>
  30436. <method name="setLevel"
  30437. abstract="false" native="false" synchronized="false"
  30438. static="false" final="false" visibility="public"
  30439. deprecated="not deprecated">
  30440. <param name="level" type="int"/>
  30441. <doc>
  30442. <![CDATA[Set this node's level in the tree]]>
  30443. </doc>
  30444. </method>
  30445. <field name="PATH_SEPARATOR" type="char"
  30446. transient="false" volatile="false"
  30447. static="true" final="true" visibility="public"
  30448. deprecated="not deprecated">
  30449. </field>
  30450. <field name="PATH_SEPARATOR_STR" type="java.lang.String"
  30451. transient="false" volatile="false"
  30452. static="true" final="true" visibility="public"
  30453. deprecated="not deprecated">
  30454. </field>
  30455. <field name="ROOT" type="java.lang.String"
  30456. transient="false" volatile="false"
  30457. static="true" final="true" visibility="public"
  30458. deprecated="not deprecated">
  30459. </field>
  30460. <field name="name" type="java.lang.String"
  30461. transient="false" volatile="false"
  30462. static="false" final="false" visibility="protected"
  30463. deprecated="not deprecated">
  30464. </field>
  30465. <field name="location" type="java.lang.String"
  30466. transient="false" volatile="false"
  30467. static="false" final="false" visibility="protected"
  30468. deprecated="not deprecated">
  30469. </field>
  30470. <field name="level" type="int"
  30471. transient="false" volatile="false"
  30472. static="false" final="false" visibility="protected"
  30473. deprecated="not deprecated">
  30474. </field>
  30475. <field name="parent" type="org.apache.hadoop.net.Node"
  30476. transient="false" volatile="false"
  30477. static="false" final="false" visibility="protected"
  30478. deprecated="not deprecated">
  30479. </field>
  30480. <doc>
  30481. <![CDATA[A base class that implements interface Node]]>
  30482. </doc>
  30483. </class>
  30484. <!-- end class org.apache.hadoop.net.NodeBase -->
  30485. <!-- start class org.apache.hadoop.net.ScriptBasedMapping -->
  30486. <class name="ScriptBasedMapping" extends="org.apache.hadoop.net.CachedDNSToSwitchMapping"
  30487. abstract="false"
  30488. static="false" final="true" visibility="public"
  30489. deprecated="not deprecated">
  30490. <implements name="org.apache.hadoop.conf.Configurable"/>
  30491. <constructor name="ScriptBasedMapping"
  30492. static="false" final="false" visibility="public"
  30493. deprecated="not deprecated">
  30494. </constructor>
  30495. <constructor name="ScriptBasedMapping" type="org.apache.hadoop.conf.Configuration"
  30496. static="false" final="false" visibility="public"
  30497. deprecated="not deprecated">
  30498. </constructor>
  30499. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  30500. abstract="false" native="false" synchronized="false"
  30501. static="false" final="false" visibility="public"
  30502. deprecated="not deprecated">
  30503. </method>
  30504. <method name="setConf"
  30505. abstract="false" native="false" synchronized="false"
  30506. static="false" final="false" visibility="public"
  30507. deprecated="not deprecated">
  30508. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  30509. </method>
  30510. <doc>
  30511. <![CDATA[This class implements the {@link DNSToSwitchMapping} interface using a
  30512. script configured via topology.script.file.name .]]>
  30513. </doc>
  30514. </class>
  30515. <!-- end class org.apache.hadoop.net.ScriptBasedMapping -->
  30516. <!-- start class org.apache.hadoop.net.SocketInputStream -->
  30517. <class name="SocketInputStream" extends="java.io.InputStream"
  30518. abstract="false"
  30519. static="false" final="false" visibility="public"
  30520. deprecated="not deprecated">
  30521. <implements name="java.nio.channels.ReadableByteChannel"/>
  30522. <constructor name="SocketInputStream" type="java.nio.channels.ReadableByteChannel, long"
  30523. static="false" final="false" visibility="public"
  30524. deprecated="not deprecated">
  30525. <exception name="IOException" type="java.io.IOException"/>
  30526. <doc>
  30527. <![CDATA[Create a new input stream with the given timeout. If the timeout
  30528. is zero, it will be treated as infinite timeout. The socket's
  30529. channel will be configured to be non-blocking.
  30530. @param channel
  30531. Channel for reading, should also be a {@link SelectableChannel}.
  30532. The channel will be configured to be non-blocking.
  30533. @param timeout timeout in milliseconds. must not be negative.
  30534. @throws IOException]]>
  30535. </doc>
  30536. </constructor>
  30537. <constructor name="SocketInputStream" type="java.net.Socket, long"
  30538. static="false" final="false" visibility="public"
  30539. deprecated="not deprecated">
  30540. <exception name="IOException" type="java.io.IOException"/>
  30541. <doc>
  30542. <![CDATA[Same as SocketInputStream(socket.getChannel(), timeout): <br><br>
  30543. Create a new input stream with the given timeout. If the timeout
  30544. is zero, it will be treated as infinite timeout. The socket's
  30545. channel will be configured to be non-blocking.
  30546. @see SocketInputStream#SocketInputStream(ReadableByteChannel, long)
  30547. @param socket should have a channel associated with it.
  30548. @param timeout timeout timeout in milliseconds. must not be negative.
  30549. @throws IOException]]>
  30550. </doc>
  30551. </constructor>
  30552. <constructor name="SocketInputStream" type="java.net.Socket"
  30553. static="false" final="false" visibility="public"
  30554. deprecated="not deprecated">
  30555. <exception name="IOException" type="java.io.IOException"/>
  30556. <doc>
  30557. <![CDATA[Same as SocketInputStream(socket.getChannel(), socket.getSoTimeout())
  30558. :<br><br>
  30559. Create a new input stream with the given timeout. If the timeout
  30560. is zero, it will be treated as infinite timeout. The socket's
  30561. channel will be configured to be non-blocking.
  30562. @see SocketInputStream#SocketInputStream(ReadableByteChannel, long)
  30563. @param socket should have a channel associated with it.
  30564. @throws IOException]]>
  30565. </doc>
  30566. </constructor>
  30567. <method name="read" return="int"
  30568. abstract="false" native="false" synchronized="false"
  30569. static="false" final="false" visibility="public"
  30570. deprecated="not deprecated">
  30571. <exception name="IOException" type="java.io.IOException"/>
  30572. </method>
  30573. <method name="read" return="int"
  30574. abstract="false" native="false" synchronized="false"
  30575. static="false" final="false" visibility="public"
  30576. deprecated="not deprecated">
  30577. <param name="b" type="byte[]"/>
  30578. <param name="off" type="int"/>
  30579. <param name="len" type="int"/>
  30580. <exception name="IOException" type="java.io.IOException"/>
  30581. </method>
  30582. <method name="close"
  30583. abstract="false" native="false" synchronized="true"
  30584. static="false" final="false" visibility="public"
  30585. deprecated="not deprecated">
  30586. <exception name="IOException" type="java.io.IOException"/>
  30587. </method>
  30588. <method name="getChannel" return="java.nio.channels.ReadableByteChannel"
  30589. abstract="false" native="false" synchronized="false"
  30590. static="false" final="false" visibility="public"
  30591. deprecated="not deprecated">
  30592. <doc>
  30593. <![CDATA[Returns underlying channel used by inputstream.
  30594. This is useful in certain cases like channel for
  30595. {@link FileChannel#transferFrom(ReadableByteChannel, long, long)}.]]>
  30596. </doc>
  30597. </method>
  30598. <method name="isOpen" return="boolean"
  30599. abstract="false" native="false" synchronized="false"
  30600. static="false" final="false" visibility="public"
  30601. deprecated="not deprecated">
  30602. </method>
  30603. <method name="read" return="int"
  30604. abstract="false" native="false" synchronized="false"
  30605. static="false" final="false" visibility="public"
  30606. deprecated="not deprecated">
  30607. <param name="dst" type="java.nio.ByteBuffer"/>
  30608. <exception name="IOException" type="java.io.IOException"/>
  30609. </method>
  30610. <method name="waitForReadable"
  30611. abstract="false" native="false" synchronized="false"
  30612. static="false" final="false" visibility="public"
  30613. deprecated="not deprecated">
  30614. <exception name="IOException" type="java.io.IOException"/>
  30615. <doc>
  30616. <![CDATA[waits for the underlying channel to be ready for reading.
  30617. The timeout specified for this stream applies to this wait.
  30618. @throws SocketTimeoutException
  30619. if select on the channel times out.
  30620. @throws IOException
  30621. if any other I/O error occurs.]]>
  30622. </doc>
  30623. </method>
  30624. <doc>
  30625. <![CDATA[This implements an input stream that can have a timeout while reading.
  30626. This sets non-blocking flag on the socket channel.
  30627. So after create this object, read() on
  30628. {@link Socket#getInputStream()} and write() on
  30629. {@link Socket#getOutputStream()} for the associated socket will throw
  30630. IllegalBlockingModeException.
  30631. Please use {@link SocketOutputStream} for writing.]]>
  30632. </doc>
  30633. </class>
  30634. <!-- end class org.apache.hadoop.net.SocketInputStream -->
  30635. <!-- start class org.apache.hadoop.net.SocketOutputStream -->
  30636. <class name="SocketOutputStream" extends="java.io.OutputStream"
  30637. abstract="false"
  30638. static="false" final="false" visibility="public"
  30639. deprecated="not deprecated">
  30640. <implements name="java.nio.channels.WritableByteChannel"/>
  30641. <constructor name="SocketOutputStream" type="java.nio.channels.WritableByteChannel, long"
  30642. static="false" final="false" visibility="public"
  30643. deprecated="not deprecated">
  30644. <exception name="IOException" type="java.io.IOException"/>
  30645. <doc>
  30646. <![CDATA[Create a new ouput stream with the given timeout. If the timeout
  30647. is zero, it will be treated as infinite timeout. The socket's
  30648. channel will be configured to be non-blocking.
  30649. @param channel
  30650. Channel for writing, should also be a {@link SelectableChannel}.
  30651. The channel will be configured to be non-blocking.
  30652. @param timeout timeout in milliseconds. must not be negative.
  30653. @throws IOException]]>
  30654. </doc>
  30655. </constructor>
  30656. <constructor name="SocketOutputStream" type="java.net.Socket, long"
  30657. static="false" final="false" visibility="public"
  30658. deprecated="not deprecated">
  30659. <exception name="IOException" type="java.io.IOException"/>
  30660. <doc>
  30661. <![CDATA[Same as SocketOutputStream(socket.getChannel(), timeout):<br><br>
  30662. Create a new ouput stream with the given timeout. If the timeout
  30663. is zero, it will be treated as infinite timeout. The socket's
  30664. channel will be configured to be non-blocking.
  30665. @see SocketOutputStream#SocketOutputStream(WritableByteChannel, long)
  30666. @param socket should have a channel associated with it.
  30667. @param timeout timeout timeout in milliseconds. must not be negative.
  30668. @throws IOException]]>
  30669. </doc>
  30670. </constructor>
  30671. <method name="write"
  30672. abstract="false" native="false" synchronized="false"
  30673. static="false" final="false" visibility="public"
  30674. deprecated="not deprecated">
  30675. <param name="b" type="int"/>
  30676. <exception name="IOException" type="java.io.IOException"/>
  30677. </method>
  30678. <method name="write"
  30679. abstract="false" native="false" synchronized="false"
  30680. static="false" final="false" visibility="public"
  30681. deprecated="not deprecated">
  30682. <param name="b" type="byte[]"/>
  30683. <param name="off" type="int"/>
  30684. <param name="len" type="int"/>
  30685. <exception name="IOException" type="java.io.IOException"/>
  30686. </method>
  30687. <method name="close"
  30688. abstract="false" native="false" synchronized="true"
  30689. static="false" final="false" visibility="public"
  30690. deprecated="not deprecated">
  30691. <exception name="IOException" type="java.io.IOException"/>
  30692. </method>
  30693. <method name="getChannel" return="java.nio.channels.WritableByteChannel"
  30694. abstract="false" native="false" synchronized="false"
  30695. static="false" final="false" visibility="public"
  30696. deprecated="not deprecated">
  30697. <doc>
  30698. <![CDATA[Returns underlying channel used by this stream.
  30699. This is useful in certain cases like channel for
  30700. {@link FileChannel#transferTo(long, long, WritableByteChannel)}]]>
  30701. </doc>
  30702. </method>
  30703. <method name="isOpen" return="boolean"
  30704. abstract="false" native="false" synchronized="false"
  30705. static="false" final="false" visibility="public"
  30706. deprecated="not deprecated">
  30707. </method>
  30708. <method name="write" return="int"
  30709. abstract="false" native="false" synchronized="false"
  30710. static="false" final="false" visibility="public"
  30711. deprecated="not deprecated">
  30712. <param name="src" type="java.nio.ByteBuffer"/>
  30713. <exception name="IOException" type="java.io.IOException"/>
  30714. </method>
  30715. <method name="waitForWritable"
  30716. abstract="false" native="false" synchronized="false"
  30717. static="false" final="false" visibility="public"
  30718. deprecated="not deprecated">
  30719. <exception name="IOException" type="java.io.IOException"/>
  30720. <doc>
  30721. <![CDATA[waits for the underlying channel to be ready for writing.
  30722. The timeout specified for this stream applies to this wait.
  30723. @throws SocketTimeoutException
  30724. if select on the channel times out.
  30725. @throws IOException
  30726. if any other I/O error occurs.]]>
  30727. </doc>
  30728. </method>
  30729. <method name="transferToFully"
  30730. abstract="false" native="false" synchronized="false"
  30731. static="false" final="false" visibility="public"
  30732. deprecated="not deprecated">
  30733. <param name="fileCh" type="java.nio.channels.FileChannel"/>
  30734. <param name="position" type="long"/>
  30735. <param name="count" type="int"/>
  30736. <exception name="IOException" type="java.io.IOException"/>
  30737. <doc>
  30738. <![CDATA[Transfers data from FileChannel using
  30739. {@link FileChannel#transferTo(long, long, WritableByteChannel)}.
  30740. Similar to readFully(), this waits till requested amount of
  30741. data is transfered.
  30742. @param fileCh FileChannel to transfer data from.
  30743. @param position position within the channel where the transfer begins
  30744. @param count number of bytes to transfer.
  30745. @throws EOFException
  30746. If end of input file is reached before requested number of
  30747. bytes are transfered.
  30748. @throws SocketTimeoutException
  30749. If this channel blocks transfer longer than timeout for
  30750. this stream.
  30751. @throws IOException Includes any exception thrown by
  30752. {@link FileChannel#transferTo(long, long, WritableByteChannel)}.]]>
  30753. </doc>
  30754. </method>
  30755. <doc>
  30756. <![CDATA[This implements an output stream that can have a timeout while writing.
  30757. This sets non-blocking flag on the socket channel.
  30758. So after creating this object , read() on
  30759. {@link Socket#getInputStream()} and write() on
  30760. {@link Socket#getOutputStream()} on the associated socket will throw
  30761. llegalBlockingModeException.
  30762. Please use {@link SocketInputStream} for reading.]]>
  30763. </doc>
  30764. </class>
  30765. <!-- end class org.apache.hadoop.net.SocketOutputStream -->
  30766. <!-- start class org.apache.hadoop.net.SocksSocketFactory -->
  30767. <class name="SocksSocketFactory" extends="javax.net.SocketFactory"
  30768. abstract="false"
  30769. static="false" final="false" visibility="public"
  30770. deprecated="not deprecated">
  30771. <implements name="org.apache.hadoop.conf.Configurable"/>
  30772. <constructor name="SocksSocketFactory"
  30773. static="false" final="false" visibility="public"
  30774. deprecated="not deprecated">
  30775. <doc>
  30776. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  30777. </doc>
  30778. </constructor>
  30779. <constructor name="SocksSocketFactory" type="java.net.Proxy"
  30780. static="false" final="false" visibility="public"
  30781. deprecated="not deprecated">
  30782. <doc>
  30783. <![CDATA[Constructor with a supplied Proxy
  30784. @param proxy the proxy to use to create sockets]]>
  30785. </doc>
  30786. </constructor>
  30787. <method name="createSocket" return="java.net.Socket"
  30788. abstract="false" native="false" synchronized="false"
  30789. static="false" final="false" visibility="public"
  30790. deprecated="not deprecated">
  30791. <exception name="IOException" type="java.io.IOException"/>
  30792. </method>
  30793. <method name="createSocket" return="java.net.Socket"
  30794. abstract="false" native="false" synchronized="false"
  30795. static="false" final="false" visibility="public"
  30796. deprecated="not deprecated">
  30797. <param name="addr" type="java.net.InetAddress"/>
  30798. <param name="port" type="int"/>
  30799. <exception name="IOException" type="java.io.IOException"/>
  30800. </method>
  30801. <method name="createSocket" return="java.net.Socket"
  30802. abstract="false" native="false" synchronized="false"
  30803. static="false" final="false" visibility="public"
  30804. deprecated="not deprecated">
  30805. <param name="addr" type="java.net.InetAddress"/>
  30806. <param name="port" type="int"/>
  30807. <param name="localHostAddr" type="java.net.InetAddress"/>
  30808. <param name="localPort" type="int"/>
  30809. <exception name="IOException" type="java.io.IOException"/>
  30810. </method>
  30811. <method name="createSocket" return="java.net.Socket"
  30812. abstract="false" native="false" synchronized="false"
  30813. static="false" final="false" visibility="public"
  30814. deprecated="not deprecated">
  30815. <param name="host" type="java.lang.String"/>
  30816. <param name="port" type="int"/>
  30817. <exception name="IOException" type="java.io.IOException"/>
  30818. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  30819. </method>
  30820. <method name="createSocket" return="java.net.Socket"
  30821. abstract="false" native="false" synchronized="false"
  30822. static="false" final="false" visibility="public"
  30823. deprecated="not deprecated">
  30824. <param name="host" type="java.lang.String"/>
  30825. <param name="port" type="int"/>
  30826. <param name="localHostAddr" type="java.net.InetAddress"/>
  30827. <param name="localPort" type="int"/>
  30828. <exception name="IOException" type="java.io.IOException"/>
  30829. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  30830. </method>
  30831. <method name="hashCode" return="int"
  30832. abstract="false" native="false" synchronized="false"
  30833. static="false" final="false" visibility="public"
  30834. deprecated="not deprecated">
  30835. </method>
  30836. <method name="equals" return="boolean"
  30837. abstract="false" native="false" synchronized="false"
  30838. static="false" final="false" visibility="public"
  30839. deprecated="not deprecated">
  30840. <param name="obj" type="java.lang.Object"/>
  30841. </method>
  30842. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  30843. abstract="false" native="false" synchronized="false"
  30844. static="false" final="false" visibility="public"
  30845. deprecated="not deprecated">
  30846. </method>
  30847. <method name="setConf"
  30848. abstract="false" native="false" synchronized="false"
  30849. static="false" final="false" visibility="public"
  30850. deprecated="not deprecated">
  30851. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  30852. </method>
  30853. <doc>
  30854. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  30855. </doc>
  30856. </class>
  30857. <!-- end class org.apache.hadoop.net.SocksSocketFactory -->
  30858. <!-- start class org.apache.hadoop.net.StandardSocketFactory -->
  30859. <class name="StandardSocketFactory" extends="javax.net.SocketFactory"
  30860. abstract="false"
  30861. static="false" final="false" visibility="public"
  30862. deprecated="not deprecated">
  30863. <constructor name="StandardSocketFactory"
  30864. static="false" final="false" visibility="public"
  30865. deprecated="not deprecated">
  30866. <doc>
  30867. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  30868. </doc>
  30869. </constructor>
  30870. <method name="createSocket" return="java.net.Socket"
  30871. abstract="false" native="false" synchronized="false"
  30872. static="false" final="false" visibility="public"
  30873. deprecated="not deprecated">
  30874. <exception name="IOException" type="java.io.IOException"/>
  30875. </method>
  30876. <method name="createSocket" return="java.net.Socket"
  30877. abstract="false" native="false" synchronized="false"
  30878. static="false" final="false" visibility="public"
  30879. deprecated="not deprecated">
  30880. <param name="addr" type="java.net.InetAddress"/>
  30881. <param name="port" type="int"/>
  30882. <exception name="IOException" type="java.io.IOException"/>
  30883. </method>
  30884. <method name="createSocket" return="java.net.Socket"
  30885. abstract="false" native="false" synchronized="false"
  30886. static="false" final="false" visibility="public"
  30887. deprecated="not deprecated">
  30888. <param name="addr" type="java.net.InetAddress"/>
  30889. <param name="port" type="int"/>
  30890. <param name="localHostAddr" type="java.net.InetAddress"/>
  30891. <param name="localPort" type="int"/>
  30892. <exception name="IOException" type="java.io.IOException"/>
  30893. </method>
  30894. <method name="createSocket" return="java.net.Socket"
  30895. abstract="false" native="false" synchronized="false"
  30896. static="false" final="false" visibility="public"
  30897. deprecated="not deprecated">
  30898. <param name="host" type="java.lang.String"/>
  30899. <param name="port" type="int"/>
  30900. <exception name="IOException" type="java.io.IOException"/>
  30901. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  30902. </method>
  30903. <method name="createSocket" return="java.net.Socket"
  30904. abstract="false" native="false" synchronized="false"
  30905. static="false" final="false" visibility="public"
  30906. deprecated="not deprecated">
  30907. <param name="host" type="java.lang.String"/>
  30908. <param name="port" type="int"/>
  30909. <param name="localHostAddr" type="java.net.InetAddress"/>
  30910. <param name="localPort" type="int"/>
  30911. <exception name="IOException" type="java.io.IOException"/>
  30912. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  30913. </method>
  30914. <method name="equals" return="boolean"
  30915. abstract="false" native="false" synchronized="false"
  30916. static="false" final="false" visibility="public"
  30917. deprecated="not deprecated">
  30918. <param name="obj" type="java.lang.Object"/>
  30919. </method>
  30920. <method name="hashCode" return="int"
  30921. abstract="false" native="false" synchronized="false"
  30922. static="false" final="false" visibility="public"
  30923. deprecated="not deprecated">
  30924. </method>
  30925. <doc>
  30926. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  30927. </doc>
  30928. </class>
  30929. <!-- end class org.apache.hadoop.net.StandardSocketFactory -->
  30930. </package>
  30931. <package name="org.apache.hadoop.record">
  30932. <!-- start class org.apache.hadoop.record.BinaryRecordInput -->
  30933. <class name="BinaryRecordInput" extends="java.lang.Object"
  30934. abstract="false"
  30935. static="false" final="false" visibility="public"
  30936. deprecated="not deprecated">
  30937. <implements name="org.apache.hadoop.record.RecordInput"/>
  30938. <constructor name="BinaryRecordInput" type="java.io.InputStream"
  30939. static="false" final="false" visibility="public"
  30940. deprecated="not deprecated">
  30941. <doc>
  30942. <![CDATA[Creates a new instance of BinaryRecordInput]]>
  30943. </doc>
  30944. </constructor>
  30945. <constructor name="BinaryRecordInput" type="java.io.DataInput"
  30946. static="false" final="false" visibility="public"
  30947. deprecated="not deprecated">
  30948. <doc>
  30949. <![CDATA[Creates a new instance of BinaryRecordInput]]>
  30950. </doc>
  30951. </constructor>
  30952. <method name="get" return="org.apache.hadoop.record.BinaryRecordInput"
  30953. abstract="false" native="false" synchronized="false"
  30954. static="true" final="false" visibility="public"
  30955. deprecated="not deprecated">
  30956. <param name="inp" type="java.io.DataInput"/>
  30957. <doc>
  30958. <![CDATA[Get a thread-local record input for the supplied DataInput.
  30959. @param inp data input stream
  30960. @return binary record input corresponding to the supplied DataInput.]]>
  30961. </doc>
  30962. </method>
  30963. <method name="readByte" return="byte"
  30964. abstract="false" native="false" synchronized="false"
  30965. static="false" final="false" visibility="public"
  30966. deprecated="not deprecated">
  30967. <param name="tag" type="java.lang.String"/>
  30968. <exception name="IOException" type="java.io.IOException"/>
  30969. </method>
  30970. <method name="readBool" return="boolean"
  30971. abstract="false" native="false" synchronized="false"
  30972. static="false" final="false" visibility="public"
  30973. deprecated="not deprecated">
  30974. <param name="tag" type="java.lang.String"/>
  30975. <exception name="IOException" type="java.io.IOException"/>
  30976. </method>
  30977. <method name="readInt" return="int"
  30978. abstract="false" native="false" synchronized="false"
  30979. static="false" final="false" visibility="public"
  30980. deprecated="not deprecated">
  30981. <param name="tag" type="java.lang.String"/>
  30982. <exception name="IOException" type="java.io.IOException"/>
  30983. </method>
  30984. <method name="readLong" return="long"
  30985. abstract="false" native="false" synchronized="false"
  30986. static="false" final="false" visibility="public"
  30987. deprecated="not deprecated">
  30988. <param name="tag" type="java.lang.String"/>
  30989. <exception name="IOException" type="java.io.IOException"/>
  30990. </method>
  30991. <method name="readFloat" return="float"
  30992. abstract="false" native="false" synchronized="false"
  30993. static="false" final="false" visibility="public"
  30994. deprecated="not deprecated">
  30995. <param name="tag" type="java.lang.String"/>
  30996. <exception name="IOException" type="java.io.IOException"/>
  30997. </method>
  30998. <method name="readDouble" return="double"
  30999. abstract="false" native="false" synchronized="false"
  31000. static="false" final="false" visibility="public"
  31001. deprecated="not deprecated">
  31002. <param name="tag" type="java.lang.String"/>
  31003. <exception name="IOException" type="java.io.IOException"/>
  31004. </method>
  31005. <method name="readString" return="java.lang.String"
  31006. abstract="false" native="false" synchronized="false"
  31007. static="false" final="false" visibility="public"
  31008. deprecated="not deprecated">
  31009. <param name="tag" type="java.lang.String"/>
  31010. <exception name="IOException" type="java.io.IOException"/>
  31011. </method>
  31012. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  31013. abstract="false" native="false" synchronized="false"
  31014. static="false" final="false" visibility="public"
  31015. deprecated="not deprecated">
  31016. <param name="tag" type="java.lang.String"/>
  31017. <exception name="IOException" type="java.io.IOException"/>
  31018. </method>
  31019. <method name="startRecord"
  31020. abstract="false" native="false" synchronized="false"
  31021. static="false" final="false" visibility="public"
  31022. deprecated="not deprecated">
  31023. <param name="tag" type="java.lang.String"/>
  31024. <exception name="IOException" type="java.io.IOException"/>
  31025. </method>
  31026. <method name="endRecord"
  31027. abstract="false" native="false" synchronized="false"
  31028. static="false" final="false" visibility="public"
  31029. deprecated="not deprecated">
  31030. <param name="tag" type="java.lang.String"/>
  31031. <exception name="IOException" type="java.io.IOException"/>
  31032. </method>
  31033. <method name="startVector" return="org.apache.hadoop.record.Index"
  31034. abstract="false" native="false" synchronized="false"
  31035. static="false" final="false" visibility="public"
  31036. deprecated="not deprecated">
  31037. <param name="tag" type="java.lang.String"/>
  31038. <exception name="IOException" type="java.io.IOException"/>
  31039. </method>
  31040. <method name="endVector"
  31041. abstract="false" native="false" synchronized="false"
  31042. static="false" final="false" visibility="public"
  31043. deprecated="not deprecated">
  31044. <param name="tag" type="java.lang.String"/>
  31045. <exception name="IOException" type="java.io.IOException"/>
  31046. </method>
  31047. <method name="startMap" return="org.apache.hadoop.record.Index"
  31048. abstract="false" native="false" synchronized="false"
  31049. static="false" final="false" visibility="public"
  31050. deprecated="not deprecated">
  31051. <param name="tag" type="java.lang.String"/>
  31052. <exception name="IOException" type="java.io.IOException"/>
  31053. </method>
  31054. <method name="endMap"
  31055. abstract="false" native="false" synchronized="false"
  31056. static="false" final="false" visibility="public"
  31057. deprecated="not deprecated">
  31058. <param name="tag" type="java.lang.String"/>
  31059. <exception name="IOException" type="java.io.IOException"/>
  31060. </method>
  31061. </class>
  31062. <!-- end class org.apache.hadoop.record.BinaryRecordInput -->
  31063. <!-- start class org.apache.hadoop.record.BinaryRecordOutput -->
  31064. <class name="BinaryRecordOutput" extends="java.lang.Object"
  31065. abstract="false"
  31066. static="false" final="false" visibility="public"
  31067. deprecated="not deprecated">
  31068. <implements name="org.apache.hadoop.record.RecordOutput"/>
  31069. <constructor name="BinaryRecordOutput" type="java.io.OutputStream"
  31070. static="false" final="false" visibility="public"
  31071. deprecated="not deprecated">
  31072. <doc>
  31073. <![CDATA[Creates a new instance of BinaryRecordOutput]]>
  31074. </doc>
  31075. </constructor>
  31076. <constructor name="BinaryRecordOutput" type="java.io.DataOutput"
  31077. static="false" final="false" visibility="public"
  31078. deprecated="not deprecated">
  31079. <doc>
  31080. <![CDATA[Creates a new instance of BinaryRecordOutput]]>
  31081. </doc>
  31082. </constructor>
  31083. <method name="get" return="org.apache.hadoop.record.BinaryRecordOutput"
  31084. abstract="false" native="false" synchronized="false"
  31085. static="true" final="false" visibility="public"
  31086. deprecated="not deprecated">
  31087. <param name="out" type="java.io.DataOutput"/>
  31088. <doc>
  31089. <![CDATA[Get a thread-local record output for the supplied DataOutput.
  31090. @param out data output stream
  31091. @return binary record output corresponding to the supplied DataOutput.]]>
  31092. </doc>
  31093. </method>
  31094. <method name="writeByte"
  31095. abstract="false" native="false" synchronized="false"
  31096. static="false" final="false" visibility="public"
  31097. deprecated="not deprecated">
  31098. <param name="b" type="byte"/>
  31099. <param name="tag" type="java.lang.String"/>
  31100. <exception name="IOException" type="java.io.IOException"/>
  31101. </method>
  31102. <method name="writeBool"
  31103. abstract="false" native="false" synchronized="false"
  31104. static="false" final="false" visibility="public"
  31105. deprecated="not deprecated">
  31106. <param name="b" type="boolean"/>
  31107. <param name="tag" type="java.lang.String"/>
  31108. <exception name="IOException" type="java.io.IOException"/>
  31109. </method>
  31110. <method name="writeInt"
  31111. abstract="false" native="false" synchronized="false"
  31112. static="false" final="false" visibility="public"
  31113. deprecated="not deprecated">
  31114. <param name="i" type="int"/>
  31115. <param name="tag" type="java.lang.String"/>
  31116. <exception name="IOException" type="java.io.IOException"/>
  31117. </method>
  31118. <method name="writeLong"
  31119. abstract="false" native="false" synchronized="false"
  31120. static="false" final="false" visibility="public"
  31121. deprecated="not deprecated">
  31122. <param name="l" type="long"/>
  31123. <param name="tag" type="java.lang.String"/>
  31124. <exception name="IOException" type="java.io.IOException"/>
  31125. </method>
  31126. <method name="writeFloat"
  31127. abstract="false" native="false" synchronized="false"
  31128. static="false" final="false" visibility="public"
  31129. deprecated="not deprecated">
  31130. <param name="f" type="float"/>
  31131. <param name="tag" type="java.lang.String"/>
  31132. <exception name="IOException" type="java.io.IOException"/>
  31133. </method>
  31134. <method name="writeDouble"
  31135. abstract="false" native="false" synchronized="false"
  31136. static="false" final="false" visibility="public"
  31137. deprecated="not deprecated">
  31138. <param name="d" type="double"/>
  31139. <param name="tag" type="java.lang.String"/>
  31140. <exception name="IOException" type="java.io.IOException"/>
  31141. </method>
  31142. <method name="writeString"
  31143. abstract="false" native="false" synchronized="false"
  31144. static="false" final="false" visibility="public"
  31145. deprecated="not deprecated">
  31146. <param name="s" type="java.lang.String"/>
  31147. <param name="tag" type="java.lang.String"/>
  31148. <exception name="IOException" type="java.io.IOException"/>
  31149. </method>
  31150. <method name="writeBuffer"
  31151. abstract="false" native="false" synchronized="false"
  31152. static="false" final="false" visibility="public"
  31153. deprecated="not deprecated">
  31154. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  31155. <param name="tag" type="java.lang.String"/>
  31156. <exception name="IOException" type="java.io.IOException"/>
  31157. </method>
  31158. <method name="startRecord"
  31159. abstract="false" native="false" synchronized="false"
  31160. static="false" final="false" visibility="public"
  31161. deprecated="not deprecated">
  31162. <param name="r" type="org.apache.hadoop.record.Record"/>
  31163. <param name="tag" type="java.lang.String"/>
  31164. <exception name="IOException" type="java.io.IOException"/>
  31165. </method>
  31166. <method name="endRecord"
  31167. abstract="false" native="false" synchronized="false"
  31168. static="false" final="false" visibility="public"
  31169. deprecated="not deprecated">
  31170. <param name="r" type="org.apache.hadoop.record.Record"/>
  31171. <param name="tag" type="java.lang.String"/>
  31172. <exception name="IOException" type="java.io.IOException"/>
  31173. </method>
  31174. <method name="startVector"
  31175. abstract="false" native="false" synchronized="false"
  31176. static="false" final="false" visibility="public"
  31177. deprecated="not deprecated">
  31178. <param name="v" type="java.util.ArrayList"/>
  31179. <param name="tag" type="java.lang.String"/>
  31180. <exception name="IOException" type="java.io.IOException"/>
  31181. </method>
  31182. <method name="endVector"
  31183. abstract="false" native="false" synchronized="false"
  31184. static="false" final="false" visibility="public"
  31185. deprecated="not deprecated">
  31186. <param name="v" type="java.util.ArrayList"/>
  31187. <param name="tag" type="java.lang.String"/>
  31188. <exception name="IOException" type="java.io.IOException"/>
  31189. </method>
  31190. <method name="startMap"
  31191. abstract="false" native="false" synchronized="false"
  31192. static="false" final="false" visibility="public"
  31193. deprecated="not deprecated">
  31194. <param name="v" type="java.util.TreeMap"/>
  31195. <param name="tag" type="java.lang.String"/>
  31196. <exception name="IOException" type="java.io.IOException"/>
  31197. </method>
  31198. <method name="endMap"
  31199. abstract="false" native="false" synchronized="false"
  31200. static="false" final="false" visibility="public"
  31201. deprecated="not deprecated">
  31202. <param name="v" type="java.util.TreeMap"/>
  31203. <param name="tag" type="java.lang.String"/>
  31204. <exception name="IOException" type="java.io.IOException"/>
  31205. </method>
  31206. </class>
  31207. <!-- end class org.apache.hadoop.record.BinaryRecordOutput -->
  31208. <!-- start class org.apache.hadoop.record.Buffer -->
  31209. <class name="Buffer" extends="java.lang.Object"
  31210. abstract="false"
  31211. static="false" final="false" visibility="public"
  31212. deprecated="not deprecated">
  31213. <implements name="java.lang.Comparable"/>
  31214. <implements name="java.lang.Cloneable"/>
  31215. <constructor name="Buffer"
  31216. static="false" final="false" visibility="public"
  31217. deprecated="not deprecated">
  31218. <doc>
  31219. <![CDATA[Create a zero-count sequence.]]>
  31220. </doc>
  31221. </constructor>
  31222. <constructor name="Buffer" type="byte[]"
  31223. static="false" final="false" visibility="public"
  31224. deprecated="not deprecated">
  31225. <doc>
  31226. <![CDATA[Create a Buffer using the byte array as the initial value.
  31227. @param bytes This array becomes the backing storage for the object.]]>
  31228. </doc>
  31229. </constructor>
  31230. <constructor name="Buffer" type="byte[], int, int"
  31231. static="false" final="false" visibility="public"
  31232. deprecated="not deprecated">
  31233. <doc>
  31234. <![CDATA[Create a Buffer using the byte range as the initial value.
  31235. @param bytes Copy of this array becomes the backing storage for the object.
  31236. @param offset offset into byte array
  31237. @param length length of data]]>
  31238. </doc>
  31239. </constructor>
  31240. <method name="set"
  31241. abstract="false" native="false" synchronized="false"
  31242. static="false" final="false" visibility="public"
  31243. deprecated="not deprecated">
  31244. <param name="bytes" type="byte[]"/>
  31245. <doc>
  31246. <![CDATA[Use the specified bytes array as underlying sequence.
  31247. @param bytes byte sequence]]>
  31248. </doc>
  31249. </method>
  31250. <method name="copy"
  31251. abstract="false" native="false" synchronized="false"
  31252. static="false" final="true" visibility="public"
  31253. deprecated="not deprecated">
  31254. <param name="bytes" type="byte[]"/>
  31255. <param name="offset" type="int"/>
  31256. <param name="length" type="int"/>
  31257. <doc>
  31258. <![CDATA[Copy the specified byte array to the Buffer. Replaces the current buffer.
  31259. @param bytes byte array to be assigned
  31260. @param offset offset into byte array
  31261. @param length length of data]]>
  31262. </doc>
  31263. </method>
  31264. <method name="get" return="byte[]"
  31265. abstract="false" native="false" synchronized="false"
  31266. static="false" final="false" visibility="public"
  31267. deprecated="not deprecated">
  31268. <doc>
  31269. <![CDATA[Get the data from the Buffer.
  31270. @return The data is only valid between 0 and getCount() - 1.]]>
  31271. </doc>
  31272. </method>
  31273. <method name="getCount" return="int"
  31274. abstract="false" native="false" synchronized="false"
  31275. static="false" final="false" visibility="public"
  31276. deprecated="not deprecated">
  31277. <doc>
  31278. <![CDATA[Get the current count of the buffer.]]>
  31279. </doc>
  31280. </method>
  31281. <method name="getCapacity" return="int"
  31282. abstract="false" native="false" synchronized="false"
  31283. static="false" final="false" visibility="public"
  31284. deprecated="not deprecated">
  31285. <doc>
  31286. <![CDATA[Get the capacity, which is the maximum count that could handled without
  31287. resizing the backing storage.
  31288. @return The number of bytes]]>
  31289. </doc>
  31290. </method>
  31291. <method name="setCapacity"
  31292. abstract="false" native="false" synchronized="false"
  31293. static="false" final="false" visibility="public"
  31294. deprecated="not deprecated">
  31295. <param name="newCapacity" type="int"/>
  31296. <doc>
  31297. <![CDATA[Change the capacity of the backing storage.
  31298. The data is preserved if newCapacity >= getCount().
  31299. @param newCapacity The new capacity in bytes.]]>
  31300. </doc>
  31301. </method>
  31302. <method name="reset"
  31303. abstract="false" native="false" synchronized="false"
  31304. static="false" final="false" visibility="public"
  31305. deprecated="not deprecated">
  31306. <doc>
  31307. <![CDATA[Reset the buffer to 0 size]]>
  31308. </doc>
  31309. </method>
  31310. <method name="truncate"
  31311. abstract="false" native="false" synchronized="false"
  31312. static="false" final="false" visibility="public"
  31313. deprecated="not deprecated">
  31314. <doc>
  31315. <![CDATA[Change the capacity of the backing store to be the same as the current
  31316. count of buffer.]]>
  31317. </doc>
  31318. </method>
  31319. <method name="append"
  31320. abstract="false" native="false" synchronized="false"
  31321. static="false" final="false" visibility="public"
  31322. deprecated="not deprecated">
  31323. <param name="bytes" type="byte[]"/>
  31324. <param name="offset" type="int"/>
  31325. <param name="length" type="int"/>
  31326. <doc>
  31327. <![CDATA[Append specified bytes to the buffer.
  31328. @param bytes byte array to be appended
  31329. @param offset offset into byte array
  31330. @param length length of data]]>
  31331. </doc>
  31332. </method>
  31333. <method name="append"
  31334. abstract="false" native="false" synchronized="false"
  31335. static="false" final="false" visibility="public"
  31336. deprecated="not deprecated">
  31337. <param name="bytes" type="byte[]"/>
  31338. <doc>
  31339. <![CDATA[Append specified bytes to the buffer
  31340. @param bytes byte array to be appended]]>
  31341. </doc>
  31342. </method>
  31343. <method name="hashCode" return="int"
  31344. abstract="false" native="false" synchronized="false"
  31345. static="false" final="false" visibility="public"
  31346. deprecated="not deprecated">
  31347. </method>
  31348. <method name="compareTo" return="int"
  31349. abstract="false" native="false" synchronized="false"
  31350. static="false" final="false" visibility="public"
  31351. deprecated="not deprecated">
  31352. <param name="other" type="java.lang.Object"/>
  31353. <doc>
  31354. <![CDATA[Define the sort order of the Buffer.
  31355. @param other The other buffer
  31356. @return Positive if this is bigger than other, 0 if they are equal, and
  31357. negative if this is smaller than other.]]>
  31358. </doc>
  31359. </method>
  31360. <method name="equals" return="boolean"
  31361. abstract="false" native="false" synchronized="false"
  31362. static="false" final="false" visibility="public"
  31363. deprecated="not deprecated">
  31364. <param name="other" type="java.lang.Object"/>
  31365. </method>
  31366. <method name="toString" return="java.lang.String"
  31367. abstract="false" native="false" synchronized="false"
  31368. static="false" final="false" visibility="public"
  31369. deprecated="not deprecated">
  31370. </method>
  31371. <method name="toString" return="java.lang.String"
  31372. abstract="false" native="false" synchronized="false"
  31373. static="false" final="false" visibility="public"
  31374. deprecated="not deprecated">
  31375. <param name="charsetName" type="java.lang.String"/>
  31376. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  31377. <doc>
  31378. <![CDATA[Convert the byte buffer to a string an specific character encoding
  31379. @param charsetName Valid Java Character Set Name]]>
  31380. </doc>
  31381. </method>
  31382. <method name="clone" return="java.lang.Object"
  31383. abstract="false" native="false" synchronized="false"
  31384. static="false" final="false" visibility="public"
  31385. deprecated="not deprecated">
  31386. <exception name="CloneNotSupportedException" type="java.lang.CloneNotSupportedException"/>
  31387. </method>
  31388. <doc>
  31389. <![CDATA[A byte sequence that is used as a Java native type for buffer.
  31390. It is resizable and distinguishes between the count of the seqeunce and
  31391. the current capacity.]]>
  31392. </doc>
  31393. </class>
  31394. <!-- end class org.apache.hadoop.record.Buffer -->
  31395. <!-- start class org.apache.hadoop.record.CsvRecordInput -->
  31396. <class name="CsvRecordInput" extends="java.lang.Object"
  31397. abstract="false"
  31398. static="false" final="false" visibility="public"
  31399. deprecated="not deprecated">
  31400. <implements name="org.apache.hadoop.record.RecordInput"/>
  31401. <constructor name="CsvRecordInput" type="java.io.InputStream"
  31402. static="false" final="false" visibility="public"
  31403. deprecated="not deprecated">
  31404. <doc>
  31405. <![CDATA[Creates a new instance of CsvRecordInput]]>
  31406. </doc>
  31407. </constructor>
  31408. <method name="readByte" return="byte"
  31409. abstract="false" native="false" synchronized="false"
  31410. static="false" final="false" visibility="public"
  31411. deprecated="not deprecated">
  31412. <param name="tag" type="java.lang.String"/>
  31413. <exception name="IOException" type="java.io.IOException"/>
  31414. </method>
  31415. <method name="readBool" return="boolean"
  31416. abstract="false" native="false" synchronized="false"
  31417. static="false" final="false" visibility="public"
  31418. deprecated="not deprecated">
  31419. <param name="tag" type="java.lang.String"/>
  31420. <exception name="IOException" type="java.io.IOException"/>
  31421. </method>
  31422. <method name="readInt" return="int"
  31423. abstract="false" native="false" synchronized="false"
  31424. static="false" final="false" visibility="public"
  31425. deprecated="not deprecated">
  31426. <param name="tag" type="java.lang.String"/>
  31427. <exception name="IOException" type="java.io.IOException"/>
  31428. </method>
  31429. <method name="readLong" return="long"
  31430. abstract="false" native="false" synchronized="false"
  31431. static="false" final="false" visibility="public"
  31432. deprecated="not deprecated">
  31433. <param name="tag" type="java.lang.String"/>
  31434. <exception name="IOException" type="java.io.IOException"/>
  31435. </method>
  31436. <method name="readFloat" return="float"
  31437. abstract="false" native="false" synchronized="false"
  31438. static="false" final="false" visibility="public"
  31439. deprecated="not deprecated">
  31440. <param name="tag" type="java.lang.String"/>
  31441. <exception name="IOException" type="java.io.IOException"/>
  31442. </method>
  31443. <method name="readDouble" return="double"
  31444. abstract="false" native="false" synchronized="false"
  31445. static="false" final="false" visibility="public"
  31446. deprecated="not deprecated">
  31447. <param name="tag" type="java.lang.String"/>
  31448. <exception name="IOException" type="java.io.IOException"/>
  31449. </method>
  31450. <method name="readString" return="java.lang.String"
  31451. abstract="false" native="false" synchronized="false"
  31452. static="false" final="false" visibility="public"
  31453. deprecated="not deprecated">
  31454. <param name="tag" type="java.lang.String"/>
  31455. <exception name="IOException" type="java.io.IOException"/>
  31456. </method>
  31457. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  31458. abstract="false" native="false" synchronized="false"
  31459. static="false" final="false" visibility="public"
  31460. deprecated="not deprecated">
  31461. <param name="tag" type="java.lang.String"/>
  31462. <exception name="IOException" type="java.io.IOException"/>
  31463. </method>
  31464. <method name="startRecord"
  31465. abstract="false" native="false" synchronized="false"
  31466. static="false" final="false" visibility="public"
  31467. deprecated="not deprecated">
  31468. <param name="tag" type="java.lang.String"/>
  31469. <exception name="IOException" type="java.io.IOException"/>
  31470. </method>
  31471. <method name="endRecord"
  31472. abstract="false" native="false" synchronized="false"
  31473. static="false" final="false" visibility="public"
  31474. deprecated="not deprecated">
  31475. <param name="tag" type="java.lang.String"/>
  31476. <exception name="IOException" type="java.io.IOException"/>
  31477. </method>
  31478. <method name="startVector" return="org.apache.hadoop.record.Index"
  31479. abstract="false" native="false" synchronized="false"
  31480. static="false" final="false" visibility="public"
  31481. deprecated="not deprecated">
  31482. <param name="tag" type="java.lang.String"/>
  31483. <exception name="IOException" type="java.io.IOException"/>
  31484. </method>
  31485. <method name="endVector"
  31486. abstract="false" native="false" synchronized="false"
  31487. static="false" final="false" visibility="public"
  31488. deprecated="not deprecated">
  31489. <param name="tag" type="java.lang.String"/>
  31490. <exception name="IOException" type="java.io.IOException"/>
  31491. </method>
  31492. <method name="startMap" return="org.apache.hadoop.record.Index"
  31493. abstract="false" native="false" synchronized="false"
  31494. static="false" final="false" visibility="public"
  31495. deprecated="not deprecated">
  31496. <param name="tag" type="java.lang.String"/>
  31497. <exception name="IOException" type="java.io.IOException"/>
  31498. </method>
  31499. <method name="endMap"
  31500. abstract="false" native="false" synchronized="false"
  31501. static="false" final="false" visibility="public"
  31502. deprecated="not deprecated">
  31503. <param name="tag" type="java.lang.String"/>
  31504. <exception name="IOException" type="java.io.IOException"/>
  31505. </method>
  31506. </class>
  31507. <!-- end class org.apache.hadoop.record.CsvRecordInput -->
  31508. <!-- start class org.apache.hadoop.record.CsvRecordOutput -->
  31509. <class name="CsvRecordOutput" extends="java.lang.Object"
  31510. abstract="false"
  31511. static="false" final="false" visibility="public"
  31512. deprecated="not deprecated">
  31513. <implements name="org.apache.hadoop.record.RecordOutput"/>
  31514. <constructor name="CsvRecordOutput" type="java.io.OutputStream"
  31515. static="false" final="false" visibility="public"
  31516. deprecated="not deprecated">
  31517. <doc>
  31518. <![CDATA[Creates a new instance of CsvRecordOutput]]>
  31519. </doc>
  31520. </constructor>
  31521. <method name="writeByte"
  31522. abstract="false" native="false" synchronized="false"
  31523. static="false" final="false" visibility="public"
  31524. deprecated="not deprecated">
  31525. <param name="b" type="byte"/>
  31526. <param name="tag" type="java.lang.String"/>
  31527. <exception name="IOException" type="java.io.IOException"/>
  31528. </method>
  31529. <method name="writeBool"
  31530. abstract="false" native="false" synchronized="false"
  31531. static="false" final="false" visibility="public"
  31532. deprecated="not deprecated">
  31533. <param name="b" type="boolean"/>
  31534. <param name="tag" type="java.lang.String"/>
  31535. <exception name="IOException" type="java.io.IOException"/>
  31536. </method>
  31537. <method name="writeInt"
  31538. abstract="false" native="false" synchronized="false"
  31539. static="false" final="false" visibility="public"
  31540. deprecated="not deprecated">
  31541. <param name="i" type="int"/>
  31542. <param name="tag" type="java.lang.String"/>
  31543. <exception name="IOException" type="java.io.IOException"/>
  31544. </method>
  31545. <method name="writeLong"
  31546. abstract="false" native="false" synchronized="false"
  31547. static="false" final="false" visibility="public"
  31548. deprecated="not deprecated">
  31549. <param name="l" type="long"/>
  31550. <param name="tag" type="java.lang.String"/>
  31551. <exception name="IOException" type="java.io.IOException"/>
  31552. </method>
  31553. <method name="writeFloat"
  31554. abstract="false" native="false" synchronized="false"
  31555. static="false" final="false" visibility="public"
  31556. deprecated="not deprecated">
  31557. <param name="f" type="float"/>
  31558. <param name="tag" type="java.lang.String"/>
  31559. <exception name="IOException" type="java.io.IOException"/>
  31560. </method>
  31561. <method name="writeDouble"
  31562. abstract="false" native="false" synchronized="false"
  31563. static="false" final="false" visibility="public"
  31564. deprecated="not deprecated">
  31565. <param name="d" type="double"/>
  31566. <param name="tag" type="java.lang.String"/>
  31567. <exception name="IOException" type="java.io.IOException"/>
  31568. </method>
  31569. <method name="writeString"
  31570. abstract="false" native="false" synchronized="false"
  31571. static="false" final="false" visibility="public"
  31572. deprecated="not deprecated">
  31573. <param name="s" type="java.lang.String"/>
  31574. <param name="tag" type="java.lang.String"/>
  31575. <exception name="IOException" type="java.io.IOException"/>
  31576. </method>
  31577. <method name="writeBuffer"
  31578. abstract="false" native="false" synchronized="false"
  31579. static="false" final="false" visibility="public"
  31580. deprecated="not deprecated">
  31581. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  31582. <param name="tag" type="java.lang.String"/>
  31583. <exception name="IOException" type="java.io.IOException"/>
  31584. </method>
  31585. <method name="startRecord"
  31586. abstract="false" native="false" synchronized="false"
  31587. static="false" final="false" visibility="public"
  31588. deprecated="not deprecated">
  31589. <param name="r" type="org.apache.hadoop.record.Record"/>
  31590. <param name="tag" type="java.lang.String"/>
  31591. <exception name="IOException" type="java.io.IOException"/>
  31592. </method>
  31593. <method name="endRecord"
  31594. abstract="false" native="false" synchronized="false"
  31595. static="false" final="false" visibility="public"
  31596. deprecated="not deprecated">
  31597. <param name="r" type="org.apache.hadoop.record.Record"/>
  31598. <param name="tag" type="java.lang.String"/>
  31599. <exception name="IOException" type="java.io.IOException"/>
  31600. </method>
  31601. <method name="startVector"
  31602. abstract="false" native="false" synchronized="false"
  31603. static="false" final="false" visibility="public"
  31604. deprecated="not deprecated">
  31605. <param name="v" type="java.util.ArrayList"/>
  31606. <param name="tag" type="java.lang.String"/>
  31607. <exception name="IOException" type="java.io.IOException"/>
  31608. </method>
  31609. <method name="endVector"
  31610. abstract="false" native="false" synchronized="false"
  31611. static="false" final="false" visibility="public"
  31612. deprecated="not deprecated">
  31613. <param name="v" type="java.util.ArrayList"/>
  31614. <param name="tag" type="java.lang.String"/>
  31615. <exception name="IOException" type="java.io.IOException"/>
  31616. </method>
  31617. <method name="startMap"
  31618. abstract="false" native="false" synchronized="false"
  31619. static="false" final="false" visibility="public"
  31620. deprecated="not deprecated">
  31621. <param name="v" type="java.util.TreeMap"/>
  31622. <param name="tag" type="java.lang.String"/>
  31623. <exception name="IOException" type="java.io.IOException"/>
  31624. </method>
  31625. <method name="endMap"
  31626. abstract="false" native="false" synchronized="false"
  31627. static="false" final="false" visibility="public"
  31628. deprecated="not deprecated">
  31629. <param name="v" type="java.util.TreeMap"/>
  31630. <param name="tag" type="java.lang.String"/>
  31631. <exception name="IOException" type="java.io.IOException"/>
  31632. </method>
  31633. </class>
  31634. <!-- end class org.apache.hadoop.record.CsvRecordOutput -->
  31635. <!-- start interface org.apache.hadoop.record.Index -->
  31636. <interface name="Index" abstract="true"
  31637. static="false" final="false" visibility="public"
  31638. deprecated="not deprecated">
  31639. <method name="done" return="boolean"
  31640. abstract="false" native="false" synchronized="false"
  31641. static="false" final="false" visibility="public"
  31642. deprecated="not deprecated">
  31643. </method>
  31644. <method name="incr"
  31645. abstract="false" native="false" synchronized="false"
  31646. static="false" final="false" visibility="public"
  31647. deprecated="not deprecated">
  31648. </method>
  31649. <doc>
  31650. <![CDATA[Interface that acts as an iterator for deserializing maps.
  31651. The deserializer returns an instance that the record uses to
  31652. read vectors and maps. An example of usage is as follows:
  31653. <code>
  31654. Index idx = startVector(...);
  31655. while (!idx.done()) {
  31656. .... // read element of a vector
  31657. idx.incr();
  31658. }
  31659. </code>]]>
  31660. </doc>
  31661. </interface>
  31662. <!-- end interface org.apache.hadoop.record.Index -->
  31663. <!-- start class org.apache.hadoop.record.Record -->
  31664. <class name="Record" extends="java.lang.Object"
  31665. abstract="true"
  31666. static="false" final="false" visibility="public"
  31667. deprecated="not deprecated">
  31668. <implements name="org.apache.hadoop.io.WritableComparable"/>
  31669. <implements name="java.lang.Cloneable"/>
  31670. <constructor name="Record"
  31671. static="false" final="false" visibility="public"
  31672. deprecated="not deprecated">
  31673. </constructor>
  31674. <method name="serialize"
  31675. abstract="true" native="false" synchronized="false"
  31676. static="false" final="false" visibility="public"
  31677. deprecated="not deprecated">
  31678. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  31679. <param name="tag" type="java.lang.String"/>
  31680. <exception name="IOException" type="java.io.IOException"/>
  31681. <doc>
  31682. <![CDATA[Serialize a record with tag (ususally field name)
  31683. @param rout Record output destination
  31684. @param tag record tag (Used only in tagged serialization e.g. XML)]]>
  31685. </doc>
  31686. </method>
  31687. <method name="deserialize"
  31688. abstract="true" native="false" synchronized="false"
  31689. static="false" final="false" visibility="public"
  31690. deprecated="not deprecated">
  31691. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  31692. <param name="tag" type="java.lang.String"/>
  31693. <exception name="IOException" type="java.io.IOException"/>
  31694. <doc>
  31695. <![CDATA[Deserialize a record with a tag (usually field name)
  31696. @param rin Record input source
  31697. @param tag Record tag (Used only in tagged serialization e.g. XML)]]>
  31698. </doc>
  31699. </method>
  31700. <method name="compareTo" return="int"
  31701. abstract="true" native="false" synchronized="false"
  31702. static="false" final="false" visibility="public"
  31703. deprecated="not deprecated">
  31704. <param name="peer" type="java.lang.Object"/>
  31705. <exception name="ClassCastException" type="java.lang.ClassCastException"/>
  31706. </method>
  31707. <method name="serialize"
  31708. abstract="false" native="false" synchronized="false"
  31709. static="false" final="false" visibility="public"
  31710. deprecated="not deprecated">
  31711. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  31712. <exception name="IOException" type="java.io.IOException"/>
  31713. <doc>
  31714. <![CDATA[Serialize a record without a tag
  31715. @param rout Record output destination]]>
  31716. </doc>
  31717. </method>
  31718. <method name="deserialize"
  31719. abstract="false" native="false" synchronized="false"
  31720. static="false" final="false" visibility="public"
  31721. deprecated="not deprecated">
  31722. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  31723. <exception name="IOException" type="java.io.IOException"/>
  31724. <doc>
  31725. <![CDATA[Deserialize a record without a tag
  31726. @param rin Record input source]]>
  31727. </doc>
  31728. </method>
  31729. <method name="write"
  31730. abstract="false" native="false" synchronized="false"
  31731. static="false" final="false" visibility="public"
  31732. deprecated="not deprecated">
  31733. <param name="out" type="java.io.DataOutput"/>
  31734. <exception name="IOException" type="java.io.IOException"/>
  31735. </method>
  31736. <method name="readFields"
  31737. abstract="false" native="false" synchronized="false"
  31738. static="false" final="false" visibility="public"
  31739. deprecated="not deprecated">
  31740. <param name="din" type="java.io.DataInput"/>
  31741. <exception name="IOException" type="java.io.IOException"/>
  31742. </method>
  31743. <method name="toString" return="java.lang.String"
  31744. abstract="false" native="false" synchronized="false"
  31745. static="false" final="false" visibility="public"
  31746. deprecated="not deprecated">
  31747. </method>
  31748. <doc>
  31749. <![CDATA[Abstract class that is extended by generated classes.]]>
  31750. </doc>
  31751. </class>
  31752. <!-- end class org.apache.hadoop.record.Record -->
  31753. <!-- start class org.apache.hadoop.record.RecordComparator -->
  31754. <class name="RecordComparator" extends="org.apache.hadoop.io.WritableComparator"
  31755. abstract="true"
  31756. static="false" final="false" visibility="public"
  31757. deprecated="not deprecated">
  31758. <constructor name="RecordComparator" type="java.lang.Class"
  31759. static="false" final="false" visibility="protected"
  31760. deprecated="not deprecated">
  31761. <doc>
  31762. <![CDATA[Construct a raw {@link Record} comparison implementation.]]>
  31763. </doc>
  31764. </constructor>
  31765. <method name="compare" return="int"
  31766. abstract="true" native="false" synchronized="false"
  31767. static="false" final="false" visibility="public"
  31768. deprecated="not deprecated">
  31769. <param name="b1" type="byte[]"/>
  31770. <param name="s1" type="int"/>
  31771. <param name="l1" type="int"/>
  31772. <param name="b2" type="byte[]"/>
  31773. <param name="s2" type="int"/>
  31774. <param name="l2" type="int"/>
  31775. </method>
  31776. <method name="define"
  31777. abstract="false" native="false" synchronized="true"
  31778. static="true" final="false" visibility="public"
  31779. deprecated="not deprecated">
  31780. <param name="c" type="java.lang.Class"/>
  31781. <param name="comparator" type="org.apache.hadoop.record.RecordComparator"/>
  31782. <doc>
  31783. <![CDATA[Register an optimized comparator for a {@link Record} implementation.
  31784. @param c record classs for which a raw comparator is provided
  31785. @param comparator Raw comparator instance for class c]]>
  31786. </doc>
  31787. </method>
  31788. <doc>
  31789. <![CDATA[A raw record comparator base class]]>
  31790. </doc>
  31791. </class>
  31792. <!-- end class org.apache.hadoop.record.RecordComparator -->
  31793. <!-- start interface org.apache.hadoop.record.RecordInput -->
  31794. <interface name="RecordInput" abstract="true"
  31795. static="false" final="false" visibility="public"
  31796. deprecated="not deprecated">
  31797. <method name="readByte" return="byte"
  31798. abstract="false" native="false" synchronized="false"
  31799. static="false" final="false" visibility="public"
  31800. deprecated="not deprecated">
  31801. <param name="tag" type="java.lang.String"/>
  31802. <exception name="IOException" type="java.io.IOException"/>
  31803. <doc>
  31804. <![CDATA[Read a byte from serialized record.
  31805. @param tag Used by tagged serialization formats (such as XML)
  31806. @return value read from serialized record.]]>
  31807. </doc>
  31808. </method>
  31809. <method name="readBool" return="boolean"
  31810. abstract="false" native="false" synchronized="false"
  31811. static="false" final="false" visibility="public"
  31812. deprecated="not deprecated">
  31813. <param name="tag" type="java.lang.String"/>
  31814. <exception name="IOException" type="java.io.IOException"/>
  31815. <doc>
  31816. <![CDATA[Read a boolean from serialized record.
  31817. @param tag Used by tagged serialization formats (such as XML)
  31818. @return value read from serialized record.]]>
  31819. </doc>
  31820. </method>
  31821. <method name="readInt" return="int"
  31822. abstract="false" native="false" synchronized="false"
  31823. static="false" final="false" visibility="public"
  31824. deprecated="not deprecated">
  31825. <param name="tag" type="java.lang.String"/>
  31826. <exception name="IOException" type="java.io.IOException"/>
  31827. <doc>
  31828. <![CDATA[Read an integer from serialized record.
  31829. @param tag Used by tagged serialization formats (such as XML)
  31830. @return value read from serialized record.]]>
  31831. </doc>
  31832. </method>
  31833. <method name="readLong" return="long"
  31834. abstract="false" native="false" synchronized="false"
  31835. static="false" final="false" visibility="public"
  31836. deprecated="not deprecated">
  31837. <param name="tag" type="java.lang.String"/>
  31838. <exception name="IOException" type="java.io.IOException"/>
  31839. <doc>
  31840. <![CDATA[Read a long integer from serialized record.
  31841. @param tag Used by tagged serialization formats (such as XML)
  31842. @return value read from serialized record.]]>
  31843. </doc>
  31844. </method>
  31845. <method name="readFloat" return="float"
  31846. abstract="false" native="false" synchronized="false"
  31847. static="false" final="false" visibility="public"
  31848. deprecated="not deprecated">
  31849. <param name="tag" type="java.lang.String"/>
  31850. <exception name="IOException" type="java.io.IOException"/>
  31851. <doc>
  31852. <![CDATA[Read a single-precision float from serialized record.
  31853. @param tag Used by tagged serialization formats (such as XML)
  31854. @return value read from serialized record.]]>
  31855. </doc>
  31856. </method>
  31857. <method name="readDouble" return="double"
  31858. abstract="false" native="false" synchronized="false"
  31859. static="false" final="false" visibility="public"
  31860. deprecated="not deprecated">
  31861. <param name="tag" type="java.lang.String"/>
  31862. <exception name="IOException" type="java.io.IOException"/>
  31863. <doc>
  31864. <![CDATA[Read a double-precision number from serialized record.
  31865. @param tag Used by tagged serialization formats (such as XML)
  31866. @return value read from serialized record.]]>
  31867. </doc>
  31868. </method>
  31869. <method name="readString" return="java.lang.String"
  31870. abstract="false" native="false" synchronized="false"
  31871. static="false" final="false" visibility="public"
  31872. deprecated="not deprecated">
  31873. <param name="tag" type="java.lang.String"/>
  31874. <exception name="IOException" type="java.io.IOException"/>
  31875. <doc>
  31876. <![CDATA[Read a UTF-8 encoded string from serialized record.
  31877. @param tag Used by tagged serialization formats (such as XML)
  31878. @return value read from serialized record.]]>
  31879. </doc>
  31880. </method>
  31881. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  31882. abstract="false" native="false" synchronized="false"
  31883. static="false" final="false" visibility="public"
  31884. deprecated="not deprecated">
  31885. <param name="tag" type="java.lang.String"/>
  31886. <exception name="IOException" type="java.io.IOException"/>
  31887. <doc>
  31888. <![CDATA[Read byte array from serialized record.
  31889. @param tag Used by tagged serialization formats (such as XML)
  31890. @return value read from serialized record.]]>
  31891. </doc>
  31892. </method>
  31893. <method name="startRecord"
  31894. abstract="false" native="false" synchronized="false"
  31895. static="false" final="false" visibility="public"
  31896. deprecated="not deprecated">
  31897. <param name="tag" type="java.lang.String"/>
  31898. <exception name="IOException" type="java.io.IOException"/>
  31899. <doc>
  31900. <![CDATA[Check the mark for start of the serialized record.
  31901. @param tag Used by tagged serialization formats (such as XML)]]>
  31902. </doc>
  31903. </method>
  31904. <method name="endRecord"
  31905. abstract="false" native="false" synchronized="false"
  31906. static="false" final="false" visibility="public"
  31907. deprecated="not deprecated">
  31908. <param name="tag" type="java.lang.String"/>
  31909. <exception name="IOException" type="java.io.IOException"/>
  31910. <doc>
  31911. <![CDATA[Check the mark for end of the serialized record.
  31912. @param tag Used by tagged serialization formats (such as XML)]]>
  31913. </doc>
  31914. </method>
  31915. <method name="startVector" return="org.apache.hadoop.record.Index"
  31916. abstract="false" native="false" synchronized="false"
  31917. static="false" final="false" visibility="public"
  31918. deprecated="not deprecated">
  31919. <param name="tag" type="java.lang.String"/>
  31920. <exception name="IOException" type="java.io.IOException"/>
  31921. <doc>
  31922. <![CDATA[Check the mark for start of the serialized vector.
  31923. @param tag Used by tagged serialization formats (such as XML)
  31924. @return Index that is used to count the number of elements.]]>
  31925. </doc>
  31926. </method>
  31927. <method name="endVector"
  31928. abstract="false" native="false" synchronized="false"
  31929. static="false" final="false" visibility="public"
  31930. deprecated="not deprecated">
  31931. <param name="tag" type="java.lang.String"/>
  31932. <exception name="IOException" type="java.io.IOException"/>
  31933. <doc>
  31934. <![CDATA[Check the mark for end of the serialized vector.
  31935. @param tag Used by tagged serialization formats (such as XML)]]>
  31936. </doc>
  31937. </method>
  31938. <method name="startMap" return="org.apache.hadoop.record.Index"
  31939. abstract="false" native="false" synchronized="false"
  31940. static="false" final="false" visibility="public"
  31941. deprecated="not deprecated">
  31942. <param name="tag" type="java.lang.String"/>
  31943. <exception name="IOException" type="java.io.IOException"/>
  31944. <doc>
  31945. <![CDATA[Check the mark for start of the serialized map.
  31946. @param tag Used by tagged serialization formats (such as XML)
  31947. @return Index that is used to count the number of map entries.]]>
  31948. </doc>
  31949. </method>
  31950. <method name="endMap"
  31951. abstract="false" native="false" synchronized="false"
  31952. static="false" final="false" visibility="public"
  31953. deprecated="not deprecated">
  31954. <param name="tag" type="java.lang.String"/>
  31955. <exception name="IOException" type="java.io.IOException"/>
  31956. <doc>
  31957. <![CDATA[Check the mark for end of the serialized map.
  31958. @param tag Used by tagged serialization formats (such as XML)]]>
  31959. </doc>
  31960. </method>
  31961. <doc>
  31962. <![CDATA[Interface that all the Deserializers have to implement.]]>
  31963. </doc>
  31964. </interface>
  31965. <!-- end interface org.apache.hadoop.record.RecordInput -->
  31966. <!-- start interface org.apache.hadoop.record.RecordOutput -->
  31967. <interface name="RecordOutput" abstract="true"
  31968. static="false" final="false" visibility="public"
  31969. deprecated="not deprecated">
  31970. <method name="writeByte"
  31971. abstract="false" native="false" synchronized="false"
  31972. static="false" final="false" visibility="public"
  31973. deprecated="not deprecated">
  31974. <param name="b" type="byte"/>
  31975. <param name="tag" type="java.lang.String"/>
  31976. <exception name="IOException" type="java.io.IOException"/>
  31977. <doc>
  31978. <![CDATA[Write a byte to serialized record.
  31979. @param b Byte to be serialized
  31980. @param tag Used by tagged serialization formats (such as XML)
  31981. @throws IOException Indicates error in serialization]]>
  31982. </doc>
  31983. </method>
  31984. <method name="writeBool"
  31985. abstract="false" native="false" synchronized="false"
  31986. static="false" final="false" visibility="public"
  31987. deprecated="not deprecated">
  31988. <param name="b" type="boolean"/>
  31989. <param name="tag" type="java.lang.String"/>
  31990. <exception name="IOException" type="java.io.IOException"/>
  31991. <doc>
  31992. <![CDATA[Write a boolean to serialized record.
  31993. @param b Boolean to be serialized
  31994. @param tag Used by tagged serialization formats (such as XML)
  31995. @throws IOException Indicates error in serialization]]>
  31996. </doc>
  31997. </method>
  31998. <method name="writeInt"
  31999. abstract="false" native="false" synchronized="false"
  32000. static="false" final="false" visibility="public"
  32001. deprecated="not deprecated">
  32002. <param name="i" type="int"/>
  32003. <param name="tag" type="java.lang.String"/>
  32004. <exception name="IOException" type="java.io.IOException"/>
  32005. <doc>
  32006. <![CDATA[Write an integer to serialized record.
  32007. @param i Integer to be serialized
  32008. @param tag Used by tagged serialization formats (such as XML)
  32009. @throws IOException Indicates error in serialization]]>
  32010. </doc>
  32011. </method>
  32012. <method name="writeLong"
  32013. abstract="false" native="false" synchronized="false"
  32014. static="false" final="false" visibility="public"
  32015. deprecated="not deprecated">
  32016. <param name="l" type="long"/>
  32017. <param name="tag" type="java.lang.String"/>
  32018. <exception name="IOException" type="java.io.IOException"/>
  32019. <doc>
  32020. <![CDATA[Write a long integer to serialized record.
  32021. @param l Long to be serialized
  32022. @param tag Used by tagged serialization formats (such as XML)
  32023. @throws IOException Indicates error in serialization]]>
  32024. </doc>
  32025. </method>
  32026. <method name="writeFloat"
  32027. abstract="false" native="false" synchronized="false"
  32028. static="false" final="false" visibility="public"
  32029. deprecated="not deprecated">
  32030. <param name="f" type="float"/>
  32031. <param name="tag" type="java.lang.String"/>
  32032. <exception name="IOException" type="java.io.IOException"/>
  32033. <doc>
  32034. <![CDATA[Write a single-precision float to serialized record.
  32035. @param f Float to be serialized
  32036. @param tag Used by tagged serialization formats (such as XML)
  32037. @throws IOException Indicates error in serialization]]>
  32038. </doc>
  32039. </method>
  32040. <method name="writeDouble"
  32041. abstract="false" native="false" synchronized="false"
  32042. static="false" final="false" visibility="public"
  32043. deprecated="not deprecated">
  32044. <param name="d" type="double"/>
  32045. <param name="tag" type="java.lang.String"/>
  32046. <exception name="IOException" type="java.io.IOException"/>
  32047. <doc>
  32048. <![CDATA[Write a double precision floating point number to serialized record.
  32049. @param d Double to be serialized
  32050. @param tag Used by tagged serialization formats (such as XML)
  32051. @throws IOException Indicates error in serialization]]>
  32052. </doc>
  32053. </method>
  32054. <method name="writeString"
  32055. abstract="false" native="false" synchronized="false"
  32056. static="false" final="false" visibility="public"
  32057. deprecated="not deprecated">
  32058. <param name="s" type="java.lang.String"/>
  32059. <param name="tag" type="java.lang.String"/>
  32060. <exception name="IOException" type="java.io.IOException"/>
  32061. <doc>
  32062. <![CDATA[Write a unicode string to serialized record.
  32063. @param s String to be serialized
  32064. @param tag Used by tagged serialization formats (such as XML)
  32065. @throws IOException Indicates error in serialization]]>
  32066. </doc>
  32067. </method>
  32068. <method name="writeBuffer"
  32069. abstract="false" native="false" synchronized="false"
  32070. static="false" final="false" visibility="public"
  32071. deprecated="not deprecated">
  32072. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  32073. <param name="tag" type="java.lang.String"/>
  32074. <exception name="IOException" type="java.io.IOException"/>
  32075. <doc>
  32076. <![CDATA[Write a buffer to serialized record.
  32077. @param buf Buffer to be serialized
  32078. @param tag Used by tagged serialization formats (such as XML)
  32079. @throws IOException Indicates error in serialization]]>
  32080. </doc>
  32081. </method>
  32082. <method name="startRecord"
  32083. abstract="false" native="false" synchronized="false"
  32084. static="false" final="false" visibility="public"
  32085. deprecated="not deprecated">
  32086. <param name="r" type="org.apache.hadoop.record.Record"/>
  32087. <param name="tag" type="java.lang.String"/>
  32088. <exception name="IOException" type="java.io.IOException"/>
  32089. <doc>
  32090. <![CDATA[Mark the start of a record to be serialized.
  32091. @param r Record to be serialized
  32092. @param tag Used by tagged serialization formats (such as XML)
  32093. @throws IOException Indicates error in serialization]]>
  32094. </doc>
  32095. </method>
  32096. <method name="endRecord"
  32097. abstract="false" native="false" synchronized="false"
  32098. static="false" final="false" visibility="public"
  32099. deprecated="not deprecated">
  32100. <param name="r" type="org.apache.hadoop.record.Record"/>
  32101. <param name="tag" type="java.lang.String"/>
  32102. <exception name="IOException" type="java.io.IOException"/>
  32103. <doc>
  32104. <![CDATA[Mark the end of a serialized record.
  32105. @param r Record to be serialized
  32106. @param tag Used by tagged serialization formats (such as XML)
  32107. @throws IOException Indicates error in serialization]]>
  32108. </doc>
  32109. </method>
  32110. <method name="startVector"
  32111. abstract="false" native="false" synchronized="false"
  32112. static="false" final="false" visibility="public"
  32113. deprecated="not deprecated">
  32114. <param name="v" type="java.util.ArrayList"/>
  32115. <param name="tag" type="java.lang.String"/>
  32116. <exception name="IOException" type="java.io.IOException"/>
  32117. <doc>
  32118. <![CDATA[Mark the start of a vector to be serialized.
  32119. @param v Vector to be serialized
  32120. @param tag Used by tagged serialization formats (such as XML)
  32121. @throws IOException Indicates error in serialization]]>
  32122. </doc>
  32123. </method>
  32124. <method name="endVector"
  32125. abstract="false" native="false" synchronized="false"
  32126. static="false" final="false" visibility="public"
  32127. deprecated="not deprecated">
  32128. <param name="v" type="java.util.ArrayList"/>
  32129. <param name="tag" type="java.lang.String"/>
  32130. <exception name="IOException" type="java.io.IOException"/>
  32131. <doc>
  32132. <![CDATA[Mark the end of a serialized vector.
  32133. @param v Vector to be serialized
  32134. @param tag Used by tagged serialization formats (such as XML)
  32135. @throws IOException Indicates error in serialization]]>
  32136. </doc>
  32137. </method>
  32138. <method name="startMap"
  32139. abstract="false" native="false" synchronized="false"
  32140. static="false" final="false" visibility="public"
  32141. deprecated="not deprecated">
  32142. <param name="m" type="java.util.TreeMap"/>
  32143. <param name="tag" type="java.lang.String"/>
  32144. <exception name="IOException" type="java.io.IOException"/>
  32145. <doc>
  32146. <![CDATA[Mark the start of a map to be serialized.
  32147. @param m Map to be serialized
  32148. @param tag Used by tagged serialization formats (such as XML)
  32149. @throws IOException Indicates error in serialization]]>
  32150. </doc>
  32151. </method>
  32152. <method name="endMap"
  32153. abstract="false" native="false" synchronized="false"
  32154. static="false" final="false" visibility="public"
  32155. deprecated="not deprecated">
  32156. <param name="m" type="java.util.TreeMap"/>
  32157. <param name="tag" type="java.lang.String"/>
  32158. <exception name="IOException" type="java.io.IOException"/>
  32159. <doc>
  32160. <![CDATA[Mark the end of a serialized map.
  32161. @param m Map to be serialized
  32162. @param tag Used by tagged serialization formats (such as XML)
  32163. @throws IOException Indicates error in serialization]]>
  32164. </doc>
  32165. </method>
  32166. <doc>
  32167. <![CDATA[Interface that alll the serializers have to implement.]]>
  32168. </doc>
  32169. </interface>
  32170. <!-- end interface org.apache.hadoop.record.RecordOutput -->
  32171. <!-- start class org.apache.hadoop.record.Utils -->
  32172. <class name="Utils" extends="java.lang.Object"
  32173. abstract="false"
  32174. static="false" final="false" visibility="public"
  32175. deprecated="not deprecated">
  32176. <method name="readFloat" return="float"
  32177. abstract="false" native="false" synchronized="false"
  32178. static="true" final="false" visibility="public"
  32179. deprecated="not deprecated">
  32180. <param name="bytes" type="byte[]"/>
  32181. <param name="start" type="int"/>
  32182. <doc>
  32183. <![CDATA[Parse a float from a byte array.]]>
  32184. </doc>
  32185. </method>
  32186. <method name="readDouble" return="double"
  32187. abstract="false" native="false" synchronized="false"
  32188. static="true" final="false" visibility="public"
  32189. deprecated="not deprecated">
  32190. <param name="bytes" type="byte[]"/>
  32191. <param name="start" type="int"/>
  32192. <doc>
  32193. <![CDATA[Parse a double from a byte array.]]>
  32194. </doc>
  32195. </method>
  32196. <method name="readVLong" return="long"
  32197. abstract="false" native="false" synchronized="false"
  32198. static="true" final="false" visibility="public"
  32199. deprecated="not deprecated">
  32200. <param name="bytes" type="byte[]"/>
  32201. <param name="start" type="int"/>
  32202. <exception name="IOException" type="java.io.IOException"/>
  32203. <doc>
  32204. <![CDATA[Reads a zero-compressed encoded long from a byte array and returns it.
  32205. @param bytes byte array with decode long
  32206. @param start starting index
  32207. @throws java.io.IOException
  32208. @return deserialized long]]>
  32209. </doc>
  32210. </method>
  32211. <method name="readVInt" return="int"
  32212. abstract="false" native="false" synchronized="false"
  32213. static="true" final="false" visibility="public"
  32214. deprecated="not deprecated">
  32215. <param name="bytes" type="byte[]"/>
  32216. <param name="start" type="int"/>
  32217. <exception name="IOException" type="java.io.IOException"/>
  32218. <doc>
  32219. <![CDATA[Reads a zero-compressed encoded integer from a byte array and returns it.
  32220. @param bytes byte array with the encoded integer
  32221. @param start start index
  32222. @throws java.io.IOException
  32223. @return deserialized integer]]>
  32224. </doc>
  32225. </method>
  32226. <method name="readVLong" return="long"
  32227. abstract="false" native="false" synchronized="false"
  32228. static="true" final="false" visibility="public"
  32229. deprecated="not deprecated">
  32230. <param name="in" type="java.io.DataInput"/>
  32231. <exception name="IOException" type="java.io.IOException"/>
  32232. <doc>
  32233. <![CDATA[Reads a zero-compressed encoded long from a stream and return it.
  32234. @param in input stream
  32235. @throws java.io.IOException
  32236. @return deserialized long]]>
  32237. </doc>
  32238. </method>
  32239. <method name="readVInt" return="int"
  32240. abstract="false" native="false" synchronized="false"
  32241. static="true" final="false" visibility="public"
  32242. deprecated="not deprecated">
  32243. <param name="in" type="java.io.DataInput"/>
  32244. <exception name="IOException" type="java.io.IOException"/>
  32245. <doc>
  32246. <![CDATA[Reads a zero-compressed encoded integer from a stream and returns it.
  32247. @param in input stream
  32248. @throws java.io.IOException
  32249. @return deserialized integer]]>
  32250. </doc>
  32251. </method>
  32252. <method name="getVIntSize" return="int"
  32253. abstract="false" native="false" synchronized="false"
  32254. static="true" final="false" visibility="public"
  32255. deprecated="not deprecated">
  32256. <param name="i" type="long"/>
  32257. <doc>
  32258. <![CDATA[Get the encoded length if an integer is stored in a variable-length format
  32259. @return the encoded length]]>
  32260. </doc>
  32261. </method>
  32262. <method name="writeVLong"
  32263. abstract="false" native="false" synchronized="false"
  32264. static="true" final="false" visibility="public"
  32265. deprecated="not deprecated">
  32266. <param name="stream" type="java.io.DataOutput"/>
  32267. <param name="i" type="long"/>
  32268. <exception name="IOException" type="java.io.IOException"/>
  32269. <doc>
  32270. <![CDATA[Serializes a long to a binary stream with zero-compressed encoding.
  32271. For -112 <= i <= 127, only one byte is used with the actual value.
  32272. For other values of i, the first byte value indicates whether the
  32273. long is positive or negative, and the number of bytes that follow.
  32274. If the first byte value v is between -113 and -120, the following long
  32275. is positive, with number of bytes that follow are -(v+112).
  32276. If the first byte value v is between -121 and -128, the following long
  32277. is negative, with number of bytes that follow are -(v+120). Bytes are
  32278. stored in the high-non-zero-byte-first order.
  32279. @param stream Binary output stream
  32280. @param i Long to be serialized
  32281. @throws java.io.IOException]]>
  32282. </doc>
  32283. </method>
  32284. <method name="writeVInt"
  32285. abstract="false" native="false" synchronized="false"
  32286. static="true" final="false" visibility="public"
  32287. deprecated="not deprecated">
  32288. <param name="stream" type="java.io.DataOutput"/>
  32289. <param name="i" type="int"/>
  32290. <exception name="IOException" type="java.io.IOException"/>
  32291. <doc>
  32292. <![CDATA[Serializes an int to a binary stream with zero-compressed encoding.
  32293. @param stream Binary output stream
  32294. @param i int to be serialized
  32295. @throws java.io.IOException]]>
  32296. </doc>
  32297. </method>
  32298. <method name="compareBytes" return="int"
  32299. abstract="false" native="false" synchronized="false"
  32300. static="true" final="false" visibility="public"
  32301. deprecated="not deprecated">
  32302. <param name="b1" type="byte[]"/>
  32303. <param name="s1" type="int"/>
  32304. <param name="l1" type="int"/>
  32305. <param name="b2" type="byte[]"/>
  32306. <param name="s2" type="int"/>
  32307. <param name="l2" type="int"/>
  32308. <doc>
  32309. <![CDATA[Lexicographic order of binary data.]]>
  32310. </doc>
  32311. </method>
  32312. <field name="hexchars" type="char[]"
  32313. transient="false" volatile="false"
  32314. static="true" final="true" visibility="public"
  32315. deprecated="not deprecated">
  32316. </field>
  32317. <doc>
  32318. <![CDATA[Various utility functions for Hadooop record I/O runtime.]]>
  32319. </doc>
  32320. </class>
  32321. <!-- end class org.apache.hadoop.record.Utils -->
  32322. <!-- start class org.apache.hadoop.record.XmlRecordInput -->
  32323. <class name="XmlRecordInput" extends="java.lang.Object"
  32324. abstract="false"
  32325. static="false" final="false" visibility="public"
  32326. deprecated="not deprecated">
  32327. <implements name="org.apache.hadoop.record.RecordInput"/>
  32328. <constructor name="XmlRecordInput" type="java.io.InputStream"
  32329. static="false" final="false" visibility="public"
  32330. deprecated="not deprecated">
  32331. <doc>
  32332. <![CDATA[Creates a new instance of XmlRecordInput]]>
  32333. </doc>
  32334. </constructor>
  32335. <method name="readByte" return="byte"
  32336. abstract="false" native="false" synchronized="false"
  32337. static="false" final="false" visibility="public"
  32338. deprecated="not deprecated">
  32339. <param name="tag" type="java.lang.String"/>
  32340. <exception name="IOException" type="java.io.IOException"/>
  32341. </method>
  32342. <method name="readBool" return="boolean"
  32343. abstract="false" native="false" synchronized="false"
  32344. static="false" final="false" visibility="public"
  32345. deprecated="not deprecated">
  32346. <param name="tag" type="java.lang.String"/>
  32347. <exception name="IOException" type="java.io.IOException"/>
  32348. </method>
  32349. <method name="readInt" return="int"
  32350. abstract="false" native="false" synchronized="false"
  32351. static="false" final="false" visibility="public"
  32352. deprecated="not deprecated">
  32353. <param name="tag" type="java.lang.String"/>
  32354. <exception name="IOException" type="java.io.IOException"/>
  32355. </method>
  32356. <method name="readLong" return="long"
  32357. abstract="false" native="false" synchronized="false"
  32358. static="false" final="false" visibility="public"
  32359. deprecated="not deprecated">
  32360. <param name="tag" type="java.lang.String"/>
  32361. <exception name="IOException" type="java.io.IOException"/>
  32362. </method>
  32363. <method name="readFloat" return="float"
  32364. abstract="false" native="false" synchronized="false"
  32365. static="false" final="false" visibility="public"
  32366. deprecated="not deprecated">
  32367. <param name="tag" type="java.lang.String"/>
  32368. <exception name="IOException" type="java.io.IOException"/>
  32369. </method>
  32370. <method name="readDouble" return="double"
  32371. abstract="false" native="false" synchronized="false"
  32372. static="false" final="false" visibility="public"
  32373. deprecated="not deprecated">
  32374. <param name="tag" type="java.lang.String"/>
  32375. <exception name="IOException" type="java.io.IOException"/>
  32376. </method>
  32377. <method name="readString" return="java.lang.String"
  32378. abstract="false" native="false" synchronized="false"
  32379. static="false" final="false" visibility="public"
  32380. deprecated="not deprecated">
  32381. <param name="tag" type="java.lang.String"/>
  32382. <exception name="IOException" type="java.io.IOException"/>
  32383. </method>
  32384. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  32385. abstract="false" native="false" synchronized="false"
  32386. static="false" final="false" visibility="public"
  32387. deprecated="not deprecated">
  32388. <param name="tag" type="java.lang.String"/>
  32389. <exception name="IOException" type="java.io.IOException"/>
  32390. </method>
  32391. <method name="startRecord"
  32392. abstract="false" native="false" synchronized="false"
  32393. static="false" final="false" visibility="public"
  32394. deprecated="not deprecated">
  32395. <param name="tag" type="java.lang.String"/>
  32396. <exception name="IOException" type="java.io.IOException"/>
  32397. </method>
  32398. <method name="endRecord"
  32399. abstract="false" native="false" synchronized="false"
  32400. static="false" final="false" visibility="public"
  32401. deprecated="not deprecated">
  32402. <param name="tag" type="java.lang.String"/>
  32403. <exception name="IOException" type="java.io.IOException"/>
  32404. </method>
  32405. <method name="startVector" return="org.apache.hadoop.record.Index"
  32406. abstract="false" native="false" synchronized="false"
  32407. static="false" final="false" visibility="public"
  32408. deprecated="not deprecated">
  32409. <param name="tag" type="java.lang.String"/>
  32410. <exception name="IOException" type="java.io.IOException"/>
  32411. </method>
  32412. <method name="endVector"
  32413. abstract="false" native="false" synchronized="false"
  32414. static="false" final="false" visibility="public"
  32415. deprecated="not deprecated">
  32416. <param name="tag" type="java.lang.String"/>
  32417. <exception name="IOException" type="java.io.IOException"/>
  32418. </method>
  32419. <method name="startMap" return="org.apache.hadoop.record.Index"
  32420. abstract="false" native="false" synchronized="false"
  32421. static="false" final="false" visibility="public"
  32422. deprecated="not deprecated">
  32423. <param name="tag" type="java.lang.String"/>
  32424. <exception name="IOException" type="java.io.IOException"/>
  32425. </method>
  32426. <method name="endMap"
  32427. abstract="false" native="false" synchronized="false"
  32428. static="false" final="false" visibility="public"
  32429. deprecated="not deprecated">
  32430. <param name="tag" type="java.lang.String"/>
  32431. <exception name="IOException" type="java.io.IOException"/>
  32432. </method>
  32433. <doc>
  32434. <![CDATA[XML Deserializer.]]>
  32435. </doc>
  32436. </class>
  32437. <!-- end class org.apache.hadoop.record.XmlRecordInput -->
  32438. <!-- start class org.apache.hadoop.record.XmlRecordOutput -->
  32439. <class name="XmlRecordOutput" extends="java.lang.Object"
  32440. abstract="false"
  32441. static="false" final="false" visibility="public"
  32442. deprecated="not deprecated">
  32443. <implements name="org.apache.hadoop.record.RecordOutput"/>
  32444. <constructor name="XmlRecordOutput" type="java.io.OutputStream"
  32445. static="false" final="false" visibility="public"
  32446. deprecated="not deprecated">
  32447. <doc>
  32448. <![CDATA[Creates a new instance of XmlRecordOutput]]>
  32449. </doc>
  32450. </constructor>
  32451. <method name="writeByte"
  32452. abstract="false" native="false" synchronized="false"
  32453. static="false" final="false" visibility="public"
  32454. deprecated="not deprecated">
  32455. <param name="b" type="byte"/>
  32456. <param name="tag" type="java.lang.String"/>
  32457. <exception name="IOException" type="java.io.IOException"/>
  32458. </method>
  32459. <method name="writeBool"
  32460. abstract="false" native="false" synchronized="false"
  32461. static="false" final="false" visibility="public"
  32462. deprecated="not deprecated">
  32463. <param name="b" type="boolean"/>
  32464. <param name="tag" type="java.lang.String"/>
  32465. <exception name="IOException" type="java.io.IOException"/>
  32466. </method>
  32467. <method name="writeInt"
  32468. abstract="false" native="false" synchronized="false"
  32469. static="false" final="false" visibility="public"
  32470. deprecated="not deprecated">
  32471. <param name="i" type="int"/>
  32472. <param name="tag" type="java.lang.String"/>
  32473. <exception name="IOException" type="java.io.IOException"/>
  32474. </method>
  32475. <method name="writeLong"
  32476. abstract="false" native="false" synchronized="false"
  32477. static="false" final="false" visibility="public"
  32478. deprecated="not deprecated">
  32479. <param name="l" type="long"/>
  32480. <param name="tag" type="java.lang.String"/>
  32481. <exception name="IOException" type="java.io.IOException"/>
  32482. </method>
  32483. <method name="writeFloat"
  32484. abstract="false" native="false" synchronized="false"
  32485. static="false" final="false" visibility="public"
  32486. deprecated="not deprecated">
  32487. <param name="f" type="float"/>
  32488. <param name="tag" type="java.lang.String"/>
  32489. <exception name="IOException" type="java.io.IOException"/>
  32490. </method>
  32491. <method name="writeDouble"
  32492. abstract="false" native="false" synchronized="false"
  32493. static="false" final="false" visibility="public"
  32494. deprecated="not deprecated">
  32495. <param name="d" type="double"/>
  32496. <param name="tag" type="java.lang.String"/>
  32497. <exception name="IOException" type="java.io.IOException"/>
  32498. </method>
  32499. <method name="writeString"
  32500. abstract="false" native="false" synchronized="false"
  32501. static="false" final="false" visibility="public"
  32502. deprecated="not deprecated">
  32503. <param name="s" type="java.lang.String"/>
  32504. <param name="tag" type="java.lang.String"/>
  32505. <exception name="IOException" type="java.io.IOException"/>
  32506. </method>
  32507. <method name="writeBuffer"
  32508. abstract="false" native="false" synchronized="false"
  32509. static="false" final="false" visibility="public"
  32510. deprecated="not deprecated">
  32511. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  32512. <param name="tag" type="java.lang.String"/>
  32513. <exception name="IOException" type="java.io.IOException"/>
  32514. </method>
  32515. <method name="startRecord"
  32516. abstract="false" native="false" synchronized="false"
  32517. static="false" final="false" visibility="public"
  32518. deprecated="not deprecated">
  32519. <param name="r" type="org.apache.hadoop.record.Record"/>
  32520. <param name="tag" type="java.lang.String"/>
  32521. <exception name="IOException" type="java.io.IOException"/>
  32522. </method>
  32523. <method name="endRecord"
  32524. abstract="false" native="false" synchronized="false"
  32525. static="false" final="false" visibility="public"
  32526. deprecated="not deprecated">
  32527. <param name="r" type="org.apache.hadoop.record.Record"/>
  32528. <param name="tag" type="java.lang.String"/>
  32529. <exception name="IOException" type="java.io.IOException"/>
  32530. </method>
  32531. <method name="startVector"
  32532. abstract="false" native="false" synchronized="false"
  32533. static="false" final="false" visibility="public"
  32534. deprecated="not deprecated">
  32535. <param name="v" type="java.util.ArrayList"/>
  32536. <param name="tag" type="java.lang.String"/>
  32537. <exception name="IOException" type="java.io.IOException"/>
  32538. </method>
  32539. <method name="endVector"
  32540. abstract="false" native="false" synchronized="false"
  32541. static="false" final="false" visibility="public"
  32542. deprecated="not deprecated">
  32543. <param name="v" type="java.util.ArrayList"/>
  32544. <param name="tag" type="java.lang.String"/>
  32545. <exception name="IOException" type="java.io.IOException"/>
  32546. </method>
  32547. <method name="startMap"
  32548. abstract="false" native="false" synchronized="false"
  32549. static="false" final="false" visibility="public"
  32550. deprecated="not deprecated">
  32551. <param name="v" type="java.util.TreeMap"/>
  32552. <param name="tag" type="java.lang.String"/>
  32553. <exception name="IOException" type="java.io.IOException"/>
  32554. </method>
  32555. <method name="endMap"
  32556. abstract="false" native="false" synchronized="false"
  32557. static="false" final="false" visibility="public"
  32558. deprecated="not deprecated">
  32559. <param name="v" type="java.util.TreeMap"/>
  32560. <param name="tag" type="java.lang.String"/>
  32561. <exception name="IOException" type="java.io.IOException"/>
  32562. </method>
  32563. <doc>
  32564. <![CDATA[XML Serializer.]]>
  32565. </doc>
  32566. </class>
  32567. <!-- end class org.apache.hadoop.record.XmlRecordOutput -->
  32568. </package>
  32569. <package name="org.apache.hadoop.record.compiler">
  32570. <!-- start class org.apache.hadoop.record.compiler.CodeBuffer -->
  32571. <class name="CodeBuffer" extends="java.lang.Object"
  32572. abstract="false"
  32573. static="false" final="false" visibility="public"
  32574. deprecated="not deprecated">
  32575. <method name="toString" return="java.lang.String"
  32576. abstract="false" native="false" synchronized="false"
  32577. static="false" final="false" visibility="public"
  32578. deprecated="not deprecated">
  32579. </method>
  32580. <doc>
  32581. <![CDATA[A wrapper around StringBuffer that automatically does indentation]]>
  32582. </doc>
  32583. </class>
  32584. <!-- end class org.apache.hadoop.record.compiler.CodeBuffer -->
  32585. <!-- start class org.apache.hadoop.record.compiler.Consts -->
  32586. <class name="Consts" extends="java.lang.Object"
  32587. abstract="false"
  32588. static="false" final="false" visibility="public"
  32589. deprecated="not deprecated">
  32590. <field name="RIO_PREFIX" type="java.lang.String"
  32591. transient="false" volatile="false"
  32592. static="true" final="true" visibility="public"
  32593. deprecated="not deprecated">
  32594. </field>
  32595. <field name="RTI_VAR" type="java.lang.String"
  32596. transient="false" volatile="false"
  32597. static="true" final="true" visibility="public"
  32598. deprecated="not deprecated">
  32599. </field>
  32600. <field name="RTI_FILTER" type="java.lang.String"
  32601. transient="false" volatile="false"
  32602. static="true" final="true" visibility="public"
  32603. deprecated="not deprecated">
  32604. </field>
  32605. <field name="RTI_FILTER_FIELDS" type="java.lang.String"
  32606. transient="false" volatile="false"
  32607. static="true" final="true" visibility="public"
  32608. deprecated="not deprecated">
  32609. </field>
  32610. <field name="RECORD_OUTPUT" type="java.lang.String"
  32611. transient="false" volatile="false"
  32612. static="true" final="true" visibility="public"
  32613. deprecated="not deprecated">
  32614. </field>
  32615. <field name="RECORD_INPUT" type="java.lang.String"
  32616. transient="false" volatile="false"
  32617. static="true" final="true" visibility="public"
  32618. deprecated="not deprecated">
  32619. </field>
  32620. <field name="TAG" type="java.lang.String"
  32621. transient="false" volatile="false"
  32622. static="true" final="true" visibility="public"
  32623. deprecated="not deprecated">
  32624. </field>
  32625. <doc>
  32626. <![CDATA[const definitions for Record I/O compiler]]>
  32627. </doc>
  32628. </class>
  32629. <!-- end class org.apache.hadoop.record.compiler.Consts -->
  32630. <!-- start class org.apache.hadoop.record.compiler.JBoolean -->
  32631. <class name="JBoolean" extends="org.apache.hadoop.record.compiler.JType"
  32632. abstract="false"
  32633. static="false" final="false" visibility="public"
  32634. deprecated="not deprecated">
  32635. <constructor name="JBoolean"
  32636. static="false" final="false" visibility="public"
  32637. deprecated="not deprecated">
  32638. <doc>
  32639. <![CDATA[Creates a new instance of JBoolean]]>
  32640. </doc>
  32641. </constructor>
  32642. </class>
  32643. <!-- end class org.apache.hadoop.record.compiler.JBoolean -->
  32644. <!-- start class org.apache.hadoop.record.compiler.JBuffer -->
  32645. <class name="JBuffer" extends="org.apache.hadoop.record.compiler.JCompType"
  32646. abstract="false"
  32647. static="false" final="false" visibility="public"
  32648. deprecated="not deprecated">
  32649. <constructor name="JBuffer"
  32650. static="false" final="false" visibility="public"
  32651. deprecated="not deprecated">
  32652. <doc>
  32653. <![CDATA[Creates a new instance of JBuffer]]>
  32654. </doc>
  32655. </constructor>
  32656. <doc>
  32657. <![CDATA[Code generator for "buffer" type.]]>
  32658. </doc>
  32659. </class>
  32660. <!-- end class org.apache.hadoop.record.compiler.JBuffer -->
  32661. <!-- start class org.apache.hadoop.record.compiler.JByte -->
  32662. <class name="JByte" extends="org.apache.hadoop.record.compiler.JType"
  32663. abstract="false"
  32664. static="false" final="false" visibility="public"
  32665. deprecated="not deprecated">
  32666. <constructor name="JByte"
  32667. static="false" final="false" visibility="public"
  32668. deprecated="not deprecated">
  32669. </constructor>
  32670. <doc>
  32671. <![CDATA[Code generator for "byte" type.]]>
  32672. </doc>
  32673. </class>
  32674. <!-- end class org.apache.hadoop.record.compiler.JByte -->
  32675. <!-- start class org.apache.hadoop.record.compiler.JDouble -->
  32676. <class name="JDouble" extends="org.apache.hadoop.record.compiler.JType"
  32677. abstract="false"
  32678. static="false" final="false" visibility="public"
  32679. deprecated="not deprecated">
  32680. <constructor name="JDouble"
  32681. static="false" final="false" visibility="public"
  32682. deprecated="not deprecated">
  32683. <doc>
  32684. <![CDATA[Creates a new instance of JDouble]]>
  32685. </doc>
  32686. </constructor>
  32687. </class>
  32688. <!-- end class org.apache.hadoop.record.compiler.JDouble -->
  32689. <!-- start class org.apache.hadoop.record.compiler.JField -->
  32690. <class name="JField" extends="java.lang.Object"
  32691. abstract="false"
  32692. static="false" final="false" visibility="public"
  32693. deprecated="not deprecated">
  32694. <constructor name="JField" type="java.lang.String, java.lang.Object"
  32695. static="false" final="false" visibility="public"
  32696. deprecated="not deprecated">
  32697. <doc>
  32698. <![CDATA[Creates a new instance of JField]]>
  32699. </doc>
  32700. </constructor>
  32701. <doc>
  32702. <![CDATA[A thin wrappper around record field.]]>
  32703. </doc>
  32704. </class>
  32705. <!-- end class org.apache.hadoop.record.compiler.JField -->
  32706. <!-- start class org.apache.hadoop.record.compiler.JFile -->
  32707. <class name="JFile" extends="java.lang.Object"
  32708. abstract="false"
  32709. static="false" final="false" visibility="public"
  32710. deprecated="not deprecated">
  32711. <constructor name="JFile" type="java.lang.String, java.util.ArrayList, java.util.ArrayList"
  32712. static="false" final="false" visibility="public"
  32713. deprecated="not deprecated">
  32714. <doc>
  32715. <![CDATA[Creates a new instance of JFile
  32716. @param name possibly full pathname to the file
  32717. @param inclFiles included files (as JFile)
  32718. @param recList List of records defined within this file]]>
  32719. </doc>
  32720. </constructor>
  32721. <method name="genCode" return="int"
  32722. abstract="false" native="false" synchronized="false"
  32723. static="false" final="false" visibility="public"
  32724. deprecated="not deprecated">
  32725. <param name="language" type="java.lang.String"/>
  32726. <param name="destDir" type="java.lang.String"/>
  32727. <param name="options" type="java.util.ArrayList"/>
  32728. <exception name="IOException" type="java.io.IOException"/>
  32729. <doc>
  32730. <![CDATA[Generate record code in given language. Language should be all
  32731. lowercase.]]>
  32732. </doc>
  32733. </method>
  32734. <doc>
  32735. <![CDATA[Container for the Hadoop Record DDL.
  32736. The main components of the file are filename, list of included files,
  32737. and records defined in that file.]]>
  32738. </doc>
  32739. </class>
  32740. <!-- end class org.apache.hadoop.record.compiler.JFile -->
  32741. <!-- start class org.apache.hadoop.record.compiler.JFloat -->
  32742. <class name="JFloat" extends="org.apache.hadoop.record.compiler.JType"
  32743. abstract="false"
  32744. static="false" final="false" visibility="public"
  32745. deprecated="not deprecated">
  32746. <constructor name="JFloat"
  32747. static="false" final="false" visibility="public"
  32748. deprecated="not deprecated">
  32749. <doc>
  32750. <![CDATA[Creates a new instance of JFloat]]>
  32751. </doc>
  32752. </constructor>
  32753. </class>
  32754. <!-- end class org.apache.hadoop.record.compiler.JFloat -->
  32755. <!-- start class org.apache.hadoop.record.compiler.JInt -->
  32756. <class name="JInt" extends="org.apache.hadoop.record.compiler.JType"
  32757. abstract="false"
  32758. static="false" final="false" visibility="public"
  32759. deprecated="not deprecated">
  32760. <constructor name="JInt"
  32761. static="false" final="false" visibility="public"
  32762. deprecated="not deprecated">
  32763. <doc>
  32764. <![CDATA[Creates a new instance of JInt]]>
  32765. </doc>
  32766. </constructor>
  32767. <doc>
  32768. <![CDATA[Code generator for "int" type]]>
  32769. </doc>
  32770. </class>
  32771. <!-- end class org.apache.hadoop.record.compiler.JInt -->
  32772. <!-- start class org.apache.hadoop.record.compiler.JLong -->
  32773. <class name="JLong" extends="org.apache.hadoop.record.compiler.JType"
  32774. abstract="false"
  32775. static="false" final="false" visibility="public"
  32776. deprecated="not deprecated">
  32777. <constructor name="JLong"
  32778. static="false" final="false" visibility="public"
  32779. deprecated="not deprecated">
  32780. <doc>
  32781. <![CDATA[Creates a new instance of JLong]]>
  32782. </doc>
  32783. </constructor>
  32784. <doc>
  32785. <![CDATA[Code generator for "long" type]]>
  32786. </doc>
  32787. </class>
  32788. <!-- end class org.apache.hadoop.record.compiler.JLong -->
  32789. <!-- start class org.apache.hadoop.record.compiler.JMap -->
  32790. <class name="JMap" extends="org.apache.hadoop.record.compiler.JCompType"
  32791. abstract="false"
  32792. static="false" final="false" visibility="public"
  32793. deprecated="not deprecated">
  32794. <constructor name="JMap" type="org.apache.hadoop.record.compiler.JType, org.apache.hadoop.record.compiler.JType"
  32795. static="false" final="false" visibility="public"
  32796. deprecated="not deprecated">
  32797. <doc>
  32798. <![CDATA[Creates a new instance of JMap]]>
  32799. </doc>
  32800. </constructor>
  32801. </class>
  32802. <!-- end class org.apache.hadoop.record.compiler.JMap -->
  32803. <!-- start class org.apache.hadoop.record.compiler.JRecord -->
  32804. <class name="JRecord" extends="org.apache.hadoop.record.compiler.JCompType"
  32805. abstract="false"
  32806. static="false" final="false" visibility="public"
  32807. deprecated="not deprecated">
  32808. <constructor name="JRecord" type="java.lang.String, java.util.ArrayList"
  32809. static="false" final="false" visibility="public"
  32810. deprecated="not deprecated">
  32811. <doc>
  32812. <![CDATA[Creates a new instance of JRecord]]>
  32813. </doc>
  32814. </constructor>
  32815. </class>
  32816. <!-- end class org.apache.hadoop.record.compiler.JRecord -->
  32817. <!-- start class org.apache.hadoop.record.compiler.JString -->
  32818. <class name="JString" extends="org.apache.hadoop.record.compiler.JCompType"
  32819. abstract="false"
  32820. static="false" final="false" visibility="public"
  32821. deprecated="not deprecated">
  32822. <constructor name="JString"
  32823. static="false" final="false" visibility="public"
  32824. deprecated="not deprecated">
  32825. <doc>
  32826. <![CDATA[Creates a new instance of JString]]>
  32827. </doc>
  32828. </constructor>
  32829. </class>
  32830. <!-- end class org.apache.hadoop.record.compiler.JString -->
  32831. <!-- start class org.apache.hadoop.record.compiler.JType -->
  32832. <class name="JType" extends="java.lang.Object"
  32833. abstract="true"
  32834. static="false" final="false" visibility="public"
  32835. deprecated="not deprecated">
  32836. <constructor name="JType"
  32837. static="false" final="false" visibility="public"
  32838. deprecated="not deprecated">
  32839. </constructor>
  32840. <doc>
  32841. <![CDATA[Abstract Base class for all types supported by Hadoop Record I/O.]]>
  32842. </doc>
  32843. </class>
  32844. <!-- end class org.apache.hadoop.record.compiler.JType -->
  32845. <!-- start class org.apache.hadoop.record.compiler.JVector -->
  32846. <class name="JVector" extends="org.apache.hadoop.record.compiler.JCompType"
  32847. abstract="false"
  32848. static="false" final="false" visibility="public"
  32849. deprecated="not deprecated">
  32850. <constructor name="JVector" type="org.apache.hadoop.record.compiler.JType"
  32851. static="false" final="false" visibility="public"
  32852. deprecated="not deprecated">
  32853. <doc>
  32854. <![CDATA[Creates a new instance of JVector]]>
  32855. </doc>
  32856. </constructor>
  32857. </class>
  32858. <!-- end class org.apache.hadoop.record.compiler.JVector -->
  32859. </package>
  32860. <package name="org.apache.hadoop.record.compiler.ant">
  32861. <!-- start class org.apache.hadoop.record.compiler.ant.RccTask -->
  32862. <class name="RccTask" extends="org.apache.tools.ant.Task"
  32863. abstract="false"
  32864. static="false" final="false" visibility="public"
  32865. deprecated="not deprecated">
  32866. <constructor name="RccTask"
  32867. static="false" final="false" visibility="public"
  32868. deprecated="not deprecated">
  32869. <doc>
  32870. <![CDATA[Creates a new instance of RccTask]]>
  32871. </doc>
  32872. </constructor>
  32873. <method name="setLanguage"
  32874. abstract="false" native="false" synchronized="false"
  32875. static="false" final="false" visibility="public"
  32876. deprecated="not deprecated">
  32877. <param name="language" type="java.lang.String"/>
  32878. <doc>
  32879. <![CDATA[Sets the output language option
  32880. @param language "java"/"c++"]]>
  32881. </doc>
  32882. </method>
  32883. <method name="setFile"
  32884. abstract="false" native="false" synchronized="false"
  32885. static="false" final="false" visibility="public"
  32886. deprecated="not deprecated">
  32887. <param name="file" type="java.io.File"/>
  32888. <doc>
  32889. <![CDATA[Sets the record definition file attribute
  32890. @param file record definition file]]>
  32891. </doc>
  32892. </method>
  32893. <method name="setFailonerror"
  32894. abstract="false" native="false" synchronized="false"
  32895. static="false" final="false" visibility="public"
  32896. deprecated="not deprecated">
  32897. <param name="flag" type="boolean"/>
  32898. <doc>
  32899. <![CDATA[Given multiple files (via fileset), set the error handling behavior
  32900. @param flag true will throw build exception in case of failure (default)]]>
  32901. </doc>
  32902. </method>
  32903. <method name="setDestdir"
  32904. abstract="false" native="false" synchronized="false"
  32905. static="false" final="false" visibility="public"
  32906. deprecated="not deprecated">
  32907. <param name="dir" type="java.io.File"/>
  32908. <doc>
  32909. <![CDATA[Sets directory where output files will be generated
  32910. @param dir output directory]]>
  32911. </doc>
  32912. </method>
  32913. <method name="addFileset"
  32914. abstract="false" native="false" synchronized="false"
  32915. static="false" final="false" visibility="public"
  32916. deprecated="not deprecated">
  32917. <param name="set" type="org.apache.tools.ant.types.FileSet"/>
  32918. <doc>
  32919. <![CDATA[Adds a fileset that can consist of one or more files
  32920. @param set Set of record definition files]]>
  32921. </doc>
  32922. </method>
  32923. <method name="execute"
  32924. abstract="false" native="false" synchronized="false"
  32925. static="false" final="false" visibility="public"
  32926. deprecated="not deprecated">
  32927. <exception name="BuildException" type="org.apache.tools.ant.BuildException"/>
  32928. <doc>
  32929. <![CDATA[Invoke the Hadoop record compiler on each record definition file]]>
  32930. </doc>
  32931. </method>
  32932. <doc>
  32933. <![CDATA[Hadoop record compiler ant Task
  32934. <p> This task takes the given record definition files and compiles them into
  32935. java or c++
  32936. files. It is then up to the user to compile the generated files.
  32937. <p> The task requires the <code>file</code> or the nested fileset element to be
  32938. specified. Optional attributes are <code>language</code> (set the output
  32939. language, default is "java"),
  32940. <code>destdir</code> (name of the destination directory for generated java/c++
  32941. code, default is ".") and <code>failonerror</code> (specifies error handling
  32942. behavior. default is true).
  32943. <p><h4>Usage</h4>
  32944. <pre>
  32945. &lt;recordcc
  32946. destdir="${basedir}/gensrc"
  32947. language="java"&gt;
  32948. &lt;fileset include="**\/*.jr" /&gt;
  32949. &lt;/recordcc&gt;
  32950. </pre>]]>
  32951. </doc>
  32952. </class>
  32953. <!-- end class org.apache.hadoop.record.compiler.ant.RccTask -->
  32954. </package>
  32955. <package name="org.apache.hadoop.record.compiler.generated">
  32956. <!-- start class org.apache.hadoop.record.compiler.generated.ParseException -->
  32957. <class name="ParseException" extends="java.lang.Exception"
  32958. abstract="false"
  32959. static="false" final="false" visibility="public"
  32960. deprecated="not deprecated">
  32961. <constructor name="ParseException" type="org.apache.hadoop.record.compiler.generated.Token, int[][], java.lang.String[]"
  32962. static="false" final="false" visibility="public"
  32963. deprecated="not deprecated">
  32964. <doc>
  32965. <![CDATA[This constructor is used by the method "generateParseException"
  32966. in the generated parser. Calling this constructor generates
  32967. a new object of this type with the fields "currentToken",
  32968. "expectedTokenSequences", and "tokenImage" set. The boolean
  32969. flag "specialConstructor" is also set to true to indicate that
  32970. this constructor was used to create this object.
  32971. This constructor calls its super class with the empty string
  32972. to force the "toString" method of parent class "Throwable" to
  32973. print the error message in the form:
  32974. ParseException: <result of getMessage>]]>
  32975. </doc>
  32976. </constructor>
  32977. <constructor name="ParseException"
  32978. static="false" final="false" visibility="public"
  32979. deprecated="not deprecated">
  32980. <doc>
  32981. <![CDATA[The following constructors are for use by you for whatever
  32982. purpose you can think of. Constructing the exception in this
  32983. manner makes the exception behave in the normal way - i.e., as
  32984. documented in the class "Throwable". The fields "errorToken",
  32985. "expectedTokenSequences", and "tokenImage" do not contain
  32986. relevant information. The JavaCC generated code does not use
  32987. these constructors.]]>
  32988. </doc>
  32989. </constructor>
  32990. <constructor name="ParseException" type="java.lang.String"
  32991. static="false" final="false" visibility="public"
  32992. deprecated="not deprecated">
  32993. </constructor>
  32994. <method name="getMessage" return="java.lang.String"
  32995. abstract="false" native="false" synchronized="false"
  32996. static="false" final="false" visibility="public"
  32997. deprecated="not deprecated">
  32998. <doc>
  32999. <![CDATA[This method has the standard behavior when this object has been
  33000. created using the standard constructors. Otherwise, it uses
  33001. "currentToken" and "expectedTokenSequences" to generate a parse
  33002. error message and returns it. If this object has been created
  33003. due to a parse error, and you do not catch it (it gets thrown
  33004. from the parser), then this method is called during the printing
  33005. of the final stack trace, and hence the correct error message
  33006. gets displayed.]]>
  33007. </doc>
  33008. </method>
  33009. <method name="add_escapes" return="java.lang.String"
  33010. abstract="false" native="false" synchronized="false"
  33011. static="false" final="false" visibility="protected"
  33012. deprecated="not deprecated">
  33013. <param name="str" type="java.lang.String"/>
  33014. <doc>
  33015. <![CDATA[Used to convert raw characters to their escaped version
  33016. when these raw version cannot be used as part of an ASCII
  33017. string literal.]]>
  33018. </doc>
  33019. </method>
  33020. <field name="specialConstructor" type="boolean"
  33021. transient="false" volatile="false"
  33022. static="false" final="false" visibility="protected"
  33023. deprecated="not deprecated">
  33024. <doc>
  33025. <![CDATA[This variable determines which constructor was used to create
  33026. this object and thereby affects the semantics of the
  33027. "getMessage" method (see below).]]>
  33028. </doc>
  33029. </field>
  33030. <field name="currentToken" type="org.apache.hadoop.record.compiler.generated.Token"
  33031. transient="false" volatile="false"
  33032. static="false" final="false" visibility="public"
  33033. deprecated="not deprecated">
  33034. <doc>
  33035. <![CDATA[This is the last token that has been consumed successfully. If
  33036. this object has been created due to a parse error, the token
  33037. followng this token will (therefore) be the first error token.]]>
  33038. </doc>
  33039. </field>
  33040. <field name="expectedTokenSequences" type="int[][]"
  33041. transient="false" volatile="false"
  33042. static="false" final="false" visibility="public"
  33043. deprecated="not deprecated">
  33044. <doc>
  33045. <![CDATA[Each entry in this array is an array of integers. Each array
  33046. of integers represents a sequence of tokens (by their ordinal
  33047. values) that is expected at this point of the parse.]]>
  33048. </doc>
  33049. </field>
  33050. <field name="tokenImage" type="java.lang.String[]"
  33051. transient="false" volatile="false"
  33052. static="false" final="false" visibility="public"
  33053. deprecated="not deprecated">
  33054. <doc>
  33055. <![CDATA[This is a reference to the "tokenImage" array of the generated
  33056. parser within which the parse error occurred. This array is
  33057. defined in the generated ...Constants interface.]]>
  33058. </doc>
  33059. </field>
  33060. <field name="eol" type="java.lang.String"
  33061. transient="false" volatile="false"
  33062. static="false" final="false" visibility="protected"
  33063. deprecated="not deprecated">
  33064. <doc>
  33065. <![CDATA[The end of line string for this machine.]]>
  33066. </doc>
  33067. </field>
  33068. <doc>
  33069. <![CDATA[This exception is thrown when parse errors are encountered.
  33070. You can explicitly create objects of this exception type by
  33071. calling the method generateParseException in the generated
  33072. parser.
  33073. You can modify this class to customize your error reporting
  33074. mechanisms so long as you retain the public fields.]]>
  33075. </doc>
  33076. </class>
  33077. <!-- end class org.apache.hadoop.record.compiler.generated.ParseException -->
  33078. <!-- start class org.apache.hadoop.record.compiler.generated.Rcc -->
  33079. <class name="Rcc" extends="java.lang.Object"
  33080. abstract="false"
  33081. static="false" final="false" visibility="public"
  33082. deprecated="not deprecated">
  33083. <implements name="org.apache.hadoop.record.compiler.generated.RccConstants"/>
  33084. <constructor name="Rcc" type="java.io.InputStream"
  33085. static="false" final="false" visibility="public"
  33086. deprecated="not deprecated">
  33087. </constructor>
  33088. <constructor name="Rcc" type="java.io.InputStream, java.lang.String"
  33089. static="false" final="false" visibility="public"
  33090. deprecated="not deprecated">
  33091. </constructor>
  33092. <constructor name="Rcc" type="java.io.Reader"
  33093. static="false" final="false" visibility="public"
  33094. deprecated="not deprecated">
  33095. </constructor>
  33096. <constructor name="Rcc" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"
  33097. static="false" final="false" visibility="public"
  33098. deprecated="not deprecated">
  33099. </constructor>
  33100. <method name="main"
  33101. abstract="false" native="false" synchronized="false"
  33102. static="true" final="false" visibility="public"
  33103. deprecated="not deprecated">
  33104. <param name="args" type="java.lang.String[]"/>
  33105. </method>
  33106. <method name="usage"
  33107. abstract="false" native="false" synchronized="false"
  33108. static="true" final="false" visibility="public"
  33109. deprecated="not deprecated">
  33110. </method>
  33111. <method name="driver" return="int"
  33112. abstract="false" native="false" synchronized="false"
  33113. static="true" final="false" visibility="public"
  33114. deprecated="not deprecated">
  33115. <param name="args" type="java.lang.String[]"/>
  33116. </method>
  33117. <method name="Input" return="org.apache.hadoop.record.compiler.JFile"
  33118. abstract="false" native="false" synchronized="false"
  33119. static="false" final="true" visibility="public"
  33120. deprecated="not deprecated">
  33121. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  33122. </method>
  33123. <method name="Include" return="org.apache.hadoop.record.compiler.JFile"
  33124. abstract="false" native="false" synchronized="false"
  33125. static="false" final="true" visibility="public"
  33126. deprecated="not deprecated">
  33127. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  33128. </method>
  33129. <method name="Module" return="java.util.ArrayList"
  33130. abstract="false" native="false" synchronized="false"
  33131. static="false" final="true" visibility="public"
  33132. deprecated="not deprecated">
  33133. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  33134. </method>
  33135. <method name="ModuleName" return="java.lang.String"
  33136. abstract="false" native="false" synchronized="false"
  33137. static="false" final="true" visibility="public"
  33138. deprecated="not deprecated">
  33139. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  33140. </method>
  33141. <method name="RecordList" return="java.util.ArrayList"
  33142. abstract="false" native="false" synchronized="false"
  33143. static="false" final="true" visibility="public"
  33144. deprecated="not deprecated">
  33145. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  33146. </method>
  33147. <method name="Record" return="org.apache.hadoop.record.compiler.JRecord"
  33148. abstract="false" native="false" synchronized="false"
  33149. static="false" final="true" visibility="public"
  33150. deprecated="not deprecated">
  33151. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  33152. </method>
  33153. <method name="Field" return="org.apache.hadoop.record.compiler.JField"
  33154. abstract="false" native="false" synchronized="false"
  33155. static="false" final="true" visibility="public"
  33156. deprecated="not deprecated">
  33157. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  33158. </method>
  33159. <method name="Type" return="org.apache.hadoop.record.compiler.JType"
  33160. abstract="false" native="false" synchronized="false"
  33161. static="false" final="true" visibility="public"
  33162. deprecated="not deprecated">
  33163. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  33164. </method>
  33165. <method name="Map" return="org.apache.hadoop.record.compiler.JMap"
  33166. abstract="false" native="false" synchronized="false"
  33167. static="false" final="true" visibility="public"
  33168. deprecated="not deprecated">
  33169. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  33170. </method>
  33171. <method name="Vector" return="org.apache.hadoop.record.compiler.JVector"
  33172. abstract="false" native="false" synchronized="false"
  33173. static="false" final="true" visibility="public"
  33174. deprecated="not deprecated">
  33175. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  33176. </method>
  33177. <method name="ReInit"
  33178. abstract="false" native="false" synchronized="false"
  33179. static="false" final="false" visibility="public"
  33180. deprecated="not deprecated">
  33181. <param name="stream" type="java.io.InputStream"/>
  33182. </method>
  33183. <method name="ReInit"
  33184. abstract="false" native="false" synchronized="false"
  33185. static="false" final="false" visibility="public"
  33186. deprecated="not deprecated">
  33187. <param name="stream" type="java.io.InputStream"/>
  33188. <param name="encoding" type="java.lang.String"/>
  33189. </method>
  33190. <method name="ReInit"
  33191. abstract="false" native="false" synchronized="false"
  33192. static="false" final="false" visibility="public"
  33193. deprecated="not deprecated">
  33194. <param name="stream" type="java.io.Reader"/>
  33195. </method>
  33196. <method name="ReInit"
  33197. abstract="false" native="false" synchronized="false"
  33198. static="false" final="false" visibility="public"
  33199. deprecated="not deprecated">
  33200. <param name="tm" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"/>
  33201. </method>
  33202. <method name="getNextToken" return="org.apache.hadoop.record.compiler.generated.Token"
  33203. abstract="false" native="false" synchronized="false"
  33204. static="false" final="true" visibility="public"
  33205. deprecated="not deprecated">
  33206. </method>
  33207. <method name="getToken" return="org.apache.hadoop.record.compiler.generated.Token"
  33208. abstract="false" native="false" synchronized="false"
  33209. static="false" final="true" visibility="public"
  33210. deprecated="not deprecated">
  33211. <param name="index" type="int"/>
  33212. </method>
  33213. <method name="generateParseException" return="org.apache.hadoop.record.compiler.generated.ParseException"
  33214. abstract="false" native="false" synchronized="false"
  33215. static="false" final="false" visibility="public"
  33216. deprecated="not deprecated">
  33217. </method>
  33218. <method name="enable_tracing"
  33219. abstract="false" native="false" synchronized="false"
  33220. static="false" final="true" visibility="public"
  33221. deprecated="not deprecated">
  33222. </method>
  33223. <method name="disable_tracing"
  33224. abstract="false" native="false" synchronized="false"
  33225. static="false" final="true" visibility="public"
  33226. deprecated="not deprecated">
  33227. </method>
  33228. <field name="token_source" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"
  33229. transient="false" volatile="false"
  33230. static="false" final="false" visibility="public"
  33231. deprecated="not deprecated">
  33232. </field>
  33233. <field name="token" type="org.apache.hadoop.record.compiler.generated.Token"
  33234. transient="false" volatile="false"
  33235. static="false" final="false" visibility="public"
  33236. deprecated="not deprecated">
  33237. </field>
  33238. <field name="jj_nt" type="org.apache.hadoop.record.compiler.generated.Token"
  33239. transient="false" volatile="false"
  33240. static="false" final="false" visibility="public"
  33241. deprecated="not deprecated">
  33242. </field>
  33243. </class>
  33244. <!-- end class org.apache.hadoop.record.compiler.generated.Rcc -->
  33245. <!-- start interface org.apache.hadoop.record.compiler.generated.RccConstants -->
  33246. <interface name="RccConstants" abstract="true"
  33247. static="false" final="false" visibility="public"
  33248. deprecated="not deprecated">
  33249. <field name="EOF" type="int"
  33250. transient="false" volatile="false"
  33251. static="true" final="true" visibility="public"
  33252. deprecated="not deprecated">
  33253. </field>
  33254. <field name="MODULE_TKN" type="int"
  33255. transient="false" volatile="false"
  33256. static="true" final="true" visibility="public"
  33257. deprecated="not deprecated">
  33258. </field>
  33259. <field name="RECORD_TKN" type="int"
  33260. transient="false" volatile="false"
  33261. static="true" final="true" visibility="public"
  33262. deprecated="not deprecated">
  33263. </field>
  33264. <field name="INCLUDE_TKN" type="int"
  33265. transient="false" volatile="false"
  33266. static="true" final="true" visibility="public"
  33267. deprecated="not deprecated">
  33268. </field>
  33269. <field name="BYTE_TKN" type="int"
  33270. transient="false" volatile="false"
  33271. static="true" final="true" visibility="public"
  33272. deprecated="not deprecated">
  33273. </field>
  33274. <field name="BOOLEAN_TKN" type="int"
  33275. transient="false" volatile="false"
  33276. static="true" final="true" visibility="public"
  33277. deprecated="not deprecated">
  33278. </field>
  33279. <field name="INT_TKN" type="int"
  33280. transient="false" volatile="false"
  33281. static="true" final="true" visibility="public"
  33282. deprecated="not deprecated">
  33283. </field>
  33284. <field name="LONG_TKN" type="int"
  33285. transient="false" volatile="false"
  33286. static="true" final="true" visibility="public"
  33287. deprecated="not deprecated">
  33288. </field>
  33289. <field name="FLOAT_TKN" type="int"
  33290. transient="false" volatile="false"
  33291. static="true" final="true" visibility="public"
  33292. deprecated="not deprecated">
  33293. </field>
  33294. <field name="DOUBLE_TKN" type="int"
  33295. transient="false" volatile="false"
  33296. static="true" final="true" visibility="public"
  33297. deprecated="not deprecated">
  33298. </field>
  33299. <field name="USTRING_TKN" type="int"
  33300. transient="false" volatile="false"
  33301. static="true" final="true" visibility="public"
  33302. deprecated="not deprecated">
  33303. </field>
  33304. <field name="BUFFER_TKN" type="int"
  33305. transient="false" volatile="false"
  33306. static="true" final="true" visibility="public"
  33307. deprecated="not deprecated">
  33308. </field>
  33309. <field name="VECTOR_TKN" type="int"
  33310. transient="false" volatile="false"
  33311. static="true" final="true" visibility="public"
  33312. deprecated="not deprecated">
  33313. </field>
  33314. <field name="MAP_TKN" type="int"
  33315. transient="false" volatile="false"
  33316. static="true" final="true" visibility="public"
  33317. deprecated="not deprecated">
  33318. </field>
  33319. <field name="LBRACE_TKN" type="int"
  33320. transient="false" volatile="false"
  33321. static="true" final="true" visibility="public"
  33322. deprecated="not deprecated">
  33323. </field>
  33324. <field name="RBRACE_TKN" type="int"
  33325. transient="false" volatile="false"
  33326. static="true" final="true" visibility="public"
  33327. deprecated="not deprecated">
  33328. </field>
  33329. <field name="LT_TKN" type="int"
  33330. transient="false" volatile="false"
  33331. static="true" final="true" visibility="public"
  33332. deprecated="not deprecated">
  33333. </field>
  33334. <field name="GT_TKN" type="int"
  33335. transient="false" volatile="false"
  33336. static="true" final="true" visibility="public"
  33337. deprecated="not deprecated">
  33338. </field>
  33339. <field name="SEMICOLON_TKN" type="int"
  33340. transient="false" volatile="false"
  33341. static="true" final="true" visibility="public"
  33342. deprecated="not deprecated">
  33343. </field>
  33344. <field name="COMMA_TKN" type="int"
  33345. transient="false" volatile="false"
  33346. static="true" final="true" visibility="public"
  33347. deprecated="not deprecated">
  33348. </field>
  33349. <field name="DOT_TKN" type="int"
  33350. transient="false" volatile="false"
  33351. static="true" final="true" visibility="public"
  33352. deprecated="not deprecated">
  33353. </field>
  33354. <field name="CSTRING_TKN" type="int"
  33355. transient="false" volatile="false"
  33356. static="true" final="true" visibility="public"
  33357. deprecated="not deprecated">
  33358. </field>
  33359. <field name="IDENT_TKN" type="int"
  33360. transient="false" volatile="false"
  33361. static="true" final="true" visibility="public"
  33362. deprecated="not deprecated">
  33363. </field>
  33364. <field name="DEFAULT" type="int"
  33365. transient="false" volatile="false"
  33366. static="true" final="true" visibility="public"
  33367. deprecated="not deprecated">
  33368. </field>
  33369. <field name="WithinOneLineComment" type="int"
  33370. transient="false" volatile="false"
  33371. static="true" final="true" visibility="public"
  33372. deprecated="not deprecated">
  33373. </field>
  33374. <field name="WithinMultiLineComment" type="int"
  33375. transient="false" volatile="false"
  33376. static="true" final="true" visibility="public"
  33377. deprecated="not deprecated">
  33378. </field>
  33379. <field name="tokenImage" type="java.lang.String[]"
  33380. transient="false" volatile="false"
  33381. static="true" final="true" visibility="public"
  33382. deprecated="not deprecated">
  33383. </field>
  33384. </interface>
  33385. <!-- end interface org.apache.hadoop.record.compiler.generated.RccConstants -->
  33386. <!-- start class org.apache.hadoop.record.compiler.generated.RccTokenManager -->
  33387. <class name="RccTokenManager" extends="java.lang.Object"
  33388. abstract="false"
  33389. static="false" final="false" visibility="public"
  33390. deprecated="not deprecated">
  33391. <implements name="org.apache.hadoop.record.compiler.generated.RccConstants"/>
  33392. <constructor name="RccTokenManager" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"
  33393. static="false" final="false" visibility="public"
  33394. deprecated="not deprecated">
  33395. </constructor>
  33396. <constructor name="RccTokenManager" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream, int"
  33397. static="false" final="false" visibility="public"
  33398. deprecated="not deprecated">
  33399. </constructor>
  33400. <method name="setDebugStream"
  33401. abstract="false" native="false" synchronized="false"
  33402. static="false" final="false" visibility="public"
  33403. deprecated="not deprecated">
  33404. <param name="ds" type="java.io.PrintStream"/>
  33405. </method>
  33406. <method name="ReInit"
  33407. abstract="false" native="false" synchronized="false"
  33408. static="false" final="false" visibility="public"
  33409. deprecated="not deprecated">
  33410. <param name="stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"/>
  33411. </method>
  33412. <method name="ReInit"
  33413. abstract="false" native="false" synchronized="false"
  33414. static="false" final="false" visibility="public"
  33415. deprecated="not deprecated">
  33416. <param name="stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"/>
  33417. <param name="lexState" type="int"/>
  33418. </method>
  33419. <method name="SwitchTo"
  33420. abstract="false" native="false" synchronized="false"
  33421. static="false" final="false" visibility="public"
  33422. deprecated="not deprecated">
  33423. <param name="lexState" type="int"/>
  33424. </method>
  33425. <method name="jjFillToken" return="org.apache.hadoop.record.compiler.generated.Token"
  33426. abstract="false" native="false" synchronized="false"
  33427. static="false" final="false" visibility="protected"
  33428. deprecated="not deprecated">
  33429. </method>
  33430. <method name="getNextToken" return="org.apache.hadoop.record.compiler.generated.Token"
  33431. abstract="false" native="false" synchronized="false"
  33432. static="false" final="false" visibility="public"
  33433. deprecated="not deprecated">
  33434. </method>
  33435. <field name="debugStream" type="java.io.PrintStream"
  33436. transient="false" volatile="false"
  33437. static="false" final="false" visibility="public"
  33438. deprecated="not deprecated">
  33439. </field>
  33440. <field name="jjstrLiteralImages" type="java.lang.String[]"
  33441. transient="false" volatile="false"
  33442. static="true" final="true" visibility="public"
  33443. deprecated="not deprecated">
  33444. </field>
  33445. <field name="lexStateNames" type="java.lang.String[]"
  33446. transient="false" volatile="false"
  33447. static="true" final="true" visibility="public"
  33448. deprecated="not deprecated">
  33449. </field>
  33450. <field name="jjnewLexState" type="int[]"
  33451. transient="false" volatile="false"
  33452. static="true" final="true" visibility="public"
  33453. deprecated="not deprecated">
  33454. </field>
  33455. <field name="input_stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"
  33456. transient="false" volatile="false"
  33457. static="false" final="false" visibility="protected"
  33458. deprecated="not deprecated">
  33459. </field>
  33460. <field name="curChar" type="char"
  33461. transient="false" volatile="false"
  33462. static="false" final="false" visibility="protected"
  33463. deprecated="not deprecated">
  33464. </field>
  33465. </class>
  33466. <!-- end class org.apache.hadoop.record.compiler.generated.RccTokenManager -->
  33467. <!-- start class org.apache.hadoop.record.compiler.generated.SimpleCharStream -->
  33468. <class name="SimpleCharStream" extends="java.lang.Object"
  33469. abstract="false"
  33470. static="false" final="false" visibility="public"
  33471. deprecated="not deprecated">
  33472. <constructor name="SimpleCharStream" type="java.io.Reader, int, int, int"
  33473. static="false" final="false" visibility="public"
  33474. deprecated="not deprecated">
  33475. </constructor>
  33476. <constructor name="SimpleCharStream" type="java.io.Reader, int, int"
  33477. static="false" final="false" visibility="public"
  33478. deprecated="not deprecated">
  33479. </constructor>
  33480. <constructor name="SimpleCharStream" type="java.io.Reader"
  33481. static="false" final="false" visibility="public"
  33482. deprecated="not deprecated">
  33483. </constructor>
  33484. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String, int, int, int"
  33485. static="false" final="false" visibility="public"
  33486. deprecated="not deprecated">
  33487. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  33488. </constructor>
  33489. <constructor name="SimpleCharStream" type="java.io.InputStream, int, int, int"
  33490. static="false" final="false" visibility="public"
  33491. deprecated="not deprecated">
  33492. </constructor>
  33493. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String, int, int"
  33494. static="false" final="false" visibility="public"
  33495. deprecated="not deprecated">
  33496. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  33497. </constructor>
  33498. <constructor name="SimpleCharStream" type="java.io.InputStream, int, int"
  33499. static="false" final="false" visibility="public"
  33500. deprecated="not deprecated">
  33501. </constructor>
  33502. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String"
  33503. static="false" final="false" visibility="public"
  33504. deprecated="not deprecated">
  33505. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  33506. </constructor>
  33507. <constructor name="SimpleCharStream" type="java.io.InputStream"
  33508. static="false" final="false" visibility="public"
  33509. deprecated="not deprecated">
  33510. </constructor>
  33511. <method name="setTabSize"
  33512. abstract="false" native="false" synchronized="false"
  33513. static="false" final="false" visibility="protected"
  33514. deprecated="not deprecated">
  33515. <param name="i" type="int"/>
  33516. </method>
  33517. <method name="getTabSize" return="int"
  33518. abstract="false" native="false" synchronized="false"
  33519. static="false" final="false" visibility="protected"
  33520. deprecated="not deprecated">
  33521. <param name="i" type="int"/>
  33522. </method>
  33523. <method name="ExpandBuff"
  33524. abstract="false" native="false" synchronized="false"
  33525. static="false" final="false" visibility="protected"
  33526. deprecated="not deprecated">
  33527. <param name="wrapAround" type="boolean"/>
  33528. </method>
  33529. <method name="FillBuff"
  33530. abstract="false" native="false" synchronized="false"
  33531. static="false" final="false" visibility="protected"
  33532. deprecated="not deprecated">
  33533. <exception name="IOException" type="java.io.IOException"/>
  33534. </method>
  33535. <method name="BeginToken" return="char"
  33536. abstract="false" native="false" synchronized="false"
  33537. static="false" final="false" visibility="public"
  33538. deprecated="not deprecated">
  33539. <exception name="IOException" type="java.io.IOException"/>
  33540. </method>
  33541. <method name="UpdateLineColumn"
  33542. abstract="false" native="false" synchronized="false"
  33543. static="false" final="false" visibility="protected"
  33544. deprecated="not deprecated">
  33545. <param name="c" type="char"/>
  33546. </method>
  33547. <method name="readChar" return="char"
  33548. abstract="false" native="false" synchronized="false"
  33549. static="false" final="false" visibility="public"
  33550. deprecated="not deprecated">
  33551. <exception name="IOException" type="java.io.IOException"/>
  33552. </method>
  33553. <method name="getEndColumn" return="int"
  33554. abstract="false" native="false" synchronized="false"
  33555. static="false" final="false" visibility="public"
  33556. deprecated="not deprecated">
  33557. </method>
  33558. <method name="getEndLine" return="int"
  33559. abstract="false" native="false" synchronized="false"
  33560. static="false" final="false" visibility="public"
  33561. deprecated="not deprecated">
  33562. </method>
  33563. <method name="getBeginColumn" return="int"
  33564. abstract="false" native="false" synchronized="false"
  33565. static="false" final="false" visibility="public"
  33566. deprecated="not deprecated">
  33567. </method>
  33568. <method name="getBeginLine" return="int"
  33569. abstract="false" native="false" synchronized="false"
  33570. static="false" final="false" visibility="public"
  33571. deprecated="not deprecated">
  33572. </method>
  33573. <method name="backup"
  33574. abstract="false" native="false" synchronized="false"
  33575. static="false" final="false" visibility="public"
  33576. deprecated="not deprecated">
  33577. <param name="amount" type="int"/>
  33578. </method>
  33579. <method name="ReInit"
  33580. abstract="false" native="false" synchronized="false"
  33581. static="false" final="false" visibility="public"
  33582. deprecated="not deprecated">
  33583. <param name="dstream" type="java.io.Reader"/>
  33584. <param name="startline" type="int"/>
  33585. <param name="startcolumn" type="int"/>
  33586. <param name="buffersize" type="int"/>
  33587. </method>
  33588. <method name="ReInit"
  33589. abstract="false" native="false" synchronized="false"
  33590. static="false" final="false" visibility="public"
  33591. deprecated="not deprecated">
  33592. <param name="dstream" type="java.io.Reader"/>
  33593. <param name="startline" type="int"/>
  33594. <param name="startcolumn" type="int"/>
  33595. </method>
  33596. <method name="ReInit"
  33597. abstract="false" native="false" synchronized="false"
  33598. static="false" final="false" visibility="public"
  33599. deprecated="not deprecated">
  33600. <param name="dstream" type="java.io.Reader"/>
  33601. </method>
  33602. <method name="ReInit"
  33603. abstract="false" native="false" synchronized="false"
  33604. static="false" final="false" visibility="public"
  33605. deprecated="not deprecated">
  33606. <param name="dstream" type="java.io.InputStream"/>
  33607. <param name="encoding" type="java.lang.String"/>
  33608. <param name="startline" type="int"/>
  33609. <param name="startcolumn" type="int"/>
  33610. <param name="buffersize" type="int"/>
  33611. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  33612. </method>
  33613. <method name="ReInit"
  33614. abstract="false" native="false" synchronized="false"
  33615. static="false" final="false" visibility="public"
  33616. deprecated="not deprecated">
  33617. <param name="dstream" type="java.io.InputStream"/>
  33618. <param name="startline" type="int"/>
  33619. <param name="startcolumn" type="int"/>
  33620. <param name="buffersize" type="int"/>
  33621. </method>
  33622. <method name="ReInit"
  33623. abstract="false" native="false" synchronized="false"
  33624. static="false" final="false" visibility="public"
  33625. deprecated="not deprecated">
  33626. <param name="dstream" type="java.io.InputStream"/>
  33627. <param name="encoding" type="java.lang.String"/>
  33628. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  33629. </method>
  33630. <method name="ReInit"
  33631. abstract="false" native="false" synchronized="false"
  33632. static="false" final="false" visibility="public"
  33633. deprecated="not deprecated">
  33634. <param name="dstream" type="java.io.InputStream"/>
  33635. </method>
  33636. <method name="ReInit"
  33637. abstract="false" native="false" synchronized="false"
  33638. static="false" final="false" visibility="public"
  33639. deprecated="not deprecated">
  33640. <param name="dstream" type="java.io.InputStream"/>
  33641. <param name="encoding" type="java.lang.String"/>
  33642. <param name="startline" type="int"/>
  33643. <param name="startcolumn" type="int"/>
  33644. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  33645. </method>
  33646. <method name="ReInit"
  33647. abstract="false" native="false" synchronized="false"
  33648. static="false" final="false" visibility="public"
  33649. deprecated="not deprecated">
  33650. <param name="dstream" type="java.io.InputStream"/>
  33651. <param name="startline" type="int"/>
  33652. <param name="startcolumn" type="int"/>
  33653. </method>
  33654. <method name="GetImage" return="java.lang.String"
  33655. abstract="false" native="false" synchronized="false"
  33656. static="false" final="false" visibility="public"
  33657. deprecated="not deprecated">
  33658. </method>
  33659. <method name="GetSuffix" return="char[]"
  33660. abstract="false" native="false" synchronized="false"
  33661. static="false" final="false" visibility="public"
  33662. deprecated="not deprecated">
  33663. <param name="len" type="int"/>
  33664. </method>
  33665. <method name="Done"
  33666. abstract="false" native="false" synchronized="false"
  33667. static="false" final="false" visibility="public"
  33668. deprecated="not deprecated">
  33669. </method>
  33670. <method name="adjustBeginLineColumn"
  33671. abstract="false" native="false" synchronized="false"
  33672. static="false" final="false" visibility="public"
  33673. deprecated="not deprecated">
  33674. <param name="newLine" type="int"/>
  33675. <param name="newCol" type="int"/>
  33676. <doc>
  33677. <![CDATA[Method to adjust line and column numbers for the start of a token.]]>
  33678. </doc>
  33679. </method>
  33680. <field name="staticFlag" type="boolean"
  33681. transient="false" volatile="false"
  33682. static="true" final="true" visibility="public"
  33683. deprecated="not deprecated">
  33684. </field>
  33685. <field name="bufpos" type="int"
  33686. transient="false" volatile="false"
  33687. static="false" final="false" visibility="public"
  33688. deprecated="not deprecated">
  33689. </field>
  33690. <field name="bufline" type="int[]"
  33691. transient="false" volatile="false"
  33692. static="false" final="false" visibility="protected"
  33693. deprecated="not deprecated">
  33694. </field>
  33695. <field name="bufcolumn" type="int[]"
  33696. transient="false" volatile="false"
  33697. static="false" final="false" visibility="protected"
  33698. deprecated="not deprecated">
  33699. </field>
  33700. <field name="column" type="int"
  33701. transient="false" volatile="false"
  33702. static="false" final="false" visibility="protected"
  33703. deprecated="not deprecated">
  33704. </field>
  33705. <field name="line" type="int"
  33706. transient="false" volatile="false"
  33707. static="false" final="false" visibility="protected"
  33708. deprecated="not deprecated">
  33709. </field>
  33710. <field name="prevCharIsCR" type="boolean"
  33711. transient="false" volatile="false"
  33712. static="false" final="false" visibility="protected"
  33713. deprecated="not deprecated">
  33714. </field>
  33715. <field name="prevCharIsLF" type="boolean"
  33716. transient="false" volatile="false"
  33717. static="false" final="false" visibility="protected"
  33718. deprecated="not deprecated">
  33719. </field>
  33720. <field name="inputStream" type="java.io.Reader"
  33721. transient="false" volatile="false"
  33722. static="false" final="false" visibility="protected"
  33723. deprecated="not deprecated">
  33724. </field>
  33725. <field name="buffer" type="char[]"
  33726. transient="false" volatile="false"
  33727. static="false" final="false" visibility="protected"
  33728. deprecated="not deprecated">
  33729. </field>
  33730. <field name="maxNextCharInd" type="int"
  33731. transient="false" volatile="false"
  33732. static="false" final="false" visibility="protected"
  33733. deprecated="not deprecated">
  33734. </field>
  33735. <field name="inBuf" type="int"
  33736. transient="false" volatile="false"
  33737. static="false" final="false" visibility="protected"
  33738. deprecated="not deprecated">
  33739. </field>
  33740. <field name="tabSize" type="int"
  33741. transient="false" volatile="false"
  33742. static="false" final="false" visibility="protected"
  33743. deprecated="not deprecated">
  33744. </field>
  33745. <doc>
  33746. <![CDATA[An implementation of interface CharStream, where the stream is assumed to
  33747. contain only ASCII characters (without unicode processing).]]>
  33748. </doc>
  33749. </class>
  33750. <!-- end class org.apache.hadoop.record.compiler.generated.SimpleCharStream -->
  33751. <!-- start class org.apache.hadoop.record.compiler.generated.Token -->
  33752. <class name="Token" extends="java.lang.Object"
  33753. abstract="false"
  33754. static="false" final="false" visibility="public"
  33755. deprecated="not deprecated">
  33756. <constructor name="Token"
  33757. static="false" final="false" visibility="public"
  33758. deprecated="not deprecated">
  33759. </constructor>
  33760. <method name="toString" return="java.lang.String"
  33761. abstract="false" native="false" synchronized="false"
  33762. static="false" final="false" visibility="public"
  33763. deprecated="not deprecated">
  33764. <doc>
  33765. <![CDATA[Returns the image.]]>
  33766. </doc>
  33767. </method>
  33768. <method name="newToken" return="org.apache.hadoop.record.compiler.generated.Token"
  33769. abstract="false" native="false" synchronized="false"
  33770. static="true" final="true" visibility="public"
  33771. deprecated="not deprecated">
  33772. <param name="ofKind" type="int"/>
  33773. <doc>
  33774. <![CDATA[Returns a new Token object, by default. However, if you want, you
  33775. can create and return subclass objects based on the value of ofKind.
  33776. Simply add the cases to the switch for all those special cases.
  33777. For example, if you have a subclass of Token called IDToken that
  33778. you want to create if ofKind is ID, simlpy add something like :
  33779. case MyParserConstants.ID : return new IDToken();
  33780. to the following switch statement. Then you can cast matchedToken
  33781. variable to the appropriate type and use it in your lexical actions.]]>
  33782. </doc>
  33783. </method>
  33784. <field name="kind" type="int"
  33785. transient="false" volatile="false"
  33786. static="false" final="false" visibility="public"
  33787. deprecated="not deprecated">
  33788. <doc>
  33789. <![CDATA[An integer that describes the kind of this token. This numbering
  33790. system is determined by JavaCCParser, and a table of these numbers is
  33791. stored in the file ...Constants.java.]]>
  33792. </doc>
  33793. </field>
  33794. <field name="beginLine" type="int"
  33795. transient="false" volatile="false"
  33796. static="false" final="false" visibility="public"
  33797. deprecated="not deprecated">
  33798. <doc>
  33799. <![CDATA[beginLine and beginColumn describe the position of the first character
  33800. of this token; endLine and endColumn describe the position of the
  33801. last character of this token.]]>
  33802. </doc>
  33803. </field>
  33804. <field name="beginColumn" type="int"
  33805. transient="false" volatile="false"
  33806. static="false" final="false" visibility="public"
  33807. deprecated="not deprecated">
  33808. <doc>
  33809. <![CDATA[beginLine and beginColumn describe the position of the first character
  33810. of this token; endLine and endColumn describe the position of the
  33811. last character of this token.]]>
  33812. </doc>
  33813. </field>
  33814. <field name="endLine" type="int"
  33815. transient="false" volatile="false"
  33816. static="false" final="false" visibility="public"
  33817. deprecated="not deprecated">
  33818. <doc>
  33819. <![CDATA[beginLine and beginColumn describe the position of the first character
  33820. of this token; endLine and endColumn describe the position of the
  33821. last character of this token.]]>
  33822. </doc>
  33823. </field>
  33824. <field name="endColumn" type="int"
  33825. transient="false" volatile="false"
  33826. static="false" final="false" visibility="public"
  33827. deprecated="not deprecated">
  33828. <doc>
  33829. <![CDATA[beginLine and beginColumn describe the position of the first character
  33830. of this token; endLine and endColumn describe the position of the
  33831. last character of this token.]]>
  33832. </doc>
  33833. </field>
  33834. <field name="image" type="java.lang.String"
  33835. transient="false" volatile="false"
  33836. static="false" final="false" visibility="public"
  33837. deprecated="not deprecated">
  33838. <doc>
  33839. <![CDATA[The string image of the token.]]>
  33840. </doc>
  33841. </field>
  33842. <field name="next" type="org.apache.hadoop.record.compiler.generated.Token"
  33843. transient="false" volatile="false"
  33844. static="false" final="false" visibility="public"
  33845. deprecated="not deprecated">
  33846. <doc>
  33847. <![CDATA[A reference to the next regular (non-special) token from the input
  33848. stream. If this is the last token from the input stream, or if the
  33849. token manager has not read tokens beyond this one, this field is
  33850. set to null. This is true only if this token is also a regular
  33851. token. Otherwise, see below for a description of the contents of
  33852. this field.]]>
  33853. </doc>
  33854. </field>
  33855. <field name="specialToken" type="org.apache.hadoop.record.compiler.generated.Token"
  33856. transient="false" volatile="false"
  33857. static="false" final="false" visibility="public"
  33858. deprecated="not deprecated">
  33859. <doc>
  33860. <![CDATA[This field is used to access special tokens that occur prior to this
  33861. token, but after the immediately preceding regular (non-special) token.
  33862. If there are no such special tokens, this field is set to null.
  33863. When there are more than one such special token, this field refers
  33864. to the last of these special tokens, which in turn refers to the next
  33865. previous special token through its specialToken field, and so on
  33866. until the first special token (whose specialToken field is null).
  33867. The next fields of special tokens refer to other special tokens that
  33868. immediately follow it (without an intervening regular token). If there
  33869. is no such token, this field is null.]]>
  33870. </doc>
  33871. </field>
  33872. <doc>
  33873. <![CDATA[Describes the input token stream.]]>
  33874. </doc>
  33875. </class>
  33876. <!-- end class org.apache.hadoop.record.compiler.generated.Token -->
  33877. <!-- start class org.apache.hadoop.record.compiler.generated.TokenMgrError -->
  33878. <class name="TokenMgrError" extends="java.lang.Error"
  33879. abstract="false"
  33880. static="false" final="false" visibility="public"
  33881. deprecated="not deprecated">
  33882. <constructor name="TokenMgrError"
  33883. static="false" final="false" visibility="public"
  33884. deprecated="not deprecated">
  33885. </constructor>
  33886. <constructor name="TokenMgrError" type="java.lang.String, int"
  33887. static="false" final="false" visibility="public"
  33888. deprecated="not deprecated">
  33889. </constructor>
  33890. <constructor name="TokenMgrError" type="boolean, int, int, int, java.lang.String, char, int"
  33891. static="false" final="false" visibility="public"
  33892. deprecated="not deprecated">
  33893. </constructor>
  33894. <method name="addEscapes" return="java.lang.String"
  33895. abstract="false" native="false" synchronized="false"
  33896. static="true" final="true" visibility="protected"
  33897. deprecated="not deprecated">
  33898. <param name="str" type="java.lang.String"/>
  33899. <doc>
  33900. <![CDATA[Replaces unprintable characters by their espaced (or unicode escaped)
  33901. equivalents in the given string]]>
  33902. </doc>
  33903. </method>
  33904. <method name="LexicalError" return="java.lang.String"
  33905. abstract="false" native="false" synchronized="false"
  33906. static="true" final="false" visibility="protected"
  33907. deprecated="not deprecated">
  33908. <param name="EOFSeen" type="boolean"/>
  33909. <param name="lexState" type="int"/>
  33910. <param name="errorLine" type="int"/>
  33911. <param name="errorColumn" type="int"/>
  33912. <param name="errorAfter" type="java.lang.String"/>
  33913. <param name="curChar" type="char"/>
  33914. <doc>
  33915. <![CDATA[Returns a detailed message for the Error when it is thrown by the
  33916. token manager to indicate a lexical error.
  33917. Parameters :
  33918. EOFSeen : indicates if EOF caused the lexicl error
  33919. curLexState : lexical state in which this error occured
  33920. errorLine : line number when the error occured
  33921. errorColumn : column number when the error occured
  33922. errorAfter : prefix that was seen before this error occured
  33923. curchar : the offending character
  33924. Note: You can customize the lexical error message by modifying this method.]]>
  33925. </doc>
  33926. </method>
  33927. <method name="getMessage" return="java.lang.String"
  33928. abstract="false" native="false" synchronized="false"
  33929. static="false" final="false" visibility="public"
  33930. deprecated="not deprecated">
  33931. <doc>
  33932. <![CDATA[You can also modify the body of this method to customize your error messages.
  33933. For example, cases like LOOP_DETECTED and INVALID_LEXICAL_STATE are not
  33934. of end-users concern, so you can return something like :
  33935. "Internal Error : Please file a bug report .... "
  33936. from this method for such cases in the release version of your parser.]]>
  33937. </doc>
  33938. </method>
  33939. </class>
  33940. <!-- end class org.apache.hadoop.record.compiler.generated.TokenMgrError -->
  33941. </package>
  33942. <package name="org.apache.hadoop.record.meta">
  33943. <!-- start class org.apache.hadoop.record.meta.FieldTypeInfo -->
  33944. <class name="FieldTypeInfo" extends="java.lang.Object"
  33945. abstract="false"
  33946. static="false" final="false" visibility="public"
  33947. deprecated="not deprecated">
  33948. <method name="getTypeID" return="org.apache.hadoop.record.meta.TypeID"
  33949. abstract="false" native="false" synchronized="false"
  33950. static="false" final="false" visibility="public"
  33951. deprecated="not deprecated">
  33952. <doc>
  33953. <![CDATA[get the field's TypeID object]]>
  33954. </doc>
  33955. </method>
  33956. <method name="getFieldID" return="java.lang.String"
  33957. abstract="false" native="false" synchronized="false"
  33958. static="false" final="false" visibility="public"
  33959. deprecated="not deprecated">
  33960. <doc>
  33961. <![CDATA[get the field's id (name)]]>
  33962. </doc>
  33963. </method>
  33964. <method name="equals" return="boolean"
  33965. abstract="false" native="false" synchronized="false"
  33966. static="false" final="false" visibility="public"
  33967. deprecated="not deprecated">
  33968. <param name="o" type="java.lang.Object"/>
  33969. <doc>
  33970. <![CDATA[Two FieldTypeInfos are equal if ach of their fields matches]]>
  33971. </doc>
  33972. </method>
  33973. <method name="hashCode" return="int"
  33974. abstract="false" native="false" synchronized="false"
  33975. static="false" final="false" visibility="public"
  33976. deprecated="not deprecated">
  33977. <doc>
  33978. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  33979. be used as a hashmap key]]>
  33980. </doc>
  33981. </method>
  33982. <method name="equals" return="boolean"
  33983. abstract="false" native="false" synchronized="false"
  33984. static="false" final="false" visibility="public"
  33985. deprecated="not deprecated">
  33986. <param name="ti" type="org.apache.hadoop.record.meta.FieldTypeInfo"/>
  33987. </method>
  33988. <doc>
  33989. <![CDATA[Represents a type information for a field, which is made up of its
  33990. ID (name) and its type (a TypeID object).]]>
  33991. </doc>
  33992. </class>
  33993. <!-- end class org.apache.hadoop.record.meta.FieldTypeInfo -->
  33994. <!-- start class org.apache.hadoop.record.meta.MapTypeID -->
  33995. <class name="MapTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  33996. abstract="false"
  33997. static="false" final="false" visibility="public"
  33998. deprecated="not deprecated">
  33999. <constructor name="MapTypeID" type="org.apache.hadoop.record.meta.TypeID, org.apache.hadoop.record.meta.TypeID"
  34000. static="false" final="false" visibility="public"
  34001. deprecated="not deprecated">
  34002. </constructor>
  34003. <method name="getKeyTypeID" return="org.apache.hadoop.record.meta.TypeID"
  34004. abstract="false" native="false" synchronized="false"
  34005. static="false" final="false" visibility="public"
  34006. deprecated="not deprecated">
  34007. <doc>
  34008. <![CDATA[get the TypeID of the map's key element]]>
  34009. </doc>
  34010. </method>
  34011. <method name="getValueTypeID" return="org.apache.hadoop.record.meta.TypeID"
  34012. abstract="false" native="false" synchronized="false"
  34013. static="false" final="false" visibility="public"
  34014. deprecated="not deprecated">
  34015. <doc>
  34016. <![CDATA[get the TypeID of the map's value element]]>
  34017. </doc>
  34018. </method>
  34019. <method name="equals" return="boolean"
  34020. abstract="false" native="false" synchronized="false"
  34021. static="false" final="false" visibility="public"
  34022. deprecated="not deprecated">
  34023. <param name="o" type="java.lang.Object"/>
  34024. <doc>
  34025. <![CDATA[Two map typeIDs are equal if their constituent elements have the
  34026. same type]]>
  34027. </doc>
  34028. </method>
  34029. <method name="hashCode" return="int"
  34030. abstract="false" native="false" synchronized="false"
  34031. static="false" final="false" visibility="public"
  34032. deprecated="not deprecated">
  34033. <doc>
  34034. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  34035. be used as a hashmap key]]>
  34036. </doc>
  34037. </method>
  34038. <doc>
  34039. <![CDATA[Represents typeID for a Map]]>
  34040. </doc>
  34041. </class>
  34042. <!-- end class org.apache.hadoop.record.meta.MapTypeID -->
  34043. <!-- start class org.apache.hadoop.record.meta.RecordTypeInfo -->
  34044. <class name="RecordTypeInfo" extends="org.apache.hadoop.record.Record"
  34045. abstract="false"
  34046. static="false" final="false" visibility="public"
  34047. deprecated="not deprecated">
  34048. <constructor name="RecordTypeInfo"
  34049. static="false" final="false" visibility="public"
  34050. deprecated="not deprecated">
  34051. <doc>
  34052. <![CDATA[Create an empty RecordTypeInfo object.]]>
  34053. </doc>
  34054. </constructor>
  34055. <constructor name="RecordTypeInfo" type="java.lang.String"
  34056. static="false" final="false" visibility="public"
  34057. deprecated="not deprecated">
  34058. <doc>
  34059. <![CDATA[Create a RecordTypeInfo object representing a record with the given name
  34060. @param name Name of the record]]>
  34061. </doc>
  34062. </constructor>
  34063. <method name="getName" return="java.lang.String"
  34064. abstract="false" native="false" synchronized="false"
  34065. static="false" final="false" visibility="public"
  34066. deprecated="not deprecated">
  34067. <doc>
  34068. <![CDATA[return the name of the record]]>
  34069. </doc>
  34070. </method>
  34071. <method name="setName"
  34072. abstract="false" native="false" synchronized="false"
  34073. static="false" final="false" visibility="public"
  34074. deprecated="not deprecated">
  34075. <param name="name" type="java.lang.String"/>
  34076. <doc>
  34077. <![CDATA[set the name of the record]]>
  34078. </doc>
  34079. </method>
  34080. <method name="addField"
  34081. abstract="false" native="false" synchronized="false"
  34082. static="false" final="false" visibility="public"
  34083. deprecated="not deprecated">
  34084. <param name="fieldName" type="java.lang.String"/>
  34085. <param name="tid" type="org.apache.hadoop.record.meta.TypeID"/>
  34086. <doc>
  34087. <![CDATA[Add a field.
  34088. @param fieldName Name of the field
  34089. @param tid Type ID of the field]]>
  34090. </doc>
  34091. </method>
  34092. <method name="getFieldTypeInfos" return="java.util.Collection"
  34093. abstract="false" native="false" synchronized="false"
  34094. static="false" final="false" visibility="public"
  34095. deprecated="not deprecated">
  34096. <doc>
  34097. <![CDATA[Return a collection of field type infos]]>
  34098. </doc>
  34099. </method>
  34100. <method name="getNestedStructTypeInfo" return="org.apache.hadoop.record.meta.RecordTypeInfo"
  34101. abstract="false" native="false" synchronized="false"
  34102. static="false" final="false" visibility="public"
  34103. deprecated="not deprecated">
  34104. <param name="name" type="java.lang.String"/>
  34105. <doc>
  34106. <![CDATA[Return the type info of a nested record. We only consider nesting
  34107. to one level.
  34108. @param name Name of the nested record]]>
  34109. </doc>
  34110. </method>
  34111. <method name="serialize"
  34112. abstract="false" native="false" synchronized="false"
  34113. static="false" final="false" visibility="public"
  34114. deprecated="not deprecated">
  34115. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  34116. <param name="tag" type="java.lang.String"/>
  34117. <exception name="IOException" type="java.io.IOException"/>
  34118. <doc>
  34119. <![CDATA[Serialize the type information for a record]]>
  34120. </doc>
  34121. </method>
  34122. <method name="deserialize"
  34123. abstract="false" native="false" synchronized="false"
  34124. static="false" final="false" visibility="public"
  34125. deprecated="not deprecated">
  34126. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  34127. <param name="tag" type="java.lang.String"/>
  34128. <exception name="IOException" type="java.io.IOException"/>
  34129. <doc>
  34130. <![CDATA[Deserialize the type information for a record]]>
  34131. </doc>
  34132. </method>
  34133. <method name="compareTo" return="int"
  34134. abstract="false" native="false" synchronized="false"
  34135. static="false" final="false" visibility="public"
  34136. deprecated="not deprecated">
  34137. <param name="peer_" type="java.lang.Object"/>
  34138. <exception name="ClassCastException" type="java.lang.ClassCastException"/>
  34139. <doc>
  34140. <![CDATA[This class doesn't implement Comparable as it's not meant to be used
  34141. for anything besides de/serializing.
  34142. So we always throw an exception.
  34143. Not implemented. Always returns 0 if another RecordTypeInfo is passed in.]]>
  34144. </doc>
  34145. </method>
  34146. <doc>
  34147. <![CDATA[A record's Type Information object which can read/write itself.
  34148. Type information for a record comprises metadata about the record,
  34149. as well as a collection of type information for each field in the record.]]>
  34150. </doc>
  34151. </class>
  34152. <!-- end class org.apache.hadoop.record.meta.RecordTypeInfo -->
  34153. <!-- start class org.apache.hadoop.record.meta.StructTypeID -->
  34154. <class name="StructTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  34155. abstract="false"
  34156. static="false" final="false" visibility="public"
  34157. deprecated="not deprecated">
  34158. <constructor name="StructTypeID" type="org.apache.hadoop.record.meta.RecordTypeInfo"
  34159. static="false" final="false" visibility="public"
  34160. deprecated="not deprecated">
  34161. <doc>
  34162. <![CDATA[Create a StructTypeID based on the RecordTypeInfo of some record]]>
  34163. </doc>
  34164. </constructor>
  34165. <method name="getFieldTypeInfos" return="java.util.Collection"
  34166. abstract="false" native="false" synchronized="false"
  34167. static="false" final="false" visibility="public"
  34168. deprecated="not deprecated">
  34169. </method>
  34170. <doc>
  34171. <![CDATA[Represents typeID for a struct]]>
  34172. </doc>
  34173. </class>
  34174. <!-- end class org.apache.hadoop.record.meta.StructTypeID -->
  34175. <!-- start class org.apache.hadoop.record.meta.TypeID -->
  34176. <class name="TypeID" extends="java.lang.Object"
  34177. abstract="false"
  34178. static="false" final="false" visibility="public"
  34179. deprecated="not deprecated">
  34180. <method name="getTypeVal" return="byte"
  34181. abstract="false" native="false" synchronized="false"
  34182. static="false" final="false" visibility="public"
  34183. deprecated="not deprecated">
  34184. <doc>
  34185. <![CDATA[Get the type value. One of the constants in RIOType.]]>
  34186. </doc>
  34187. </method>
  34188. <method name="equals" return="boolean"
  34189. abstract="false" native="false" synchronized="false"
  34190. static="false" final="false" visibility="public"
  34191. deprecated="not deprecated">
  34192. <param name="o" type="java.lang.Object"/>
  34193. <doc>
  34194. <![CDATA[Two base typeIDs are equal if they refer to the same type]]>
  34195. </doc>
  34196. </method>
  34197. <method name="hashCode" return="int"
  34198. abstract="false" native="false" synchronized="false"
  34199. static="false" final="false" visibility="public"
  34200. deprecated="not deprecated">
  34201. <doc>
  34202. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  34203. be used as a hashmap key]]>
  34204. </doc>
  34205. </method>
  34206. <field name="BoolTypeID" type="org.apache.hadoop.record.meta.TypeID"
  34207. transient="false" volatile="false"
  34208. static="true" final="true" visibility="public"
  34209. deprecated="not deprecated">
  34210. <doc>
  34211. <![CDATA[Constant classes for the basic types, so we can share them.]]>
  34212. </doc>
  34213. </field>
  34214. <field name="BufferTypeID" type="org.apache.hadoop.record.meta.TypeID"
  34215. transient="false" volatile="false"
  34216. static="true" final="true" visibility="public"
  34217. deprecated="not deprecated">
  34218. </field>
  34219. <field name="ByteTypeID" type="org.apache.hadoop.record.meta.TypeID"
  34220. transient="false" volatile="false"
  34221. static="true" final="true" visibility="public"
  34222. deprecated="not deprecated">
  34223. </field>
  34224. <field name="DoubleTypeID" type="org.apache.hadoop.record.meta.TypeID"
  34225. transient="false" volatile="false"
  34226. static="true" final="true" visibility="public"
  34227. deprecated="not deprecated">
  34228. </field>
  34229. <field name="FloatTypeID" type="org.apache.hadoop.record.meta.TypeID"
  34230. transient="false" volatile="false"
  34231. static="true" final="true" visibility="public"
  34232. deprecated="not deprecated">
  34233. </field>
  34234. <field name="IntTypeID" type="org.apache.hadoop.record.meta.TypeID"
  34235. transient="false" volatile="false"
  34236. static="true" final="true" visibility="public"
  34237. deprecated="not deprecated">
  34238. </field>
  34239. <field name="LongTypeID" type="org.apache.hadoop.record.meta.TypeID"
  34240. transient="false" volatile="false"
  34241. static="true" final="true" visibility="public"
  34242. deprecated="not deprecated">
  34243. </field>
  34244. <field name="StringTypeID" type="org.apache.hadoop.record.meta.TypeID"
  34245. transient="false" volatile="false"
  34246. static="true" final="true" visibility="public"
  34247. deprecated="not deprecated">
  34248. </field>
  34249. <field name="typeVal" type="byte"
  34250. transient="false" volatile="false"
  34251. static="false" final="false" visibility="protected"
  34252. deprecated="not deprecated">
  34253. </field>
  34254. <doc>
  34255. <![CDATA[Represents typeID for basic types.]]>
  34256. </doc>
  34257. </class>
  34258. <!-- end class org.apache.hadoop.record.meta.TypeID -->
  34259. <!-- start class org.apache.hadoop.record.meta.TypeID.RIOType -->
  34260. <class name="TypeID.RIOType" extends="java.lang.Object"
  34261. abstract="false"
  34262. static="true" final="true" visibility="public"
  34263. deprecated="not deprecated">
  34264. <constructor name="TypeID.RIOType"
  34265. static="false" final="false" visibility="public"
  34266. deprecated="not deprecated">
  34267. </constructor>
  34268. <field name="BOOL" type="byte"
  34269. transient="false" volatile="false"
  34270. static="true" final="true" visibility="public"
  34271. deprecated="not deprecated">
  34272. </field>
  34273. <field name="BUFFER" type="byte"
  34274. transient="false" volatile="false"
  34275. static="true" final="true" visibility="public"
  34276. deprecated="not deprecated">
  34277. </field>
  34278. <field name="BYTE" type="byte"
  34279. transient="false" volatile="false"
  34280. static="true" final="true" visibility="public"
  34281. deprecated="not deprecated">
  34282. </field>
  34283. <field name="DOUBLE" type="byte"
  34284. transient="false" volatile="false"
  34285. static="true" final="true" visibility="public"
  34286. deprecated="not deprecated">
  34287. </field>
  34288. <field name="FLOAT" type="byte"
  34289. transient="false" volatile="false"
  34290. static="true" final="true" visibility="public"
  34291. deprecated="not deprecated">
  34292. </field>
  34293. <field name="INT" type="byte"
  34294. transient="false" volatile="false"
  34295. static="true" final="true" visibility="public"
  34296. deprecated="not deprecated">
  34297. </field>
  34298. <field name="LONG" type="byte"
  34299. transient="false" volatile="false"
  34300. static="true" final="true" visibility="public"
  34301. deprecated="not deprecated">
  34302. </field>
  34303. <field name="MAP" type="byte"
  34304. transient="false" volatile="false"
  34305. static="true" final="true" visibility="public"
  34306. deprecated="not deprecated">
  34307. </field>
  34308. <field name="STRING" type="byte"
  34309. transient="false" volatile="false"
  34310. static="true" final="true" visibility="public"
  34311. deprecated="not deprecated">
  34312. </field>
  34313. <field name="STRUCT" type="byte"
  34314. transient="false" volatile="false"
  34315. static="true" final="true" visibility="public"
  34316. deprecated="not deprecated">
  34317. </field>
  34318. <field name="VECTOR" type="byte"
  34319. transient="false" volatile="false"
  34320. static="true" final="true" visibility="public"
  34321. deprecated="not deprecated">
  34322. </field>
  34323. <doc>
  34324. <![CDATA[constants representing the IDL types we support]]>
  34325. </doc>
  34326. </class>
  34327. <!-- end class org.apache.hadoop.record.meta.TypeID.RIOType -->
  34328. <!-- start class org.apache.hadoop.record.meta.Utils -->
  34329. <class name="Utils" extends="java.lang.Object"
  34330. abstract="false"
  34331. static="false" final="false" visibility="public"
  34332. deprecated="not deprecated">
  34333. <method name="skip"
  34334. abstract="false" native="false" synchronized="false"
  34335. static="true" final="false" visibility="public"
  34336. deprecated="not deprecated">
  34337. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  34338. <param name="tag" type="java.lang.String"/>
  34339. <param name="typeID" type="org.apache.hadoop.record.meta.TypeID"/>
  34340. <exception name="IOException" type="java.io.IOException"/>
  34341. <doc>
  34342. <![CDATA[read/skip bytes from stream based on a type]]>
  34343. </doc>
  34344. </method>
  34345. <doc>
  34346. <![CDATA[Various utility functions for Hadooop record I/O platform.]]>
  34347. </doc>
  34348. </class>
  34349. <!-- end class org.apache.hadoop.record.meta.Utils -->
  34350. <!-- start class org.apache.hadoop.record.meta.VectorTypeID -->
  34351. <class name="VectorTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  34352. abstract="false"
  34353. static="false" final="false" visibility="public"
  34354. deprecated="not deprecated">
  34355. <constructor name="VectorTypeID" type="org.apache.hadoop.record.meta.TypeID"
  34356. static="false" final="false" visibility="public"
  34357. deprecated="not deprecated">
  34358. </constructor>
  34359. <method name="getElementTypeID" return="org.apache.hadoop.record.meta.TypeID"
  34360. abstract="false" native="false" synchronized="false"
  34361. static="false" final="false" visibility="public"
  34362. deprecated="not deprecated">
  34363. </method>
  34364. <method name="equals" return="boolean"
  34365. abstract="false" native="false" synchronized="false"
  34366. static="false" final="false" visibility="public"
  34367. deprecated="not deprecated">
  34368. <param name="o" type="java.lang.Object"/>
  34369. <doc>
  34370. <![CDATA[Two vector typeIDs are equal if their constituent elements have the
  34371. same type]]>
  34372. </doc>
  34373. </method>
  34374. <method name="hashCode" return="int"
  34375. abstract="false" native="false" synchronized="false"
  34376. static="false" final="false" visibility="public"
  34377. deprecated="not deprecated">
  34378. <doc>
  34379. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  34380. be used as a hashmap key]]>
  34381. </doc>
  34382. </method>
  34383. <doc>
  34384. <![CDATA[Represents typeID for vector.]]>
  34385. </doc>
  34386. </class>
  34387. <!-- end class org.apache.hadoop.record.meta.VectorTypeID -->
  34388. </package>
  34389. <package name="org.apache.hadoop.security">
  34390. <!-- start class org.apache.hadoop.security.AccessControlException -->
  34391. <class name="AccessControlException" extends="org.apache.hadoop.fs.permission.AccessControlException"
  34392. abstract="false"
  34393. static="false" final="false" visibility="public"
  34394. deprecated="not deprecated">
  34395. <constructor name="AccessControlException"
  34396. static="false" final="false" visibility="public"
  34397. deprecated="not deprecated">
  34398. <doc>
  34399. <![CDATA[Default constructor is needed for unwrapping from
  34400. {@link org.apache.hadoop.ipc.RemoteException}.]]>
  34401. </doc>
  34402. </constructor>
  34403. <constructor name="AccessControlException" type="java.lang.String"
  34404. static="false" final="false" visibility="public"
  34405. deprecated="not deprecated">
  34406. <doc>
  34407. <![CDATA[Constructs an {@link AccessControlException}
  34408. with the specified detail message.
  34409. @param s the detail message.]]>
  34410. </doc>
  34411. </constructor>
  34412. <constructor name="AccessControlException" type="java.lang.Throwable"
  34413. static="false" final="false" visibility="public"
  34414. deprecated="not deprecated">
  34415. <doc>
  34416. <![CDATA[Constructs a new exception with the specified cause and a detail
  34417. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  34418. typically contains the class and detail message of <tt>cause</tt>).
  34419. @param cause the cause (which is saved for later retrieval by the
  34420. {@link #getCause()} method). (A <tt>null</tt> value is
  34421. permitted, and indicates that the cause is nonexistent or
  34422. unknown.)]]>
  34423. </doc>
  34424. </constructor>
  34425. <doc>
  34426. <![CDATA[An exception class for access control related issues.]]>
  34427. </doc>
  34428. </class>
  34429. <!-- end class org.apache.hadoop.security.AccessControlException -->
  34430. <!-- start class org.apache.hadoop.security.AuthenticationFilterInitializer -->
  34431. <class name="AuthenticationFilterInitializer" extends="org.apache.hadoop.http.FilterInitializer"
  34432. abstract="false"
  34433. static="false" final="false" visibility="public"
  34434. deprecated="not deprecated">
  34435. <constructor name="AuthenticationFilterInitializer"
  34436. static="false" final="false" visibility="public"
  34437. deprecated="not deprecated">
  34438. </constructor>
  34439. <method name="initFilter"
  34440. abstract="false" native="false" synchronized="false"
  34441. static="false" final="false" visibility="public"
  34442. deprecated="not deprecated">
  34443. <param name="container" type="org.apache.hadoop.http.FilterContainer"/>
  34444. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34445. <doc>
  34446. <![CDATA[Initializes Alfredo AuthenticationFilter.
  34447. <p/>
  34448. Propagates to Alfredo AuthenticationFilter configuration all Hadoop
  34449. configuration properties prefixed with "hadoop.http.authentication."
  34450. @param container The filter container
  34451. @param conf Configuration for run-time parameters]]>
  34452. </doc>
  34453. </method>
  34454. <doc>
  34455. <![CDATA[Initializes Alfredo AuthenticationFilter which provides support for
  34456. Kerberos HTTP SPENGO authentication.
  34457. <p/>
  34458. It enables anonymous access, simple/speudo and Kerberos HTTP SPNEGO
  34459. authentication for Hadoop JobTracker, NameNode, DataNodes and
  34460. TaskTrackers.
  34461. <p/>
  34462. Refer to the <code>core-default.xml</code> file, after the comment
  34463. 'HTTP Authentication' for details on the configuration options.
  34464. All related configuration properties have 'hadoop.http.authentication.'
  34465. as prefix.]]>
  34466. </doc>
  34467. </class>
  34468. <!-- end class org.apache.hadoop.security.AuthenticationFilterInitializer -->
  34469. <!-- start class org.apache.hadoop.security.Credentials -->
  34470. <class name="Credentials" extends="java.lang.Object"
  34471. abstract="false"
  34472. static="false" final="false" visibility="public"
  34473. deprecated="not deprecated">
  34474. <implements name="org.apache.hadoop.io.Writable"/>
  34475. <constructor name="Credentials"
  34476. static="false" final="false" visibility="public"
  34477. deprecated="not deprecated">
  34478. </constructor>
  34479. <method name="getSecretKey" return="byte[]"
  34480. abstract="false" native="false" synchronized="false"
  34481. static="false" final="false" visibility="public"
  34482. deprecated="not deprecated">
  34483. <param name="alias" type="org.apache.hadoop.io.Text"/>
  34484. <doc>
  34485. <![CDATA[Returns the key bytes for the alias
  34486. @param alias the alias for the key
  34487. @return key for this alias]]>
  34488. </doc>
  34489. </method>
  34490. <method name="getToken" return="org.apache.hadoop.security.token.Token"
  34491. abstract="false" native="false" synchronized="false"
  34492. static="false" final="false" visibility="public"
  34493. deprecated="not deprecated">
  34494. <param name="alias" type="org.apache.hadoop.io.Text"/>
  34495. <doc>
  34496. <![CDATA[Returns the Token object for the alias
  34497. @param alias the alias for the Token
  34498. @return token for this alias]]>
  34499. </doc>
  34500. </method>
  34501. <method name="addToken"
  34502. abstract="false" native="false" synchronized="false"
  34503. static="false" final="false" visibility="public"
  34504. deprecated="not deprecated">
  34505. <param name="alias" type="org.apache.hadoop.io.Text"/>
  34506. <param name="t" type="org.apache.hadoop.security.token.Token"/>
  34507. <doc>
  34508. <![CDATA[Add a token in the storage (in memory)
  34509. @param alias the alias for the key
  34510. @param t the token object]]>
  34511. </doc>
  34512. </method>
  34513. <method name="getAllTokens" return="java.util.Collection"
  34514. abstract="false" native="false" synchronized="false"
  34515. static="false" final="false" visibility="public"
  34516. deprecated="not deprecated">
  34517. <doc>
  34518. <![CDATA[Return all the tokens in the in-memory map]]>
  34519. </doc>
  34520. </method>
  34521. <method name="numberOfTokens" return="int"
  34522. abstract="false" native="false" synchronized="false"
  34523. static="false" final="false" visibility="public"
  34524. deprecated="not deprecated">
  34525. <doc>
  34526. <![CDATA[@return number of Tokens in the in-memory map]]>
  34527. </doc>
  34528. </method>
  34529. <method name="numberOfSecretKeys" return="int"
  34530. abstract="false" native="false" synchronized="false"
  34531. static="false" final="false" visibility="public"
  34532. deprecated="not deprecated">
  34533. <doc>
  34534. <![CDATA[@return number of keys in the in-memory map]]>
  34535. </doc>
  34536. </method>
  34537. <method name="addSecretKey"
  34538. abstract="false" native="false" synchronized="false"
  34539. static="false" final="false" visibility="public"
  34540. deprecated="not deprecated">
  34541. <param name="alias" type="org.apache.hadoop.io.Text"/>
  34542. <param name="key" type="byte[]"/>
  34543. <doc>
  34544. <![CDATA[Set the key for an alias
  34545. @param alias the alias for the key
  34546. @param key the key bytes]]>
  34547. </doc>
  34548. </method>
  34549. <method name="readTokenStorageFile" return="org.apache.hadoop.security.Credentials"
  34550. abstract="false" native="false" synchronized="false"
  34551. static="true" final="false" visibility="public"
  34552. deprecated="not deprecated">
  34553. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  34554. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34555. <exception name="IOException" type="java.io.IOException"/>
  34556. <doc>
  34557. <![CDATA[Convenience method for reading a token storage file, and loading the Tokens
  34558. therein in the passed UGI
  34559. @param filename
  34560. @param conf
  34561. @throws IOException]]>
  34562. </doc>
  34563. </method>
  34564. <method name="readTokenStorageStream"
  34565. abstract="false" native="false" synchronized="false"
  34566. static="false" final="false" visibility="public"
  34567. deprecated="not deprecated">
  34568. <param name="in" type="java.io.DataInputStream"/>
  34569. <exception name="IOException" type="java.io.IOException"/>
  34570. <doc>
  34571. <![CDATA[Convenience method for reading a token storage file directly from a
  34572. datainputstream]]>
  34573. </doc>
  34574. </method>
  34575. <method name="writeTokenStorageToStream"
  34576. abstract="false" native="false" synchronized="false"
  34577. static="false" final="false" visibility="public"
  34578. deprecated="not deprecated">
  34579. <param name="os" type="java.io.DataOutputStream"/>
  34580. <exception name="IOException" type="java.io.IOException"/>
  34581. </method>
  34582. <method name="writeTokenStorageFile"
  34583. abstract="false" native="false" synchronized="false"
  34584. static="false" final="false" visibility="public"
  34585. deprecated="not deprecated">
  34586. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  34587. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34588. <exception name="IOException" type="java.io.IOException"/>
  34589. </method>
  34590. <method name="write"
  34591. abstract="false" native="false" synchronized="false"
  34592. static="false" final="false" visibility="public"
  34593. deprecated="not deprecated">
  34594. <param name="out" type="java.io.DataOutput"/>
  34595. <exception name="IOException" type="java.io.IOException"/>
  34596. <doc>
  34597. <![CDATA[Stores all the keys to DataOutput
  34598. @param out
  34599. @throws IOException]]>
  34600. </doc>
  34601. </method>
  34602. <method name="readFields"
  34603. abstract="false" native="false" synchronized="false"
  34604. static="false" final="false" visibility="public"
  34605. deprecated="not deprecated">
  34606. <param name="in" type="java.io.DataInput"/>
  34607. <exception name="IOException" type="java.io.IOException"/>
  34608. <doc>
  34609. <![CDATA[Loads all the keys
  34610. @param in
  34611. @throws IOException]]>
  34612. </doc>
  34613. </method>
  34614. <method name="addAll"
  34615. abstract="false" native="false" synchronized="false"
  34616. static="false" final="false" visibility="public"
  34617. deprecated="not deprecated">
  34618. <param name="other" type="org.apache.hadoop.security.Credentials"/>
  34619. <doc>
  34620. <![CDATA[Copy all of the credentials from one credential object into another.
  34621. @param other the credentials to copy]]>
  34622. </doc>
  34623. </method>
  34624. <doc>
  34625. <![CDATA[A class that provides the facilities of reading and writing
  34626. secret keys and Tokens.]]>
  34627. </doc>
  34628. </class>
  34629. <!-- end class org.apache.hadoop.security.Credentials -->
  34630. <!-- start class org.apache.hadoop.security.Groups -->
  34631. <class name="Groups" extends="java.lang.Object"
  34632. abstract="false"
  34633. static="false" final="false" visibility="public"
  34634. deprecated="not deprecated">
  34635. <constructor name="Groups" type="org.apache.hadoop.conf.Configuration"
  34636. static="false" final="false" visibility="public"
  34637. deprecated="not deprecated">
  34638. </constructor>
  34639. <method name="getGroups" return="java.util.List"
  34640. abstract="false" native="false" synchronized="false"
  34641. static="false" final="false" visibility="public"
  34642. deprecated="not deprecated">
  34643. <param name="user" type="java.lang.String"/>
  34644. <exception name="IOException" type="java.io.IOException"/>
  34645. <doc>
  34646. <![CDATA[Get the group memberships of a given user.
  34647. @param user User's name
  34648. @return the group memberships of the user
  34649. @throws IOException]]>
  34650. </doc>
  34651. </method>
  34652. <method name="refresh"
  34653. abstract="false" native="false" synchronized="false"
  34654. static="false" final="false" visibility="public"
  34655. deprecated="not deprecated">
  34656. <doc>
  34657. <![CDATA[Refresh all user-to-groups mappings.]]>
  34658. </doc>
  34659. </method>
  34660. <method name="cacheGroupsAdd"
  34661. abstract="false" native="false" synchronized="false"
  34662. static="false" final="false" visibility="public"
  34663. deprecated="not deprecated">
  34664. <param name="groups" type="java.util.List"/>
  34665. </method>
  34666. <method name="getUserToGroupsMappingService" return="org.apache.hadoop.security.Groups"
  34667. abstract="false" native="false" synchronized="false"
  34668. static="true" final="false" visibility="public"
  34669. deprecated="not deprecated">
  34670. <doc>
  34671. <![CDATA[Get the groups being used to map user-to-groups.
  34672. @return the groups being used to map user-to-groups.]]>
  34673. </doc>
  34674. </method>
  34675. <method name="getUserToGroupsMappingService" return="org.apache.hadoop.security.Groups"
  34676. abstract="false" native="false" synchronized="false"
  34677. static="true" final="false" visibility="public"
  34678. deprecated="not deprecated">
  34679. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34680. </method>
  34681. <doc>
  34682. <![CDATA[A user-to-groups mapping service.
  34683. {@link Groups} allows for server to get the various group memberships
  34684. of a given user via the {@link #getGroups(String)} call, thus ensuring
  34685. a consistent user-to-groups mapping and protects against vagaries of
  34686. different mappings on servers and clients in a Hadoop cluster.]]>
  34687. </doc>
  34688. </class>
  34689. <!-- end class org.apache.hadoop.security.Groups -->
  34690. <!-- start class org.apache.hadoop.security.JniBasedUnixGroupsMapping -->
  34691. <class name="JniBasedUnixGroupsMapping" extends="java.lang.Object"
  34692. abstract="false"
  34693. static="false" final="false" visibility="public"
  34694. deprecated="not deprecated">
  34695. <implements name="org.apache.hadoop.security.GroupMappingServiceProvider"/>
  34696. <constructor name="JniBasedUnixGroupsMapping"
  34697. static="false" final="false" visibility="public"
  34698. deprecated="not deprecated">
  34699. </constructor>
  34700. <method name="getGroups" return="java.util.List"
  34701. abstract="false" native="false" synchronized="false"
  34702. static="false" final="false" visibility="public"
  34703. deprecated="not deprecated">
  34704. <param name="user" type="java.lang.String"/>
  34705. <exception name="IOException" type="java.io.IOException"/>
  34706. </method>
  34707. <method name="cacheGroupsRefresh"
  34708. abstract="false" native="false" synchronized="false"
  34709. static="false" final="false" visibility="public"
  34710. deprecated="not deprecated">
  34711. <exception name="IOException" type="java.io.IOException"/>
  34712. </method>
  34713. <method name="cacheGroupsAdd"
  34714. abstract="false" native="false" synchronized="false"
  34715. static="false" final="false" visibility="public"
  34716. deprecated="not deprecated">
  34717. <param name="groups" type="java.util.List"/>
  34718. <exception name="IOException" type="java.io.IOException"/>
  34719. </method>
  34720. <doc>
  34721. <![CDATA[A JNI-based implementation of {@link GroupMappingServiceProvider}
  34722. that invokes libC calls to get the group
  34723. memberships of a given user.]]>
  34724. </doc>
  34725. </class>
  34726. <!-- end class org.apache.hadoop.security.JniBasedUnixGroupsMapping -->
  34727. <!-- start class org.apache.hadoop.security.JniBasedUnixGroupsNetgroupMapping -->
  34728. <class name="JniBasedUnixGroupsNetgroupMapping" extends="org.apache.hadoop.security.JniBasedUnixGroupsMapping"
  34729. abstract="false"
  34730. static="false" final="false" visibility="public"
  34731. deprecated="not deprecated">
  34732. <constructor name="JniBasedUnixGroupsNetgroupMapping"
  34733. static="false" final="false" visibility="public"
  34734. deprecated="not deprecated">
  34735. </constructor>
  34736. <method name="getGroups" return="java.util.List"
  34737. abstract="false" native="false" synchronized="false"
  34738. static="false" final="false" visibility="public"
  34739. deprecated="not deprecated">
  34740. <param name="user" type="java.lang.String"/>
  34741. <exception name="IOException" type="java.io.IOException"/>
  34742. <doc>
  34743. <![CDATA[Gets unix groups and netgroups for the user.
  34744. It gets all unix groups as returned by id -Gn but it
  34745. only returns netgroups that are used in ACLs (there is
  34746. no way to get all netgroups for a given user, see
  34747. documentation for getent netgroup)]]>
  34748. </doc>
  34749. </method>
  34750. <method name="cacheGroupsRefresh"
  34751. abstract="false" native="false" synchronized="false"
  34752. static="false" final="false" visibility="public"
  34753. deprecated="not deprecated">
  34754. <exception name="IOException" type="java.io.IOException"/>
  34755. </method>
  34756. <method name="cacheGroupsAdd"
  34757. abstract="false" native="false" synchronized="false"
  34758. static="false" final="false" visibility="public"
  34759. deprecated="not deprecated">
  34760. <param name="groups" type="java.util.List"/>
  34761. <exception name="IOException" type="java.io.IOException"/>
  34762. </method>
  34763. <method name="getUsersForNetgroup" return="java.util.List"
  34764. abstract="false" native="false" synchronized="true"
  34765. static="false" final="false" visibility="protected"
  34766. deprecated="not deprecated">
  34767. <param name="netgroup" type="java.lang.String"/>
  34768. <doc>
  34769. <![CDATA[Calls JNI function to get users for a netgroup, since C functions
  34770. are not reentrant we need to make this synchronized (see
  34771. documentation for setnetgrent, getnetgrent and endnetgrent)]]>
  34772. </doc>
  34773. </method>
  34774. <doc>
  34775. <![CDATA[A JNI-based implementation of {@link GroupMappingServiceProvider}
  34776. that invokes libC calls to get the group
  34777. memberships of a given user.]]>
  34778. </doc>
  34779. </class>
  34780. <!-- end class org.apache.hadoop.security.JniBasedUnixGroupsNetgroupMapping -->
  34781. <!-- start interface org.apache.hadoop.security.KerberosInfo -->
  34782. <interface name="KerberosInfo" abstract="true"
  34783. static="false" final="false" visibility="public"
  34784. deprecated="not deprecated">
  34785. <implements name="java.lang.annotation.Annotation"/>
  34786. <method name="serverPrincipal" return="java.lang.String"
  34787. abstract="false" native="false" synchronized="false"
  34788. static="false" final="false" visibility="public"
  34789. deprecated="not deprecated">
  34790. <doc>
  34791. <![CDATA[Key for getting server's Kerberos principal name from Configuration]]>
  34792. </doc>
  34793. </method>
  34794. <method name="clientPrincipal" return="java.lang.String"
  34795. abstract="false" native="false" synchronized="false"
  34796. static="false" final="false" visibility="public"
  34797. deprecated="not deprecated">
  34798. </method>
  34799. <doc>
  34800. <![CDATA[Indicates Kerberos related information to be used]]>
  34801. </doc>
  34802. </interface>
  34803. <!-- end interface org.apache.hadoop.security.KerberosInfo -->
  34804. <!-- start class org.apache.hadoop.security.KerberosName -->
  34805. <class name="KerberosName" extends="java.lang.Object"
  34806. abstract="false"
  34807. static="false" final="false" visibility="public"
  34808. deprecated="not deprecated">
  34809. <constructor name="KerberosName" type="java.lang.String"
  34810. static="false" final="false" visibility="public"
  34811. deprecated="not deprecated">
  34812. <doc>
  34813. <![CDATA[Create a name from the full Kerberos principal name.
  34814. @param name]]>
  34815. </doc>
  34816. </constructor>
  34817. <method name="getDefaultRealm" return="java.lang.String"
  34818. abstract="false" native="false" synchronized="false"
  34819. static="false" final="false" visibility="public"
  34820. deprecated="not deprecated">
  34821. <doc>
  34822. <![CDATA[Get the configured default realm.
  34823. @return the default realm from the krb5.conf]]>
  34824. </doc>
  34825. </method>
  34826. <method name="toString" return="java.lang.String"
  34827. abstract="false" native="false" synchronized="false"
  34828. static="false" final="false" visibility="public"
  34829. deprecated="not deprecated">
  34830. <doc>
  34831. <![CDATA[Put the name back together from the parts.]]>
  34832. </doc>
  34833. </method>
  34834. <method name="getServiceName" return="java.lang.String"
  34835. abstract="false" native="false" synchronized="false"
  34836. static="false" final="false" visibility="public"
  34837. deprecated="not deprecated">
  34838. <doc>
  34839. <![CDATA[Get the first component of the name.
  34840. @return the first section of the Kerberos principal name]]>
  34841. </doc>
  34842. </method>
  34843. <method name="getHostName" return="java.lang.String"
  34844. abstract="false" native="false" synchronized="false"
  34845. static="false" final="false" visibility="public"
  34846. deprecated="not deprecated">
  34847. <doc>
  34848. <![CDATA[Get the second component of the name.
  34849. @return the second section of the Kerberos principal name, and may be null]]>
  34850. </doc>
  34851. </method>
  34852. <method name="getRealm" return="java.lang.String"
  34853. abstract="false" native="false" synchronized="false"
  34854. static="false" final="false" visibility="public"
  34855. deprecated="not deprecated">
  34856. <doc>
  34857. <![CDATA[Get the realm of the name.
  34858. @return the realm of the name, may be null]]>
  34859. </doc>
  34860. </method>
  34861. <method name="setConfiguration"
  34862. abstract="false" native="false" synchronized="false"
  34863. static="true" final="false" visibility="public"
  34864. deprecated="not deprecated">
  34865. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34866. <exception name="IOException" type="java.io.IOException"/>
  34867. <doc>
  34868. <![CDATA[Set the static configuration to get the rules.
  34869. @param conf the new configuration
  34870. @throws IOException]]>
  34871. </doc>
  34872. </method>
  34873. <method name="setRules"
  34874. abstract="false" native="false" synchronized="false"
  34875. static="true" final="false" visibility="public"
  34876. deprecated="not deprecated">
  34877. <param name="ruleString" type="java.lang.String"/>
  34878. <doc>
  34879. <![CDATA[Set the rules.
  34880. @param ruleString the rules string.]]>
  34881. </doc>
  34882. </method>
  34883. <method name="getShortName" return="java.lang.String"
  34884. abstract="false" native="false" synchronized="false"
  34885. static="false" final="false" visibility="public"
  34886. deprecated="not deprecated">
  34887. <exception name="IOException" type="java.io.IOException"/>
  34888. <doc>
  34889. <![CDATA[Get the translation of the principal name into an operating system
  34890. user name.
  34891. @return the short name
  34892. @throws IOException]]>
  34893. </doc>
  34894. </method>
  34895. <method name="printRules"
  34896. abstract="false" native="false" synchronized="false"
  34897. static="true" final="false" visibility="public"
  34898. deprecated="not deprecated">
  34899. <exception name="IOException" type="java.io.IOException"/>
  34900. </method>
  34901. <method name="main"
  34902. abstract="false" native="false" synchronized="false"
  34903. static="true" final="false" visibility="public"
  34904. deprecated="not deprecated">
  34905. <param name="args" type="java.lang.String[]"/>
  34906. <exception name="Exception" type="java.lang.Exception"/>
  34907. </method>
  34908. <doc>
  34909. <![CDATA[This class implements parsing and handling of Kerberos principal names. In
  34910. particular, it splits them apart and translates them down into local
  34911. operating system names.]]>
  34912. </doc>
  34913. </class>
  34914. <!-- end class org.apache.hadoop.security.KerberosName -->
  34915. <!-- start class org.apache.hadoop.security.KerberosName.BadFormatString -->
  34916. <class name="KerberosName.BadFormatString" extends="java.io.IOException"
  34917. abstract="false"
  34918. static="true" final="false" visibility="public"
  34919. deprecated="not deprecated">
  34920. </class>
  34921. <!-- end class org.apache.hadoop.security.KerberosName.BadFormatString -->
  34922. <!-- start class org.apache.hadoop.security.KerberosName.NoMatchingRule -->
  34923. <class name="KerberosName.NoMatchingRule" extends="java.io.IOException"
  34924. abstract="false"
  34925. static="true" final="false" visibility="public"
  34926. deprecated="not deprecated">
  34927. </class>
  34928. <!-- end class org.apache.hadoop.security.KerberosName.NoMatchingRule -->
  34929. <!-- start class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector -->
  34930. <class name="Krb5AndCertsSslSocketConnector" extends="org.mortbay.jetty.security.SslSocketConnector"
  34931. abstract="false"
  34932. static="false" final="false" visibility="public"
  34933. deprecated="not deprecated">
  34934. <constructor name="Krb5AndCertsSslSocketConnector"
  34935. static="false" final="false" visibility="public"
  34936. deprecated="not deprecated">
  34937. </constructor>
  34938. <constructor name="Krb5AndCertsSslSocketConnector" type="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE"
  34939. static="false" final="false" visibility="public"
  34940. deprecated="not deprecated">
  34941. </constructor>
  34942. <method name="createFactory" return="javax.net.ssl.SSLServerSocketFactory"
  34943. abstract="false" native="false" synchronized="false"
  34944. static="false" final="false" visibility="protected"
  34945. deprecated="not deprecated">
  34946. <exception name="Exception" type="java.lang.Exception"/>
  34947. </method>
  34948. <method name="newServerSocket" return="java.net.ServerSocket"
  34949. abstract="false" native="false" synchronized="false"
  34950. static="false" final="false" visibility="protected"
  34951. deprecated="not deprecated">
  34952. <param name="host" type="java.lang.String"/>
  34953. <param name="port" type="int"/>
  34954. <param name="backlog" type="int"/>
  34955. <exception name="IOException" type="java.io.IOException"/>
  34956. </method>
  34957. <method name="customize"
  34958. abstract="false" native="false" synchronized="false"
  34959. static="false" final="false" visibility="public"
  34960. deprecated="not deprecated">
  34961. <param name="endpoint" type="org.mortbay.io.EndPoint"/>
  34962. <param name="request" type="org.mortbay.jetty.Request"/>
  34963. <exception name="IOException" type="java.io.IOException"/>
  34964. </method>
  34965. <field name="KRB5_CIPHER_SUITES" type="java.util.List"
  34966. transient="false" volatile="false"
  34967. static="true" final="true" visibility="public"
  34968. deprecated="not deprecated">
  34969. </field>
  34970. <doc>
  34971. <![CDATA[Extend Jetty's {@link SslSocketConnector} to optionally also provide
  34972. Kerberos5ized SSL sockets. The only change in behavior from superclass
  34973. is that we no longer honor requests to turn off NeedAuthentication when
  34974. running with Kerberos support.]]>
  34975. </doc>
  34976. </class>
  34977. <!-- end class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector -->
  34978. <!-- start class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.Krb5SslFilter -->
  34979. <class name="Krb5AndCertsSslSocketConnector.Krb5SslFilter" extends="java.lang.Object"
  34980. abstract="false"
  34981. static="true" final="false" visibility="public"
  34982. deprecated="not deprecated">
  34983. <implements name="javax.servlet.Filter"/>
  34984. <constructor name="Krb5AndCertsSslSocketConnector.Krb5SslFilter"
  34985. static="false" final="false" visibility="public"
  34986. deprecated="not deprecated">
  34987. </constructor>
  34988. <method name="doFilter"
  34989. abstract="false" native="false" synchronized="false"
  34990. static="false" final="false" visibility="public"
  34991. deprecated="not deprecated">
  34992. <param name="req" type="javax.servlet.ServletRequest"/>
  34993. <param name="resp" type="javax.servlet.ServletResponse"/>
  34994. <param name="chain" type="javax.servlet.FilterChain"/>
  34995. <exception name="IOException" type="java.io.IOException"/>
  34996. <exception name="ServletException" type="javax.servlet.ServletException"/>
  34997. </method>
  34998. <method name="init"
  34999. abstract="false" native="false" synchronized="false"
  35000. static="false" final="false" visibility="public"
  35001. deprecated="not deprecated">
  35002. <param name="arg0" type="javax.servlet.FilterConfig"/>
  35003. <exception name="ServletException" type="javax.servlet.ServletException"/>
  35004. </method>
  35005. <method name="destroy"
  35006. abstract="false" native="false" synchronized="false"
  35007. static="false" final="false" visibility="public"
  35008. deprecated="not deprecated">
  35009. </method>
  35010. <doc>
  35011. <![CDATA[Filter that takes the Kerberos principal identified in the
  35012. {@link Krb5AndCertsSslSocketConnector} and provides it the to the servlet
  35013. at runtime, setting the principal and short name.]]>
  35014. </doc>
  35015. </class>
  35016. <!-- end class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.Krb5SslFilter -->
  35017. <!-- start class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE -->
  35018. <class name="Krb5AndCertsSslSocketConnector.MODE" extends="java.lang.Enum"
  35019. abstract="false"
  35020. static="true" final="true" visibility="public"
  35021. deprecated="not deprecated">
  35022. <method name="values" return="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE[]"
  35023. abstract="false" native="false" synchronized="false"
  35024. static="true" final="false" visibility="public"
  35025. deprecated="not deprecated">
  35026. </method>
  35027. <method name="valueOf" return="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE"
  35028. abstract="false" native="false" synchronized="false"
  35029. static="true" final="false" visibility="public"
  35030. deprecated="not deprecated">
  35031. <param name="name" type="java.lang.String"/>
  35032. </method>
  35033. <field name="KRB" type="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE"
  35034. transient="false" volatile="false"
  35035. static="true" final="true" visibility="public"
  35036. deprecated="not deprecated">
  35037. </field>
  35038. <field name="CERTS" type="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE"
  35039. transient="false" volatile="false"
  35040. static="true" final="true" visibility="public"
  35041. deprecated="not deprecated">
  35042. </field>
  35043. <field name="BOTH" type="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE"
  35044. transient="false" volatile="false"
  35045. static="true" final="true" visibility="public"
  35046. deprecated="not deprecated">
  35047. </field>
  35048. </class>
  35049. <!-- end class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE -->
  35050. <!-- start class org.apache.hadoop.security.NetgroupCache -->
  35051. <class name="NetgroupCache" extends="java.lang.Object"
  35052. abstract="false"
  35053. static="false" final="false" visibility="public"
  35054. deprecated="not deprecated">
  35055. <constructor name="NetgroupCache"
  35056. static="false" final="false" visibility="public"
  35057. deprecated="not deprecated">
  35058. </constructor>
  35059. <method name="getNetgroups"
  35060. abstract="false" native="false" synchronized="false"
  35061. static="false" final="false" visibility="public"
  35062. deprecated="not deprecated">
  35063. <param name="user" type="java.lang.String"/>
  35064. <param name="groups" type="java.util.List"/>
  35065. </method>
  35066. <method name="getNetgroupNames" return="java.util.List"
  35067. abstract="false" native="false" synchronized="false"
  35068. static="false" final="false" visibility="public"
  35069. deprecated="not deprecated">
  35070. </method>
  35071. <method name="isCached" return="boolean"
  35072. abstract="false" native="false" synchronized="false"
  35073. static="false" final="false" visibility="public"
  35074. deprecated="not deprecated">
  35075. <param name="group" type="java.lang.String"/>
  35076. </method>
  35077. <method name="clear"
  35078. abstract="false" native="false" synchronized="false"
  35079. static="false" final="false" visibility="public"
  35080. deprecated="not deprecated">
  35081. </method>
  35082. <method name="add"
  35083. abstract="false" native="false" synchronized="false"
  35084. static="false" final="false" visibility="public"
  35085. deprecated="not deprecated">
  35086. <param name="group" type="java.lang.String"/>
  35087. <param name="users" type="java.util.List"/>
  35088. </method>
  35089. <doc>
  35090. <![CDATA[Class that caches the netgroups and inverts group-to-user map
  35091. to user-to-group map]]>
  35092. </doc>
  35093. </class>
  35094. <!-- end class org.apache.hadoop.security.NetgroupCache -->
  35095. <!-- start interface org.apache.hadoop.security.RefreshUserMappingsProtocol -->
  35096. <interface name="RefreshUserMappingsProtocol" abstract="true"
  35097. static="false" final="false" visibility="public"
  35098. deprecated="not deprecated">
  35099. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  35100. <method name="refreshUserToGroupsMappings"
  35101. abstract="false" native="false" synchronized="false"
  35102. static="false" final="false" visibility="public"
  35103. deprecated="not deprecated">
  35104. <exception name="IOException" type="java.io.IOException"/>
  35105. <doc>
  35106. <![CDATA[Refresh user to group mappings.
  35107. @throws IOException]]>
  35108. </doc>
  35109. </method>
  35110. <method name="refreshSuperUserGroupsConfiguration"
  35111. abstract="false" native="false" synchronized="false"
  35112. static="false" final="false" visibility="public"
  35113. deprecated="not deprecated">
  35114. <exception name="IOException" type="java.io.IOException"/>
  35115. <doc>
  35116. <![CDATA[Refresh superuser proxy group list
  35117. @throws IOException]]>
  35118. </doc>
  35119. </method>
  35120. <field name="versionID" type="long"
  35121. transient="false" volatile="false"
  35122. static="true" final="true" visibility="public"
  35123. deprecated="not deprecated">
  35124. <doc>
  35125. <![CDATA[Version 1: Initial version.]]>
  35126. </doc>
  35127. </field>
  35128. <doc>
  35129. <![CDATA[Protocol use]]>
  35130. </doc>
  35131. </interface>
  35132. <!-- end interface org.apache.hadoop.security.RefreshUserMappingsProtocol -->
  35133. <!-- start class org.apache.hadoop.security.SaslInputStream -->
  35134. <class name="SaslInputStream" extends="java.io.InputStream"
  35135. abstract="false"
  35136. static="false" final="false" visibility="public"
  35137. deprecated="not deprecated">
  35138. <constructor name="SaslInputStream" type="java.io.InputStream, javax.security.sasl.SaslServer"
  35139. static="false" final="false" visibility="public"
  35140. deprecated="not deprecated">
  35141. <doc>
  35142. <![CDATA[Constructs a SASLInputStream from an InputStream and a SaslServer <br>
  35143. Note: if the specified InputStream or SaslServer is null, a
  35144. NullPointerException may be thrown later when they are used.
  35145. @param inStream
  35146. the InputStream to be processed
  35147. @param saslServer
  35148. an initialized SaslServer object]]>
  35149. </doc>
  35150. </constructor>
  35151. <constructor name="SaslInputStream" type="java.io.InputStream, javax.security.sasl.SaslClient"
  35152. static="false" final="false" visibility="public"
  35153. deprecated="not deprecated">
  35154. <doc>
  35155. <![CDATA[Constructs a SASLInputStream from an InputStream and a SaslClient <br>
  35156. Note: if the specified InputStream or SaslClient is null, a
  35157. NullPointerException may be thrown later when they are used.
  35158. @param inStream
  35159. the InputStream to be processed
  35160. @param saslClient
  35161. an initialized SaslClient object]]>
  35162. </doc>
  35163. </constructor>
  35164. <method name="read" return="int"
  35165. abstract="false" native="false" synchronized="false"
  35166. static="false" final="false" visibility="public"
  35167. deprecated="not deprecated">
  35168. <exception name="IOException" type="java.io.IOException"/>
  35169. <doc>
  35170. <![CDATA[Reads the next byte of data from this input stream. The value byte is
  35171. returned as an <code>int</code> in the range <code>0</code> to
  35172. <code>255</code>. If no byte is available because the end of the stream has
  35173. been reached, the value <code>-1</code> is returned. This method blocks
  35174. until input data is available, the end of the stream is detected, or an
  35175. exception is thrown.
  35176. <p>
  35177. @return the next byte of data, or <code>-1</code> if the end of the stream
  35178. is reached.
  35179. @exception IOException
  35180. if an I/O error occurs.]]>
  35181. </doc>
  35182. </method>
  35183. <method name="read" return="int"
  35184. abstract="false" native="false" synchronized="false"
  35185. static="false" final="false" visibility="public"
  35186. deprecated="not deprecated">
  35187. <param name="b" type="byte[]"/>
  35188. <exception name="IOException" type="java.io.IOException"/>
  35189. <doc>
  35190. <![CDATA[Reads up to <code>b.length</code> bytes of data from this input stream into
  35191. an array of bytes.
  35192. <p>
  35193. The <code>read</code> method of <code>InputStream</code> calls the
  35194. <code>read</code> method of three arguments with the arguments
  35195. <code>b</code>, <code>0</code>, and <code>b.length</code>.
  35196. @param b
  35197. the buffer into which the data is read.
  35198. @return the total number of bytes read into the buffer, or <code>-1</code>
  35199. is there is no more data because the end of the stream has been
  35200. reached.
  35201. @exception IOException
  35202. if an I/O error occurs.]]>
  35203. </doc>
  35204. </method>
  35205. <method name="read" return="int"
  35206. abstract="false" native="false" synchronized="false"
  35207. static="false" final="false" visibility="public"
  35208. deprecated="not deprecated">
  35209. <param name="b" type="byte[]"/>
  35210. <param name="off" type="int"/>
  35211. <param name="len" type="int"/>
  35212. <exception name="IOException" type="java.io.IOException"/>
  35213. <doc>
  35214. <![CDATA[Reads up to <code>len</code> bytes of data from this input stream into an
  35215. array of bytes. This method blocks until some input is available. If the
  35216. first argument is <code>null,</code> up to <code>len</code> bytes are read
  35217. and discarded.
  35218. @param b
  35219. the buffer into which the data is read.
  35220. @param off
  35221. the start offset of the data.
  35222. @param len
  35223. the maximum number of bytes read.
  35224. @return the total number of bytes read into the buffer, or <code>-1</code>
  35225. if there is no more data because the end of the stream has been
  35226. reached.
  35227. @exception IOException
  35228. if an I/O error occurs.]]>
  35229. </doc>
  35230. </method>
  35231. <method name="skip" return="long"
  35232. abstract="false" native="false" synchronized="false"
  35233. static="false" final="false" visibility="public"
  35234. deprecated="not deprecated">
  35235. <param name="n" type="long"/>
  35236. <exception name="IOException" type="java.io.IOException"/>
  35237. <doc>
  35238. <![CDATA[Skips <code>n</code> bytes of input from the bytes that can be read from
  35239. this input stream without blocking.
  35240. <p>
  35241. Fewer bytes than requested might be skipped. The actual number of bytes
  35242. skipped is equal to <code>n</code> or the result of a call to
  35243. {@link #available() <code>available</code>}, whichever is smaller. If
  35244. <code>n</code> is less than zero, no bytes are skipped.
  35245. <p>
  35246. The actual number of bytes skipped is returned.
  35247. @param n
  35248. the number of bytes to be skipped.
  35249. @return the actual number of bytes skipped.
  35250. @exception IOException
  35251. if an I/O error occurs.]]>
  35252. </doc>
  35253. </method>
  35254. <method name="available" return="int"
  35255. abstract="false" native="false" synchronized="false"
  35256. static="false" final="false" visibility="public"
  35257. deprecated="not deprecated">
  35258. <exception name="IOException" type="java.io.IOException"/>
  35259. <doc>
  35260. <![CDATA[Returns the number of bytes that can be read from this input stream without
  35261. blocking. The <code>available</code> method of <code>InputStream</code>
  35262. returns <code>0</code>. This method <B>should</B> be overridden by
  35263. subclasses.
  35264. @return the number of bytes that can be read from this input stream without
  35265. blocking.
  35266. @exception IOException
  35267. if an I/O error occurs.]]>
  35268. </doc>
  35269. </method>
  35270. <method name="close"
  35271. abstract="false" native="false" synchronized="false"
  35272. static="false" final="false" visibility="public"
  35273. deprecated="not deprecated">
  35274. <exception name="IOException" type="java.io.IOException"/>
  35275. <doc>
  35276. <![CDATA[Closes this input stream and releases any system resources associated with
  35277. the stream.
  35278. <p>
  35279. The <code>close</code> method of <code>SASLInputStream</code> calls the
  35280. <code>close</code> method of its underlying input stream.
  35281. @exception IOException
  35282. if an I/O error occurs.]]>
  35283. </doc>
  35284. </method>
  35285. <method name="markSupported" return="boolean"
  35286. abstract="false" native="false" synchronized="false"
  35287. static="false" final="false" visibility="public"
  35288. deprecated="not deprecated">
  35289. <doc>
  35290. <![CDATA[Tests if this input stream supports the <code>mark</code> and
  35291. <code>reset</code> methods, which it does not.
  35292. @return <code>false</code>, since this class does not support the
  35293. <code>mark</code> and <code>reset</code> methods.]]>
  35294. </doc>
  35295. </method>
  35296. <field name="LOG" type="org.apache.commons.logging.Log"
  35297. transient="false" volatile="false"
  35298. static="true" final="true" visibility="public"
  35299. deprecated="not deprecated">
  35300. </field>
  35301. <doc>
  35302. <![CDATA[A SaslInputStream is composed of an InputStream and a SaslServer (or
  35303. SaslClient) so that read() methods return data that are read in from the
  35304. underlying InputStream but have been additionally processed by the SaslServer
  35305. (or SaslClient) object. The SaslServer (or SaslClient) object must be fully
  35306. initialized before being used by a SaslInputStream.]]>
  35307. </doc>
  35308. </class>
  35309. <!-- end class org.apache.hadoop.security.SaslInputStream -->
  35310. <!-- start class org.apache.hadoop.security.SaslOutputStream -->
  35311. <class name="SaslOutputStream" extends="java.io.OutputStream"
  35312. abstract="false"
  35313. static="false" final="false" visibility="public"
  35314. deprecated="not deprecated">
  35315. <constructor name="SaslOutputStream" type="java.io.OutputStream, javax.security.sasl.SaslServer"
  35316. static="false" final="false" visibility="public"
  35317. deprecated="not deprecated">
  35318. <doc>
  35319. <![CDATA[Constructs a SASLOutputStream from an OutputStream and a SaslServer <br>
  35320. Note: if the specified OutputStream or SaslServer is null, a
  35321. NullPointerException may be thrown later when they are used.
  35322. @param outStream
  35323. the OutputStream to be processed
  35324. @param saslServer
  35325. an initialized SaslServer object]]>
  35326. </doc>
  35327. </constructor>
  35328. <constructor name="SaslOutputStream" type="java.io.OutputStream, javax.security.sasl.SaslClient"
  35329. static="false" final="false" visibility="public"
  35330. deprecated="not deprecated">
  35331. <doc>
  35332. <![CDATA[Constructs a SASLOutputStream from an OutputStream and a SaslClient <br>
  35333. Note: if the specified OutputStream or SaslClient is null, a
  35334. NullPointerException may be thrown later when they are used.
  35335. @param outStream
  35336. the OutputStream to be processed
  35337. @param saslClient
  35338. an initialized SaslClient object]]>
  35339. </doc>
  35340. </constructor>
  35341. <method name="write"
  35342. abstract="false" native="false" synchronized="false"
  35343. static="false" final="false" visibility="public"
  35344. deprecated="not deprecated">
  35345. <param name="b" type="int"/>
  35346. <exception name="IOException" type="java.io.IOException"/>
  35347. <doc>
  35348. <![CDATA[Writes the specified byte to this output stream.
  35349. @param b
  35350. the <code>byte</code>.
  35351. @exception IOException
  35352. if an I/O error occurs.]]>
  35353. </doc>
  35354. </method>
  35355. <method name="write"
  35356. abstract="false" native="false" synchronized="false"
  35357. static="false" final="false" visibility="public"
  35358. deprecated="not deprecated">
  35359. <param name="b" type="byte[]"/>
  35360. <exception name="IOException" type="java.io.IOException"/>
  35361. <doc>
  35362. <![CDATA[Writes <code>b.length</code> bytes from the specified byte array to this
  35363. output stream.
  35364. <p>
  35365. The <code>write</code> method of <code>SASLOutputStream</code> calls the
  35366. <code>write</code> method of three arguments with the three arguments
  35367. <code>b</code>, <code>0</code>, and <code>b.length</code>.
  35368. @param b
  35369. the data.
  35370. @exception NullPointerException
  35371. if <code>b</code> is null.
  35372. @exception IOException
  35373. if an I/O error occurs.]]>
  35374. </doc>
  35375. </method>
  35376. <method name="write"
  35377. abstract="false" native="false" synchronized="false"
  35378. static="false" final="false" visibility="public"
  35379. deprecated="not deprecated">
  35380. <param name="inBuf" type="byte[]"/>
  35381. <param name="off" type="int"/>
  35382. <param name="len" type="int"/>
  35383. <exception name="IOException" type="java.io.IOException"/>
  35384. <doc>
  35385. <![CDATA[Writes <code>len</code> bytes from the specified byte array starting at
  35386. offset <code>off</code> to this output stream.
  35387. @param inBuf
  35388. the data.
  35389. @param off
  35390. the start offset in the data.
  35391. @param len
  35392. the number of bytes to write.
  35393. @exception IOException
  35394. if an I/O error occurs.]]>
  35395. </doc>
  35396. </method>
  35397. <method name="flush"
  35398. abstract="false" native="false" synchronized="false"
  35399. static="false" final="false" visibility="public"
  35400. deprecated="not deprecated">
  35401. <exception name="IOException" type="java.io.IOException"/>
  35402. <doc>
  35403. <![CDATA[Flushes this output stream
  35404. @exception IOException
  35405. if an I/O error occurs.]]>
  35406. </doc>
  35407. </method>
  35408. <method name="close"
  35409. abstract="false" native="false" synchronized="false"
  35410. static="false" final="false" visibility="public"
  35411. deprecated="not deprecated">
  35412. <exception name="IOException" type="java.io.IOException"/>
  35413. <doc>
  35414. <![CDATA[Closes this output stream and releases any system resources associated with
  35415. this stream.
  35416. @exception IOException
  35417. if an I/O error occurs.]]>
  35418. </doc>
  35419. </method>
  35420. <doc>
  35421. <![CDATA[A SaslOutputStream is composed of an OutputStream and a SaslServer (or
  35422. SaslClient) so that write() methods first process the data before writing
  35423. them out to the underlying OutputStream. The SaslServer (or SaslClient)
  35424. object must be fully initialized before being used by a SaslOutputStream.]]>
  35425. </doc>
  35426. </class>
  35427. <!-- end class org.apache.hadoop.security.SaslOutputStream -->
  35428. <!-- start class org.apache.hadoop.security.SaslRpcClient -->
  35429. <class name="SaslRpcClient" extends="java.lang.Object"
  35430. abstract="false"
  35431. static="false" final="false" visibility="public"
  35432. deprecated="not deprecated">
  35433. <constructor name="SaslRpcClient" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod, org.apache.hadoop.security.token.Token, java.lang.String"
  35434. static="false" final="false" visibility="public"
  35435. deprecated="not deprecated">
  35436. <exception name="IOException" type="java.io.IOException"/>
  35437. <doc>
  35438. <![CDATA[Create a SaslRpcClient for an authentication method
  35439. @param method
  35440. the requested authentication method
  35441. @param token
  35442. token to use if needed by the authentication method]]>
  35443. </doc>
  35444. </constructor>
  35445. <method name="saslConnect" return="boolean"
  35446. abstract="false" native="false" synchronized="false"
  35447. static="false" final="false" visibility="public"
  35448. deprecated="not deprecated">
  35449. <param name="inS" type="java.io.InputStream"/>
  35450. <param name="outS" type="java.io.OutputStream"/>
  35451. <exception name="IOException" type="java.io.IOException"/>
  35452. <doc>
  35453. <![CDATA[Do client side SASL authentication with server via the given InputStream
  35454. and OutputStream
  35455. @param inS
  35456. InputStream to use
  35457. @param outS
  35458. OutputStream to use
  35459. @return true if connection is set up, or false if needs to switch
  35460. to simple Auth.
  35461. @throws IOException]]>
  35462. </doc>
  35463. </method>
  35464. <method name="getInputStream" return="java.io.InputStream"
  35465. abstract="false" native="false" synchronized="false"
  35466. static="false" final="false" visibility="public"
  35467. deprecated="not deprecated">
  35468. <param name="in" type="java.io.InputStream"/>
  35469. <exception name="IOException" type="java.io.IOException"/>
  35470. <doc>
  35471. <![CDATA[Get a SASL wrapped InputStream. Can be called only after saslConnect() has
  35472. been called.
  35473. @param in
  35474. the InputStream to wrap
  35475. @return a SASL wrapped InputStream
  35476. @throws IOException]]>
  35477. </doc>
  35478. </method>
  35479. <method name="getOutputStream" return="java.io.OutputStream"
  35480. abstract="false" native="false" synchronized="false"
  35481. static="false" final="false" visibility="public"
  35482. deprecated="not deprecated">
  35483. <param name="out" type="java.io.OutputStream"/>
  35484. <exception name="IOException" type="java.io.IOException"/>
  35485. <doc>
  35486. <![CDATA[Get a SASL wrapped OutputStream. Can be called only after saslConnect() has
  35487. been called.
  35488. @param out
  35489. the OutputStream to wrap
  35490. @return a SASL wrapped OutputStream
  35491. @throws IOException]]>
  35492. </doc>
  35493. </method>
  35494. <method name="dispose"
  35495. abstract="false" native="false" synchronized="false"
  35496. static="false" final="false" visibility="public"
  35497. deprecated="not deprecated">
  35498. <exception name="SaslException" type="javax.security.sasl.SaslException"/>
  35499. <doc>
  35500. <![CDATA[Release resources used by wrapped saslClient]]>
  35501. </doc>
  35502. </method>
  35503. <field name="LOG" type="org.apache.commons.logging.Log"
  35504. transient="false" volatile="false"
  35505. static="true" final="true" visibility="public"
  35506. deprecated="not deprecated">
  35507. </field>
  35508. <doc>
  35509. <![CDATA[A utility class that encapsulates SASL logic for RPC client]]>
  35510. </doc>
  35511. </class>
  35512. <!-- end class org.apache.hadoop.security.SaslRpcClient -->
  35513. <!-- start class org.apache.hadoop.security.SaslRpcServer -->
  35514. <class name="SaslRpcServer" extends="java.lang.Object"
  35515. abstract="false"
  35516. static="false" final="false" visibility="public"
  35517. deprecated="not deprecated">
  35518. <constructor name="SaslRpcServer"
  35519. static="false" final="false" visibility="public"
  35520. deprecated="not deprecated">
  35521. </constructor>
  35522. <method name="init"
  35523. abstract="false" native="false" synchronized="false"
  35524. static="true" final="false" visibility="public"
  35525. deprecated="not deprecated">
  35526. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35527. </method>
  35528. <method name="getIdentifier" return="org.apache.hadoop.security.token.TokenIdentifier"
  35529. abstract="false" native="false" synchronized="false"
  35530. static="true" final="false" visibility="public"
  35531. deprecated="not deprecated">
  35532. <param name="id" type="java.lang.String"/>
  35533. <param name="secretManager" type="org.apache.hadoop.security.token.SecretManager"/>
  35534. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  35535. </method>
  35536. <method name="splitKerberosName" return="java.lang.String[]"
  35537. abstract="false" native="false" synchronized="false"
  35538. static="true" final="false" visibility="public"
  35539. deprecated="not deprecated">
  35540. <param name="fullName" type="java.lang.String"/>
  35541. <doc>
  35542. <![CDATA[Splitting fully qualified Kerberos name into parts]]>
  35543. </doc>
  35544. </method>
  35545. <field name="LOG" type="org.apache.commons.logging.Log"
  35546. transient="false" volatile="false"
  35547. static="true" final="true" visibility="public"
  35548. deprecated="not deprecated">
  35549. </field>
  35550. <field name="SASL_DEFAULT_REALM" type="java.lang.String"
  35551. transient="false" volatile="false"
  35552. static="true" final="true" visibility="public"
  35553. deprecated="not deprecated">
  35554. </field>
  35555. <field name="SASL_PROPS" type="java.util.Map"
  35556. transient="false" volatile="false"
  35557. static="true" final="true" visibility="public"
  35558. deprecated="not deprecated">
  35559. </field>
  35560. <field name="SWITCH_TO_SIMPLE_AUTH" type="int"
  35561. transient="false" volatile="false"
  35562. static="true" final="true" visibility="public"
  35563. deprecated="not deprecated">
  35564. </field>
  35565. <doc>
  35566. <![CDATA[A utility class for dealing with SASL on RPC server]]>
  35567. </doc>
  35568. </class>
  35569. <!-- end class org.apache.hadoop.security.SaslRpcServer -->
  35570. <!-- start class org.apache.hadoop.security.SaslRpcServer.AuthMethod -->
  35571. <class name="SaslRpcServer.AuthMethod" extends="java.lang.Enum"
  35572. abstract="false"
  35573. static="true" final="true" visibility="public"
  35574. deprecated="not deprecated">
  35575. <method name="values" return="org.apache.hadoop.security.SaslRpcServer.AuthMethod[]"
  35576. abstract="false" native="false" synchronized="false"
  35577. static="true" final="false" visibility="public"
  35578. deprecated="not deprecated">
  35579. </method>
  35580. <method name="valueOf" return="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  35581. abstract="false" native="false" synchronized="false"
  35582. static="true" final="false" visibility="public"
  35583. deprecated="not deprecated">
  35584. <param name="name" type="java.lang.String"/>
  35585. </method>
  35586. <method name="getMechanismName" return="java.lang.String"
  35587. abstract="false" native="false" synchronized="false"
  35588. static="false" final="false" visibility="public"
  35589. deprecated="not deprecated">
  35590. <doc>
  35591. <![CDATA[Return the SASL mechanism name]]>
  35592. </doc>
  35593. </method>
  35594. <method name="read" return="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  35595. abstract="false" native="false" synchronized="false"
  35596. static="true" final="false" visibility="public"
  35597. deprecated="not deprecated">
  35598. <param name="in" type="java.io.DataInput"/>
  35599. <exception name="IOException" type="java.io.IOException"/>
  35600. <doc>
  35601. <![CDATA[Read from in]]>
  35602. </doc>
  35603. </method>
  35604. <method name="write"
  35605. abstract="false" native="false" synchronized="false"
  35606. static="false" final="false" visibility="public"
  35607. deprecated="not deprecated">
  35608. <param name="out" type="java.io.DataOutput"/>
  35609. <exception name="IOException" type="java.io.IOException"/>
  35610. <doc>
  35611. <![CDATA[Write to out]]>
  35612. </doc>
  35613. </method>
  35614. <field name="SIMPLE" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  35615. transient="false" volatile="false"
  35616. static="true" final="true" visibility="public"
  35617. deprecated="not deprecated">
  35618. </field>
  35619. <field name="KERBEROS" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  35620. transient="false" volatile="false"
  35621. static="true" final="true" visibility="public"
  35622. deprecated="not deprecated">
  35623. </field>
  35624. <field name="DIGEST" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  35625. transient="false" volatile="false"
  35626. static="true" final="true" visibility="public"
  35627. deprecated="not deprecated">
  35628. </field>
  35629. <field name="code" type="byte"
  35630. transient="false" volatile="false"
  35631. static="false" final="true" visibility="public"
  35632. deprecated="not deprecated">
  35633. <doc>
  35634. <![CDATA[The code for this method.]]>
  35635. </doc>
  35636. </field>
  35637. <field name="mechanismName" type="java.lang.String"
  35638. transient="false" volatile="false"
  35639. static="false" final="true" visibility="public"
  35640. deprecated="not deprecated">
  35641. </field>
  35642. <field name="authenticationMethod" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  35643. transient="false" volatile="false"
  35644. static="false" final="true" visibility="public"
  35645. deprecated="not deprecated">
  35646. </field>
  35647. <doc>
  35648. <![CDATA[Authentication method]]>
  35649. </doc>
  35650. </class>
  35651. <!-- end class org.apache.hadoop.security.SaslRpcServer.AuthMethod -->
  35652. <!-- start class org.apache.hadoop.security.SaslRpcServer.QualityOfProtection -->
  35653. <class name="SaslRpcServer.QualityOfProtection" extends="java.lang.Enum"
  35654. abstract="false"
  35655. static="true" final="true" visibility="public"
  35656. deprecated="not deprecated">
  35657. <method name="values" return="org.apache.hadoop.security.SaslRpcServer.QualityOfProtection[]"
  35658. abstract="false" native="false" synchronized="false"
  35659. static="true" final="false" visibility="public"
  35660. deprecated="not deprecated">
  35661. </method>
  35662. <method name="valueOf" return="org.apache.hadoop.security.SaslRpcServer.QualityOfProtection"
  35663. abstract="false" native="false" synchronized="false"
  35664. static="true" final="false" visibility="public"
  35665. deprecated="not deprecated">
  35666. <param name="name" type="java.lang.String"/>
  35667. </method>
  35668. <method name="getSaslQop" return="java.lang.String"
  35669. abstract="false" native="false" synchronized="false"
  35670. static="false" final="false" visibility="public"
  35671. deprecated="not deprecated">
  35672. </method>
  35673. <field name="AUTHENTICATION" type="org.apache.hadoop.security.SaslRpcServer.QualityOfProtection"
  35674. transient="false" volatile="false"
  35675. static="true" final="true" visibility="public"
  35676. deprecated="not deprecated">
  35677. </field>
  35678. <field name="INTEGRITY" type="org.apache.hadoop.security.SaslRpcServer.QualityOfProtection"
  35679. transient="false" volatile="false"
  35680. static="true" final="true" visibility="public"
  35681. deprecated="not deprecated">
  35682. </field>
  35683. <field name="PRIVACY" type="org.apache.hadoop.security.SaslRpcServer.QualityOfProtection"
  35684. transient="false" volatile="false"
  35685. static="true" final="true" visibility="public"
  35686. deprecated="not deprecated">
  35687. </field>
  35688. <field name="saslQop" type="java.lang.String"
  35689. transient="false" volatile="false"
  35690. static="false" final="true" visibility="public"
  35691. deprecated="not deprecated">
  35692. </field>
  35693. </class>
  35694. <!-- end class org.apache.hadoop.security.SaslRpcServer.QualityOfProtection -->
  35695. <!-- start class org.apache.hadoop.security.SaslRpcServer.SaslDigestCallbackHandler -->
  35696. <class name="SaslRpcServer.SaslDigestCallbackHandler" extends="java.lang.Object"
  35697. abstract="false"
  35698. static="true" final="false" visibility="public"
  35699. deprecated="not deprecated">
  35700. <implements name="javax.security.auth.callback.CallbackHandler"/>
  35701. <constructor name="SaslRpcServer.SaslDigestCallbackHandler" type="org.apache.hadoop.security.token.SecretManager, org.apache.hadoop.ipc.Server.Connection"
  35702. static="false" final="false" visibility="public"
  35703. deprecated="not deprecated">
  35704. </constructor>
  35705. <method name="handle"
  35706. abstract="false" native="false" synchronized="false"
  35707. static="false" final="false" visibility="public"
  35708. deprecated="not deprecated">
  35709. <param name="callbacks" type="javax.security.auth.callback.Callback[]"/>
  35710. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  35711. <exception name="UnsupportedCallbackException" type="javax.security.auth.callback.UnsupportedCallbackException"/>
  35712. <doc>
  35713. <![CDATA[{@inheritDoc}]]>
  35714. </doc>
  35715. </method>
  35716. <doc>
  35717. <![CDATA[CallbackHandler for SASL DIGEST-MD5 mechanism]]>
  35718. </doc>
  35719. </class>
  35720. <!-- end class org.apache.hadoop.security.SaslRpcServer.SaslDigestCallbackHandler -->
  35721. <!-- start class org.apache.hadoop.security.SaslRpcServer.SaslGssCallbackHandler -->
  35722. <class name="SaslRpcServer.SaslGssCallbackHandler" extends="java.lang.Object"
  35723. abstract="false"
  35724. static="true" final="false" visibility="public"
  35725. deprecated="not deprecated">
  35726. <implements name="javax.security.auth.callback.CallbackHandler"/>
  35727. <constructor name="SaslRpcServer.SaslGssCallbackHandler"
  35728. static="false" final="false" visibility="public"
  35729. deprecated="not deprecated">
  35730. </constructor>
  35731. <method name="handle"
  35732. abstract="false" native="false" synchronized="false"
  35733. static="false" final="false" visibility="public"
  35734. deprecated="not deprecated">
  35735. <param name="callbacks" type="javax.security.auth.callback.Callback[]"/>
  35736. <exception name="UnsupportedCallbackException" type="javax.security.auth.callback.UnsupportedCallbackException"/>
  35737. <doc>
  35738. <![CDATA[{@inheritDoc}]]>
  35739. </doc>
  35740. </method>
  35741. <doc>
  35742. <![CDATA[CallbackHandler for SASL GSSAPI Kerberos mechanism]]>
  35743. </doc>
  35744. </class>
  35745. <!-- end class org.apache.hadoop.security.SaslRpcServer.SaslGssCallbackHandler -->
  35746. <!-- start class org.apache.hadoop.security.SaslRpcServer.SaslStatus -->
  35747. <class name="SaslRpcServer.SaslStatus" extends="java.lang.Enum"
  35748. abstract="false"
  35749. static="true" final="true" visibility="public"
  35750. deprecated="not deprecated">
  35751. <method name="values" return="org.apache.hadoop.security.SaslRpcServer.SaslStatus[]"
  35752. abstract="false" native="false" synchronized="false"
  35753. static="true" final="false" visibility="public"
  35754. deprecated="not deprecated">
  35755. </method>
  35756. <method name="valueOf" return="org.apache.hadoop.security.SaslRpcServer.SaslStatus"
  35757. abstract="false" native="false" synchronized="false"
  35758. static="true" final="false" visibility="public"
  35759. deprecated="not deprecated">
  35760. <param name="name" type="java.lang.String"/>
  35761. </method>
  35762. <field name="SUCCESS" type="org.apache.hadoop.security.SaslRpcServer.SaslStatus"
  35763. transient="false" volatile="false"
  35764. static="true" final="true" visibility="public"
  35765. deprecated="not deprecated">
  35766. </field>
  35767. <field name="ERROR" type="org.apache.hadoop.security.SaslRpcServer.SaslStatus"
  35768. transient="false" volatile="false"
  35769. static="true" final="true" visibility="public"
  35770. deprecated="not deprecated">
  35771. </field>
  35772. <field name="state" type="int"
  35773. transient="false" volatile="false"
  35774. static="false" final="true" visibility="public"
  35775. deprecated="not deprecated">
  35776. </field>
  35777. </class>
  35778. <!-- end class org.apache.hadoop.security.SaslRpcServer.SaslStatus -->
  35779. <!-- start class org.apache.hadoop.security.SecurityUtil -->
  35780. <class name="SecurityUtil" extends="java.lang.Object"
  35781. abstract="false"
  35782. static="false" final="false" visibility="public"
  35783. deprecated="not deprecated">
  35784. <constructor name="SecurityUtil"
  35785. static="false" final="false" visibility="public"
  35786. deprecated="not deprecated">
  35787. </constructor>
  35788. <method name="isOriginalTGT" return="boolean"
  35789. abstract="false" native="false" synchronized="false"
  35790. static="true" final="false" visibility="protected"
  35791. deprecated="not deprecated">
  35792. <param name="name" type="java.lang.String"/>
  35793. </method>
  35794. <method name="fetchServiceTicket"
  35795. abstract="false" native="false" synchronized="false"
  35796. static="true" final="false" visibility="public"
  35797. deprecated="not deprecated">
  35798. <param name="remoteHost" type="java.net.URL"/>
  35799. <exception name="IOException" type="java.io.IOException"/>
  35800. <doc>
  35801. <![CDATA[Explicitly pull the service ticket for the specified host. This solves a
  35802. problem with Java's Kerberos SSL problem where the client cannot
  35803. authenticate against a cross-realm service. It is necessary for clients
  35804. making kerberized https requests to call this method on the target URL
  35805. to ensure that in a cross-realm environment the remote host will be
  35806. successfully authenticated.
  35807. This method is internal to Hadoop and should not be used by other
  35808. applications. This method should not be considered stable or open:
  35809. it will be removed when the Java behavior is changed.
  35810. @param remoteHost Target URL the krb-https client will access
  35811. @throws IOException if a service ticket is not available]]>
  35812. </doc>
  35813. </method>
  35814. <method name="getServerPrincipal" return="java.lang.String"
  35815. abstract="false" native="false" synchronized="false"
  35816. static="true" final="false" visibility="public"
  35817. deprecated="not deprecated">
  35818. <param name="principalConfig" type="java.lang.String"/>
  35819. <param name="hostname" type="java.lang.String"/>
  35820. <exception name="IOException" type="java.io.IOException"/>
  35821. <doc>
  35822. <![CDATA[Convert Kerberos principal name pattern to valid Kerberos principal
  35823. names. It replaces hostname pattern with hostname, which should be
  35824. fully-qualified domain name. If hostname is null or "0.0.0.0", it uses
  35825. dynamically looked-up fqdn of the current host instead.
  35826. @param principalConfig
  35827. the Kerberos principal name conf value to convert
  35828. @param hostname
  35829. the fully-qualified domain name used for substitution
  35830. @return converted Kerberos principal name
  35831. @throws IOException if the service ticket cannot be retrieved]]>
  35832. </doc>
  35833. </method>
  35834. <method name="getServerPrincipal" return="java.lang.String"
  35835. abstract="false" native="false" synchronized="false"
  35836. static="true" final="false" visibility="public"
  35837. deprecated="not deprecated">
  35838. <param name="principalConfig" type="java.lang.String"/>
  35839. <param name="addr" type="java.net.InetAddress"/>
  35840. <exception name="IOException" type="java.io.IOException"/>
  35841. <doc>
  35842. <![CDATA[Convert Kerberos principal name pattern to valid Kerberos principal names.
  35843. This method is similar to {@link #getServerPrincipal(String, String)},
  35844. except 1) the reverse DNS lookup from addr to hostname is done only when
  35845. necessary, 2) param addr can't be null (no default behavior of using local
  35846. hostname when addr is null).
  35847. @param principalConfig
  35848. Kerberos principal name pattern to convert
  35849. @param addr
  35850. InetAddress of the host used for substitution
  35851. @return converted Kerberos principal name
  35852. @throws IOException if the client address cannot be determined]]>
  35853. </doc>
  35854. </method>
  35855. <method name="getLocalHostName" return="java.lang.String"
  35856. abstract="false" native="false" synchronized="false"
  35857. static="true" final="false" visibility="public"
  35858. deprecated="not deprecated">
  35859. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  35860. <doc>
  35861. <![CDATA[Get the fqdn for the current host.
  35862. @return fqdn of the current host.
  35863. @throws UnknownHostException
  35864. if no IP address for the local host could be found.]]>
  35865. </doc>
  35866. </method>
  35867. <method name="login"
  35868. abstract="false" native="false" synchronized="false"
  35869. static="true" final="false" visibility="public"
  35870. deprecated="not deprecated">
  35871. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35872. <param name="keytabFileKey" type="java.lang.String"/>
  35873. <param name="userNameKey" type="java.lang.String"/>
  35874. <exception name="IOException" type="java.io.IOException"/>
  35875. <doc>
  35876. <![CDATA[If a keytab has been provided, login as that user. Substitute $host in
  35877. user's Kerberos principal name with a dynamically looked-up fully-qualified
  35878. domain name of the current host.
  35879. @param conf
  35880. conf to use
  35881. @param keytabFileKey
  35882. the key to look for keytab file in conf
  35883. @param userNameKey
  35884. the key to look for user's Kerberos principal name in conf
  35885. @throws IOException if the client address cannot be determined]]>
  35886. </doc>
  35887. </method>
  35888. <method name="login"
  35889. abstract="false" native="false" synchronized="false"
  35890. static="true" final="false" visibility="public"
  35891. deprecated="not deprecated">
  35892. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35893. <param name="keytabFileKey" type="java.lang.String"/>
  35894. <param name="userNameKey" type="java.lang.String"/>
  35895. <param name="hostname" type="java.lang.String"/>
  35896. <exception name="IOException" type="java.io.IOException"/>
  35897. <doc>
  35898. <![CDATA[If a keytab has been provided, login as that user. Substitute $host in
  35899. user's Kerberos principal name with hostname.
  35900. @param conf
  35901. conf to use
  35902. @param keytabFileKey
  35903. the key to look for keytab file in conf
  35904. @param userNameKey
  35905. the key to look for user's Kerberos principal name in conf
  35906. @param hostname
  35907. hostname to use for substitution
  35908. @throws IOException if login fails]]>
  35909. </doc>
  35910. </method>
  35911. <method name="getTokenServiceAddr" return="java.net.InetSocketAddress"
  35912. abstract="false" native="false" synchronized="false"
  35913. static="true" final="false" visibility="public"
  35914. deprecated="not deprecated">
  35915. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  35916. <doc>
  35917. <![CDATA[Decode the given token's service field into an InetAddress
  35918. @param token from which to obtain the service
  35919. @return InetAddress for the service]]>
  35920. </doc>
  35921. </method>
  35922. <method name="setTokenService"
  35923. abstract="false" native="false" synchronized="false"
  35924. static="true" final="false" visibility="public"
  35925. deprecated="not deprecated">
  35926. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  35927. <param name="addr" type="java.net.InetSocketAddress"/>
  35928. <doc>
  35929. <![CDATA[Set the given token's service to the format expected by the RPC client
  35930. @param token a delegation token
  35931. @param addr the socket for the rpc connection]]>
  35932. </doc>
  35933. </method>
  35934. <method name="buildTokenService" return="org.apache.hadoop.io.Text"
  35935. abstract="false" native="false" synchronized="false"
  35936. static="true" final="false" visibility="public"
  35937. deprecated="not deprecated">
  35938. <param name="addr" type="java.net.InetSocketAddress"/>
  35939. <doc>
  35940. <![CDATA[Construct the service key for a token
  35941. @param addr InetSocketAddress of remote connection with a token
  35942. @return "ip:port" or "host:port" depending on the value of
  35943. hadoop.security.token.service.use_ip]]>
  35944. </doc>
  35945. </method>
  35946. <method name="buildDTServiceName" return="java.lang.String"
  35947. abstract="false" native="false" synchronized="false"
  35948. static="true" final="false" visibility="public"
  35949. deprecated="not deprecated">
  35950. <param name="uri" type="java.net.URI"/>
  35951. <param name="defPort" type="int"/>
  35952. <doc>
  35953. <![CDATA[create the service name for a Delegation token
  35954. @param uri of the service
  35955. @param defPort is used if the uri lacks a port
  35956. @return the token service, or null if no authority
  35957. @see #buildTokenService(InetSocketAddress)]]>
  35958. </doc>
  35959. </method>
  35960. <method name="getAdminAcls" return="org.apache.hadoop.security.authorize.AccessControlList"
  35961. abstract="false" native="false" synchronized="false"
  35962. static="true" final="false" visibility="public"
  35963. deprecated="not deprecated">
  35964. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35965. <param name="configKey" type="java.lang.String"/>
  35966. <doc>
  35967. <![CDATA[Get the ACL object representing the cluster administrators
  35968. The user who starts the daemon is automatically added as an admin
  35969. @param conf
  35970. @param configKey the key that holds the ACL string in its value
  35971. @return AccessControlList instance]]>
  35972. </doc>
  35973. </method>
  35974. <method name="getHostFromPrincipal" return="java.lang.String"
  35975. abstract="false" native="false" synchronized="false"
  35976. static="true" final="false" visibility="public"
  35977. deprecated="not deprecated">
  35978. <param name="principalName" type="java.lang.String"/>
  35979. <doc>
  35980. <![CDATA[Get the host name from the principal name of format <service>/host@realm.
  35981. @param principalName principal name of format as described above
  35982. @return host name if the the string conforms to the above format, else null]]>
  35983. </doc>
  35984. </method>
  35985. <method name="useKsslAuth" return="boolean"
  35986. abstract="false" native="false" synchronized="false"
  35987. static="true" final="false" visibility="public"
  35988. deprecated="not deprecated">
  35989. <doc>
  35990. <![CDATA[@return true if we should use KSSL to authenticate NN HTTP endpoints,
  35991. false to use SPNEGO or if security is disabled.]]>
  35992. </doc>
  35993. </method>
  35994. <method name="openSecureHttpConnection" return="java.net.URLConnection"
  35995. abstract="false" native="false" synchronized="false"
  35996. static="true" final="false" visibility="public"
  35997. deprecated="not deprecated">
  35998. <param name="url" type="java.net.URL"/>
  35999. <exception name="IOException" type="java.io.IOException"/>
  36000. <doc>
  36001. <![CDATA[Open a (if need be) secure connection to a URL in a secure environment
  36002. that is using SPNEGO or KSSL to authenticate its URLs. All Namenode and
  36003. Secondary Namenode URLs that are protected via SPNEGO or KSSL should be
  36004. accessed via this method.
  36005. @param url to authenticate via SPNEGO.
  36006. @return A connection that has been authenticated via SPNEGO
  36007. @throws IOException If unable to authenticate via SPNEGO]]>
  36008. </doc>
  36009. </method>
  36010. <method name="getByName" return="java.net.InetAddress"
  36011. abstract="false" native="false" synchronized="false"
  36012. static="true" final="false" visibility="public"
  36013. deprecated="not deprecated">
  36014. <param name="hostname" type="java.lang.String"/>
  36015. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  36016. <doc>
  36017. <![CDATA[Resolves a host subject to the security requirements determined by
  36018. hadoop.security.token.service.use_ip.
  36019. @param hostname host or ip to resolve
  36020. @return a resolved host
  36021. @throws UnknownHostException if the host doesn't exist]]>
  36022. </doc>
  36023. </method>
  36024. <field name="LOG" type="org.apache.commons.logging.Log"
  36025. transient="false" volatile="false"
  36026. static="true" final="true" visibility="public"
  36027. deprecated="not deprecated">
  36028. </field>
  36029. <field name="HOSTNAME_PATTERN" type="java.lang.String"
  36030. transient="false" volatile="false"
  36031. static="true" final="true" visibility="public"
  36032. deprecated="not deprecated">
  36033. </field>
  36034. </class>
  36035. <!-- end class org.apache.hadoop.security.SecurityUtil -->
  36036. <!-- start class org.apache.hadoop.security.SecurityUtil.QualifiedHostResolver -->
  36037. <class name="SecurityUtil.QualifiedHostResolver" extends="java.lang.Object"
  36038. abstract="false"
  36039. static="true" final="false" visibility="protected"
  36040. deprecated="not deprecated">
  36041. <implements name="org.apache.hadoop.security.SecurityUtil.HostResolver"/>
  36042. <constructor name="SecurityUtil.QualifiedHostResolver"
  36043. static="false" final="false" visibility="protected"
  36044. deprecated="not deprecated">
  36045. </constructor>
  36046. <method name="getByName" return="java.net.InetAddress"
  36047. abstract="false" native="false" synchronized="false"
  36048. static="false" final="false" visibility="public"
  36049. deprecated="not deprecated">
  36050. <param name="host" type="java.lang.String"/>
  36051. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  36052. <doc>
  36053. <![CDATA[Create an InetAddress with a fully qualified hostname of the given
  36054. hostname. InetAddress does not qualify an incomplete hostname that
  36055. is resolved via the domain search list.
  36056. {@link InetAddress#getCanonicalHostName()} will fully qualify the
  36057. hostname, but it always return the A record whereas the given hostname
  36058. may be a CNAME.
  36059. @param host a hostname or ip address
  36060. @return InetAddress with the fully qualified hostname or ip
  36061. @throws UnknownHostException if host does not exist]]>
  36062. </doc>
  36063. </method>
  36064. <doc>
  36065. <![CDATA[This an alternate resolver with important properties that the standard
  36066. java resolver lacks:
  36067. 1) The hostname is fully qualified. This avoids security issues if not
  36068. all hosts in the cluster do not share the same search domains. It
  36069. also prevents other hosts from performing unnecessary dns searches.
  36070. In contrast, InetAddress simply returns the host as given.
  36071. 2) The InetAddress is instantiated with an exact host and IP to prevent
  36072. further unnecessary lookups. InetAddress may perform an unnecessary
  36073. reverse lookup for an IP.
  36074. 3) A call to getHostName() will always return the qualified hostname, or
  36075. more importantly, the IP if instantiated with an IP. This avoids
  36076. unnecessary dns timeouts if the host is not resolvable.
  36077. 4) Point 3 also ensures that if the host is re-resolved, ex. during a
  36078. connection re-attempt, that a reverse lookup to host and forward
  36079. lookup to IP is not performed since the reverse/forward mappings may
  36080. not always return the same IP. If the client initiated a connection
  36081. with an IP, then that IP is all that should ever be contacted.
  36082. NOTE: this resolver is only used if:
  36083. hadoop.security.token.service.use_ip=false]]>
  36084. </doc>
  36085. </class>
  36086. <!-- end class org.apache.hadoop.security.SecurityUtil.QualifiedHostResolver -->
  36087. <!-- start class org.apache.hadoop.security.ShellBasedUnixGroupsMapping -->
  36088. <class name="ShellBasedUnixGroupsMapping" extends="java.lang.Object"
  36089. abstract="false"
  36090. static="false" final="false" visibility="public"
  36091. deprecated="not deprecated">
  36092. <implements name="org.apache.hadoop.security.GroupMappingServiceProvider"/>
  36093. <constructor name="ShellBasedUnixGroupsMapping"
  36094. static="false" final="false" visibility="public"
  36095. deprecated="not deprecated">
  36096. </constructor>
  36097. <method name="getGroups" return="java.util.List"
  36098. abstract="false" native="false" synchronized="false"
  36099. static="false" final="false" visibility="public"
  36100. deprecated="not deprecated">
  36101. <param name="user" type="java.lang.String"/>
  36102. <exception name="IOException" type="java.io.IOException"/>
  36103. </method>
  36104. <method name="cacheGroupsRefresh"
  36105. abstract="false" native="false" synchronized="false"
  36106. static="false" final="false" visibility="public"
  36107. deprecated="not deprecated">
  36108. <exception name="IOException" type="java.io.IOException"/>
  36109. </method>
  36110. <method name="cacheGroupsAdd"
  36111. abstract="false" native="false" synchronized="false"
  36112. static="false" final="false" visibility="public"
  36113. deprecated="not deprecated">
  36114. <param name="groups" type="java.util.List"/>
  36115. <exception name="IOException" type="java.io.IOException"/>
  36116. </method>
  36117. <doc>
  36118. <![CDATA[A simple shell-based implementation of {@link GroupMappingServiceProvider}
  36119. that exec's the <code>groups</code> shell command to fetch the group
  36120. memberships of a given user.]]>
  36121. </doc>
  36122. </class>
  36123. <!-- end class org.apache.hadoop.security.ShellBasedUnixGroupsMapping -->
  36124. <!-- start class org.apache.hadoop.security.ShellBasedUnixGroupsNetgroupMapping -->
  36125. <class name="ShellBasedUnixGroupsNetgroupMapping" extends="org.apache.hadoop.security.ShellBasedUnixGroupsMapping"
  36126. abstract="false"
  36127. static="false" final="false" visibility="public"
  36128. deprecated="not deprecated">
  36129. <constructor name="ShellBasedUnixGroupsNetgroupMapping"
  36130. static="false" final="false" visibility="public"
  36131. deprecated="not deprecated">
  36132. </constructor>
  36133. <method name="getGroups" return="java.util.List"
  36134. abstract="false" native="false" synchronized="false"
  36135. static="false" final="false" visibility="public"
  36136. deprecated="not deprecated">
  36137. <param name="user" type="java.lang.String"/>
  36138. <exception name="IOException" type="java.io.IOException"/>
  36139. </method>
  36140. <method name="cacheGroupsRefresh"
  36141. abstract="false" native="false" synchronized="false"
  36142. static="false" final="false" visibility="public"
  36143. deprecated="not deprecated">
  36144. <exception name="IOException" type="java.io.IOException"/>
  36145. </method>
  36146. <method name="cacheGroupsAdd"
  36147. abstract="false" native="false" synchronized="false"
  36148. static="false" final="false" visibility="public"
  36149. deprecated="not deprecated">
  36150. <param name="groups" type="java.util.List"/>
  36151. <exception name="IOException" type="java.io.IOException"/>
  36152. </method>
  36153. <method name="cacheNetgroup"
  36154. abstract="false" native="false" synchronized="false"
  36155. static="false" final="false" visibility="protected"
  36156. deprecated="not deprecated">
  36157. <param name="group" type="java.lang.String"/>
  36158. <exception name="IOException" type="java.io.IOException"/>
  36159. </method>
  36160. <method name="getNetgroups"
  36161. abstract="false" native="false" synchronized="false"
  36162. static="false" final="false" visibility="protected"
  36163. deprecated="not deprecated">
  36164. <param name="user" type="java.lang.String"/>
  36165. <param name="groups" type="java.util.List"/>
  36166. <exception name="IOException" type="java.io.IOException"/>
  36167. </method>
  36168. <method name="execShellGetUnixGroups" return="java.lang.String"
  36169. abstract="false" native="false" synchronized="false"
  36170. static="false" final="false" visibility="protected"
  36171. deprecated="not deprecated">
  36172. <param name="user" type="java.lang.String"/>
  36173. <exception name="IOException" type="java.io.IOException"/>
  36174. </method>
  36175. <method name="execShellGetUserForNetgroup" return="java.lang.String"
  36176. abstract="false" native="false" synchronized="false"
  36177. static="false" final="false" visibility="protected"
  36178. deprecated="not deprecated">
  36179. <param name="netgroup" type="java.lang.String"/>
  36180. <exception name="IOException" type="java.io.IOException"/>
  36181. </method>
  36182. <field name="netgroupToUsersMapUpdated" type="boolean"
  36183. transient="false" volatile="false"
  36184. static="true" final="false" visibility="protected"
  36185. deprecated="not deprecated">
  36186. </field>
  36187. <field name="netgroupToUsersMap" type="java.util.Map"
  36188. transient="false" volatile="false"
  36189. static="true" final="false" visibility="protected"
  36190. deprecated="not deprecated">
  36191. </field>
  36192. <field name="userToNetgroupsMap" type="java.util.Map"
  36193. transient="false" volatile="false"
  36194. static="true" final="false" visibility="protected"
  36195. deprecated="not deprecated">
  36196. </field>
  36197. <doc>
  36198. <![CDATA[A simple shell-based implementation of {@link GroupMappingServiceProvider}
  36199. that exec's the <code>groups</code> shell command to fetch the group
  36200. memberships of a given user.]]>
  36201. </doc>
  36202. </class>
  36203. <!-- end class org.apache.hadoop.security.ShellBasedUnixGroupsNetgroupMapping -->
  36204. <!-- start class org.apache.hadoop.security.UserGroupInformation -->
  36205. <class name="UserGroupInformation" extends="java.lang.Object"
  36206. abstract="false"
  36207. static="false" final="false" visibility="public"
  36208. deprecated="not deprecated">
  36209. <method name="setConfiguration"
  36210. abstract="false" native="false" synchronized="false"
  36211. static="true" final="false" visibility="public"
  36212. deprecated="not deprecated">
  36213. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  36214. <doc>
  36215. <![CDATA[Set the static configuration for UGI.
  36216. In particular, set the security authentication mechanism and the
  36217. group look up service.
  36218. @param conf the configuration to use]]>
  36219. </doc>
  36220. </method>
  36221. <method name="isSecurityEnabled" return="boolean"
  36222. abstract="false" native="false" synchronized="false"
  36223. static="true" final="false" visibility="public"
  36224. deprecated="not deprecated">
  36225. <doc>
  36226. <![CDATA[Determine if UserGroupInformation is using Kerberos to determine
  36227. user identities or is relying on simple authentication
  36228. @return true if UGI is working in a secure environment]]>
  36229. </doc>
  36230. </method>
  36231. <method name="hasKerberosCredentials" return="boolean"
  36232. abstract="false" native="false" synchronized="false"
  36233. static="false" final="false" visibility="public"
  36234. deprecated="not deprecated">
  36235. <doc>
  36236. <![CDATA[checks if logged in using kerberos
  36237. @return true if the subject logged via keytab or has a Kerberos TGT]]>
  36238. </doc>
  36239. </method>
  36240. <method name="getCurrentUser" return="org.apache.hadoop.security.UserGroupInformation"
  36241. abstract="false" native="false" synchronized="true"
  36242. static="true" final="false" visibility="public"
  36243. deprecated="not deprecated">
  36244. <exception name="IOException" type="java.io.IOException"/>
  36245. <doc>
  36246. <![CDATA[Return the current user, including any doAs in the current stack.
  36247. @return the current user
  36248. @throws IOException if login fails]]>
  36249. </doc>
  36250. </method>
  36251. <method name="getLoginUser" return="org.apache.hadoop.security.UserGroupInformation"
  36252. abstract="false" native="false" synchronized="true"
  36253. static="true" final="false" visibility="public"
  36254. deprecated="not deprecated">
  36255. <exception name="IOException" type="java.io.IOException"/>
  36256. <doc>
  36257. <![CDATA[Get the currently logged in user.
  36258. @return the logged in user
  36259. @throws IOException if login fails]]>
  36260. </doc>
  36261. </method>
  36262. <method name="isFromKeytab" return="boolean"
  36263. abstract="false" native="false" synchronized="false"
  36264. static="false" final="false" visibility="public"
  36265. deprecated="not deprecated">
  36266. <doc>
  36267. <![CDATA[Is this user logged in from a keytab file?
  36268. @return true if the credentials are from a keytab file.]]>
  36269. </doc>
  36270. </method>
  36271. <method name="loginUserFromKeytab"
  36272. abstract="false" native="false" synchronized="true"
  36273. static="true" final="false" visibility="public"
  36274. deprecated="not deprecated">
  36275. <param name="user" type="java.lang.String"/>
  36276. <param name="path" type="java.lang.String"/>
  36277. <exception name="IOException" type="java.io.IOException"/>
  36278. <doc>
  36279. <![CDATA[Log a user in from a keytab file. Loads a user identity from a keytab
  36280. file and logs them in. They become the currently logged-in user.
  36281. @param user the principal name to load from the keytab
  36282. @param path the path to the keytab file
  36283. @throws IOException if the keytab file can't be read]]>
  36284. </doc>
  36285. </method>
  36286. <method name="reloginFromTicketCache"
  36287. abstract="false" native="false" synchronized="true"
  36288. static="false" final="false" visibility="public"
  36289. deprecated="not deprecated">
  36290. <exception name="IOException" type="java.io.IOException"/>
  36291. <doc>
  36292. <![CDATA[Re-Login a user in from the ticket cache. This
  36293. method assumes that login had happened already.
  36294. The Subject field of this UserGroupInformation object is updated to have
  36295. the new credentials.
  36296. @throws IOException on a failure]]>
  36297. </doc>
  36298. </method>
  36299. <method name="loginUserFromKeytabAndReturnUGI" return="org.apache.hadoop.security.UserGroupInformation"
  36300. abstract="false" native="false" synchronized="true"
  36301. static="true" final="false" visibility="public"
  36302. deprecated="not deprecated">
  36303. <param name="user" type="java.lang.String"/>
  36304. <param name="path" type="java.lang.String"/>
  36305. <exception name="IOException" type="java.io.IOException"/>
  36306. <doc>
  36307. <![CDATA[Log a user in from a keytab file. Loads a user identity from a keytab
  36308. file and login them in. This new user does not affect the currently
  36309. logged-in user.
  36310. @param user the principal name to load from the keytab
  36311. @param path the path to the keytab file
  36312. @throws IOException if the keytab file can't be read]]>
  36313. </doc>
  36314. </method>
  36315. <method name="checkTGTAndReloginFromKeytab"
  36316. abstract="false" native="false" synchronized="true"
  36317. static="false" final="false" visibility="public"
  36318. deprecated="not deprecated">
  36319. <exception name="IOException" type="java.io.IOException"/>
  36320. <doc>
  36321. <![CDATA[Re-login a user from keytab if TGT is expired or is close to expiry.
  36322. @throws IOException]]>
  36323. </doc>
  36324. </method>
  36325. <method name="reloginFromKeytab"
  36326. abstract="false" native="false" synchronized="true"
  36327. static="false" final="false" visibility="public"
  36328. deprecated="not deprecated">
  36329. <exception name="IOException" type="java.io.IOException"/>
  36330. <doc>
  36331. <![CDATA[Re-Login a user in from a keytab file. Loads a user identity from a keytab
  36332. file and logs them in. They become the currently logged-in user. This
  36333. method assumes that {@link #loginUserFromKeytab(String, String)} had
  36334. happened already.
  36335. The Subject field of this UserGroupInformation object is updated to have
  36336. the new credentials.
  36337. @throws IOException on a failure]]>
  36338. </doc>
  36339. </method>
  36340. <method name="isLoginKeytabBased" return="boolean"
  36341. abstract="false" native="false" synchronized="true"
  36342. static="true" final="false" visibility="public"
  36343. deprecated="not deprecated">
  36344. <exception name="IOException" type="java.io.IOException"/>
  36345. <doc>
  36346. <![CDATA[Did the login happen via keytab
  36347. @return true or false]]>
  36348. </doc>
  36349. </method>
  36350. <method name="createRemoteUser" return="org.apache.hadoop.security.UserGroupInformation"
  36351. abstract="false" native="false" synchronized="false"
  36352. static="true" final="false" visibility="public"
  36353. deprecated="not deprecated">
  36354. <param name="user" type="java.lang.String"/>
  36355. <doc>
  36356. <![CDATA[Create a user from a login name. It is intended to be used for remote
  36357. users in RPC, since it won't have any credentials.
  36358. @param user the full user principal name, must not be empty or null
  36359. @return the UserGroupInformation for the remote user.]]>
  36360. </doc>
  36361. </method>
  36362. <method name="createProxyUser" return="org.apache.hadoop.security.UserGroupInformation"
  36363. abstract="false" native="false" synchronized="false"
  36364. static="true" final="false" visibility="public"
  36365. deprecated="not deprecated">
  36366. <param name="user" type="java.lang.String"/>
  36367. <param name="realUser" type="org.apache.hadoop.security.UserGroupInformation"/>
  36368. <doc>
  36369. <![CDATA[Create a proxy user using username of the effective user and the ugi of the
  36370. real user.
  36371. @param user
  36372. @param realUser
  36373. @return proxyUser ugi]]>
  36374. </doc>
  36375. </method>
  36376. <method name="getRealUser" return="org.apache.hadoop.security.UserGroupInformation"
  36377. abstract="false" native="false" synchronized="false"
  36378. static="false" final="false" visibility="public"
  36379. deprecated="not deprecated">
  36380. <doc>
  36381. <![CDATA[get RealUser (vs. EffectiveUser)
  36382. @return realUser running over proxy user]]>
  36383. </doc>
  36384. </method>
  36385. <method name="createUserForTesting" return="org.apache.hadoop.security.UserGroupInformation"
  36386. abstract="false" native="false" synchronized="false"
  36387. static="true" final="false" visibility="public"
  36388. deprecated="not deprecated">
  36389. <param name="user" type="java.lang.String"/>
  36390. <param name="userGroups" type="java.lang.String[]"/>
  36391. <doc>
  36392. <![CDATA[Create a UGI for testing HDFS and MapReduce
  36393. @param user the full user principal name
  36394. @param userGroups the names of the groups that the user belongs to
  36395. @return a fake user for running unit tests]]>
  36396. </doc>
  36397. </method>
  36398. <method name="createProxyUserForTesting" return="org.apache.hadoop.security.UserGroupInformation"
  36399. abstract="false" native="false" synchronized="false"
  36400. static="true" final="false" visibility="public"
  36401. deprecated="not deprecated">
  36402. <param name="user" type="java.lang.String"/>
  36403. <param name="realUser" type="org.apache.hadoop.security.UserGroupInformation"/>
  36404. <param name="userGroups" type="java.lang.String[]"/>
  36405. <doc>
  36406. <![CDATA[Create a proxy user UGI for testing HDFS and MapReduce
  36407. @param user
  36408. the full user principal name for effective user
  36409. @param realUser
  36410. UGI of the real user
  36411. @param userGroups
  36412. the names of the groups that the user belongs to
  36413. @return a fake user for running unit tests]]>
  36414. </doc>
  36415. </method>
  36416. <method name="getShortUserName" return="java.lang.String"
  36417. abstract="false" native="false" synchronized="false"
  36418. static="false" final="false" visibility="public"
  36419. deprecated="not deprecated">
  36420. <doc>
  36421. <![CDATA[Get the user's login name.
  36422. @return the user's name up to the first '/' or '@'.]]>
  36423. </doc>
  36424. </method>
  36425. <method name="getUserName" return="java.lang.String"
  36426. abstract="false" native="false" synchronized="false"
  36427. static="false" final="false" visibility="public"
  36428. deprecated="not deprecated">
  36429. <doc>
  36430. <![CDATA[Get the user's full principal name.
  36431. @return the user's full principal name.]]>
  36432. </doc>
  36433. </method>
  36434. <method name="addTokenIdentifier" return="boolean"
  36435. abstract="false" native="false" synchronized="true"
  36436. static="false" final="false" visibility="public"
  36437. deprecated="not deprecated">
  36438. <param name="tokenId" type="org.apache.hadoop.security.token.TokenIdentifier"/>
  36439. <doc>
  36440. <![CDATA[Add a TokenIdentifier to this UGI. The TokenIdentifier has typically been
  36441. authenticated by the RPC layer as belonging to the user represented by this
  36442. UGI.
  36443. @param tokenId
  36444. tokenIdentifier to be added
  36445. @return true on successful add of new tokenIdentifier]]>
  36446. </doc>
  36447. </method>
  36448. <method name="getTokenIdentifiers" return="java.util.Set"
  36449. abstract="false" native="false" synchronized="true"
  36450. static="false" final="false" visibility="public"
  36451. deprecated="not deprecated">
  36452. <doc>
  36453. <![CDATA[Get the set of TokenIdentifiers belonging to this UGI
  36454. @return the set of TokenIdentifiers belonging to this UGI]]>
  36455. </doc>
  36456. </method>
  36457. <method name="addToken" return="boolean"
  36458. abstract="false" native="false" synchronized="true"
  36459. static="false" final="false" visibility="public"
  36460. deprecated="not deprecated">
  36461. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  36462. <doc>
  36463. <![CDATA[Add a token to this UGI
  36464. @param token Token to be added
  36465. @return true on successful add of new token]]>
  36466. </doc>
  36467. </method>
  36468. <method name="getTokens" return="java.util.Collection"
  36469. abstract="false" native="false" synchronized="true"
  36470. static="false" final="false" visibility="public"
  36471. deprecated="not deprecated">
  36472. <doc>
  36473. <![CDATA[Obtain the collection of tokens associated with this user.
  36474. @return an unmodifiable collection of tokens associated with user]]>
  36475. </doc>
  36476. </method>
  36477. <method name="getGroupNames" return="java.lang.String[]"
  36478. abstract="false" native="false" synchronized="true"
  36479. static="false" final="false" visibility="public"
  36480. deprecated="not deprecated">
  36481. <doc>
  36482. <![CDATA[Get the group names for this user.
  36483. @return the list of users with the primary group first. If the command
  36484. fails, it returns an empty list.]]>
  36485. </doc>
  36486. </method>
  36487. <method name="toString" return="java.lang.String"
  36488. abstract="false" native="false" synchronized="false"
  36489. static="false" final="false" visibility="public"
  36490. deprecated="not deprecated">
  36491. <doc>
  36492. <![CDATA[Return the username.]]>
  36493. </doc>
  36494. </method>
  36495. <method name="setAuthenticationMethod"
  36496. abstract="false" native="false" synchronized="true"
  36497. static="false" final="false" visibility="public"
  36498. deprecated="not deprecated">
  36499. <param name="authMethod" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"/>
  36500. <doc>
  36501. <![CDATA[Sets the authentication method in the subject
  36502. @param authMethod]]>
  36503. </doc>
  36504. </method>
  36505. <method name="getAuthenticationMethod" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  36506. abstract="false" native="false" synchronized="true"
  36507. static="false" final="false" visibility="public"
  36508. deprecated="not deprecated">
  36509. <doc>
  36510. <![CDATA[Get the authentication method from the subject
  36511. @return AuthenticationMethod in the subject, null if not present.]]>
  36512. </doc>
  36513. </method>
  36514. <method name="equals" return="boolean"
  36515. abstract="false" native="false" synchronized="false"
  36516. static="false" final="false" visibility="public"
  36517. deprecated="not deprecated">
  36518. <param name="o" type="java.lang.Object"/>
  36519. <doc>
  36520. <![CDATA[Compare the subjects to see if they are equal to each other.]]>
  36521. </doc>
  36522. </method>
  36523. <method name="hashCode" return="int"
  36524. abstract="false" native="false" synchronized="false"
  36525. static="false" final="false" visibility="public"
  36526. deprecated="not deprecated">
  36527. <doc>
  36528. <![CDATA[Return the hash of the subject.]]>
  36529. </doc>
  36530. </method>
  36531. <method name="getSubject" return="javax.security.auth.Subject"
  36532. abstract="false" native="false" synchronized="false"
  36533. static="false" final="false" visibility="protected"
  36534. deprecated="not deprecated">
  36535. <doc>
  36536. <![CDATA[Get the underlying subject from this ugi.
  36537. @return the subject that represents this user.]]>
  36538. </doc>
  36539. </method>
  36540. <method name="doAs" return="java.lang.Object"
  36541. abstract="false" native="false" synchronized="false"
  36542. static="false" final="false" visibility="public"
  36543. deprecated="not deprecated">
  36544. <param name="action" type="java.security.PrivilegedAction"/>
  36545. <doc>
  36546. <![CDATA[Run the given action as the user.
  36547. @param <T> the return type of the run method
  36548. @param action the method to execute
  36549. @return the value from the run method]]>
  36550. </doc>
  36551. </method>
  36552. <method name="doAs" return="java.lang.Object"
  36553. abstract="false" native="false" synchronized="false"
  36554. static="false" final="false" visibility="public"
  36555. deprecated="not deprecated">
  36556. <param name="action" type="java.security.PrivilegedExceptionAction"/>
  36557. <exception name="IOException" type="java.io.IOException"/>
  36558. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  36559. <doc>
  36560. <![CDATA[Run the given action as the user, potentially throwing an exception.
  36561. @param <T> the return type of the run method
  36562. @param action the method to execute
  36563. @return the value from the run method
  36564. @throws IOException if the action throws an IOException
  36565. @throws Error if the action throws an Error
  36566. @throws RuntimeException if the action throws a RuntimeException
  36567. @throws InterruptedException if the action throws an InterruptedException
  36568. @throws UndeclaredThrowableException if the action throws something else]]>
  36569. </doc>
  36570. </method>
  36571. <method name="main"
  36572. abstract="false" native="false" synchronized="false"
  36573. static="true" final="false" visibility="public"
  36574. deprecated="not deprecated">
  36575. <param name="args" type="java.lang.String[]"/>
  36576. <exception name="Exception" type="java.lang.Exception"/>
  36577. <doc>
  36578. <![CDATA[A test method to print out the current user's UGI.
  36579. @param args if there are two arguments, read the user from the keytab
  36580. and print it out.
  36581. @throws Exception]]>
  36582. </doc>
  36583. </method>
  36584. <field name="HADOOP_TOKEN_FILE_LOCATION" type="java.lang.String"
  36585. transient="false" volatile="false"
  36586. static="true" final="true" visibility="public"
  36587. deprecated="not deprecated">
  36588. <doc>
  36589. <![CDATA[Environment variable pointing to the token cache file]]>
  36590. </doc>
  36591. </field>
  36592. <doc>
  36593. <![CDATA[User and group information for Hadoop.
  36594. This class wraps around a JAAS Subject and provides methods to determine the
  36595. user's username and groups. It supports both the Windows, Unix and Kerberos
  36596. login modules.]]>
  36597. </doc>
  36598. </class>
  36599. <!-- end class org.apache.hadoop.security.UserGroupInformation -->
  36600. <!-- start class org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod -->
  36601. <class name="UserGroupInformation.AuthenticationMethod" extends="java.lang.Enum"
  36602. abstract="false"
  36603. static="true" final="true" visibility="public"
  36604. deprecated="not deprecated">
  36605. <method name="values" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod[]"
  36606. abstract="false" native="false" synchronized="false"
  36607. static="true" final="false" visibility="public"
  36608. deprecated="not deprecated">
  36609. </method>
  36610. <method name="valueOf" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  36611. abstract="false" native="false" synchronized="false"
  36612. static="true" final="false" visibility="public"
  36613. deprecated="not deprecated">
  36614. <param name="name" type="java.lang.String"/>
  36615. </method>
  36616. <field name="SIMPLE" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  36617. transient="false" volatile="false"
  36618. static="true" final="true" visibility="public"
  36619. deprecated="not deprecated">
  36620. </field>
  36621. <field name="KERBEROS" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  36622. transient="false" volatile="false"
  36623. static="true" final="true" visibility="public"
  36624. deprecated="not deprecated">
  36625. </field>
  36626. <field name="TOKEN" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  36627. transient="false" volatile="false"
  36628. static="true" final="true" visibility="public"
  36629. deprecated="not deprecated">
  36630. </field>
  36631. <field name="CERTIFICATE" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  36632. transient="false" volatile="false"
  36633. static="true" final="true" visibility="public"
  36634. deprecated="not deprecated">
  36635. </field>
  36636. <field name="KERBEROS_SSL" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  36637. transient="false" volatile="false"
  36638. static="true" final="true" visibility="public"
  36639. deprecated="not deprecated">
  36640. </field>
  36641. <field name="PROXY" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  36642. transient="false" volatile="false"
  36643. static="true" final="true" visibility="public"
  36644. deprecated="not deprecated">
  36645. </field>
  36646. <doc>
  36647. <![CDATA[existing types of authentications' methods]]>
  36648. </doc>
  36649. </class>
  36650. <!-- end class org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod -->
  36651. <!-- start class org.apache.hadoop.security.UserGroupInformation.HadoopLoginModule -->
  36652. <class name="UserGroupInformation.HadoopLoginModule" extends="java.lang.Object"
  36653. abstract="false"
  36654. static="true" final="false" visibility="public"
  36655. deprecated="not deprecated">
  36656. <implements name="javax.security.auth.spi.LoginModule"/>
  36657. <constructor name="UserGroupInformation.HadoopLoginModule"
  36658. static="false" final="false" visibility="public"
  36659. deprecated="not deprecated">
  36660. </constructor>
  36661. <method name="abort" return="boolean"
  36662. abstract="false" native="false" synchronized="false"
  36663. static="false" final="false" visibility="public"
  36664. deprecated="not deprecated">
  36665. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  36666. </method>
  36667. <method name="commit" return="boolean"
  36668. abstract="false" native="false" synchronized="false"
  36669. static="false" final="false" visibility="public"
  36670. deprecated="not deprecated">
  36671. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  36672. </method>
  36673. <method name="initialize"
  36674. abstract="false" native="false" synchronized="false"
  36675. static="false" final="false" visibility="public"
  36676. deprecated="not deprecated">
  36677. <param name="subject" type="javax.security.auth.Subject"/>
  36678. <param name="callbackHandler" type="javax.security.auth.callback.CallbackHandler"/>
  36679. <param name="sharedState" type="java.util.Map"/>
  36680. <param name="options" type="java.util.Map"/>
  36681. </method>
  36682. <method name="login" return="boolean"
  36683. abstract="false" native="false" synchronized="false"
  36684. static="false" final="false" visibility="public"
  36685. deprecated="not deprecated">
  36686. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  36687. </method>
  36688. <method name="logout" return="boolean"
  36689. abstract="false" native="false" synchronized="false"
  36690. static="false" final="false" visibility="public"
  36691. deprecated="not deprecated">
  36692. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  36693. </method>
  36694. <doc>
  36695. <![CDATA[A login module that looks at the Kerberos, Unix, or Windows principal and
  36696. adds the corresponding UserName.]]>
  36697. </doc>
  36698. </class>
  36699. <!-- end class org.apache.hadoop.security.UserGroupInformation.HadoopLoginModule -->
  36700. </package>
  36701. <package name="org.apache.hadoop.security.authentication.client">
  36702. <!-- start class org.apache.hadoop.security.authentication.client.AuthenticatedURL -->
  36703. <class name="AuthenticatedURL" extends="java.lang.Object"
  36704. abstract="false"
  36705. static="false" final="false" visibility="public"
  36706. deprecated="not deprecated">
  36707. <constructor name="AuthenticatedURL"
  36708. static="false" final="false" visibility="public"
  36709. deprecated="not deprecated">
  36710. <doc>
  36711. <![CDATA[Creates an {@link AuthenticatedURL}.]]>
  36712. </doc>
  36713. </constructor>
  36714. <constructor name="AuthenticatedURL" type="org.apache.hadoop.security.authentication.client.Authenticator"
  36715. static="false" final="false" visibility="public"
  36716. deprecated="not deprecated">
  36717. <doc>
  36718. <![CDATA[Creates an <code>AuthenticatedURL</code>.
  36719. @param authenticator the {@link Authenticator} instance to use, if <code>null</code> a {@link
  36720. KerberosAuthenticator} is used.]]>
  36721. </doc>
  36722. </constructor>
  36723. <method name="setDefaultAuthenticator"
  36724. abstract="false" native="false" synchronized="false"
  36725. static="true" final="false" visibility="public"
  36726. deprecated="not deprecated">
  36727. <param name="authenticator" type="java.lang.Class"/>
  36728. <doc>
  36729. <![CDATA[Sets the default {@link Authenticator} class to use when an {@link AuthenticatedURL} instance
  36730. is created without specifying an authenticator.
  36731. @param authenticator the authenticator class to use as default.]]>
  36732. </doc>
  36733. </method>
  36734. <method name="getDefaultAuthenticator" return="java.lang.Class"
  36735. abstract="false" native="false" synchronized="false"
  36736. static="true" final="false" visibility="public"
  36737. deprecated="not deprecated">
  36738. <doc>
  36739. <![CDATA[Returns the default {@link Authenticator} class to use when an {@link AuthenticatedURL} instance
  36740. is created without specifying an authenticator.
  36741. @return the authenticator class to use as default.]]>
  36742. </doc>
  36743. </method>
  36744. <method name="openConnection" return="java.net.HttpURLConnection"
  36745. abstract="false" native="false" synchronized="false"
  36746. static="false" final="false" visibility="public"
  36747. deprecated="not deprecated">
  36748. <param name="url" type="java.net.URL"/>
  36749. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  36750. <exception name="IOException" type="java.io.IOException"/>
  36751. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  36752. <doc>
  36753. <![CDATA[Returns an authenticated {@link HttpURLConnection}.
  36754. @param url the URL to connect to. Only HTTP/S URLs are supported.
  36755. @param token the authentication token being used for the user.
  36756. @return an authenticated {@link HttpURLConnection}.
  36757. @throws IOException if an IO error occurred.
  36758. @throws AuthenticationException if an authentication exception occurred.]]>
  36759. </doc>
  36760. </method>
  36761. <method name="injectToken"
  36762. abstract="false" native="false" synchronized="false"
  36763. static="true" final="false" visibility="public"
  36764. deprecated="not deprecated">
  36765. <param name="conn" type="java.net.HttpURLConnection"/>
  36766. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  36767. <doc>
  36768. <![CDATA[Helper method that injects an authentication token to send with a connection.
  36769. @param conn connection to inject the authentication token into.
  36770. @param token authentication token to inject.]]>
  36771. </doc>
  36772. </method>
  36773. <method name="extractToken"
  36774. abstract="false" native="false" synchronized="false"
  36775. static="true" final="false" visibility="public"
  36776. deprecated="not deprecated">
  36777. <param name="conn" type="java.net.HttpURLConnection"/>
  36778. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  36779. <exception name="IOException" type="java.io.IOException"/>
  36780. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  36781. <doc>
  36782. <![CDATA[Helper method that extracts an authentication token received from a connection.
  36783. <p/>
  36784. This method is used by {@link Authenticator} implementations.
  36785. @param conn connection to extract the authentication token from.
  36786. @param token the authentication token.
  36787. @throws IOException if an IO error occurred.
  36788. @throws AuthenticationException if an authentication exception occurred.]]>
  36789. </doc>
  36790. </method>
  36791. <field name="AUTH_COOKIE" type="java.lang.String"
  36792. transient="false" volatile="false"
  36793. static="true" final="true" visibility="public"
  36794. deprecated="not deprecated">
  36795. <doc>
  36796. <![CDATA[Name of the HTTP cookie used for the authentication token between the client and the server.]]>
  36797. </doc>
  36798. </field>
  36799. <doc>
  36800. <![CDATA[The {@link AuthenticatedURL} class enables the use of the JDK {@link URL} class
  36801. against HTTP endpoints protected with the {@link AuthenticationFilter}.
  36802. <p/>
  36803. The authentication mechanisms supported by default are Hadoop Simple authentication
  36804. (also known as pseudo authentication) and Kerberos SPNEGO authentication.
  36805. <p/>
  36806. Additional authentication mechanisms can be supported via {@link Authenticator} implementations.
  36807. <p/>
  36808. The default {@link Authenticator} is the {@link KerberosAuthenticator} class which supports
  36809. automatic fallback from Kerberos SPNEGO to Hadoop Simple authentication.
  36810. <p/>
  36811. <code>AuthenticatedURL</code> instances are not thread-safe.
  36812. <p/>
  36813. The usage pattern of the {@link AuthenticatedURL} is:
  36814. <p/>
  36815. <pre>
  36816. // establishing an initial connection
  36817. URL url = new URL("http://foo:8080/bar");
  36818. AuthenticatedURL.Token token = new AuthenticatedURL.Token();
  36819. AuthenticatedURL aUrl = new AuthenticatedURL();
  36820. HttpURLConnection conn = new AuthenticatedURL(url, token).openConnection();
  36821. ....
  36822. // use the 'conn' instance
  36823. ....
  36824. // establishing a follow up connection using a token from the previous connection
  36825. HttpURLConnection conn = new AuthenticatedURL(url, token).openConnection();
  36826. ....
  36827. // use the 'conn' instance
  36828. ....
  36829. </pre>]]>
  36830. </doc>
  36831. </class>
  36832. <!-- end class org.apache.hadoop.security.authentication.client.AuthenticatedURL -->
  36833. <!-- start class org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token -->
  36834. <class name="AuthenticatedURL.Token" extends="java.lang.Object"
  36835. abstract="false"
  36836. static="true" final="false" visibility="public"
  36837. deprecated="not deprecated">
  36838. <constructor name="AuthenticatedURL.Token"
  36839. static="false" final="false" visibility="public"
  36840. deprecated="not deprecated">
  36841. <doc>
  36842. <![CDATA[Creates a token.]]>
  36843. </doc>
  36844. </constructor>
  36845. <constructor name="AuthenticatedURL.Token" type="java.lang.String"
  36846. static="false" final="false" visibility="public"
  36847. deprecated="not deprecated">
  36848. <doc>
  36849. <![CDATA[Creates a token using an existing string representation of the token.
  36850. @param tokenStr string representation of the tokenStr.]]>
  36851. </doc>
  36852. </constructor>
  36853. <method name="isSet" return="boolean"
  36854. abstract="false" native="false" synchronized="false"
  36855. static="false" final="false" visibility="public"
  36856. deprecated="not deprecated">
  36857. <doc>
  36858. <![CDATA[Returns if a token from the server has been set.
  36859. @return if a token from the server has been set.]]>
  36860. </doc>
  36861. </method>
  36862. <method name="toString" return="java.lang.String"
  36863. abstract="false" native="false" synchronized="false"
  36864. static="false" final="false" visibility="public"
  36865. deprecated="not deprecated">
  36866. <doc>
  36867. <![CDATA[Returns the string representation of the token.
  36868. @return the string representation of the token.]]>
  36869. </doc>
  36870. </method>
  36871. <method name="hashCode" return="int"
  36872. abstract="false" native="false" synchronized="false"
  36873. static="false" final="false" visibility="public"
  36874. deprecated="not deprecated">
  36875. <doc>
  36876. <![CDATA[Return the hashcode for the token.
  36877. @return the hashcode for the token.]]>
  36878. </doc>
  36879. </method>
  36880. <method name="equals" return="boolean"
  36881. abstract="false" native="false" synchronized="false"
  36882. static="false" final="false" visibility="public"
  36883. deprecated="not deprecated">
  36884. <param name="o" type="java.lang.Object"/>
  36885. <doc>
  36886. <![CDATA[Return if two token instances are equal.
  36887. @param o the other token instance.
  36888. @return if this instance and the other instance are equal.]]>
  36889. </doc>
  36890. </method>
  36891. <doc>
  36892. <![CDATA[Client side authentication token.]]>
  36893. </doc>
  36894. </class>
  36895. <!-- end class org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token -->
  36896. <!-- start class org.apache.hadoop.security.authentication.client.AuthenticationException -->
  36897. <class name="AuthenticationException" extends="java.lang.Exception"
  36898. abstract="false"
  36899. static="false" final="false" visibility="public"
  36900. deprecated="not deprecated">
  36901. <constructor name="AuthenticationException" type="java.lang.Throwable"
  36902. static="false" final="false" visibility="public"
  36903. deprecated="not deprecated">
  36904. <doc>
  36905. <![CDATA[Creates an {@link AuthenticationException}.
  36906. @param cause original exception.]]>
  36907. </doc>
  36908. </constructor>
  36909. <constructor name="AuthenticationException" type="java.lang.String"
  36910. static="false" final="false" visibility="public"
  36911. deprecated="not deprecated">
  36912. <doc>
  36913. <![CDATA[Creates an {@link AuthenticationException}.
  36914. @param msg exception message.]]>
  36915. </doc>
  36916. </constructor>
  36917. <constructor name="AuthenticationException" type="java.lang.String, java.lang.Throwable"
  36918. static="false" final="false" visibility="public"
  36919. deprecated="not deprecated">
  36920. <doc>
  36921. <![CDATA[Creates an {@link AuthenticationException}.
  36922. @param msg exception message.
  36923. @param cause original exception.]]>
  36924. </doc>
  36925. </constructor>
  36926. <doc>
  36927. <![CDATA[Exception thrown when an authentication error occurrs.]]>
  36928. </doc>
  36929. </class>
  36930. <!-- end class org.apache.hadoop.security.authentication.client.AuthenticationException -->
  36931. <!-- start interface org.apache.hadoop.security.authentication.client.Authenticator -->
  36932. <interface name="Authenticator" abstract="true"
  36933. static="false" final="false" visibility="public"
  36934. deprecated="not deprecated">
  36935. <method name="authenticate"
  36936. abstract="false" native="false" synchronized="false"
  36937. static="false" final="false" visibility="public"
  36938. deprecated="not deprecated">
  36939. <param name="url" type="java.net.URL"/>
  36940. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  36941. <exception name="IOException" type="java.io.IOException"/>
  36942. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  36943. <doc>
  36944. <![CDATA[Authenticates against a URL and returns a {@link AuthenticatedURL.Token} to be
  36945. used by subsequent requests.
  36946. @param url the URl to authenticate against.
  36947. @param token the authentication token being used for the user.
  36948. @throws IOException if an IO error occurred.
  36949. @throws AuthenticationException if an authentication error occurred.]]>
  36950. </doc>
  36951. </method>
  36952. <doc>
  36953. <![CDATA[Interface for client authentication mechanisms.
  36954. <p/>
  36955. Implementations are use-once instances, they don't need to be thread safe.]]>
  36956. </doc>
  36957. </interface>
  36958. <!-- end interface org.apache.hadoop.security.authentication.client.Authenticator -->
  36959. <!-- start class org.apache.hadoop.security.authentication.client.KerberosAuthenticator -->
  36960. <class name="KerberosAuthenticator" extends="java.lang.Object"
  36961. abstract="false"
  36962. static="false" final="false" visibility="public"
  36963. deprecated="not deprecated">
  36964. <implements name="org.apache.hadoop.security.authentication.client.Authenticator"/>
  36965. <constructor name="KerberosAuthenticator"
  36966. static="false" final="false" visibility="public"
  36967. deprecated="not deprecated">
  36968. </constructor>
  36969. <method name="authenticate"
  36970. abstract="false" native="false" synchronized="false"
  36971. static="false" final="false" visibility="public"
  36972. deprecated="not deprecated">
  36973. <param name="url" type="java.net.URL"/>
  36974. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  36975. <exception name="IOException" type="java.io.IOException"/>
  36976. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  36977. <doc>
  36978. <![CDATA[Performs SPNEGO authentication against the specified URL.
  36979. <p/>
  36980. If a token is given it does a NOP and returns the given token.
  36981. <p/>
  36982. If no token is given, it will perform the SPNEGO authentication sequence using an
  36983. HTTP <code>OPTIONS</code> request.
  36984. @param url the URl to authenticate against.
  36985. @param token the authentication token being used for the user.
  36986. @throws IOException if an IO error occurred.
  36987. @throws AuthenticationException if an authentication error occurred.]]>
  36988. </doc>
  36989. </method>
  36990. <method name="getFallBackAuthenticator" return="org.apache.hadoop.security.authentication.client.Authenticator"
  36991. abstract="false" native="false" synchronized="false"
  36992. static="false" final="false" visibility="protected"
  36993. deprecated="not deprecated">
  36994. <doc>
  36995. <![CDATA[If the specified URL does not support SPNEGO authentication, a fallback {@link Authenticator} will be used.
  36996. <p/>
  36997. This implementation returns a {@link PseudoAuthenticator}.
  36998. @return the fallback {@link Authenticator}.]]>
  36999. </doc>
  37000. </method>
  37001. <field name="WWW_AUTHENTICATE" type="java.lang.String"
  37002. transient="false" volatile="false"
  37003. static="true" final="true" visibility="public"
  37004. deprecated="not deprecated">
  37005. <doc>
  37006. <![CDATA[HTTP header used by the SPNEGO server endpoint during an authentication sequence.]]>
  37007. </doc>
  37008. </field>
  37009. <field name="AUTHORIZATION" type="java.lang.String"
  37010. transient="false" volatile="false"
  37011. static="true" final="true" visibility="public"
  37012. deprecated="not deprecated">
  37013. <doc>
  37014. <![CDATA[HTTP header used by the SPNEGO client endpoint during an authentication sequence.]]>
  37015. </doc>
  37016. </field>
  37017. <field name="NEGOTIATE" type="java.lang.String"
  37018. transient="false" volatile="false"
  37019. static="true" final="true" visibility="public"
  37020. deprecated="not deprecated">
  37021. <doc>
  37022. <![CDATA[HTTP header prefix used by the SPNEGO client/server endpoints during an authentication sequence.]]>
  37023. </doc>
  37024. </field>
  37025. <doc>
  37026. <![CDATA[The {@link KerberosAuthenticator} implements the Kerberos SPNEGO authentication sequence.
  37027. <p/>
  37028. It uses the default principal for the Kerberos cache (normally set via kinit).
  37029. <p/>
  37030. It falls back to the {@link PseudoAuthenticator} if the HTTP endpoint does not trigger an SPNEGO authentication
  37031. sequence.]]>
  37032. </doc>
  37033. </class>
  37034. <!-- end class org.apache.hadoop.security.authentication.client.KerberosAuthenticator -->
  37035. <!-- start class org.apache.hadoop.security.authentication.client.PseudoAuthenticator -->
  37036. <class name="PseudoAuthenticator" extends="java.lang.Object"
  37037. abstract="false"
  37038. static="false" final="false" visibility="public"
  37039. deprecated="not deprecated">
  37040. <implements name="org.apache.hadoop.security.authentication.client.Authenticator"/>
  37041. <constructor name="PseudoAuthenticator"
  37042. static="false" final="false" visibility="public"
  37043. deprecated="not deprecated">
  37044. </constructor>
  37045. <method name="authenticate"
  37046. abstract="false" native="false" synchronized="false"
  37047. static="false" final="false" visibility="public"
  37048. deprecated="not deprecated">
  37049. <param name="url" type="java.net.URL"/>
  37050. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  37051. <exception name="IOException" type="java.io.IOException"/>
  37052. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  37053. <doc>
  37054. <![CDATA[Performs simple authentication against the specified URL.
  37055. <p/>
  37056. If a token is given it does a NOP and returns the given token.
  37057. <p/>
  37058. If no token is given, it will perform an HTTP <code>OPTIONS</code> request injecting an additional
  37059. parameter {@link #USER_NAME} in the query string with the value returned by the {@link #getUserName()}
  37060. method.
  37061. <p/>
  37062. If the response is successful it will update the authentication token.
  37063. @param url the URl to authenticate against.
  37064. @param token the authencation token being used for the user.
  37065. @throws IOException if an IO error occurred.
  37066. @throws AuthenticationException if an authentication error occurred.]]>
  37067. </doc>
  37068. </method>
  37069. <method name="getUserName" return="java.lang.String"
  37070. abstract="false" native="false" synchronized="false"
  37071. static="false" final="false" visibility="protected"
  37072. deprecated="not deprecated">
  37073. <doc>
  37074. <![CDATA[Returns the current user name.
  37075. <p/>
  37076. This implementation returns the value of the Java system property 'user.name'
  37077. @return the current user name.]]>
  37078. </doc>
  37079. </method>
  37080. <field name="USER_NAME" type="java.lang.String"
  37081. transient="false" volatile="false"
  37082. static="true" final="true" visibility="public"
  37083. deprecated="not deprecated">
  37084. <doc>
  37085. <![CDATA[Name of the additional parameter that carries the 'user.name' value.]]>
  37086. </doc>
  37087. </field>
  37088. <doc>
  37089. <![CDATA[The {@link PseudoAuthenticator} implementation provides an authentication equivalent to Hadoop's
  37090. Simple authentication, it trusts the value of the 'user.name' Java System property.
  37091. <p/>
  37092. The 'user.name' value is propagated using an additional query string parameter {@link #USER_NAME} ('user.name').]]>
  37093. </doc>
  37094. </class>
  37095. <!-- end class org.apache.hadoop.security.authentication.client.PseudoAuthenticator -->
  37096. </package>
  37097. <package name="org.apache.hadoop.security.authentication.server">
  37098. <!-- start class org.apache.hadoop.security.authentication.server.AuthenticationFilter -->
  37099. <class name="AuthenticationFilter" extends="java.lang.Object"
  37100. abstract="false"
  37101. static="false" final="false" visibility="public"
  37102. deprecated="not deprecated">
  37103. <implements name="javax.servlet.Filter"/>
  37104. <constructor name="AuthenticationFilter"
  37105. static="false" final="false" visibility="public"
  37106. deprecated="not deprecated">
  37107. </constructor>
  37108. <method name="init"
  37109. abstract="false" native="false" synchronized="false"
  37110. static="false" final="false" visibility="public"
  37111. deprecated="not deprecated">
  37112. <param name="filterConfig" type="javax.servlet.FilterConfig"/>
  37113. <exception name="ServletException" type="javax.servlet.ServletException"/>
  37114. <doc>
  37115. <![CDATA[Initializes the authentication filter.
  37116. <p/>
  37117. It instantiates and initializes the specified {@link AuthenticationHandler}.
  37118. <p/>
  37119. @param filterConfig filter configuration.
  37120. @throws ServletException thrown if the filter or the authentication handler could not be initialized properly.]]>
  37121. </doc>
  37122. </method>
  37123. <method name="getAuthenticationHandler" return="org.apache.hadoop.security.authentication.server.AuthenticationHandler"
  37124. abstract="false" native="false" synchronized="false"
  37125. static="false" final="false" visibility="protected"
  37126. deprecated="not deprecated">
  37127. <doc>
  37128. <![CDATA[Returns the authentication handler being used.
  37129. @return the authentication handler being used.]]>
  37130. </doc>
  37131. </method>
  37132. <method name="isRandomSecret" return="boolean"
  37133. abstract="false" native="false" synchronized="false"
  37134. static="false" final="false" visibility="protected"
  37135. deprecated="not deprecated">
  37136. <doc>
  37137. <![CDATA[Returns if a random secret is being used.
  37138. @return if a random secret is being used.]]>
  37139. </doc>
  37140. </method>
  37141. <method name="getValidity" return="long"
  37142. abstract="false" native="false" synchronized="false"
  37143. static="false" final="false" visibility="protected"
  37144. deprecated="not deprecated">
  37145. <doc>
  37146. <![CDATA[Returns the validity time of the generated tokens.
  37147. @return the validity time of the generated tokens, in seconds.]]>
  37148. </doc>
  37149. </method>
  37150. <method name="getCookieDomain" return="java.lang.String"
  37151. abstract="false" native="false" synchronized="false"
  37152. static="false" final="false" visibility="protected"
  37153. deprecated="not deprecated">
  37154. <doc>
  37155. <![CDATA[Returns the cookie domain to use for the HTTP cookie.
  37156. @return the cookie domain to use for the HTTP cookie.]]>
  37157. </doc>
  37158. </method>
  37159. <method name="getCookiePath" return="java.lang.String"
  37160. abstract="false" native="false" synchronized="false"
  37161. static="false" final="false" visibility="protected"
  37162. deprecated="not deprecated">
  37163. <doc>
  37164. <![CDATA[Returns the cookie path to use for the HTTP cookie.
  37165. @return the cookie path to use for the HTTP cookie.]]>
  37166. </doc>
  37167. </method>
  37168. <method name="destroy"
  37169. abstract="false" native="false" synchronized="false"
  37170. static="false" final="false" visibility="public"
  37171. deprecated="not deprecated">
  37172. <doc>
  37173. <![CDATA[Destroys the filter.
  37174. <p/>
  37175. It invokes the {@link AuthenticationHandler#destroy()} method to release any resources it may hold.]]>
  37176. </doc>
  37177. </method>
  37178. <method name="getConfiguration" return="java.util.Properties"
  37179. abstract="false" native="false" synchronized="false"
  37180. static="false" final="false" visibility="protected"
  37181. deprecated="not deprecated">
  37182. <param name="configPrefix" type="java.lang.String"/>
  37183. <param name="filterConfig" type="javax.servlet.FilterConfig"/>
  37184. <exception name="ServletException" type="javax.servlet.ServletException"/>
  37185. <doc>
  37186. <![CDATA[Returns the filtered configuration (only properties starting with the specified prefix). The property keys
  37187. are also trimmed from the prefix. The returned {@link Properties} object is used to initialized the
  37188. {@link AuthenticationHandler}.
  37189. <p/>
  37190. This method can be overriden by subclasses to obtain the configuration from other configuration source than
  37191. the web.xml file.
  37192. @param configPrefix configuration prefix to use for extracting configuration properties.
  37193. @param filterConfig filter configuration object
  37194. @return the configuration to be used with the {@link AuthenticationHandler} instance.
  37195. @throws ServletException thrown if the configuration could not be created.]]>
  37196. </doc>
  37197. </method>
  37198. <method name="getRequestURL" return="java.lang.String"
  37199. abstract="false" native="false" synchronized="false"
  37200. static="false" final="false" visibility="protected"
  37201. deprecated="not deprecated">
  37202. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  37203. <doc>
  37204. <![CDATA[Returns the full URL of the request including the query string.
  37205. <p/>
  37206. Used as a convenience method for logging purposes.
  37207. @param request the request object.
  37208. @return the full URL of the request including the query string.]]>
  37209. </doc>
  37210. </method>
  37211. <method name="getToken" return="org.apache.hadoop.security.authentication.server.AuthenticationToken"
  37212. abstract="false" native="false" synchronized="false"
  37213. static="false" final="false" visibility="protected"
  37214. deprecated="not deprecated">
  37215. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  37216. <exception name="IOException" type="java.io.IOException"/>
  37217. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  37218. <doc>
  37219. <![CDATA[Returns the {@link AuthenticationToken} for the request.
  37220. <p/>
  37221. It looks at the received HTTP cookies and extracts the value of the {@link AuthenticatedURL#AUTH_COOKIE}
  37222. if present. It verifies the signature and if correct it creates the {@link AuthenticationToken} and returns
  37223. it.
  37224. <p/>
  37225. If this method returns <code>null</code> the filter will invoke the configured {@link AuthenticationHandler}
  37226. to perform user authentication.
  37227. @param request request object.
  37228. @return the Authentication token if the request is authenticated, <code>null</code> otherwise.
  37229. @throws IOException thrown if an IO error occurred.
  37230. @throws AuthenticationException thrown if the token is invalid or if it has expired.]]>
  37231. </doc>
  37232. </method>
  37233. <method name="doFilter"
  37234. abstract="false" native="false" synchronized="false"
  37235. static="false" final="false" visibility="public"
  37236. deprecated="not deprecated">
  37237. <param name="request" type="javax.servlet.ServletRequest"/>
  37238. <param name="response" type="javax.servlet.ServletResponse"/>
  37239. <param name="filterChain" type="javax.servlet.FilterChain"/>
  37240. <exception name="IOException" type="java.io.IOException"/>
  37241. <exception name="ServletException" type="javax.servlet.ServletException"/>
  37242. <doc>
  37243. <![CDATA[If the request has a valid authentication token it allows the request to continue to the target resource,
  37244. otherwise it triggers an authentication sequence using the configured {@link AuthenticationHandler}.
  37245. @param request the request object.
  37246. @param response the response object.
  37247. @param filterChain the filter chain object.
  37248. @throws IOException thrown if an IO error occurred.
  37249. @throws ServletException thrown if a processing error occurred.]]>
  37250. </doc>
  37251. </method>
  37252. <method name="createCookie" return="javax.servlet.http.Cookie"
  37253. abstract="false" native="false" synchronized="false"
  37254. static="false" final="false" visibility="protected"
  37255. deprecated="not deprecated">
  37256. <param name="token" type="java.lang.String"/>
  37257. <doc>
  37258. <![CDATA[Creates the Hadoop authentiation HTTP cookie.
  37259. <p/>
  37260. It sets the domain and path specified in the configuration.
  37261. @param token authentication token for the cookie.
  37262. @return the HTTP cookie.]]>
  37263. </doc>
  37264. </method>
  37265. <field name="CONFIG_PREFIX" type="java.lang.String"
  37266. transient="false" volatile="false"
  37267. static="true" final="true" visibility="public"
  37268. deprecated="not deprecated">
  37269. <doc>
  37270. <![CDATA[Constant for the property that specifies the configuration prefix.]]>
  37271. </doc>
  37272. </field>
  37273. <field name="AUTH_TYPE" type="java.lang.String"
  37274. transient="false" volatile="false"
  37275. static="true" final="true" visibility="public"
  37276. deprecated="not deprecated">
  37277. <doc>
  37278. <![CDATA[Constant for the property that specifies the authentication handler to use.]]>
  37279. </doc>
  37280. </field>
  37281. <field name="SIGNATURE_SECRET" type="java.lang.String"
  37282. transient="false" volatile="false"
  37283. static="true" final="true" visibility="public"
  37284. deprecated="not deprecated">
  37285. <doc>
  37286. <![CDATA[Constant for the property that specifies the secret to use for signing the HTTP Cookies.]]>
  37287. </doc>
  37288. </field>
  37289. <field name="AUTH_TOKEN_VALIDITY" type="java.lang.String"
  37290. transient="false" volatile="false"
  37291. static="true" final="true" visibility="public"
  37292. deprecated="not deprecated">
  37293. <doc>
  37294. <![CDATA[Constant for the configuration property that indicates the validity of the generated token.]]>
  37295. </doc>
  37296. </field>
  37297. <field name="COOKIE_DOMAIN" type="java.lang.String"
  37298. transient="false" volatile="false"
  37299. static="true" final="true" visibility="public"
  37300. deprecated="not deprecated">
  37301. <doc>
  37302. <![CDATA[Constant for the configuration property that indicates the domain to use in the HTTP cookie.]]>
  37303. </doc>
  37304. </field>
  37305. <field name="COOKIE_PATH" type="java.lang.String"
  37306. transient="false" volatile="false"
  37307. static="true" final="true" visibility="public"
  37308. deprecated="not deprecated">
  37309. <doc>
  37310. <![CDATA[Constant for the configuration property that indicates the path to use in the HTTP cookie.]]>
  37311. </doc>
  37312. </field>
  37313. <doc>
  37314. <![CDATA[The {@link AuthenticationFilter} enables protecting web application resources with different (pluggable)
  37315. authentication mechanisms.
  37316. <p/>
  37317. Out of the box it provides 2 authentication mechanisms: Pseudo and Kerberos SPNEGO.
  37318. <p/>
  37319. Additional authentication mechanisms are supported via the {@link AuthenticationHandler} interface.
  37320. <p/>
  37321. This filter delegates to the configured authentication handler for authentication and once it obtains an
  37322. {@link AuthenticationToken} from it, sets a signed HTTP cookie with the token. For client requests
  37323. that provide the signed HTTP cookie, it verifies the validity of the cookie, extracts the user information
  37324. and lets the request proceed to the target resource.
  37325. <p/>
  37326. The supported configuration properties are:
  37327. <ul>
  37328. <li>config.prefix: indicates the prefix to be used by all other configuration properties, the default value
  37329. is no prefix. See below for details on how/why this prefix is used.</li>
  37330. <li>[#PREFIX#.]type: simple|kerberos|#CLASS#, 'simple' is short for the
  37331. {@link PseudoAuthenticationHandler}, 'kerberos' is short for {@link KerberosAuthenticationHandler}, otherwise
  37332. the full class name of the {@link AuthenticationHandler} must be specified.</li>
  37333. <li>[#PREFIX#.]signature.secret: the secret used to sign the HTTP cookie value. The default value is a random
  37334. value. Unless multiple webapp instances need to share the secret the random value is adequate.</li>
  37335. <li>[#PREFIX#.]token.validity: time -in seconds- that the generated token is valid before a
  37336. new authentication is triggered, default value is <code>3600</code> seconds.</li>
  37337. <li>[#PREFIX#.]cookie.domain: domain to use for the HTTP cookie that stores the authentication token.</li>
  37338. <li>[#PREFIX#.]cookie.path: path to use for the HTTP cookie that stores the authentication token.</li>
  37339. </ul>
  37340. <p/>
  37341. The rest of the configuration properties are specific to the {@link AuthenticationHandler} implementation and the
  37342. {@link AuthenticationFilter} will take all the properties that start with the prefix #PREFIX#, it will remove
  37343. the prefix from it and it will pass them to the the authentication handler for initialization. Properties that do
  37344. not start with the prefix will not be passed to the authentication handler initialization.]]>
  37345. </doc>
  37346. </class>
  37347. <!-- end class org.apache.hadoop.security.authentication.server.AuthenticationFilter -->
  37348. <!-- start interface org.apache.hadoop.security.authentication.server.AuthenticationHandler -->
  37349. <interface name="AuthenticationHandler" abstract="true"
  37350. static="false" final="false" visibility="public"
  37351. deprecated="not deprecated">
  37352. <method name="getType" return="java.lang.String"
  37353. abstract="false" native="false" synchronized="false"
  37354. static="false" final="false" visibility="public"
  37355. deprecated="not deprecated">
  37356. <doc>
  37357. <![CDATA[Returns the authentication type of the authentication handler.
  37358. <p/>
  37359. This should be a name that uniquely identifies the authentication type.
  37360. For example 'simple' or 'kerberos'.
  37361. @return the authentication type of the authentication handler.]]>
  37362. </doc>
  37363. </method>
  37364. <method name="init"
  37365. abstract="false" native="false" synchronized="false"
  37366. static="false" final="false" visibility="public"
  37367. deprecated="not deprecated">
  37368. <param name="config" type="java.util.Properties"/>
  37369. <exception name="ServletException" type="javax.servlet.ServletException"/>
  37370. <doc>
  37371. <![CDATA[Initializes the authentication handler instance.
  37372. <p/>
  37373. This method is invoked by the {@link AuthenticationFilter#init} method.
  37374. @param config configuration properties to initialize the handler.
  37375. @throws ServletException thrown if the handler could not be initialized.]]>
  37376. </doc>
  37377. </method>
  37378. <method name="destroy"
  37379. abstract="false" native="false" synchronized="false"
  37380. static="false" final="false" visibility="public"
  37381. deprecated="not deprecated">
  37382. <doc>
  37383. <![CDATA[Destroys the authentication handler instance.
  37384. <p/>
  37385. This method is invoked by the {@link AuthenticationFilter#destroy} method.]]>
  37386. </doc>
  37387. </method>
  37388. <method name="authenticate" return="org.apache.hadoop.security.authentication.server.AuthenticationToken"
  37389. abstract="false" native="false" synchronized="false"
  37390. static="false" final="false" visibility="public"
  37391. deprecated="not deprecated">
  37392. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  37393. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  37394. <exception name="IOException" type="java.io.IOException"/>
  37395. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  37396. <doc>
  37397. <![CDATA[Performs an authentication step for the given HTTP client request.
  37398. <p/>
  37399. This method is invoked by the {@link AuthenticationFilter} only if the HTTP client request is
  37400. not yet authenticated.
  37401. <p/>
  37402. Depending upon the authentication mechanism being implemented, a particular HTTP client may
  37403. end up making a sequence of invocations before authentication is successfully established (this is
  37404. the case of Kerberos SPNEGO).
  37405. <p/>
  37406. This method must return an {@link AuthenticationToken} only if the the HTTP client request has
  37407. been successfully and fully authenticated.
  37408. <p/>
  37409. If the HTTP client request has not been completely authenticated, this method must take over
  37410. the corresponding HTTP response and it must return <code>null</code>.
  37411. @param request the HTTP client request.
  37412. @param response the HTTP client response.
  37413. @return an {@link AuthenticationToken} if the HTTP client request has been authenticated,
  37414. <code>null</code> otherwise (in this case it must take care of the response).
  37415. @throws IOException thrown if an IO error occurred.
  37416. @throws AuthenticationException thrown if an Authentication error occurred.]]>
  37417. </doc>
  37418. </method>
  37419. <doc>
  37420. <![CDATA[Interface for server authentication mechanisms.
  37421. <p/>
  37422. The {@link AuthenticationFilter} manages the lifecycle of the authentication handler.
  37423. <p/>
  37424. Implementations must be thread-safe as one instance is initialized and used for all requests.]]>
  37425. </doc>
  37426. </interface>
  37427. <!-- end interface org.apache.hadoop.security.authentication.server.AuthenticationHandler -->
  37428. <!-- start class org.apache.hadoop.security.authentication.server.AuthenticationToken -->
  37429. <class name="AuthenticationToken" extends="java.lang.Object"
  37430. abstract="false"
  37431. static="false" final="false" visibility="public"
  37432. deprecated="not deprecated">
  37433. <implements name="java.security.Principal"/>
  37434. <constructor name="AuthenticationToken" type="java.lang.String, java.lang.String, java.lang.String"
  37435. static="false" final="false" visibility="public"
  37436. deprecated="not deprecated">
  37437. <doc>
  37438. <![CDATA[Creates an authentication token.
  37439. @param userName user name.
  37440. @param principal principal (commonly matches the user name, with Kerberos is the full/long principal
  37441. name while the userName is the short name).
  37442. @param type the authentication mechanism name.
  37443. (<code>System.currentTimeMillis() + validityPeriod</code>).]]>
  37444. </doc>
  37445. </constructor>
  37446. <method name="setExpires"
  37447. abstract="false" native="false" synchronized="false"
  37448. static="false" final="false" visibility="public"
  37449. deprecated="not deprecated">
  37450. <param name="expires" type="long"/>
  37451. <doc>
  37452. <![CDATA[Sets the expiration of the token.
  37453. @param expires expiration time of the token in milliseconds since the epoch.]]>
  37454. </doc>
  37455. </method>
  37456. <method name="getUserName" return="java.lang.String"
  37457. abstract="false" native="false" synchronized="false"
  37458. static="false" final="false" visibility="public"
  37459. deprecated="not deprecated">
  37460. <doc>
  37461. <![CDATA[Returns the user name.
  37462. @return the user name.]]>
  37463. </doc>
  37464. </method>
  37465. <method name="getName" return="java.lang.String"
  37466. abstract="false" native="false" synchronized="false"
  37467. static="false" final="false" visibility="public"
  37468. deprecated="not deprecated">
  37469. <doc>
  37470. <![CDATA[Returns the principal name (this method name comes from the JDK {@link Principal} interface).
  37471. @return the principal name.]]>
  37472. </doc>
  37473. </method>
  37474. <method name="getType" return="java.lang.String"
  37475. abstract="false" native="false" synchronized="false"
  37476. static="false" final="false" visibility="public"
  37477. deprecated="not deprecated">
  37478. <doc>
  37479. <![CDATA[Returns the authentication mechanism of the token.
  37480. @return the authentication mechanism of the token.]]>
  37481. </doc>
  37482. </method>
  37483. <method name="getExpires" return="long"
  37484. abstract="false" native="false" synchronized="false"
  37485. static="false" final="false" visibility="public"
  37486. deprecated="not deprecated">
  37487. <doc>
  37488. <![CDATA[Returns the expiration time of the token.
  37489. @return the expiration time of the token, in milliseconds since Epoc.]]>
  37490. </doc>
  37491. </method>
  37492. <method name="isExpired" return="boolean"
  37493. abstract="false" native="false" synchronized="false"
  37494. static="false" final="false" visibility="public"
  37495. deprecated="not deprecated">
  37496. <doc>
  37497. <![CDATA[Returns if the token has expired.
  37498. @return if the token has expired.]]>
  37499. </doc>
  37500. </method>
  37501. <method name="toString" return="java.lang.String"
  37502. abstract="false" native="false" synchronized="false"
  37503. static="false" final="false" visibility="public"
  37504. deprecated="not deprecated">
  37505. <doc>
  37506. <![CDATA[Returns the string representation of the token.
  37507. <p/>
  37508. This string representation is parseable by the {@link #parse} method.
  37509. @return the string representation of the token.]]>
  37510. </doc>
  37511. </method>
  37512. <method name="parse" return="org.apache.hadoop.security.authentication.server.AuthenticationToken"
  37513. abstract="false" native="false" synchronized="false"
  37514. static="true" final="false" visibility="public"
  37515. deprecated="not deprecated">
  37516. <param name="tokenStr" type="java.lang.String"/>
  37517. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  37518. <doc>
  37519. <![CDATA[Parses a string into an authentication token.
  37520. @param tokenStr string representation of a token.
  37521. @return the parsed authentication token.
  37522. @throws AuthenticationException thrown if the string representation could not be parsed into
  37523. an authentication token.]]>
  37524. </doc>
  37525. </method>
  37526. <field name="ANONYMOUS" type="org.apache.hadoop.security.authentication.server.AuthenticationToken"
  37527. transient="false" volatile="false"
  37528. static="true" final="true" visibility="public"
  37529. deprecated="not deprecated">
  37530. <doc>
  37531. <![CDATA[Constant that identifies an anonymous request.]]>
  37532. </doc>
  37533. </field>
  37534. <doc>
  37535. <![CDATA[The {@link AuthenticationToken} contains information about an authenticated
  37536. HTTP client and doubles as the {@link Principal} to be returned by
  37537. authenticated {@link HttpServletRequest}s
  37538. <p/>
  37539. The token can be serialized/deserialized to and from a string as it is sent
  37540. and received in HTTP client responses and requests as a HTTP cookie (this is
  37541. done by the {@link AuthenticationFilter}).]]>
  37542. </doc>
  37543. </class>
  37544. <!-- end class org.apache.hadoop.security.authentication.server.AuthenticationToken -->
  37545. <!-- start class org.apache.hadoop.security.authentication.server.KerberosAuthenticationHandler -->
  37546. <class name="KerberosAuthenticationHandler" extends="java.lang.Object"
  37547. abstract="false"
  37548. static="false" final="false" visibility="public"
  37549. deprecated="not deprecated">
  37550. <implements name="org.apache.hadoop.security.authentication.server.AuthenticationHandler"/>
  37551. <constructor name="KerberosAuthenticationHandler"
  37552. static="false" final="false" visibility="public"
  37553. deprecated="not deprecated">
  37554. </constructor>
  37555. <method name="init"
  37556. abstract="false" native="false" synchronized="false"
  37557. static="false" final="false" visibility="public"
  37558. deprecated="not deprecated">
  37559. <param name="config" type="java.util.Properties"/>
  37560. <exception name="ServletException" type="javax.servlet.ServletException"/>
  37561. <doc>
  37562. <![CDATA[Initializes the authentication handler instance.
  37563. <p/>
  37564. It creates a Kerberos context using the principal and keytab specified in the configuration.
  37565. <p/>
  37566. This method is invoked by the {@link AuthenticationFilter#init} method.
  37567. @param config configuration properties to initialize the handler.
  37568. @throws ServletException thrown if the handler could not be initialized.]]>
  37569. </doc>
  37570. </method>
  37571. <method name="destroy"
  37572. abstract="false" native="false" synchronized="false"
  37573. static="false" final="false" visibility="public"
  37574. deprecated="not deprecated">
  37575. <doc>
  37576. <![CDATA[Releases any resources initialized by the authentication handler.
  37577. <p/>
  37578. It destroys the Kerberos context.]]>
  37579. </doc>
  37580. </method>
  37581. <method name="getType" return="java.lang.String"
  37582. abstract="false" native="false" synchronized="false"
  37583. static="false" final="false" visibility="public"
  37584. deprecated="not deprecated">
  37585. <doc>
  37586. <![CDATA[Returns the authentication type of the authentication handler, 'kerberos'.
  37587. <p/>
  37588. @return the authentication type of the authentication handler, 'kerberos'.]]>
  37589. </doc>
  37590. </method>
  37591. <method name="getPrincipal" return="java.lang.String"
  37592. abstract="false" native="false" synchronized="false"
  37593. static="false" final="false" visibility="protected"
  37594. deprecated="not deprecated">
  37595. <doc>
  37596. <![CDATA[Returns the Kerberos principal used by the authentication handler.
  37597. @return the Kerberos principal used by the authentication handler.]]>
  37598. </doc>
  37599. </method>
  37600. <method name="getKeytab" return="java.lang.String"
  37601. abstract="false" native="false" synchronized="false"
  37602. static="false" final="false" visibility="protected"
  37603. deprecated="not deprecated">
  37604. <doc>
  37605. <![CDATA[Returns the keytab used by the authentication handler.
  37606. @return the keytab used by the authentication handler.]]>
  37607. </doc>
  37608. </method>
  37609. <method name="authenticate" return="org.apache.hadoop.security.authentication.server.AuthenticationToken"
  37610. abstract="false" native="false" synchronized="false"
  37611. static="false" final="false" visibility="public"
  37612. deprecated="not deprecated">
  37613. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  37614. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  37615. <exception name="IOException" type="java.io.IOException"/>
  37616. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  37617. <doc>
  37618. <![CDATA[It enforces the the Kerberos SPNEGO authentication sequence returning an {@link AuthenticationToken} only
  37619. after the Kerberos SPNEGO sequence has completed successfully.
  37620. <p/>
  37621. @param request the HTTP client request.
  37622. @param response the HTTP client response.
  37623. @return an authentication token if the Kerberos SPNEGO sequence is complete and valid,
  37624. <code>null</code> if it is in progress (in this case the handler handles the response to the client).
  37625. @throws IOException thrown if an IO error occurred.
  37626. @throws AuthenticationException thrown if Kerberos SPNEGO sequence failed.]]>
  37627. </doc>
  37628. </method>
  37629. <field name="TYPE" type="java.lang.String"
  37630. transient="false" volatile="false"
  37631. static="true" final="true" visibility="public"
  37632. deprecated="not deprecated">
  37633. <doc>
  37634. <![CDATA[Constant that identifies the authentication mechanism.]]>
  37635. </doc>
  37636. </field>
  37637. <field name="PRINCIPAL" type="java.lang.String"
  37638. transient="false" volatile="false"
  37639. static="true" final="true" visibility="public"
  37640. deprecated="not deprecated">
  37641. <doc>
  37642. <![CDATA[Constant for the configuration property that indicates the kerberos principal.]]>
  37643. </doc>
  37644. </field>
  37645. <field name="KEYTAB" type="java.lang.String"
  37646. transient="false" volatile="false"
  37647. static="true" final="true" visibility="public"
  37648. deprecated="not deprecated">
  37649. <doc>
  37650. <![CDATA[Constant for the configuration property that indicates the keytab file path.]]>
  37651. </doc>
  37652. </field>
  37653. <field name="NAME_RULES" type="java.lang.String"
  37654. transient="false" volatile="false"
  37655. static="true" final="true" visibility="public"
  37656. deprecated="not deprecated">
  37657. <doc>
  37658. <![CDATA[Constant for the configuration property that indicates the Kerberos name
  37659. rules for the Kerberos principals.]]>
  37660. </doc>
  37661. </field>
  37662. <doc>
  37663. <![CDATA[The {@link KerberosAuthenticationHandler} implements the Kerberos SPNEGO authentication mechanism for HTTP.
  37664. <p/>
  37665. The supported configuration properties are:
  37666. <ul>
  37667. <li>kerberos.principal: the Kerberos principal to used by the server. As stated by the Kerberos SPNEGO
  37668. specification, it should be <code>HTTP/${HOSTNAME}@{REALM}</code>. The realm can be omitted from the
  37669. principal as the JDK GSS libraries will use the realm name of the configured default realm.
  37670. It does not have a default value.</li>
  37671. <li>kerberos.keytab: the keytab file containing the credentials for the Kerberos principal.
  37672. It does not have a default value.</li>
  37673. </ul>]]>
  37674. </doc>
  37675. </class>
  37676. <!-- end class org.apache.hadoop.security.authentication.server.KerberosAuthenticationHandler -->
  37677. <!-- start class org.apache.hadoop.security.authentication.server.PseudoAuthenticationHandler -->
  37678. <class name="PseudoAuthenticationHandler" extends="java.lang.Object"
  37679. abstract="false"
  37680. static="false" final="false" visibility="public"
  37681. deprecated="not deprecated">
  37682. <implements name="org.apache.hadoop.security.authentication.server.AuthenticationHandler"/>
  37683. <constructor name="PseudoAuthenticationHandler"
  37684. static="false" final="false" visibility="public"
  37685. deprecated="not deprecated">
  37686. </constructor>
  37687. <method name="init"
  37688. abstract="false" native="false" synchronized="false"
  37689. static="false" final="false" visibility="public"
  37690. deprecated="not deprecated">
  37691. <param name="config" type="java.util.Properties"/>
  37692. <exception name="ServletException" type="javax.servlet.ServletException"/>
  37693. <doc>
  37694. <![CDATA[Initializes the authentication handler instance.
  37695. <p/>
  37696. This method is invoked by the {@link AuthenticationFilter#init} method.
  37697. @param config configuration properties to initialize the handler.
  37698. @throws ServletException thrown if the handler could not be initialized.]]>
  37699. </doc>
  37700. </method>
  37701. <method name="getAcceptAnonymous" return="boolean"
  37702. abstract="false" native="false" synchronized="false"
  37703. static="false" final="false" visibility="protected"
  37704. deprecated="not deprecated">
  37705. <doc>
  37706. <![CDATA[Returns if the handler is configured to support anonymous users.
  37707. @return if the handler is configured to support anonymous users.]]>
  37708. </doc>
  37709. </method>
  37710. <method name="destroy"
  37711. abstract="false" native="false" synchronized="false"
  37712. static="false" final="false" visibility="public"
  37713. deprecated="not deprecated">
  37714. <doc>
  37715. <![CDATA[Releases any resources initialized by the authentication handler.
  37716. <p/>
  37717. This implementation does a NOP.]]>
  37718. </doc>
  37719. </method>
  37720. <method name="getType" return="java.lang.String"
  37721. abstract="false" native="false" synchronized="false"
  37722. static="false" final="false" visibility="public"
  37723. deprecated="not deprecated">
  37724. <doc>
  37725. <![CDATA[Returns the authentication type of the authentication handler, 'simple'.
  37726. <p/>
  37727. @return the authentication type of the authentication handler, 'simple'.]]>
  37728. </doc>
  37729. </method>
  37730. <method name="authenticate" return="org.apache.hadoop.security.authentication.server.AuthenticationToken"
  37731. abstract="false" native="false" synchronized="false"
  37732. static="false" final="false" visibility="public"
  37733. deprecated="not deprecated">
  37734. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  37735. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  37736. <exception name="IOException" type="java.io.IOException"/>
  37737. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  37738. <doc>
  37739. <![CDATA[Authenticates an HTTP client request.
  37740. <p/>
  37741. It extracts the {@link PseudoAuthenticator#USER_NAME} parameter from the query string and creates
  37742. an {@link AuthenticationToken} with it.
  37743. <p/>
  37744. If the HTTP client request does not contain the {@link PseudoAuthenticator#USER_NAME} parameter and
  37745. the handler is configured to allow anonymous users it returns the {@link AuthenticationToken#ANONYMOUS}
  37746. token.
  37747. <p/>
  37748. If the HTTP client request does not contain the {@link PseudoAuthenticator#USER_NAME} parameter and
  37749. the handler is configured to disallow anonymous users it throws an {@link AuthenticationException}.
  37750. @param request the HTTP client request.
  37751. @param response the HTTP client response.
  37752. @return an authentication token if the HTTP client request is accepted and credentials are valid.
  37753. @throws IOException thrown if an IO error occurred.
  37754. @throws AuthenticationException thrown if HTTP client request was not accepted as an authentication request.]]>
  37755. </doc>
  37756. </method>
  37757. <field name="TYPE" type="java.lang.String"
  37758. transient="false" volatile="false"
  37759. static="true" final="true" visibility="public"
  37760. deprecated="not deprecated">
  37761. <doc>
  37762. <![CDATA[Constant that identifies the authentication mechanism.]]>
  37763. </doc>
  37764. </field>
  37765. <field name="ANONYMOUS_ALLOWED" type="java.lang.String"
  37766. transient="false" volatile="false"
  37767. static="true" final="true" visibility="public"
  37768. deprecated="not deprecated">
  37769. <doc>
  37770. <![CDATA[Constant for the configuration property that indicates if anonymous users are allowed.]]>
  37771. </doc>
  37772. </field>
  37773. <doc>
  37774. <![CDATA[The <code>PseudoAuthenticationHandler</code> provides a pseudo authentication mechanism that accepts
  37775. the user name specified as a query string parameter.
  37776. <p/>
  37777. This mimics the model of Hadoop Simple authentication which trust the 'user.name' property provided in
  37778. the configuration object.
  37779. <p/>
  37780. This handler can be configured to support anonymous users.
  37781. <p/>
  37782. The only supported configuration property is:
  37783. <ul>
  37784. <li>simple.anonymous.allowed: <code>true|false</code>, default value is <code>false</code></li>
  37785. </ul>]]>
  37786. </doc>
  37787. </class>
  37788. <!-- end class org.apache.hadoop.security.authentication.server.PseudoAuthenticationHandler -->
  37789. </package>
  37790. <package name="org.apache.hadoop.security.authentication.util">
  37791. <!-- start class org.apache.hadoop.security.authentication.util.KerberosUtil -->
  37792. <class name="KerberosUtil" extends="java.lang.Object"
  37793. abstract="false"
  37794. static="false" final="false" visibility="public"
  37795. deprecated="not deprecated">
  37796. <constructor name="KerberosUtil"
  37797. static="false" final="false" visibility="public"
  37798. deprecated="not deprecated">
  37799. </constructor>
  37800. <method name="getKrb5LoginModuleName" return="java.lang.String"
  37801. abstract="false" native="false" synchronized="false"
  37802. static="true" final="false" visibility="public"
  37803. deprecated="not deprecated">
  37804. </method>
  37805. <method name="getOidInstance" return="org.ietf.jgss.Oid"
  37806. abstract="false" native="false" synchronized="false"
  37807. static="true" final="false" visibility="public"
  37808. deprecated="not deprecated">
  37809. <param name="oidName" type="java.lang.String"/>
  37810. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  37811. <exception name="GSSException" type="org.ietf.jgss.GSSException"/>
  37812. <exception name="NoSuchFieldException" type="java.lang.NoSuchFieldException"/>
  37813. <exception name="IllegalAccessException" type="java.lang.IllegalAccessException"/>
  37814. </method>
  37815. <method name="getDefaultRealm" return="java.lang.String"
  37816. abstract="false" native="false" synchronized="false"
  37817. static="true" final="false" visibility="public"
  37818. deprecated="not deprecated">
  37819. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  37820. <exception name="NoSuchMethodException" type="java.lang.NoSuchMethodException"/>
  37821. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  37822. <exception name="IllegalAccessException" type="java.lang.IllegalAccessException"/>
  37823. <exception name="InvocationTargetException" type="java.lang.reflect.InvocationTargetException"/>
  37824. </method>
  37825. <method name="getServicePrincipal" return="java.lang.String"
  37826. abstract="false" native="false" synchronized="false"
  37827. static="true" final="true" visibility="public"
  37828. deprecated="not deprecated">
  37829. <param name="service" type="java.lang.String"/>
  37830. <param name="hostname" type="java.lang.String"/>
  37831. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  37832. <doc>
  37833. <![CDATA[Create Kerberos principal for a given service and hostname. It converts
  37834. hostname to lower case. If hostname is null or "0.0.0.0", it uses
  37835. dynamically looked-up fqdn of the current host instead.
  37836. @param service
  37837. Service for which you want to generate the principal.
  37838. @param hostname
  37839. Fully-qualified domain name.
  37840. @return Converted Kerberos principal name.
  37841. @throws UnknownHostException
  37842. If no IP address for the local host could be found.]]>
  37843. </doc>
  37844. </method>
  37845. </class>
  37846. <!-- end class org.apache.hadoop.security.authentication.util.KerberosUtil -->
  37847. <!-- start class org.apache.hadoop.security.authentication.util.Signer -->
  37848. <class name="Signer" extends="java.lang.Object"
  37849. abstract="false"
  37850. static="false" final="false" visibility="public"
  37851. deprecated="not deprecated">
  37852. <constructor name="Signer" type="byte[]"
  37853. static="false" final="false" visibility="public"
  37854. deprecated="not deprecated">
  37855. <doc>
  37856. <![CDATA[Creates a Signer instance using the specified secret.
  37857. @param secret secret to use for creating the digest.]]>
  37858. </doc>
  37859. </constructor>
  37860. <method name="sign" return="java.lang.String"
  37861. abstract="false" native="false" synchronized="false"
  37862. static="false" final="false" visibility="public"
  37863. deprecated="not deprecated">
  37864. <param name="str" type="java.lang.String"/>
  37865. <doc>
  37866. <![CDATA[Returns a signed string.
  37867. <p/>
  37868. The signature '&s=SIGNATURE' is appended at the end of the string.
  37869. @param str string to sign.
  37870. @return the signed string.]]>
  37871. </doc>
  37872. </method>
  37873. <method name="verifyAndExtract" return="java.lang.String"
  37874. abstract="false" native="false" synchronized="false"
  37875. static="false" final="false" visibility="public"
  37876. deprecated="not deprecated">
  37877. <param name="signedStr" type="java.lang.String"/>
  37878. <exception name="SignerException" type="org.apache.hadoop.security.authentication.util.SignerException"/>
  37879. <doc>
  37880. <![CDATA[Verifies a signed string and extracts the original string.
  37881. @param signedStr the signed string to verify and extract.
  37882. @return the extracted original string.
  37883. @throws SignerException thrown if the given string is not a signed string or if the signature is invalid.]]>
  37884. </doc>
  37885. </method>
  37886. <method name="computeSignature" return="java.lang.String"
  37887. abstract="false" native="false" synchronized="false"
  37888. static="false" final="false" visibility="protected"
  37889. deprecated="not deprecated">
  37890. <param name="str" type="java.lang.String"/>
  37891. <doc>
  37892. <![CDATA[Returns then signature of a string.
  37893. @param str string to sign.
  37894. @return the signature for the string.]]>
  37895. </doc>
  37896. </method>
  37897. <doc>
  37898. <![CDATA[Signs strings and verifies signed strings using a SHA digest.]]>
  37899. </doc>
  37900. </class>
  37901. <!-- end class org.apache.hadoop.security.authentication.util.Signer -->
  37902. <!-- start class org.apache.hadoop.security.authentication.util.SignerException -->
  37903. <class name="SignerException" extends="java.lang.Exception"
  37904. abstract="false"
  37905. static="false" final="false" visibility="public"
  37906. deprecated="not deprecated">
  37907. <constructor name="SignerException" type="java.lang.String"
  37908. static="false" final="false" visibility="public"
  37909. deprecated="not deprecated">
  37910. <doc>
  37911. <![CDATA[Creates an exception instance.
  37912. @param msg message for the exception.]]>
  37913. </doc>
  37914. </constructor>
  37915. <doc>
  37916. <![CDATA[Exception thrown by {@link Signer} when a string signature is invalid.]]>
  37917. </doc>
  37918. </class>
  37919. <!-- end class org.apache.hadoop.security.authentication.util.SignerException -->
  37920. </package>
  37921. <package name="org.apache.hadoop.security.authorize">
  37922. <!-- start class org.apache.hadoop.security.authorize.AccessControlList -->
  37923. <class name="AccessControlList" extends="java.lang.Object"
  37924. abstract="false"
  37925. static="false" final="false" visibility="public"
  37926. deprecated="not deprecated">
  37927. <implements name="org.apache.hadoop.io.Writable"/>
  37928. <constructor name="AccessControlList"
  37929. static="false" final="false" visibility="public"
  37930. deprecated="not deprecated">
  37931. <doc>
  37932. <![CDATA[This constructor exists primarily for AccessControlList to be Writable.]]>
  37933. </doc>
  37934. </constructor>
  37935. <constructor name="AccessControlList" type="java.lang.String"
  37936. static="false" final="false" visibility="public"
  37937. deprecated="not deprecated">
  37938. <doc>
  37939. <![CDATA[Construct a new ACL from a String representation of the same.
  37940. The String is a a comma separated list of users and groups.
  37941. The user list comes first and is separated by a space followed
  37942. by the group list. For e.g. "user1,user2 group1,group2"
  37943. @param aclString String representation of the ACL]]>
  37944. </doc>
  37945. </constructor>
  37946. <method name="isAllAllowed" return="boolean"
  37947. abstract="false" native="false" synchronized="false"
  37948. static="false" final="false" visibility="public"
  37949. deprecated="not deprecated">
  37950. </method>
  37951. <method name="addUser"
  37952. abstract="false" native="false" synchronized="false"
  37953. static="false" final="false" visibility="public"
  37954. deprecated="not deprecated">
  37955. <param name="user" type="java.lang.String"/>
  37956. </method>
  37957. <method name="isUserAllowed" return="boolean"
  37958. abstract="false" native="false" synchronized="false"
  37959. static="false" final="false" visibility="public"
  37960. deprecated="not deprecated">
  37961. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  37962. </method>
  37963. <method name="toString" return="java.lang.String"
  37964. abstract="false" native="false" synchronized="false"
  37965. static="false" final="false" visibility="public"
  37966. deprecated="not deprecated">
  37967. </method>
  37968. <method name="write"
  37969. abstract="false" native="false" synchronized="false"
  37970. static="false" final="false" visibility="public"
  37971. deprecated="not deprecated">
  37972. <param name="out" type="java.io.DataOutput"/>
  37973. <exception name="IOException" type="java.io.IOException"/>
  37974. </method>
  37975. <method name="readFields"
  37976. abstract="false" native="false" synchronized="false"
  37977. static="false" final="false" visibility="public"
  37978. deprecated="not deprecated">
  37979. <param name="in" type="java.io.DataInput"/>
  37980. <exception name="IOException" type="java.io.IOException"/>
  37981. </method>
  37982. <method name="getACLString" return="java.lang.String"
  37983. abstract="false" native="false" synchronized="false"
  37984. static="false" final="false" visibility="public"
  37985. deprecated="not deprecated">
  37986. <doc>
  37987. <![CDATA[Returns the String representation of this ACL. Unlike toString() method's
  37988. return value, this String can be directly given to the constructor of
  37989. AccessControlList to build AccessControlList object.
  37990. This is the method used by the serialization method write().]]>
  37991. </doc>
  37992. </method>
  37993. <field name="WILDCARD_ACL_VALUE" type="java.lang.String"
  37994. transient="false" volatile="false"
  37995. static="true" final="true" visibility="public"
  37996. deprecated="not deprecated">
  37997. </field>
  37998. <doc>
  37999. <![CDATA[Class representing a configured access control list.]]>
  38000. </doc>
  38001. </class>
  38002. <!-- end class org.apache.hadoop.security.authorize.AccessControlList -->
  38003. <!-- start class org.apache.hadoop.security.authorize.AuthorizationException -->
  38004. <class name="AuthorizationException" extends="org.apache.hadoop.security.AccessControlException"
  38005. abstract="false"
  38006. static="false" final="false" visibility="public"
  38007. deprecated="not deprecated">
  38008. <constructor name="AuthorizationException"
  38009. static="false" final="false" visibility="public"
  38010. deprecated="not deprecated">
  38011. </constructor>
  38012. <constructor name="AuthorizationException" type="java.lang.String"
  38013. static="false" final="false" visibility="public"
  38014. deprecated="not deprecated">
  38015. </constructor>
  38016. <constructor name="AuthorizationException" type="java.lang.Throwable"
  38017. static="false" final="false" visibility="public"
  38018. deprecated="not deprecated">
  38019. <doc>
  38020. <![CDATA[Constructs a new exception with the specified cause and a detail
  38021. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  38022. typically contains the class and detail message of <tt>cause</tt>).
  38023. @param cause the cause (which is saved for later retrieval by the
  38024. {@link #getCause()} method). (A <tt>null</tt> value is
  38025. permitted, and indicates that the cause is nonexistent or
  38026. unknown.)]]>
  38027. </doc>
  38028. </constructor>
  38029. <method name="getStackTrace" return="java.lang.StackTraceElement[]"
  38030. abstract="false" native="false" synchronized="false"
  38031. static="false" final="false" visibility="public"
  38032. deprecated="not deprecated">
  38033. </method>
  38034. <method name="printStackTrace"
  38035. abstract="false" native="false" synchronized="false"
  38036. static="false" final="false" visibility="public"
  38037. deprecated="not deprecated">
  38038. </method>
  38039. <method name="printStackTrace"
  38040. abstract="false" native="false" synchronized="false"
  38041. static="false" final="false" visibility="public"
  38042. deprecated="not deprecated">
  38043. <param name="s" type="java.io.PrintStream"/>
  38044. </method>
  38045. <method name="printStackTrace"
  38046. abstract="false" native="false" synchronized="false"
  38047. static="false" final="false" visibility="public"
  38048. deprecated="not deprecated">
  38049. <param name="s" type="java.io.PrintWriter"/>
  38050. </method>
  38051. <doc>
  38052. <![CDATA[An exception class for authorization-related issues.
  38053. This class <em>does not</em> provide the stack trace for security purposes.]]>
  38054. </doc>
  38055. </class>
  38056. <!-- end class org.apache.hadoop.security.authorize.AuthorizationException -->
  38057. <!-- start class org.apache.hadoop.security.authorize.PolicyProvider -->
  38058. <class name="PolicyProvider" extends="java.lang.Object"
  38059. abstract="true"
  38060. static="false" final="false" visibility="public"
  38061. deprecated="not deprecated">
  38062. <constructor name="PolicyProvider"
  38063. static="false" final="false" visibility="public"
  38064. deprecated="not deprecated">
  38065. </constructor>
  38066. <method name="getServices" return="org.apache.hadoop.security.authorize.Service[]"
  38067. abstract="true" native="false" synchronized="false"
  38068. static="false" final="false" visibility="public"
  38069. deprecated="not deprecated">
  38070. <doc>
  38071. <![CDATA[Get the {@link Service} definitions from the {@link PolicyProvider}.
  38072. @return the {@link Service} definitions]]>
  38073. </doc>
  38074. </method>
  38075. <field name="POLICY_PROVIDER_CONFIG" type="java.lang.String"
  38076. transient="false" volatile="false"
  38077. static="true" final="true" visibility="public"
  38078. deprecated="not deprecated">
  38079. <doc>
  38080. <![CDATA[Configuration key for the {@link PolicyProvider} implementation.]]>
  38081. </doc>
  38082. </field>
  38083. <field name="DEFAULT_POLICY_PROVIDER" type="org.apache.hadoop.security.authorize.PolicyProvider"
  38084. transient="false" volatile="false"
  38085. static="true" final="true" visibility="public"
  38086. deprecated="not deprecated">
  38087. <doc>
  38088. <![CDATA[A default {@link PolicyProvider} without any defined services.]]>
  38089. </doc>
  38090. </field>
  38091. <doc>
  38092. <![CDATA[{@link PolicyProvider} provides the {@link Service} definitions to the
  38093. security {@link Policy} in effect for Hadoop.]]>
  38094. </doc>
  38095. </class>
  38096. <!-- end class org.apache.hadoop.security.authorize.PolicyProvider -->
  38097. <!-- start class org.apache.hadoop.security.authorize.ProxyUsers -->
  38098. <class name="ProxyUsers" extends="java.lang.Object"
  38099. abstract="false"
  38100. static="false" final="false" visibility="public"
  38101. deprecated="not deprecated">
  38102. <constructor name="ProxyUsers"
  38103. static="false" final="false" visibility="public"
  38104. deprecated="not deprecated">
  38105. </constructor>
  38106. <method name="refreshSuperUserGroupsConfiguration"
  38107. abstract="false" native="false" synchronized="false"
  38108. static="true" final="false" visibility="public"
  38109. deprecated="not deprecated">
  38110. <doc>
  38111. <![CDATA[reread the conf and get new values for "hadoop.proxyuser.*.groups/hosts"]]>
  38112. </doc>
  38113. </method>
  38114. <method name="refreshSuperUserGroupsConfiguration"
  38115. abstract="false" native="false" synchronized="true"
  38116. static="true" final="false" visibility="public"
  38117. deprecated="not deprecated">
  38118. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38119. <doc>
  38120. <![CDATA[refresh configuration
  38121. @param conf]]>
  38122. </doc>
  38123. </method>
  38124. <method name="getProxySuperuserGroupConfKey" return="java.lang.String"
  38125. abstract="false" native="false" synchronized="false"
  38126. static="true" final="false" visibility="public"
  38127. deprecated="not deprecated">
  38128. <param name="userName" type="java.lang.String"/>
  38129. <doc>
  38130. <![CDATA[Returns configuration key for effective user groups allowed for a superuser
  38131. @param userName name of the superuser
  38132. @return configuration key for superuser groups]]>
  38133. </doc>
  38134. </method>
  38135. <method name="getProxySuperuserIpConfKey" return="java.lang.String"
  38136. abstract="false" native="false" synchronized="false"
  38137. static="true" final="false" visibility="public"
  38138. deprecated="not deprecated">
  38139. <param name="userName" type="java.lang.String"/>
  38140. <doc>
  38141. <![CDATA[Return configuration key for superuser ip addresses
  38142. @param userName name of the superuser
  38143. @return configuration key for superuser ip-addresses]]>
  38144. </doc>
  38145. </method>
  38146. <method name="authorize"
  38147. abstract="false" native="false" synchronized="true"
  38148. static="true" final="false" visibility="public"
  38149. deprecated="not deprecated">
  38150. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  38151. <param name="remoteAddress" type="java.lang.String"/>
  38152. <param name="newConf" type="org.apache.hadoop.conf.Configuration"/>
  38153. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  38154. <doc>
  38155. <![CDATA[Authorize the superuser which is doing doAs
  38156. @param user ugi of the effective or proxy user which contains a real user
  38157. @param remoteAddress the ip address of client
  38158. @param newConf configuration
  38159. @throws AuthorizationException]]>
  38160. </doc>
  38161. </method>
  38162. <field name="CONF_GROUPS" type="java.lang.String"
  38163. transient="false" volatile="false"
  38164. static="true" final="true" visibility="public"
  38165. deprecated="not deprecated">
  38166. </field>
  38167. <field name="CONF_HADOOP_PROXYUSER" type="java.lang.String"
  38168. transient="false" volatile="false"
  38169. static="true" final="true" visibility="public"
  38170. deprecated="not deprecated">
  38171. </field>
  38172. <field name="CONF_HADOOP_PROXYUSER_RE" type="java.lang.String"
  38173. transient="false" volatile="false"
  38174. static="true" final="true" visibility="public"
  38175. deprecated="not deprecated">
  38176. </field>
  38177. </class>
  38178. <!-- end class org.apache.hadoop.security.authorize.ProxyUsers -->
  38179. <!-- start interface org.apache.hadoop.security.authorize.RefreshAuthorizationPolicyProtocol -->
  38180. <interface name="RefreshAuthorizationPolicyProtocol" abstract="true"
  38181. static="false" final="false" visibility="public"
  38182. deprecated="not deprecated">
  38183. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  38184. <method name="refreshServiceAcl"
  38185. abstract="false" native="false" synchronized="false"
  38186. static="false" final="false" visibility="public"
  38187. deprecated="not deprecated">
  38188. <exception name="IOException" type="java.io.IOException"/>
  38189. <doc>
  38190. <![CDATA[Refresh the service-level authorization policy in-effect.
  38191. @throws IOException]]>
  38192. </doc>
  38193. </method>
  38194. <field name="versionID" type="long"
  38195. transient="false" volatile="false"
  38196. static="true" final="true" visibility="public"
  38197. deprecated="not deprecated">
  38198. <doc>
  38199. <![CDATA[Version 1: Initial version]]>
  38200. </doc>
  38201. </field>
  38202. <doc>
  38203. <![CDATA[Protocol which is used to refresh the authorization policy in use currently.]]>
  38204. </doc>
  38205. </interface>
  38206. <!-- end interface org.apache.hadoop.security.authorize.RefreshAuthorizationPolicyProtocol -->
  38207. <!-- start class org.apache.hadoop.security.authorize.Service -->
  38208. <class name="Service" extends="java.lang.Object"
  38209. abstract="false"
  38210. static="false" final="false" visibility="public"
  38211. deprecated="not deprecated">
  38212. <constructor name="Service" type="java.lang.String, java.lang.Class"
  38213. static="false" final="false" visibility="public"
  38214. deprecated="not deprecated">
  38215. </constructor>
  38216. <method name="getServiceKey" return="java.lang.String"
  38217. abstract="false" native="false" synchronized="false"
  38218. static="false" final="false" visibility="public"
  38219. deprecated="not deprecated">
  38220. <doc>
  38221. <![CDATA[Get the configuration key for the service.
  38222. @return the configuration key for the service]]>
  38223. </doc>
  38224. </method>
  38225. <method name="getProtocol" return="java.lang.Class"
  38226. abstract="false" native="false" synchronized="false"
  38227. static="false" final="false" visibility="public"
  38228. deprecated="not deprecated">
  38229. <doc>
  38230. <![CDATA[Get the protocol for the service
  38231. @return the {@link Class} for the protocol]]>
  38232. </doc>
  38233. </method>
  38234. <doc>
  38235. <![CDATA[An abstract definition of <em>service</em> as related to
  38236. Service Level Authorization for Hadoop.
  38237. Each service defines it's configuration key and also the necessary
  38238. {@link Permission} required to access the service.]]>
  38239. </doc>
  38240. </class>
  38241. <!-- end class org.apache.hadoop.security.authorize.Service -->
  38242. <!-- start class org.apache.hadoop.security.authorize.ServiceAuthorizationManager -->
  38243. <class name="ServiceAuthorizationManager" extends="java.lang.Object"
  38244. abstract="false"
  38245. static="false" final="false" visibility="public"
  38246. deprecated="not deprecated">
  38247. <constructor name="ServiceAuthorizationManager"
  38248. static="false" final="false" visibility="public"
  38249. deprecated="not deprecated">
  38250. </constructor>
  38251. <method name="authorize"
  38252. abstract="false" native="false" synchronized="false"
  38253. static="true" final="false" visibility="public"
  38254. deprecated="not deprecated">
  38255. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  38256. <param name="protocol" type="java.lang.Class"/>
  38257. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38258. <param name="addr" type="java.net.InetAddress"/>
  38259. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  38260. <doc>
  38261. <![CDATA[Authorize the user to access the protocol being used.
  38262. @param user user accessing the service
  38263. @param protocol service being accessed
  38264. @param conf configuration to use
  38265. @param addr InetAddress of the client
  38266. @throws AuthorizationException on authorization failure]]>
  38267. </doc>
  38268. </method>
  38269. <method name="refresh"
  38270. abstract="false" native="false" synchronized="true"
  38271. static="true" final="false" visibility="public"
  38272. deprecated="not deprecated">
  38273. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38274. <param name="provider" type="org.apache.hadoop.security.authorize.PolicyProvider"/>
  38275. </method>
  38276. <field name="SERVICE_AUTHORIZATION_CONFIG" type="java.lang.String"
  38277. transient="false" volatile="false"
  38278. static="true" final="true" visibility="public"
  38279. deprecated="Use
  38280. {@link CommonConfigurationKeys#HADOOP_SECURITY_AUTHORIZATION}
  38281. instead.">
  38282. <doc>
  38283. <![CDATA[Configuration key for controlling service-level authorization for Hadoop.
  38284. @deprecated Use
  38285. {@link CommonConfigurationKeys#HADOOP_SECURITY_AUTHORIZATION}
  38286. instead.]]>
  38287. </doc>
  38288. </field>
  38289. <doc>
  38290. <![CDATA[An authorization manager which handles service-level authorization
  38291. for incoming service requests.]]>
  38292. </doc>
  38293. </class>
  38294. <!-- end class org.apache.hadoop.security.authorize.ServiceAuthorizationManager -->
  38295. </package>
  38296. <package name="org.apache.hadoop.security.token">
  38297. <!-- start class org.apache.hadoop.security.token.SecretManager -->
  38298. <class name="SecretManager" extends="java.lang.Object"
  38299. abstract="true"
  38300. static="false" final="false" visibility="public"
  38301. deprecated="not deprecated">
  38302. <constructor name="SecretManager"
  38303. static="false" final="false" visibility="public"
  38304. deprecated="not deprecated">
  38305. </constructor>
  38306. <method name="createPassword" return="byte[]"
  38307. abstract="true" native="false" synchronized="false"
  38308. static="false" final="false" visibility="protected"
  38309. deprecated="not deprecated">
  38310. <param name="identifier" type="org.apache.hadoop.security.token.TokenIdentifier"/>
  38311. <doc>
  38312. <![CDATA[Create the password for the given identifier.
  38313. identifier may be modified inside this method.
  38314. @param identifier the identifier to use
  38315. @return the new password]]>
  38316. </doc>
  38317. </method>
  38318. <method name="retrievePassword" return="byte[]"
  38319. abstract="true" native="false" synchronized="false"
  38320. static="false" final="false" visibility="public"
  38321. deprecated="not deprecated">
  38322. <param name="identifier" type="org.apache.hadoop.security.token.TokenIdentifier"/>
  38323. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  38324. <doc>
  38325. <![CDATA[Retrieve the password for the given token identifier. Should check the date
  38326. or registry to make sure the token hasn't expired or been revoked. Returns
  38327. the relevant password.
  38328. @param identifier the identifier to validate
  38329. @return the password to use
  38330. @throws InvalidToken the token was invalid]]>
  38331. </doc>
  38332. </method>
  38333. <method name="createIdentifier" return="org.apache.hadoop.security.token.TokenIdentifier"
  38334. abstract="true" native="false" synchronized="false"
  38335. static="false" final="false" visibility="public"
  38336. deprecated="not deprecated">
  38337. <doc>
  38338. <![CDATA[Create an empty token identifier.
  38339. @return the newly created empty token identifier]]>
  38340. </doc>
  38341. </method>
  38342. <method name="generateSecret" return="javax.crypto.SecretKey"
  38343. abstract="false" native="false" synchronized="false"
  38344. static="false" final="false" visibility="protected"
  38345. deprecated="not deprecated">
  38346. <doc>
  38347. <![CDATA[Generate a new random secret key.
  38348. @return the new key]]>
  38349. </doc>
  38350. </method>
  38351. <method name="createPassword" return="byte[]"
  38352. abstract="false" native="false" synchronized="false"
  38353. static="true" final="false" visibility="protected"
  38354. deprecated="not deprecated">
  38355. <param name="identifier" type="byte[]"/>
  38356. <param name="key" type="javax.crypto.SecretKey"/>
  38357. <doc>
  38358. <![CDATA[Compute HMAC of the identifier using the secret key and return the
  38359. output as password
  38360. @param identifier the bytes of the identifier
  38361. @param key the secret key
  38362. @return the bytes of the generated password]]>
  38363. </doc>
  38364. </method>
  38365. <method name="createSecretKey" return="javax.crypto.SecretKey"
  38366. abstract="false" native="false" synchronized="false"
  38367. static="true" final="false" visibility="protected"
  38368. deprecated="not deprecated">
  38369. <param name="key" type="byte[]"/>
  38370. <doc>
  38371. <![CDATA[Convert the byte[] to a secret key
  38372. @param key the byte[] to create a secret key from
  38373. @return the secret key]]>
  38374. </doc>
  38375. </method>
  38376. <doc>
  38377. <![CDATA[The server-side secret manager for each token type.
  38378. @param <T> The type of the token identifier]]>
  38379. </doc>
  38380. </class>
  38381. <!-- end class org.apache.hadoop.security.token.SecretManager -->
  38382. <!-- start class org.apache.hadoop.security.token.SecretManager.InvalidToken -->
  38383. <class name="SecretManager.InvalidToken" extends="java.io.IOException"
  38384. abstract="false"
  38385. static="true" final="false" visibility="public"
  38386. deprecated="not deprecated">
  38387. <constructor name="SecretManager.InvalidToken" type="java.lang.String"
  38388. static="false" final="false" visibility="public"
  38389. deprecated="not deprecated">
  38390. </constructor>
  38391. <doc>
  38392. <![CDATA[The token was invalid and the message explains why.]]>
  38393. </doc>
  38394. </class>
  38395. <!-- end class org.apache.hadoop.security.token.SecretManager.InvalidToken -->
  38396. <!-- start class org.apache.hadoop.security.token.Token -->
  38397. <class name="Token" extends="java.lang.Object"
  38398. abstract="false"
  38399. static="false" final="false" visibility="public"
  38400. deprecated="not deprecated">
  38401. <implements name="org.apache.hadoop.io.Writable"/>
  38402. <constructor name="Token" type="org.apache.hadoop.security.token.TokenIdentifier, org.apache.hadoop.security.token.SecretManager"
  38403. static="false" final="false" visibility="public"
  38404. deprecated="not deprecated">
  38405. <doc>
  38406. <![CDATA[Construct a token given a token identifier and a secret manager for the
  38407. type of the token identifier.
  38408. @param id the token identifier
  38409. @param mgr the secret manager]]>
  38410. </doc>
  38411. </constructor>
  38412. <constructor name="Token" type="byte[], byte[], org.apache.hadoop.io.Text, org.apache.hadoop.io.Text"
  38413. static="false" final="false" visibility="public"
  38414. deprecated="not deprecated">
  38415. <doc>
  38416. <![CDATA[Construct a token from the components.
  38417. @param identifier the token identifier
  38418. @param password the token's password
  38419. @param kind the kind of token
  38420. @param service the service for this token]]>
  38421. </doc>
  38422. </constructor>
  38423. <constructor name="Token"
  38424. static="false" final="false" visibility="public"
  38425. deprecated="not deprecated">
  38426. <doc>
  38427. <![CDATA[Default constructor]]>
  38428. </doc>
  38429. </constructor>
  38430. <constructor name="Token" type="org.apache.hadoop.security.token.Token"
  38431. static="false" final="false" visibility="public"
  38432. deprecated="not deprecated">
  38433. <doc>
  38434. <![CDATA[Clone a token.
  38435. @param other the token to clone]]>
  38436. </doc>
  38437. </constructor>
  38438. <method name="getIdentifier" return="byte[]"
  38439. abstract="false" native="false" synchronized="false"
  38440. static="false" final="false" visibility="public"
  38441. deprecated="not deprecated">
  38442. <doc>
  38443. <![CDATA[Get the token identifier
  38444. @return the token identifier]]>
  38445. </doc>
  38446. </method>
  38447. <method name="getPassword" return="byte[]"
  38448. abstract="false" native="false" synchronized="false"
  38449. static="false" final="false" visibility="public"
  38450. deprecated="not deprecated">
  38451. <doc>
  38452. <![CDATA[Get the token password/secret
  38453. @return the token password/secret]]>
  38454. </doc>
  38455. </method>
  38456. <method name="getKind" return="org.apache.hadoop.io.Text"
  38457. abstract="false" native="false" synchronized="false"
  38458. static="false" final="false" visibility="public"
  38459. deprecated="not deprecated">
  38460. <doc>
  38461. <![CDATA[Get the token kind
  38462. @return the kind of the token]]>
  38463. </doc>
  38464. </method>
  38465. <method name="setKind"
  38466. abstract="false" native="false" synchronized="true"
  38467. static="false" final="false" visibility="public"
  38468. deprecated="not deprecated">
  38469. <param name="newKind" type="org.apache.hadoop.io.Text"/>
  38470. <doc>
  38471. <![CDATA[Set the token kind. This is only intended to be used by services that
  38472. wrap another service's token, such as HFTP wrapping HDFS.
  38473. @param newKind]]>
  38474. </doc>
  38475. </method>
  38476. <method name="getService" return="org.apache.hadoop.io.Text"
  38477. abstract="false" native="false" synchronized="false"
  38478. static="false" final="false" visibility="public"
  38479. deprecated="not deprecated">
  38480. <doc>
  38481. <![CDATA[Get the service on which the token is supposed to be used
  38482. @return the service name]]>
  38483. </doc>
  38484. </method>
  38485. <method name="setService"
  38486. abstract="false" native="false" synchronized="false"
  38487. static="false" final="false" visibility="public"
  38488. deprecated="not deprecated">
  38489. <param name="newService" type="org.apache.hadoop.io.Text"/>
  38490. <doc>
  38491. <![CDATA[Set the service on which the token is supposed to be used
  38492. @param newService the service name]]>
  38493. </doc>
  38494. </method>
  38495. <method name="readFields"
  38496. abstract="false" native="false" synchronized="false"
  38497. static="false" final="false" visibility="public"
  38498. deprecated="not deprecated">
  38499. <param name="in" type="java.io.DataInput"/>
  38500. <exception name="IOException" type="java.io.IOException"/>
  38501. <doc>
  38502. <![CDATA[{@inheritDoc}]]>
  38503. </doc>
  38504. </method>
  38505. <method name="write"
  38506. abstract="false" native="false" synchronized="false"
  38507. static="false" final="false" visibility="public"
  38508. deprecated="not deprecated">
  38509. <param name="out" type="java.io.DataOutput"/>
  38510. <exception name="IOException" type="java.io.IOException"/>
  38511. <doc>
  38512. <![CDATA[{@inheritDoc}]]>
  38513. </doc>
  38514. </method>
  38515. <method name="encodeToUrlString" return="java.lang.String"
  38516. abstract="false" native="false" synchronized="false"
  38517. static="false" final="false" visibility="public"
  38518. deprecated="not deprecated">
  38519. <exception name="IOException" type="java.io.IOException"/>
  38520. <doc>
  38521. <![CDATA[Encode this token as a url safe string
  38522. @return the encoded string
  38523. @throws IOException]]>
  38524. </doc>
  38525. </method>
  38526. <method name="decodeFromUrlString"
  38527. abstract="false" native="false" synchronized="false"
  38528. static="false" final="false" visibility="public"
  38529. deprecated="not deprecated">
  38530. <param name="newValue" type="java.lang.String"/>
  38531. <exception name="IOException" type="java.io.IOException"/>
  38532. <doc>
  38533. <![CDATA[Decode the given url safe string into this token.
  38534. @param newValue the encoded string
  38535. @throws IOException]]>
  38536. </doc>
  38537. </method>
  38538. <method name="equals" return="boolean"
  38539. abstract="false" native="false" synchronized="false"
  38540. static="false" final="false" visibility="public"
  38541. deprecated="not deprecated">
  38542. <param name="right" type="java.lang.Object"/>
  38543. </method>
  38544. <method name="hashCode" return="int"
  38545. abstract="false" native="false" synchronized="false"
  38546. static="false" final="false" visibility="public"
  38547. deprecated="not deprecated">
  38548. </method>
  38549. <method name="toString" return="java.lang.String"
  38550. abstract="false" native="false" synchronized="false"
  38551. static="false" final="false" visibility="public"
  38552. deprecated="not deprecated">
  38553. </method>
  38554. <method name="isManaged" return="boolean"
  38555. abstract="false" native="false" synchronized="false"
  38556. static="false" final="false" visibility="public"
  38557. deprecated="not deprecated">
  38558. <exception name="IOException" type="java.io.IOException"/>
  38559. <doc>
  38560. <![CDATA[Is this token managed so that it can be renewed or cancelled?
  38561. @return true, if it can be renewed and cancelled.]]>
  38562. </doc>
  38563. </method>
  38564. <method name="renew" return="long"
  38565. abstract="false" native="false" synchronized="false"
  38566. static="false" final="false" visibility="public"
  38567. deprecated="not deprecated">
  38568. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38569. <exception name="IOException" type="java.io.IOException"/>
  38570. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  38571. <doc>
  38572. <![CDATA[Renew this delegation token
  38573. @return the new expiration time
  38574. @throws IOException
  38575. @throws InterruptedException]]>
  38576. </doc>
  38577. </method>
  38578. <method name="cancel"
  38579. abstract="false" native="false" synchronized="false"
  38580. static="false" final="false" visibility="public"
  38581. deprecated="not deprecated">
  38582. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38583. <exception name="IOException" type="java.io.IOException"/>
  38584. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  38585. <doc>
  38586. <![CDATA[Cancel this delegation token
  38587. @throws IOException
  38588. @throws InterruptedException]]>
  38589. </doc>
  38590. </method>
  38591. <field name="LOG" type="org.apache.commons.logging.Log"
  38592. transient="false" volatile="false"
  38593. static="true" final="true" visibility="public"
  38594. deprecated="not deprecated">
  38595. </field>
  38596. <doc>
  38597. <![CDATA[The client-side form of the token.]]>
  38598. </doc>
  38599. </class>
  38600. <!-- end class org.apache.hadoop.security.token.Token -->
  38601. <!-- start class org.apache.hadoop.security.token.Token.TrivialRenewer -->
  38602. <class name="Token.TrivialRenewer" extends="org.apache.hadoop.security.token.TokenRenewer"
  38603. abstract="false"
  38604. static="true" final="false" visibility="public"
  38605. deprecated="not deprecated">
  38606. <constructor name="Token.TrivialRenewer"
  38607. static="false" final="false" visibility="public"
  38608. deprecated="not deprecated">
  38609. </constructor>
  38610. <method name="getKind" return="org.apache.hadoop.io.Text"
  38611. abstract="false" native="false" synchronized="false"
  38612. static="false" final="false" visibility="protected"
  38613. deprecated="not deprecated">
  38614. </method>
  38615. <method name="handleKind" return="boolean"
  38616. abstract="false" native="false" synchronized="false"
  38617. static="false" final="false" visibility="public"
  38618. deprecated="not deprecated">
  38619. <param name="kind" type="org.apache.hadoop.io.Text"/>
  38620. </method>
  38621. <method name="isManaged" return="boolean"
  38622. abstract="false" native="false" synchronized="false"
  38623. static="false" final="false" visibility="public"
  38624. deprecated="not deprecated">
  38625. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  38626. </method>
  38627. <method name="renew" return="long"
  38628. abstract="false" native="false" synchronized="false"
  38629. static="false" final="false" visibility="public"
  38630. deprecated="not deprecated">
  38631. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  38632. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38633. </method>
  38634. <method name="cancel"
  38635. abstract="false" native="false" synchronized="false"
  38636. static="false" final="false" visibility="public"
  38637. deprecated="not deprecated">
  38638. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  38639. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38640. <exception name="IOException" type="java.io.IOException"/>
  38641. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  38642. </method>
  38643. <doc>
  38644. <![CDATA[A trivial renewer for token kinds that aren't managed. Sub-classes need
  38645. to implement getKind for their token kind.]]>
  38646. </doc>
  38647. </class>
  38648. <!-- end class org.apache.hadoop.security.token.Token.TrivialRenewer -->
  38649. <!-- start class org.apache.hadoop.security.token.TokenIdentifier -->
  38650. <class name="TokenIdentifier" extends="java.lang.Object"
  38651. abstract="true"
  38652. static="false" final="false" visibility="public"
  38653. deprecated="not deprecated">
  38654. <implements name="org.apache.hadoop.io.Writable"/>
  38655. <constructor name="TokenIdentifier"
  38656. static="false" final="false" visibility="public"
  38657. deprecated="not deprecated">
  38658. </constructor>
  38659. <method name="getKind" return="org.apache.hadoop.io.Text"
  38660. abstract="true" native="false" synchronized="false"
  38661. static="false" final="false" visibility="public"
  38662. deprecated="not deprecated">
  38663. <doc>
  38664. <![CDATA[Get the token kind
  38665. @return the kind of the token]]>
  38666. </doc>
  38667. </method>
  38668. <method name="getUser" return="org.apache.hadoop.security.UserGroupInformation"
  38669. abstract="true" native="false" synchronized="false"
  38670. static="false" final="false" visibility="public"
  38671. deprecated="not deprecated">
  38672. <doc>
  38673. <![CDATA[Get the Ugi with the username encoded in the token identifier
  38674. @return the username. null is returned if username in the identifier is
  38675. empty or null.]]>
  38676. </doc>
  38677. </method>
  38678. <method name="getBytes" return="byte[]"
  38679. abstract="false" native="false" synchronized="false"
  38680. static="false" final="false" visibility="public"
  38681. deprecated="not deprecated">
  38682. <doc>
  38683. <![CDATA[Get the bytes for the token identifier
  38684. @return the bytes of the identifier]]>
  38685. </doc>
  38686. </method>
  38687. <doc>
  38688. <![CDATA[An identifier that identifies a token, may contain public information
  38689. about a token, including its kind (or type).]]>
  38690. </doc>
  38691. </class>
  38692. <!-- end class org.apache.hadoop.security.token.TokenIdentifier -->
  38693. <!-- start interface org.apache.hadoop.security.token.TokenInfo -->
  38694. <interface name="TokenInfo" abstract="true"
  38695. static="false" final="false" visibility="public"
  38696. deprecated="not deprecated">
  38697. <implements name="java.lang.annotation.Annotation"/>
  38698. <method name="value" return="java.lang.Class"
  38699. abstract="false" native="false" synchronized="false"
  38700. static="false" final="false" visibility="public"
  38701. deprecated="not deprecated">
  38702. <doc>
  38703. <![CDATA[The type of TokenSelector to be used]]>
  38704. </doc>
  38705. </method>
  38706. <doc>
  38707. <![CDATA[Indicates Token related information to be used]]>
  38708. </doc>
  38709. </interface>
  38710. <!-- end interface org.apache.hadoop.security.token.TokenInfo -->
  38711. <!-- start class org.apache.hadoop.security.token.TokenRenewer -->
  38712. <class name="TokenRenewer" extends="java.lang.Object"
  38713. abstract="true"
  38714. static="false" final="false" visibility="public"
  38715. deprecated="not deprecated">
  38716. <constructor name="TokenRenewer"
  38717. static="false" final="false" visibility="public"
  38718. deprecated="not deprecated">
  38719. </constructor>
  38720. <method name="handleKind" return="boolean"
  38721. abstract="true" native="false" synchronized="false"
  38722. static="false" final="false" visibility="public"
  38723. deprecated="not deprecated">
  38724. <param name="kind" type="org.apache.hadoop.io.Text"/>
  38725. <doc>
  38726. <![CDATA[Does this renewer handle this kind of token?
  38727. @param kind the kind of the token
  38728. @return true if this renewer can renew it]]>
  38729. </doc>
  38730. </method>
  38731. <method name="isManaged" return="boolean"
  38732. abstract="true" native="false" synchronized="false"
  38733. static="false" final="false" visibility="public"
  38734. deprecated="not deprecated">
  38735. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  38736. <exception name="IOException" type="java.io.IOException"/>
  38737. <doc>
  38738. <![CDATA[Is the given token managed? Only managed tokens may be renewed or
  38739. cancelled.
  38740. @param token the token being checked
  38741. @return true if the token may be renewed or cancelled
  38742. @throws IOException]]>
  38743. </doc>
  38744. </method>
  38745. <method name="renew" return="long"
  38746. abstract="true" native="false" synchronized="false"
  38747. static="false" final="false" visibility="public"
  38748. deprecated="not deprecated">
  38749. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  38750. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38751. <exception name="IOException" type="java.io.IOException"/>
  38752. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  38753. <doc>
  38754. <![CDATA[Renew the given token.
  38755. @return the new expiration time
  38756. @throws IOException
  38757. @throws InterruptedException]]>
  38758. </doc>
  38759. </method>
  38760. <method name="cancel"
  38761. abstract="true" native="false" synchronized="false"
  38762. static="false" final="false" visibility="public"
  38763. deprecated="not deprecated">
  38764. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  38765. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38766. <exception name="IOException" type="java.io.IOException"/>
  38767. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  38768. <doc>
  38769. <![CDATA[Cancel the given token
  38770. @throws IOException
  38771. @throws InterruptedException]]>
  38772. </doc>
  38773. </method>
  38774. <doc>
  38775. <![CDATA[This is the interface for plugins that handle tokens.]]>
  38776. </doc>
  38777. </class>
  38778. <!-- end class org.apache.hadoop.security.token.TokenRenewer -->
  38779. <!-- start interface org.apache.hadoop.security.token.TokenSelector -->
  38780. <interface name="TokenSelector" abstract="true"
  38781. static="false" final="false" visibility="public"
  38782. deprecated="not deprecated">
  38783. <method name="selectToken" return="org.apache.hadoop.security.token.Token"
  38784. abstract="false" native="false" synchronized="false"
  38785. static="false" final="false" visibility="public"
  38786. deprecated="not deprecated">
  38787. <param name="service" type="org.apache.hadoop.io.Text"/>
  38788. <param name="tokens" type="java.util.Collection"/>
  38789. </method>
  38790. <doc>
  38791. <![CDATA[Select token of type T from tokens for use with named service
  38792. @param <T>
  38793. T extends TokenIdentifier]]>
  38794. </doc>
  38795. </interface>
  38796. <!-- end interface org.apache.hadoop.security.token.TokenSelector -->
  38797. </package>
  38798. <package name="org.apache.hadoop.security.token.delegation">
  38799. <!-- start class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier -->
  38800. <class name="AbstractDelegationTokenIdentifier" extends="org.apache.hadoop.security.token.TokenIdentifier"
  38801. abstract="true"
  38802. static="false" final="false" visibility="public"
  38803. deprecated="not deprecated">
  38804. <constructor name="AbstractDelegationTokenIdentifier"
  38805. static="false" final="false" visibility="public"
  38806. deprecated="not deprecated">
  38807. </constructor>
  38808. <constructor name="AbstractDelegationTokenIdentifier" type="org.apache.hadoop.io.Text, org.apache.hadoop.io.Text, org.apache.hadoop.io.Text"
  38809. static="false" final="false" visibility="public"
  38810. deprecated="not deprecated">
  38811. </constructor>
  38812. <method name="getKind" return="org.apache.hadoop.io.Text"
  38813. abstract="true" native="false" synchronized="false"
  38814. static="false" final="false" visibility="public"
  38815. deprecated="not deprecated">
  38816. </method>
  38817. <method name="getUser" return="org.apache.hadoop.security.UserGroupInformation"
  38818. abstract="false" native="false" synchronized="false"
  38819. static="false" final="false" visibility="public"
  38820. deprecated="not deprecated">
  38821. <doc>
  38822. <![CDATA[Get the username encoded in the token identifier
  38823. @return the username or owner]]>
  38824. </doc>
  38825. </method>
  38826. <method name="getRenewer" return="org.apache.hadoop.io.Text"
  38827. abstract="false" native="false" synchronized="false"
  38828. static="false" final="false" visibility="public"
  38829. deprecated="not deprecated">
  38830. </method>
  38831. <method name="setIssueDate"
  38832. abstract="false" native="false" synchronized="false"
  38833. static="false" final="false" visibility="public"
  38834. deprecated="not deprecated">
  38835. <param name="issueDate" type="long"/>
  38836. </method>
  38837. <method name="getIssueDate" return="long"
  38838. abstract="false" native="false" synchronized="false"
  38839. static="false" final="false" visibility="public"
  38840. deprecated="not deprecated">
  38841. </method>
  38842. <method name="setMaxDate"
  38843. abstract="false" native="false" synchronized="false"
  38844. static="false" final="false" visibility="public"
  38845. deprecated="not deprecated">
  38846. <param name="maxDate" type="long"/>
  38847. </method>
  38848. <method name="getMaxDate" return="long"
  38849. abstract="false" native="false" synchronized="false"
  38850. static="false" final="false" visibility="public"
  38851. deprecated="not deprecated">
  38852. </method>
  38853. <method name="setSequenceNumber"
  38854. abstract="false" native="false" synchronized="false"
  38855. static="false" final="false" visibility="public"
  38856. deprecated="not deprecated">
  38857. <param name="seqNum" type="int"/>
  38858. </method>
  38859. <method name="getSequenceNumber" return="int"
  38860. abstract="false" native="false" synchronized="false"
  38861. static="false" final="false" visibility="public"
  38862. deprecated="not deprecated">
  38863. </method>
  38864. <method name="setMasterKeyId"
  38865. abstract="false" native="false" synchronized="false"
  38866. static="false" final="false" visibility="public"
  38867. deprecated="not deprecated">
  38868. <param name="newId" type="int"/>
  38869. </method>
  38870. <method name="getMasterKeyId" return="int"
  38871. abstract="false" native="false" synchronized="false"
  38872. static="false" final="false" visibility="public"
  38873. deprecated="not deprecated">
  38874. </method>
  38875. <method name="equals" return="boolean"
  38876. abstract="false" native="false" synchronized="false"
  38877. static="false" final="false" visibility="public"
  38878. deprecated="not deprecated">
  38879. <param name="obj" type="java.lang.Object"/>
  38880. <doc>
  38881. <![CDATA[{@inheritDoc}]]>
  38882. </doc>
  38883. </method>
  38884. <method name="hashCode" return="int"
  38885. abstract="false" native="false" synchronized="false"
  38886. static="false" final="false" visibility="public"
  38887. deprecated="not deprecated">
  38888. <doc>
  38889. <![CDATA[{@inheritDoc}]]>
  38890. </doc>
  38891. </method>
  38892. <method name="readFields"
  38893. abstract="false" native="false" synchronized="false"
  38894. static="false" final="false" visibility="public"
  38895. deprecated="not deprecated">
  38896. <param name="in" type="java.io.DataInput"/>
  38897. <exception name="IOException" type="java.io.IOException"/>
  38898. </method>
  38899. <method name="write"
  38900. abstract="false" native="false" synchronized="false"
  38901. static="false" final="false" visibility="public"
  38902. deprecated="not deprecated">
  38903. <param name="out" type="java.io.DataOutput"/>
  38904. <exception name="IOException" type="java.io.IOException"/>
  38905. </method>
  38906. <method name="toString" return="java.lang.String"
  38907. abstract="false" native="false" synchronized="false"
  38908. static="false" final="false" visibility="public"
  38909. deprecated="not deprecated">
  38910. </method>
  38911. </class>
  38912. <!-- end class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier -->
  38913. <!-- start class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager -->
  38914. <class name="AbstractDelegationTokenSecretManager" extends="org.apache.hadoop.security.token.SecretManager"
  38915. abstract="true"
  38916. static="false" final="false" visibility="public"
  38917. deprecated="not deprecated">
  38918. <constructor name="AbstractDelegationTokenSecretManager" type="long, long, long, long"
  38919. static="false" final="false" visibility="public"
  38920. deprecated="not deprecated">
  38921. </constructor>
  38922. <method name="startThreads"
  38923. abstract="false" native="false" synchronized="true"
  38924. static="false" final="false" visibility="public"
  38925. deprecated="not deprecated">
  38926. <exception name="IOException" type="java.io.IOException"/>
  38927. <doc>
  38928. <![CDATA[should be called before this object is used]]>
  38929. </doc>
  38930. </method>
  38931. <method name="isRunning" return="boolean"
  38932. abstract="false" native="false" synchronized="true"
  38933. static="false" final="false" visibility="public"
  38934. deprecated="not deprecated">
  38935. <doc>
  38936. <![CDATA[is secretMgr running
  38937. @return true if secret mgr is running]]>
  38938. </doc>
  38939. </method>
  38940. <method name="addKey"
  38941. abstract="false" native="false" synchronized="true"
  38942. static="false" final="false" visibility="public"
  38943. deprecated="not deprecated">
  38944. <param name="key" type="org.apache.hadoop.security.token.delegation.DelegationKey"/>
  38945. <exception name="IOException" type="java.io.IOException"/>
  38946. <doc>
  38947. <![CDATA[Add a previously used master key to cache (when NN restarts),
  38948. should be called before activate().]]>
  38949. </doc>
  38950. </method>
  38951. <method name="getAllKeys" return="org.apache.hadoop.security.token.delegation.DelegationKey[]"
  38952. abstract="false" native="false" synchronized="true"
  38953. static="false" final="false" visibility="public"
  38954. deprecated="not deprecated">
  38955. </method>
  38956. <method name="logUpdateMasterKey"
  38957. abstract="false" native="false" synchronized="false"
  38958. static="false" final="false" visibility="protected"
  38959. deprecated="not deprecated">
  38960. <param name="key" type="org.apache.hadoop.security.token.delegation.DelegationKey"/>
  38961. <exception name="IOException" type="java.io.IOException"/>
  38962. </method>
  38963. <method name="createPassword" return="byte[]"
  38964. abstract="false" native="false" synchronized="true"
  38965. static="false" final="false" visibility="protected"
  38966. deprecated="not deprecated">
  38967. <param name="identifier" type="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier"/>
  38968. </method>
  38969. <method name="retrievePassword" return="byte[]"
  38970. abstract="false" native="false" synchronized="true"
  38971. static="false" final="false" visibility="public"
  38972. deprecated="not deprecated">
  38973. <param name="identifier" type="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier"/>
  38974. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  38975. </method>
  38976. <method name="verifyToken"
  38977. abstract="false" native="false" synchronized="true"
  38978. static="false" final="false" visibility="public"
  38979. deprecated="not deprecated">
  38980. <param name="identifier" type="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier"/>
  38981. <param name="password" type="byte[]"/>
  38982. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  38983. <doc>
  38984. <![CDATA[Verifies that the given identifier and password are valid and match.
  38985. @param identifier Token identifier.
  38986. @param password Password in the token.
  38987. @throws InvalidToken]]>
  38988. </doc>
  38989. </method>
  38990. <method name="renewToken" return="long"
  38991. abstract="false" native="false" synchronized="true"
  38992. static="false" final="false" visibility="public"
  38993. deprecated="not deprecated">
  38994. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  38995. <param name="renewer" type="java.lang.String"/>
  38996. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  38997. <exception name="IOException" type="java.io.IOException"/>
  38998. <doc>
  38999. <![CDATA[Renew a delegation token.
  39000. @param token the token to renew
  39001. @param renewer the full principal name of the user doing the renewal
  39002. @return the new expiration time
  39003. @throws InvalidToken if the token is invalid
  39004. @throws AccessControlException if the user can't renew token]]>
  39005. </doc>
  39006. </method>
  39007. <method name="cancelToken" return="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier"
  39008. abstract="false" native="false" synchronized="true"
  39009. static="false" final="false" visibility="public"
  39010. deprecated="not deprecated">
  39011. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  39012. <param name="canceller" type="java.lang.String"/>
  39013. <exception name="IOException" type="java.io.IOException"/>
  39014. <doc>
  39015. <![CDATA[Cancel a token by removing it from cache.
  39016. @return Identifier of the canceled token
  39017. @throws InvalidToken for invalid token
  39018. @throws AccessControlException if the user isn't allowed to cancel]]>
  39019. </doc>
  39020. </method>
  39021. <method name="createSecretKey" return="javax.crypto.SecretKey"
  39022. abstract="false" native="false" synchronized="false"
  39023. static="true" final="false" visibility="public"
  39024. deprecated="not deprecated">
  39025. <param name="key" type="byte[]"/>
  39026. <doc>
  39027. <![CDATA[Convert the byte[] to a secret key
  39028. @param key the byte[] to create the secret key from
  39029. @return the secret key]]>
  39030. </doc>
  39031. </method>
  39032. <method name="stopThreads"
  39033. abstract="false" native="false" synchronized="true"
  39034. static="false" final="false" visibility="public"
  39035. deprecated="not deprecated">
  39036. </method>
  39037. <field name="currentTokens" type="java.util.Map"
  39038. transient="false" volatile="false"
  39039. static="false" final="true" visibility="protected"
  39040. deprecated="not deprecated">
  39041. <doc>
  39042. <![CDATA[Cache of currently valid tokens, mapping from DelegationTokenIdentifier
  39043. to DelegationTokenInformation. Protected by this object lock.]]>
  39044. </doc>
  39045. </field>
  39046. <field name="delegationTokenSequenceNumber" type="int"
  39047. transient="false" volatile="false"
  39048. static="false" final="false" visibility="protected"
  39049. deprecated="not deprecated">
  39050. <doc>
  39051. <![CDATA[Sequence number to create DelegationTokenIdentifier.
  39052. Protected by this object lock.]]>
  39053. </doc>
  39054. </field>
  39055. <field name="allKeys" type="java.util.Map"
  39056. transient="false" volatile="false"
  39057. static="false" final="true" visibility="protected"
  39058. deprecated="not deprecated">
  39059. <doc>
  39060. <![CDATA[Access to allKeys is protected by this object lock]]>
  39061. </doc>
  39062. </field>
  39063. <field name="currentId" type="int"
  39064. transient="false" volatile="false"
  39065. static="false" final="false" visibility="protected"
  39066. deprecated="not deprecated">
  39067. <doc>
  39068. <![CDATA[Access to currentId is protected by this object lock.]]>
  39069. </doc>
  39070. </field>
  39071. <field name="running" type="boolean"
  39072. transient="false" volatile="true"
  39073. static="false" final="false" visibility="protected"
  39074. deprecated="not deprecated">
  39075. </field>
  39076. </class>
  39077. <!-- end class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager -->
  39078. <!-- start class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager.DelegationTokenInformation -->
  39079. <class name="AbstractDelegationTokenSecretManager.DelegationTokenInformation" extends="java.lang.Object"
  39080. abstract="false"
  39081. static="true" final="false" visibility="public"
  39082. deprecated="not deprecated">
  39083. <constructor name="AbstractDelegationTokenSecretManager.DelegationTokenInformation" type="long, byte[]"
  39084. static="false" final="false" visibility="public"
  39085. deprecated="not deprecated">
  39086. </constructor>
  39087. <method name="getRenewDate" return="long"
  39088. abstract="false" native="false" synchronized="false"
  39089. static="false" final="false" visibility="public"
  39090. deprecated="not deprecated">
  39091. <doc>
  39092. <![CDATA[returns renew date]]>
  39093. </doc>
  39094. </method>
  39095. <doc>
  39096. <![CDATA[Class to encapsulate a token's renew date and password.]]>
  39097. </doc>
  39098. </class>
  39099. <!-- end class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager.DelegationTokenInformation -->
  39100. <!-- start class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSelector -->
  39101. <class name="AbstractDelegationTokenSelector" extends="java.lang.Object"
  39102. abstract="false"
  39103. static="false" final="false" visibility="public"
  39104. deprecated="not deprecated">
  39105. <implements name="org.apache.hadoop.security.token.TokenSelector"/>
  39106. <constructor name="AbstractDelegationTokenSelector" type="org.apache.hadoop.io.Text"
  39107. static="false" final="false" visibility="protected"
  39108. deprecated="not deprecated">
  39109. </constructor>
  39110. <method name="selectToken" return="org.apache.hadoop.security.token.Token"
  39111. abstract="false" native="false" synchronized="false"
  39112. static="false" final="false" visibility="public"
  39113. deprecated="not deprecated">
  39114. <param name="service" type="org.apache.hadoop.io.Text"/>
  39115. <param name="tokens" type="java.util.Collection"/>
  39116. </method>
  39117. <doc>
  39118. <![CDATA[Look through tokens to find the first delegation token that matches the
  39119. service and return it.]]>
  39120. </doc>
  39121. </class>
  39122. <!-- end class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSelector -->
  39123. <!-- start class org.apache.hadoop.security.token.delegation.DelegationKey -->
  39124. <class name="DelegationKey" extends="java.lang.Object"
  39125. abstract="false"
  39126. static="false" final="false" visibility="public"
  39127. deprecated="not deprecated">
  39128. <implements name="org.apache.hadoop.io.Writable"/>
  39129. <constructor name="DelegationKey"
  39130. static="false" final="false" visibility="public"
  39131. deprecated="not deprecated">
  39132. </constructor>
  39133. <constructor name="DelegationKey" type="int, long, javax.crypto.SecretKey"
  39134. static="false" final="false" visibility="public"
  39135. deprecated="not deprecated">
  39136. </constructor>
  39137. <method name="getKeyId" return="int"
  39138. abstract="false" native="false" synchronized="false"
  39139. static="false" final="false" visibility="public"
  39140. deprecated="not deprecated">
  39141. </method>
  39142. <method name="getExpiryDate" return="long"
  39143. abstract="false" native="false" synchronized="false"
  39144. static="false" final="false" visibility="public"
  39145. deprecated="not deprecated">
  39146. </method>
  39147. <method name="getKey" return="javax.crypto.SecretKey"
  39148. abstract="false" native="false" synchronized="false"
  39149. static="false" final="false" visibility="public"
  39150. deprecated="not deprecated">
  39151. </method>
  39152. <method name="setExpiryDate"
  39153. abstract="false" native="false" synchronized="false"
  39154. static="false" final="false" visibility="public"
  39155. deprecated="not deprecated">
  39156. <param name="expiryDate" type="long"/>
  39157. </method>
  39158. <method name="write"
  39159. abstract="false" native="false" synchronized="false"
  39160. static="false" final="false" visibility="public"
  39161. deprecated="not deprecated">
  39162. <param name="out" type="java.io.DataOutput"/>
  39163. <exception name="IOException" type="java.io.IOException"/>
  39164. </method>
  39165. <method name="readFields"
  39166. abstract="false" native="false" synchronized="false"
  39167. static="false" final="false" visibility="public"
  39168. deprecated="not deprecated">
  39169. <param name="in" type="java.io.DataInput"/>
  39170. <exception name="IOException" type="java.io.IOException"/>
  39171. </method>
  39172. <doc>
  39173. <![CDATA[Key used for generating and verifying delegation tokens]]>
  39174. </doc>
  39175. </class>
  39176. <!-- end class org.apache.hadoop.security.token.delegation.DelegationKey -->
  39177. </package>
  39178. <package name="org.apache.hadoop.util">
  39179. <!-- start class org.apache.hadoop.util.ChecksumUtil -->
  39180. <class name="ChecksumUtil" extends="java.lang.Object"
  39181. abstract="false"
  39182. static="false" final="false" visibility="public"
  39183. deprecated="not deprecated">
  39184. <constructor name="ChecksumUtil"
  39185. static="false" final="false" visibility="public"
  39186. deprecated="not deprecated">
  39187. </constructor>
  39188. <method name="updateChunkChecksum"
  39189. abstract="false" native="false" synchronized="false"
  39190. static="true" final="false" visibility="public"
  39191. deprecated="not deprecated">
  39192. <param name="buf" type="byte[]"/>
  39193. <param name="checksumOff" type="int"/>
  39194. <param name="dataOff" type="int"/>
  39195. <param name="dataLen" type="int"/>
  39196. <param name="checksum" type="org.apache.hadoop.util.DataChecksum"/>
  39197. <exception name="IOException" type="java.io.IOException"/>
  39198. <doc>
  39199. <![CDATA[updates the checksum for a buffer
  39200. @param buf - buffer to update the checksum in
  39201. @param checksumOff - offset in the buffer where the checksum is to update
  39202. @param dataOff - offset in the buffer of the data
  39203. @param dataLen - length of data to compute checksum on]]>
  39204. </doc>
  39205. </method>
  39206. </class>
  39207. <!-- end class org.apache.hadoop.util.ChecksumUtil -->
  39208. <!-- start class org.apache.hadoop.util.CyclicIteration -->
  39209. <class name="CyclicIteration" extends="java.lang.Object"
  39210. abstract="false"
  39211. static="false" final="false" visibility="public"
  39212. deprecated="not deprecated">
  39213. <implements name="java.lang.Iterable"/>
  39214. <constructor name="CyclicIteration" type="java.util.NavigableMap, java.lang.Object"
  39215. static="false" final="false" visibility="public"
  39216. deprecated="not deprecated">
  39217. <doc>
  39218. <![CDATA[Construct an {@link Iterable} object,
  39219. so that an {@link Iterator} can be created
  39220. for iterating the given {@link NavigableMap}.
  39221. The iteration begins from the starting key exclusively.]]>
  39222. </doc>
  39223. </constructor>
  39224. <method name="iterator" return="java.util.Iterator"
  39225. abstract="false" native="false" synchronized="false"
  39226. static="false" final="false" visibility="public"
  39227. deprecated="not deprecated">
  39228. <doc>
  39229. <![CDATA[{@inheritDoc}]]>
  39230. </doc>
  39231. </method>
  39232. <doc>
  39233. <![CDATA[Provide an cyclic {@link Iterator} for a {@link NavigableMap}.
  39234. The {@link Iterator} navigates the entries of the map
  39235. according to the map's ordering.
  39236. If the {@link Iterator} hits the last entry of the map,
  39237. it will then continue from the first entry.]]>
  39238. </doc>
  39239. </class>
  39240. <!-- end class org.apache.hadoop.util.CyclicIteration -->
  39241. <!-- start class org.apache.hadoop.util.Daemon -->
  39242. <class name="Daemon" extends="java.lang.Thread"
  39243. abstract="false"
  39244. static="false" final="false" visibility="public"
  39245. deprecated="not deprecated">
  39246. <constructor name="Daemon"
  39247. static="false" final="false" visibility="public"
  39248. deprecated="not deprecated">
  39249. <doc>
  39250. <![CDATA[Construct a daemon thread.]]>
  39251. </doc>
  39252. </constructor>
  39253. <constructor name="Daemon" type="java.lang.Runnable"
  39254. static="false" final="false" visibility="public"
  39255. deprecated="not deprecated">
  39256. <doc>
  39257. <![CDATA[Construct a daemon thread.]]>
  39258. </doc>
  39259. </constructor>
  39260. <constructor name="Daemon" type="java.lang.ThreadGroup, java.lang.Runnable"
  39261. static="false" final="false" visibility="public"
  39262. deprecated="not deprecated">
  39263. <doc>
  39264. <![CDATA[Construct a daemon thread to be part of a specified thread group.]]>
  39265. </doc>
  39266. </constructor>
  39267. <method name="getRunnable" return="java.lang.Runnable"
  39268. abstract="false" native="false" synchronized="false"
  39269. static="false" final="false" visibility="public"
  39270. deprecated="not deprecated">
  39271. </method>
  39272. <doc>
  39273. <![CDATA[A thread that has called {@link Thread#setDaemon(boolean) } with true.]]>
  39274. </doc>
  39275. </class>
  39276. <!-- end class org.apache.hadoop.util.Daemon -->
  39277. <!-- start class org.apache.hadoop.util.DataChecksum -->
  39278. <class name="DataChecksum" extends="java.lang.Object"
  39279. abstract="false"
  39280. static="false" final="false" visibility="public"
  39281. deprecated="not deprecated">
  39282. <implements name="java.util.zip.Checksum"/>
  39283. <method name="newDataChecksum" return="org.apache.hadoop.util.DataChecksum"
  39284. abstract="false" native="false" synchronized="false"
  39285. static="true" final="false" visibility="public"
  39286. deprecated="not deprecated">
  39287. <param name="type" type="int"/>
  39288. <param name="bytesPerChecksum" type="int"/>
  39289. </method>
  39290. <method name="newDataChecksum" return="org.apache.hadoop.util.DataChecksum"
  39291. abstract="false" native="false" synchronized="false"
  39292. static="true" final="false" visibility="public"
  39293. deprecated="not deprecated">
  39294. <param name="bytes" type="byte[]"/>
  39295. <param name="offset" type="int"/>
  39296. <doc>
  39297. <![CDATA[Creates a DataChecksum from HEADER_LEN bytes from arr[offset].
  39298. @return DataChecksum of the type in the array or null in case of an error.]]>
  39299. </doc>
  39300. </method>
  39301. <method name="newDataChecksum" return="org.apache.hadoop.util.DataChecksum"
  39302. abstract="false" native="false" synchronized="false"
  39303. static="true" final="false" visibility="public"
  39304. deprecated="not deprecated">
  39305. <param name="in" type="java.io.DataInputStream"/>
  39306. <exception name="IOException" type="java.io.IOException"/>
  39307. <doc>
  39308. <![CDATA[This constructucts a DataChecksum by reading HEADER_LEN bytes from
  39309. input stream <i>in</i>]]>
  39310. </doc>
  39311. </method>
  39312. <method name="writeHeader"
  39313. abstract="false" native="false" synchronized="false"
  39314. static="false" final="false" visibility="public"
  39315. deprecated="not deprecated">
  39316. <param name="out" type="java.io.DataOutputStream"/>
  39317. <exception name="IOException" type="java.io.IOException"/>
  39318. <doc>
  39319. <![CDATA[Writes the checksum header to the output stream <i>out</i>.]]>
  39320. </doc>
  39321. </method>
  39322. <method name="getHeader" return="byte[]"
  39323. abstract="false" native="false" synchronized="false"
  39324. static="false" final="false" visibility="public"
  39325. deprecated="not deprecated">
  39326. </method>
  39327. <method name="writeValue" return="int"
  39328. abstract="false" native="false" synchronized="false"
  39329. static="false" final="false" visibility="public"
  39330. deprecated="not deprecated">
  39331. <param name="out" type="java.io.DataOutputStream"/>
  39332. <param name="reset" type="boolean"/>
  39333. <exception name="IOException" type="java.io.IOException"/>
  39334. <doc>
  39335. <![CDATA[Writes the current checksum to the stream.
  39336. If <i>reset</i> is true, then resets the checksum.
  39337. @return number of bytes written. Will be equal to getChecksumSize();]]>
  39338. </doc>
  39339. </method>
  39340. <method name="writeValue" return="int"
  39341. abstract="false" native="false" synchronized="false"
  39342. static="false" final="false" visibility="public"
  39343. deprecated="not deprecated">
  39344. <param name="buf" type="byte[]"/>
  39345. <param name="offset" type="int"/>
  39346. <param name="reset" type="boolean"/>
  39347. <exception name="IOException" type="java.io.IOException"/>
  39348. <doc>
  39349. <![CDATA[Writes the current checksum to a buffer.
  39350. If <i>reset</i> is true, then resets the checksum.
  39351. @return number of bytes written. Will be equal to getChecksumSize();]]>
  39352. </doc>
  39353. </method>
  39354. <method name="compare" return="boolean"
  39355. abstract="false" native="false" synchronized="false"
  39356. static="false" final="false" visibility="public"
  39357. deprecated="not deprecated">
  39358. <param name="buf" type="byte[]"/>
  39359. <param name="offset" type="int"/>
  39360. <doc>
  39361. <![CDATA[Compares the checksum located at buf[offset] with the current checksum.
  39362. @return true if the checksum matches and false otherwise.]]>
  39363. </doc>
  39364. </method>
  39365. <method name="getChecksumType" return="int"
  39366. abstract="false" native="false" synchronized="false"
  39367. static="false" final="false" visibility="public"
  39368. deprecated="not deprecated">
  39369. </method>
  39370. <method name="getChecksumSize" return="int"
  39371. abstract="false" native="false" synchronized="false"
  39372. static="false" final="false" visibility="public"
  39373. deprecated="not deprecated">
  39374. </method>
  39375. <method name="getBytesPerChecksum" return="int"
  39376. abstract="false" native="false" synchronized="false"
  39377. static="false" final="false" visibility="public"
  39378. deprecated="not deprecated">
  39379. </method>
  39380. <method name="getNumBytesInSum" return="int"
  39381. abstract="false" native="false" synchronized="false"
  39382. static="false" final="false" visibility="public"
  39383. deprecated="not deprecated">
  39384. </method>
  39385. <method name="getChecksumHeaderSize" return="int"
  39386. abstract="false" native="false" synchronized="false"
  39387. static="true" final="false" visibility="public"
  39388. deprecated="not deprecated">
  39389. </method>
  39390. <method name="getValue" return="long"
  39391. abstract="false" native="false" synchronized="false"
  39392. static="false" final="false" visibility="public"
  39393. deprecated="not deprecated">
  39394. </method>
  39395. <method name="reset"
  39396. abstract="false" native="false" synchronized="false"
  39397. static="false" final="false" visibility="public"
  39398. deprecated="not deprecated">
  39399. </method>
  39400. <method name="update"
  39401. abstract="false" native="false" synchronized="false"
  39402. static="false" final="false" visibility="public"
  39403. deprecated="not deprecated">
  39404. <param name="b" type="byte[]"/>
  39405. <param name="off" type="int"/>
  39406. <param name="len" type="int"/>
  39407. </method>
  39408. <method name="update"
  39409. abstract="false" native="false" synchronized="false"
  39410. static="false" final="false" visibility="public"
  39411. deprecated="not deprecated">
  39412. <param name="b" type="int"/>
  39413. </method>
  39414. <field name="HEADER_LEN" type="int"
  39415. transient="false" volatile="false"
  39416. static="true" final="true" visibility="public"
  39417. deprecated="not deprecated">
  39418. </field>
  39419. <field name="CHECKSUM_NULL" type="int"
  39420. transient="false" volatile="false"
  39421. static="true" final="true" visibility="public"
  39422. deprecated="not deprecated">
  39423. </field>
  39424. <field name="CHECKSUM_CRC32" type="int"
  39425. transient="false" volatile="false"
  39426. static="true" final="true" visibility="public"
  39427. deprecated="not deprecated">
  39428. </field>
  39429. <field name="SIZE_OF_INTEGER" type="int"
  39430. transient="false" volatile="false"
  39431. static="true" final="true" visibility="public"
  39432. deprecated="not deprecated">
  39433. </field>
  39434. <doc>
  39435. <![CDATA[This class provides inteface and utilities for processing checksums for
  39436. DFS data transfers.]]>
  39437. </doc>
  39438. </class>
  39439. <!-- end class org.apache.hadoop.util.DataChecksum -->
  39440. <!-- start class org.apache.hadoop.util.DiskChecker -->
  39441. <class name="DiskChecker" extends="java.lang.Object"
  39442. abstract="false"
  39443. static="false" final="false" visibility="public"
  39444. deprecated="not deprecated">
  39445. <constructor name="DiskChecker"
  39446. static="false" final="false" visibility="public"
  39447. deprecated="not deprecated">
  39448. </constructor>
  39449. <method name="mkdirsWithExistsCheck" return="boolean"
  39450. abstract="false" native="false" synchronized="false"
  39451. static="true" final="false" visibility="public"
  39452. deprecated="not deprecated">
  39453. <param name="dir" type="java.io.File"/>
  39454. <doc>
  39455. <![CDATA[The semantics of mkdirsWithExistsCheck method is different from the mkdirs
  39456. method provided in the Sun's java.io.File class in the following way:
  39457. While creating the non-existent parent directories, this method checks for
  39458. the existence of those directories if the mkdir fails at any point (since
  39459. that directory might have just been created by some other process).
  39460. If both mkdir() and the exists() check fails for any seemingly
  39461. non-existent directory, then we signal an error; Sun's mkdir would signal
  39462. an error (return false) if a directory it is attempting to create already
  39463. exists or the mkdir fails.
  39464. @param dir
  39465. @return true on success, false on failure]]>
  39466. </doc>
  39467. </method>
  39468. <method name="checkDir"
  39469. abstract="false" native="false" synchronized="false"
  39470. static="true" final="false" visibility="public"
  39471. deprecated="not deprecated">
  39472. <param name="dir" type="java.io.File"/>
  39473. <exception name="DiskChecker.DiskErrorException" type="org.apache.hadoop.util.DiskChecker.DiskErrorException"/>
  39474. <doc>
  39475. <![CDATA[Create the directory if it doesn't exist and
  39476. @param dir
  39477. @throws DiskErrorException]]>
  39478. </doc>
  39479. </method>
  39480. <method name="mkdirsWithExistsAndPermissionCheck" return="boolean"
  39481. abstract="false" native="false" synchronized="false"
  39482. static="true" final="false" visibility="public"
  39483. deprecated="not deprecated">
  39484. <param name="localFS" type="org.apache.hadoop.fs.LocalFileSystem"/>
  39485. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  39486. <param name="expected" type="org.apache.hadoop.fs.permission.FsPermission"/>
  39487. <exception name="IOException" type="java.io.IOException"/>
  39488. <doc>
  39489. <![CDATA[Create the directory or check permissions if it already exists.
  39490. The semantics of mkdirsWithExistsAndPermissionCheck method is different
  39491. from the mkdirs method provided in the Sun's java.io.File class in the
  39492. following way:
  39493. While creating the non-existent parent directories, this method checks for
  39494. the existence of those directories if the mkdir fails at any point (since
  39495. that directory might have just been created by some other process).
  39496. If both mkdir() and the exists() check fails for any seemingly
  39497. non-existent directory, then we signal an error; Sun's mkdir would signal
  39498. an error (return false) if a directory it is attempting to create already
  39499. exists or the mkdir fails.
  39500. @param localFS local filesystem
  39501. @param dir directory to be created or checked
  39502. @param expected expected permission
  39503. @return true on success, false on failure]]>
  39504. </doc>
  39505. </method>
  39506. <method name="checkDir"
  39507. abstract="false" native="false" synchronized="false"
  39508. static="true" final="false" visibility="public"
  39509. deprecated="not deprecated">
  39510. <param name="localFS" type="org.apache.hadoop.fs.LocalFileSystem"/>
  39511. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  39512. <param name="expected" type="org.apache.hadoop.fs.permission.FsPermission"/>
  39513. <exception name="DiskChecker.DiskErrorException" type="org.apache.hadoop.util.DiskChecker.DiskErrorException"/>
  39514. <exception name="IOException" type="java.io.IOException"/>
  39515. <doc>
  39516. <![CDATA[Create the local directory if necessary, check permissions and also ensure
  39517. it can be read from and written into.
  39518. @param localFS local filesystem
  39519. @param dir directory
  39520. @param expected permission
  39521. @throws DiskErrorException
  39522. @throws IOException]]>
  39523. </doc>
  39524. </method>
  39525. <doc>
  39526. <![CDATA[Class that provides utility functions for checking disk problem]]>
  39527. </doc>
  39528. </class>
  39529. <!-- end class org.apache.hadoop.util.DiskChecker -->
  39530. <!-- start class org.apache.hadoop.util.DiskChecker.DiskErrorException -->
  39531. <class name="DiskChecker.DiskErrorException" extends="java.io.IOException"
  39532. abstract="false"
  39533. static="true" final="false" visibility="public"
  39534. deprecated="not deprecated">
  39535. <constructor name="DiskChecker.DiskErrorException" type="java.lang.String"
  39536. static="false" final="false" visibility="public"
  39537. deprecated="not deprecated">
  39538. </constructor>
  39539. </class>
  39540. <!-- end class org.apache.hadoop.util.DiskChecker.DiskErrorException -->
  39541. <!-- start class org.apache.hadoop.util.DiskChecker.DiskOutOfSpaceException -->
  39542. <class name="DiskChecker.DiskOutOfSpaceException" extends="java.io.IOException"
  39543. abstract="false"
  39544. static="true" final="false" visibility="public"
  39545. deprecated="not deprecated">
  39546. <constructor name="DiskChecker.DiskOutOfSpaceException" type="java.lang.String"
  39547. static="false" final="false" visibility="public"
  39548. deprecated="not deprecated">
  39549. </constructor>
  39550. </class>
  39551. <!-- end class org.apache.hadoop.util.DiskChecker.DiskOutOfSpaceException -->
  39552. <!-- start class org.apache.hadoop.util.GenericOptionsParser -->
  39553. <class name="GenericOptionsParser" extends="java.lang.Object"
  39554. abstract="false"
  39555. static="false" final="false" visibility="public"
  39556. deprecated="not deprecated">
  39557. <constructor name="GenericOptionsParser" type="org.apache.commons.cli.Options, java.lang.String[]"
  39558. static="false" final="false" visibility="public"
  39559. deprecated="not deprecated">
  39560. <exception name="IOException" type="java.io.IOException"/>
  39561. <doc>
  39562. <![CDATA[Create an options parser with the given options to parse the args.
  39563. @param opts the options
  39564. @param args the command line arguments
  39565. @throws IOException]]>
  39566. </doc>
  39567. </constructor>
  39568. <constructor name="GenericOptionsParser" type="java.lang.String[]"
  39569. static="false" final="false" visibility="public"
  39570. deprecated="not deprecated">
  39571. <exception name="IOException" type="java.io.IOException"/>
  39572. <doc>
  39573. <![CDATA[Create an options parser to parse the args.
  39574. @param args the command line arguments
  39575. @throws IOException]]>
  39576. </doc>
  39577. </constructor>
  39578. <constructor name="GenericOptionsParser" type="org.apache.hadoop.conf.Configuration, java.lang.String[]"
  39579. static="false" final="false" visibility="public"
  39580. deprecated="not deprecated">
  39581. <exception name="IOException" type="java.io.IOException"/>
  39582. <doc>
  39583. <![CDATA[Create a <code>GenericOptionsParser<code> to parse only the generic Hadoop
  39584. arguments.
  39585. The array of string arguments other than the generic arguments can be
  39586. obtained by {@link #getRemainingArgs()}.
  39587. @param conf the <code>Configuration</code> to modify.
  39588. @param args command-line arguments.
  39589. @throws IOException]]>
  39590. </doc>
  39591. </constructor>
  39592. <constructor name="GenericOptionsParser" type="org.apache.hadoop.conf.Configuration, org.apache.commons.cli.Options, java.lang.String[]"
  39593. static="false" final="false" visibility="public"
  39594. deprecated="not deprecated">
  39595. <exception name="IOException" type="java.io.IOException"/>
  39596. <doc>
  39597. <![CDATA[Create a <code>GenericOptionsParser</code> to parse given options as well
  39598. as generic Hadoop options.
  39599. The resulting <code>CommandLine</code> object can be obtained by
  39600. {@link #getCommandLine()}.
  39601. @param conf the configuration to modify
  39602. @param options options built by the caller
  39603. @param args User-specified arguments
  39604. @throws IOException]]>
  39605. </doc>
  39606. </constructor>
  39607. <method name="getRemainingArgs" return="java.lang.String[]"
  39608. abstract="false" native="false" synchronized="false"
  39609. static="false" final="false" visibility="public"
  39610. deprecated="not deprecated">
  39611. <doc>
  39612. <![CDATA[Returns an array of Strings containing only application-specific arguments.
  39613. @return array of <code>String</code>s containing the un-parsed arguments
  39614. or <strong>empty array</strong> if commandLine was not defined.]]>
  39615. </doc>
  39616. </method>
  39617. <method name="getConfiguration" return="org.apache.hadoop.conf.Configuration"
  39618. abstract="false" native="false" synchronized="false"
  39619. static="false" final="false" visibility="public"
  39620. deprecated="not deprecated">
  39621. <doc>
  39622. <![CDATA[Get the modified configuration
  39623. @return the configuration that has the modified parameters.]]>
  39624. </doc>
  39625. </method>
  39626. <method name="getCommandLine" return="org.apache.commons.cli.CommandLine"
  39627. abstract="false" native="false" synchronized="false"
  39628. static="false" final="false" visibility="public"
  39629. deprecated="not deprecated">
  39630. <doc>
  39631. <![CDATA[Returns the commons-cli <code>CommandLine</code> object
  39632. to process the parsed arguments.
  39633. Note: If the object is created with
  39634. {@link #GenericOptionsParser(Configuration, String[])}, then returned
  39635. object will only contain parsed generic options.
  39636. @return <code>CommandLine</code> representing list of arguments
  39637. parsed against Options descriptor.]]>
  39638. </doc>
  39639. </method>
  39640. <method name="getLibJars" return="java.net.URL[]"
  39641. abstract="false" native="false" synchronized="false"
  39642. static="true" final="false" visibility="public"
  39643. deprecated="not deprecated">
  39644. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  39645. <exception name="IOException" type="java.io.IOException"/>
  39646. <doc>
  39647. <![CDATA[If libjars are set in the conf, parse the libjars.
  39648. @param conf
  39649. @return libjar urls
  39650. @throws IOException]]>
  39651. </doc>
  39652. </method>
  39653. <method name="printGenericCommandUsage"
  39654. abstract="false" native="false" synchronized="false"
  39655. static="true" final="false" visibility="public"
  39656. deprecated="not deprecated">
  39657. <param name="out" type="java.io.PrintStream"/>
  39658. <doc>
  39659. <![CDATA[Print the usage message for generic command-line options supported.
  39660. @param out stream to print the usage message to.]]>
  39661. </doc>
  39662. </method>
  39663. <doc>
  39664. <![CDATA[<code>GenericOptionsParser</code> is a utility to parse command line
  39665. arguments generic to the Hadoop framework.
  39666. <code>GenericOptionsParser</code> recognizes several standarad command
  39667. line arguments, enabling applications to easily specify a namenode, a
  39668. jobtracker, additional configuration resources etc.
  39669. <h4 id="GenericOptions">Generic Options</h4>
  39670. <p>The supported generic options are:</p>
  39671. <p><blockquote><pre>
  39672. -conf &lt;configuration file&gt; specify a configuration file
  39673. -D &lt;property=value&gt; use value for given property
  39674. -fs &lt;local|namenode:port&gt; specify a namenode
  39675. -jt &lt;local|jobtracker:port&gt; specify a job tracker
  39676. -files &lt;comma separated list of files&gt; specify comma separated
  39677. files to be copied to the map reduce cluster
  39678. -libjars &lt;comma separated list of jars&gt; specify comma separated
  39679. jar files to include in the classpath.
  39680. -archives &lt;comma separated list of archives&gt; specify comma
  39681. separated archives to be unarchived on the compute machines.
  39682. </pre></blockquote></p>
  39683. <p>The general command line syntax is:</p>
  39684. <p><tt><pre>
  39685. bin/hadoop command [genericOptions] [commandOptions]
  39686. </pre></tt></p>
  39687. <p>Generic command line arguments <strong>might</strong> modify
  39688. <code>Configuration </code> objects, given to constructors.</p>
  39689. <p>The functionality is implemented using Commons CLI.</p>
  39690. <p>Examples:</p>
  39691. <p><blockquote><pre>
  39692. $ bin/hadoop dfs -fs darwin:8020 -ls /data
  39693. list /data directory in dfs with namenode darwin:8020
  39694. $ bin/hadoop dfs -D fs.default.name=darwin:8020 -ls /data
  39695. list /data directory in dfs with namenode darwin:8020
  39696. $ bin/hadoop dfs -conf hadoop-site.xml -ls /data
  39697. list /data directory in dfs with conf specified in hadoop-site.xml
  39698. $ bin/hadoop job -D mapred.job.tracker=darwin:50020 -submit job.xml
  39699. submit a job to job tracker darwin:50020
  39700. $ bin/hadoop job -jt darwin:50020 -submit job.xml
  39701. submit a job to job tracker darwin:50020
  39702. $ bin/hadoop job -jt local -submit job.xml
  39703. submit a job to local runner
  39704. $ bin/hadoop jar -libjars testlib.jar
  39705. -archives test.tgz -files file.txt inputjar args
  39706. job submission with libjars, files and archives
  39707. </pre></blockquote></p>
  39708. @see Tool
  39709. @see ToolRunner]]>
  39710. </doc>
  39711. </class>
  39712. <!-- end class org.apache.hadoop.util.GenericOptionsParser -->
  39713. <!-- start class org.apache.hadoop.util.GenericsUtil -->
  39714. <class name="GenericsUtil" extends="java.lang.Object"
  39715. abstract="false"
  39716. static="false" final="false" visibility="public"
  39717. deprecated="not deprecated">
  39718. <constructor name="GenericsUtil"
  39719. static="false" final="false" visibility="public"
  39720. deprecated="not deprecated">
  39721. </constructor>
  39722. <method name="getClass" return="java.lang.Class"
  39723. abstract="false" native="false" synchronized="false"
  39724. static="true" final="false" visibility="public"
  39725. deprecated="not deprecated">
  39726. <param name="t" type="java.lang.Object"/>
  39727. <doc>
  39728. <![CDATA[Returns the Class object (of type <code>Class&lt;T&gt;</code>) of the
  39729. argument of type <code>T</code>.
  39730. @param <T> The type of the argument
  39731. @param t the object to get it class
  39732. @return <code>Class&lt;T&gt;</code>]]>
  39733. </doc>
  39734. </method>
  39735. <method name="toArray" return="java.lang.Object[]"
  39736. abstract="false" native="false" synchronized="false"
  39737. static="true" final="false" visibility="public"
  39738. deprecated="not deprecated">
  39739. <param name="c" type="java.lang.Class"/>
  39740. <param name="list" type="java.util.List"/>
  39741. <doc>
  39742. <![CDATA[Converts the given <code>List&lt;T&gt;</code> to a an array of
  39743. <code>T[]</code>.
  39744. @param c the Class object of the items in the list
  39745. @param list the list to convert]]>
  39746. </doc>
  39747. </method>
  39748. <method name="toArray" return="java.lang.Object[]"
  39749. abstract="false" native="false" synchronized="false"
  39750. static="true" final="false" visibility="public"
  39751. deprecated="not deprecated">
  39752. <param name="list" type="java.util.List"/>
  39753. <doc>
  39754. <![CDATA[Converts the given <code>List&lt;T&gt;</code> to a an array of
  39755. <code>T[]</code>.
  39756. @param list the list to convert
  39757. @throws ArrayIndexOutOfBoundsException if the list is empty.
  39758. Use {@link #toArray(Class, List)} if the list may be empty.]]>
  39759. </doc>
  39760. </method>
  39761. <doc>
  39762. <![CDATA[Contains utility methods for dealing with Java Generics.]]>
  39763. </doc>
  39764. </class>
  39765. <!-- end class org.apache.hadoop.util.GenericsUtil -->
  39766. <!-- start class org.apache.hadoop.util.HeapSort -->
  39767. <class name="HeapSort" extends="java.lang.Object"
  39768. abstract="false"
  39769. static="false" final="true" visibility="public"
  39770. deprecated="not deprecated">
  39771. <implements name="org.apache.hadoop.util.IndexedSorter"/>
  39772. <constructor name="HeapSort"
  39773. static="false" final="false" visibility="public"
  39774. deprecated="not deprecated">
  39775. </constructor>
  39776. <method name="sort"
  39777. abstract="false" native="false" synchronized="false"
  39778. static="false" final="false" visibility="public"
  39779. deprecated="not deprecated">
  39780. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  39781. <param name="p" type="int"/>
  39782. <param name="r" type="int"/>
  39783. <doc>
  39784. <![CDATA[Sort the given range of items using heap sort.
  39785. {@inheritDoc}]]>
  39786. </doc>
  39787. </method>
  39788. <method name="sort"
  39789. abstract="false" native="false" synchronized="false"
  39790. static="false" final="false" visibility="public"
  39791. deprecated="not deprecated">
  39792. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  39793. <param name="p" type="int"/>
  39794. <param name="r" type="int"/>
  39795. <param name="rep" type="org.apache.hadoop.util.Progressable"/>
  39796. <doc>
  39797. <![CDATA[{@inheritDoc}]]>
  39798. </doc>
  39799. </method>
  39800. <doc>
  39801. <![CDATA[An implementation of the core algorithm of HeapSort.]]>
  39802. </doc>
  39803. </class>
  39804. <!-- end class org.apache.hadoop.util.HeapSort -->
  39805. <!-- start class org.apache.hadoop.util.HostsFileReader -->
  39806. <class name="HostsFileReader" extends="java.lang.Object"
  39807. abstract="false"
  39808. static="false" final="false" visibility="public"
  39809. deprecated="not deprecated">
  39810. <constructor name="HostsFileReader" type="java.lang.String, java.lang.String"
  39811. static="false" final="false" visibility="public"
  39812. deprecated="not deprecated">
  39813. <exception name="IOException" type="java.io.IOException"/>
  39814. </constructor>
  39815. <method name="refresh"
  39816. abstract="false" native="false" synchronized="true"
  39817. static="false" final="false" visibility="public"
  39818. deprecated="not deprecated">
  39819. <exception name="IOException" type="java.io.IOException"/>
  39820. </method>
  39821. <method name="getHosts" return="java.util.Set"
  39822. abstract="false" native="false" synchronized="true"
  39823. static="false" final="false" visibility="public"
  39824. deprecated="not deprecated">
  39825. </method>
  39826. <method name="getExcludedHosts" return="java.util.Set"
  39827. abstract="false" native="false" synchronized="true"
  39828. static="false" final="false" visibility="public"
  39829. deprecated="not deprecated">
  39830. </method>
  39831. <method name="setIncludesFile"
  39832. abstract="false" native="false" synchronized="true"
  39833. static="false" final="false" visibility="public"
  39834. deprecated="not deprecated">
  39835. <param name="includesFile" type="java.lang.String"/>
  39836. </method>
  39837. <method name="setExcludesFile"
  39838. abstract="false" native="false" synchronized="true"
  39839. static="false" final="false" visibility="public"
  39840. deprecated="not deprecated">
  39841. <param name="excludesFile" type="java.lang.String"/>
  39842. </method>
  39843. <method name="updateFileNames"
  39844. abstract="false" native="false" synchronized="true"
  39845. static="false" final="false" visibility="public"
  39846. deprecated="not deprecated">
  39847. <param name="includesFile" type="java.lang.String"/>
  39848. <param name="excludesFile" type="java.lang.String"/>
  39849. <exception name="IOException" type="java.io.IOException"/>
  39850. </method>
  39851. </class>
  39852. <!-- end class org.apache.hadoop.util.HostsFileReader -->
  39853. <!-- start interface org.apache.hadoop.util.IndexedSortable -->
  39854. <interface name="IndexedSortable" abstract="true"
  39855. static="false" final="false" visibility="public"
  39856. deprecated="not deprecated">
  39857. <method name="compare" return="int"
  39858. abstract="false" native="false" synchronized="false"
  39859. static="false" final="false" visibility="public"
  39860. deprecated="not deprecated">
  39861. <param name="i" type="int"/>
  39862. <param name="j" type="int"/>
  39863. <doc>
  39864. <![CDATA[Compare items at the given addresses consistent with the semantics of
  39865. {@link java.util.Comparator#compare(Object, Object)}.]]>
  39866. </doc>
  39867. </method>
  39868. <method name="swap"
  39869. abstract="false" native="false" synchronized="false"
  39870. static="false" final="false" visibility="public"
  39871. deprecated="not deprecated">
  39872. <param name="i" type="int"/>
  39873. <param name="j" type="int"/>
  39874. <doc>
  39875. <![CDATA[Swap items at the given addresses.]]>
  39876. </doc>
  39877. </method>
  39878. <doc>
  39879. <![CDATA[Interface for collections capable of being sorted by {@link IndexedSorter}
  39880. algorithms.]]>
  39881. </doc>
  39882. </interface>
  39883. <!-- end interface org.apache.hadoop.util.IndexedSortable -->
  39884. <!-- start interface org.apache.hadoop.util.IndexedSorter -->
  39885. <interface name="IndexedSorter" abstract="true"
  39886. static="false" final="false" visibility="public"
  39887. deprecated="not deprecated">
  39888. <method name="sort"
  39889. abstract="false" native="false" synchronized="false"
  39890. static="false" final="false" visibility="public"
  39891. deprecated="not deprecated">
  39892. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  39893. <param name="l" type="int"/>
  39894. <param name="r" type="int"/>
  39895. <doc>
  39896. <![CDATA[Sort the items accessed through the given IndexedSortable over the given
  39897. range of logical indices. From the perspective of the sort algorithm,
  39898. each index between l (inclusive) and r (exclusive) is an addressable
  39899. entry.
  39900. @see IndexedSortable#compare
  39901. @see IndexedSortable#swap]]>
  39902. </doc>
  39903. </method>
  39904. <method name="sort"
  39905. abstract="false" native="false" synchronized="false"
  39906. static="false" final="false" visibility="public"
  39907. deprecated="not deprecated">
  39908. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  39909. <param name="l" type="int"/>
  39910. <param name="r" type="int"/>
  39911. <param name="rep" type="org.apache.hadoop.util.Progressable"/>
  39912. <doc>
  39913. <![CDATA[Same as {@link #sort(IndexedSortable,int,int)}, but indicate progress
  39914. periodically.
  39915. @see #sort(IndexedSortable,int,int)]]>
  39916. </doc>
  39917. </method>
  39918. <doc>
  39919. <![CDATA[Interface for sort algorithms accepting {@link IndexedSortable} items.
  39920. A sort algorithm implementing this interface may only
  39921. {@link IndexedSortable#compare} and {@link IndexedSortable#swap} items
  39922. for a range of indices to effect a sort across that range.]]>
  39923. </doc>
  39924. </interface>
  39925. <!-- end interface org.apache.hadoop.util.IndexedSorter -->
  39926. <!-- start class org.apache.hadoop.util.LineReader -->
  39927. <class name="LineReader" extends="java.lang.Object"
  39928. abstract="false"
  39929. static="false" final="false" visibility="public"
  39930. deprecated="not deprecated">
  39931. <constructor name="LineReader" type="java.io.InputStream"
  39932. static="false" final="false" visibility="public"
  39933. deprecated="not deprecated">
  39934. <doc>
  39935. <![CDATA[Create a line reader that reads from the given stream using the
  39936. default buffer-size (64k).
  39937. @param in The input stream
  39938. @throws IOException]]>
  39939. </doc>
  39940. </constructor>
  39941. <constructor name="LineReader" type="java.io.InputStream, int"
  39942. static="false" final="false" visibility="public"
  39943. deprecated="not deprecated">
  39944. <doc>
  39945. <![CDATA[Create a line reader that reads from the given stream using the
  39946. given buffer-size.
  39947. @param in The input stream
  39948. @param bufferSize Size of the read buffer
  39949. @throws IOException]]>
  39950. </doc>
  39951. </constructor>
  39952. <constructor name="LineReader" type="java.io.InputStream, org.apache.hadoop.conf.Configuration"
  39953. static="false" final="false" visibility="public"
  39954. deprecated="not deprecated">
  39955. <exception name="IOException" type="java.io.IOException"/>
  39956. <doc>
  39957. <![CDATA[Create a line reader that reads from the given stream using the
  39958. <code>io.file.buffer.size</code> specified in the given
  39959. <code>Configuration</code>.
  39960. @param in input stream
  39961. @param conf configuration
  39962. @throws IOException]]>
  39963. </doc>
  39964. </constructor>
  39965. <method name="close"
  39966. abstract="false" native="false" synchronized="false"
  39967. static="false" final="false" visibility="public"
  39968. deprecated="not deprecated">
  39969. <exception name="IOException" type="java.io.IOException"/>
  39970. <doc>
  39971. <![CDATA[Close the underlying stream.
  39972. @throws IOException]]>
  39973. </doc>
  39974. </method>
  39975. <method name="readLine" return="int"
  39976. abstract="false" native="false" synchronized="false"
  39977. static="false" final="false" visibility="public"
  39978. deprecated="not deprecated">
  39979. <param name="str" type="org.apache.hadoop.io.Text"/>
  39980. <param name="maxLineLength" type="int"/>
  39981. <param name="maxBytesToConsume" type="int"/>
  39982. <exception name="IOException" type="java.io.IOException"/>
  39983. <doc>
  39984. <![CDATA[Read one line from the InputStream into the given Text. A line
  39985. can be terminated by one of the following: '\n' (LF) , '\r' (CR),
  39986. or '\r\n' (CR+LF). EOF also terminates an otherwise unterminated
  39987. line.
  39988. @param str the object to store the given line (without newline)
  39989. @param maxLineLength the maximum number of bytes to store into str;
  39990. the rest of the line is silently discarded.
  39991. @param maxBytesToConsume the maximum number of bytes to consume
  39992. in this call. This is only a hint, because if the line cross
  39993. this threshold, we allow it to happen. It can overshoot
  39994. potentially by as much as one buffer length.
  39995. @return the number of bytes read including the (longest) newline
  39996. found.
  39997. @throws IOException if the underlying stream throws]]>
  39998. </doc>
  39999. </method>
  40000. <method name="readLine" return="int"
  40001. abstract="false" native="false" synchronized="false"
  40002. static="false" final="false" visibility="public"
  40003. deprecated="not deprecated">
  40004. <param name="str" type="org.apache.hadoop.io.Text"/>
  40005. <param name="maxLineLength" type="int"/>
  40006. <exception name="IOException" type="java.io.IOException"/>
  40007. <doc>
  40008. <![CDATA[Read from the InputStream into the given Text.
  40009. @param str the object to store the given line
  40010. @param maxLineLength the maximum number of bytes to store into str.
  40011. @return the number of bytes read including the newline
  40012. @throws IOException if the underlying stream throws]]>
  40013. </doc>
  40014. </method>
  40015. <method name="readLine" return="int"
  40016. abstract="false" native="false" synchronized="false"
  40017. static="false" final="false" visibility="public"
  40018. deprecated="not deprecated">
  40019. <param name="str" type="org.apache.hadoop.io.Text"/>
  40020. <exception name="IOException" type="java.io.IOException"/>
  40021. <doc>
  40022. <![CDATA[Read from the InputStream into the given Text.
  40023. @param str the object to store the given line
  40024. @return the number of bytes read including the newline
  40025. @throws IOException if the underlying stream throws]]>
  40026. </doc>
  40027. </method>
  40028. <doc>
  40029. <![CDATA[A class that provides a line reader from an input stream.]]>
  40030. </doc>
  40031. </class>
  40032. <!-- end class org.apache.hadoop.util.LineReader -->
  40033. <!-- start class org.apache.hadoop.util.LinuxMemoryCalculatorPlugin -->
  40034. <class name="LinuxMemoryCalculatorPlugin" extends="org.apache.hadoop.util.MemoryCalculatorPlugin"
  40035. abstract="false"
  40036. static="false" final="false" visibility="public"
  40037. deprecated="Use {@link org.apache.hadoop.util.LinuxResourceCalculatorPlugin}
  40038. instead">
  40039. <constructor name="LinuxMemoryCalculatorPlugin"
  40040. static="false" final="false" visibility="public"
  40041. deprecated="not deprecated">
  40042. </constructor>
  40043. <method name="getPhysicalMemorySize" return="long"
  40044. abstract="false" native="false" synchronized="false"
  40045. static="false" final="false" visibility="public"
  40046. deprecated="not deprecated">
  40047. <doc>
  40048. <![CDATA[{@inheritDoc}]]>
  40049. </doc>
  40050. </method>
  40051. <method name="getVirtualMemorySize" return="long"
  40052. abstract="false" native="false" synchronized="false"
  40053. static="false" final="false" visibility="public"
  40054. deprecated="not deprecated">
  40055. <doc>
  40056. <![CDATA[{@inheritDoc}]]>
  40057. </doc>
  40058. </method>
  40059. <doc>
  40060. <![CDATA[Plugin to calculate virtual and physical memories on Linux systems.
  40061. @deprecated Use {@link org.apache.hadoop.util.LinuxResourceCalculatorPlugin}
  40062. instead]]>
  40063. </doc>
  40064. </class>
  40065. <!-- end class org.apache.hadoop.util.LinuxMemoryCalculatorPlugin -->
  40066. <!-- start class org.apache.hadoop.util.LinuxResourceCalculatorPlugin -->
  40067. <class name="LinuxResourceCalculatorPlugin" extends="org.apache.hadoop.util.ResourceCalculatorPlugin"
  40068. abstract="false"
  40069. static="false" final="false" visibility="public"
  40070. deprecated="not deprecated">
  40071. <constructor name="LinuxResourceCalculatorPlugin"
  40072. static="false" final="false" visibility="public"
  40073. deprecated="not deprecated">
  40074. </constructor>
  40075. <constructor name="LinuxResourceCalculatorPlugin" type="java.lang.String, java.lang.String, java.lang.String, long"
  40076. static="false" final="false" visibility="public"
  40077. deprecated="not deprecated">
  40078. <doc>
  40079. <![CDATA[Constructor which allows assigning the /proc/ directories. This will be
  40080. used only in unit tests
  40081. @param procfsMemFile fake file for /proc/meminfo
  40082. @param procfsCpuFile fake file for /proc/cpuinfo
  40083. @param procfsStatFile fake file for /proc/stat
  40084. @param jiffyLengthInMillis fake jiffy length value]]>
  40085. </doc>
  40086. </constructor>
  40087. <method name="getPhysicalMemorySize" return="long"
  40088. abstract="false" native="false" synchronized="false"
  40089. static="false" final="false" visibility="public"
  40090. deprecated="not deprecated">
  40091. <doc>
  40092. <![CDATA[{@inheritDoc}]]>
  40093. </doc>
  40094. </method>
  40095. <method name="getVirtualMemorySize" return="long"
  40096. abstract="false" native="false" synchronized="false"
  40097. static="false" final="false" visibility="public"
  40098. deprecated="not deprecated">
  40099. <doc>
  40100. <![CDATA[{@inheritDoc}]]>
  40101. </doc>
  40102. </method>
  40103. <method name="getAvailablePhysicalMemorySize" return="long"
  40104. abstract="false" native="false" synchronized="false"
  40105. static="false" final="false" visibility="public"
  40106. deprecated="not deprecated">
  40107. <doc>
  40108. <![CDATA[{@inheritDoc}]]>
  40109. </doc>
  40110. </method>
  40111. <method name="getAvailableVirtualMemorySize" return="long"
  40112. abstract="false" native="false" synchronized="false"
  40113. static="false" final="false" visibility="public"
  40114. deprecated="not deprecated">
  40115. <doc>
  40116. <![CDATA[{@inheritDoc}]]>
  40117. </doc>
  40118. </method>
  40119. <method name="getNumProcessors" return="int"
  40120. abstract="false" native="false" synchronized="false"
  40121. static="false" final="false" visibility="public"
  40122. deprecated="not deprecated">
  40123. <doc>
  40124. <![CDATA[{@inheritDoc}]]>
  40125. </doc>
  40126. </method>
  40127. <method name="getCpuFrequency" return="long"
  40128. abstract="false" native="false" synchronized="false"
  40129. static="false" final="false" visibility="public"
  40130. deprecated="not deprecated">
  40131. <doc>
  40132. <![CDATA[{@inheritDoc}]]>
  40133. </doc>
  40134. </method>
  40135. <method name="getCumulativeCpuTime" return="long"
  40136. abstract="false" native="false" synchronized="false"
  40137. static="false" final="false" visibility="public"
  40138. deprecated="not deprecated">
  40139. <doc>
  40140. <![CDATA[{@inheritDoc}]]>
  40141. </doc>
  40142. </method>
  40143. <method name="getCpuUsage" return="float"
  40144. abstract="false" native="false" synchronized="false"
  40145. static="false" final="false" visibility="public"
  40146. deprecated="not deprecated">
  40147. <doc>
  40148. <![CDATA[{@inheritDoc}]]>
  40149. </doc>
  40150. </method>
  40151. <method name="main"
  40152. abstract="false" native="false" synchronized="false"
  40153. static="true" final="false" visibility="public"
  40154. deprecated="not deprecated">
  40155. <param name="args" type="java.lang.String[]"/>
  40156. <doc>
  40157. <![CDATA[Test the {@link LinuxResourceCalculatorPlugin}
  40158. @param args]]>
  40159. </doc>
  40160. </method>
  40161. <method name="getProcResourceValues" return="org.apache.hadoop.util.ResourceCalculatorPlugin.ProcResourceValues"
  40162. abstract="false" native="false" synchronized="false"
  40163. static="false" final="false" visibility="public"
  40164. deprecated="not deprecated">
  40165. </method>
  40166. <doc>
  40167. <![CDATA[Plugin to calculate resource information on Linux systems.]]>
  40168. </doc>
  40169. </class>
  40170. <!-- end class org.apache.hadoop.util.LinuxResourceCalculatorPlugin -->
  40171. <!-- start class org.apache.hadoop.util.MemoryCalculatorPlugin -->
  40172. <class name="MemoryCalculatorPlugin" extends="org.apache.hadoop.conf.Configured"
  40173. abstract="true"
  40174. static="false" final="false" visibility="public"
  40175. deprecated="Use
  40176. {@link org.apache.hadoop.util.ResourceCalculatorPlugin}
  40177. instead">
  40178. <constructor name="MemoryCalculatorPlugin"
  40179. static="false" final="false" visibility="public"
  40180. deprecated="not deprecated">
  40181. </constructor>
  40182. <method name="getVirtualMemorySize" return="long"
  40183. abstract="true" native="false" synchronized="false"
  40184. static="false" final="false" visibility="public"
  40185. deprecated="not deprecated">
  40186. <doc>
  40187. <![CDATA[Obtain the total size of the virtual memory present in the system.
  40188. @return virtual memory size in bytes.]]>
  40189. </doc>
  40190. </method>
  40191. <method name="getPhysicalMemorySize" return="long"
  40192. abstract="true" native="false" synchronized="false"
  40193. static="false" final="false" visibility="public"
  40194. deprecated="not deprecated">
  40195. <doc>
  40196. <![CDATA[Obtain the total size of the physical memory present in the system.
  40197. @return physical memory size bytes.]]>
  40198. </doc>
  40199. </method>
  40200. <method name="getMemoryCalculatorPlugin" return="org.apache.hadoop.util.MemoryCalculatorPlugin"
  40201. abstract="false" native="false" synchronized="false"
  40202. static="true" final="false" visibility="public"
  40203. deprecated="not deprecated">
  40204. <param name="clazz" type="java.lang.Class"/>
  40205. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40206. <doc>
  40207. <![CDATA[Get the MemoryCalculatorPlugin from the class name and configure it. If
  40208. class name is null, this method will try and return a memory calculator
  40209. plugin available for this system.
  40210. @param clazz class-name
  40211. @param conf configure the plugin with this.
  40212. @return MemoryCalculatorPlugin]]>
  40213. </doc>
  40214. </method>
  40215. <doc>
  40216. <![CDATA[Plugin to calculate virtual and physical memories on the system.
  40217. @deprecated Use
  40218. {@link org.apache.hadoop.util.ResourceCalculatorPlugin}
  40219. instead]]>
  40220. </doc>
  40221. </class>
  40222. <!-- end class org.apache.hadoop.util.MemoryCalculatorPlugin -->
  40223. <!-- start class org.apache.hadoop.util.MergeSort -->
  40224. <class name="MergeSort" extends="java.lang.Object"
  40225. abstract="false"
  40226. static="false" final="false" visibility="public"
  40227. deprecated="not deprecated">
  40228. <constructor name="MergeSort" type="java.util.Comparator"
  40229. static="false" final="false" visibility="public"
  40230. deprecated="not deprecated">
  40231. </constructor>
  40232. <method name="mergeSort"
  40233. abstract="false" native="false" synchronized="false"
  40234. static="false" final="false" visibility="public"
  40235. deprecated="not deprecated">
  40236. <param name="src" type="int[]"/>
  40237. <param name="dest" type="int[]"/>
  40238. <param name="low" type="int"/>
  40239. <param name="high" type="int"/>
  40240. </method>
  40241. <doc>
  40242. <![CDATA[An implementation of the core algorithm of MergeSort.]]>
  40243. </doc>
  40244. </class>
  40245. <!-- end class org.apache.hadoop.util.MergeSort -->
  40246. <!-- start class org.apache.hadoop.util.NativeCodeLoader -->
  40247. <class name="NativeCodeLoader" extends="java.lang.Object"
  40248. abstract="false"
  40249. static="false" final="false" visibility="public"
  40250. deprecated="not deprecated">
  40251. <constructor name="NativeCodeLoader"
  40252. static="false" final="false" visibility="public"
  40253. deprecated="not deprecated">
  40254. </constructor>
  40255. <method name="isNativeCodeLoaded" return="boolean"
  40256. abstract="false" native="false" synchronized="false"
  40257. static="true" final="false" visibility="public"
  40258. deprecated="not deprecated">
  40259. <doc>
  40260. <![CDATA[Check if native-hadoop code is loaded for this platform.
  40261. @return <code>true</code> if native-hadoop is loaded,
  40262. else <code>false</code>]]>
  40263. </doc>
  40264. </method>
  40265. <method name="getLoadNativeLibraries" return="boolean"
  40266. abstract="false" native="false" synchronized="false"
  40267. static="false" final="false" visibility="public"
  40268. deprecated="not deprecated">
  40269. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40270. <doc>
  40271. <![CDATA[Return if native hadoop libraries, if present, can be used for this job.
  40272. @param conf configuration
  40273. @return <code>true</code> if native hadoop libraries, if present, can be
  40274. used for this job; <code>false</code> otherwise.]]>
  40275. </doc>
  40276. </method>
  40277. <method name="setLoadNativeLibraries"
  40278. abstract="false" native="false" synchronized="false"
  40279. static="false" final="false" visibility="public"
  40280. deprecated="not deprecated">
  40281. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40282. <param name="loadNativeLibraries" type="boolean"/>
  40283. <doc>
  40284. <![CDATA[Set if native hadoop libraries, if present, can be used for this job.
  40285. @param conf configuration
  40286. @param loadNativeLibraries can native hadoop libraries be loaded]]>
  40287. </doc>
  40288. </method>
  40289. <doc>
  40290. <![CDATA[A helper to load the native hadoop code i.e. libhadoop.so.
  40291. This handles the fallback to either the bundled libhadoop-Linux-i386-32.so
  40292. or the default java implementations where appropriate.]]>
  40293. </doc>
  40294. </class>
  40295. <!-- end class org.apache.hadoop.util.NativeCodeLoader -->
  40296. <!-- start class org.apache.hadoop.util.PlatformName -->
  40297. <class name="PlatformName" extends="java.lang.Object"
  40298. abstract="false"
  40299. static="false" final="false" visibility="public"
  40300. deprecated="not deprecated">
  40301. <constructor name="PlatformName"
  40302. static="false" final="false" visibility="public"
  40303. deprecated="not deprecated">
  40304. </constructor>
  40305. <method name="getPlatformName" return="java.lang.String"
  40306. abstract="false" native="false" synchronized="false"
  40307. static="true" final="false" visibility="public"
  40308. deprecated="not deprecated">
  40309. <doc>
  40310. <![CDATA[Get the complete platform as per the java-vm.
  40311. @return returns the complete platform as per the java-vm.]]>
  40312. </doc>
  40313. </method>
  40314. <method name="main"
  40315. abstract="false" native="false" synchronized="false"
  40316. static="true" final="false" visibility="public"
  40317. deprecated="not deprecated">
  40318. <param name="args" type="java.lang.String[]"/>
  40319. </method>
  40320. <doc>
  40321. <![CDATA[A helper class for getting build-info of the java-vm.]]>
  40322. </doc>
  40323. </class>
  40324. <!-- end class org.apache.hadoop.util.PlatformName -->
  40325. <!-- start class org.apache.hadoop.util.PrintJarMainClass -->
  40326. <class name="PrintJarMainClass" extends="java.lang.Object"
  40327. abstract="false"
  40328. static="false" final="false" visibility="public"
  40329. deprecated="not deprecated">
  40330. <constructor name="PrintJarMainClass"
  40331. static="false" final="false" visibility="public"
  40332. deprecated="not deprecated">
  40333. </constructor>
  40334. <method name="main"
  40335. abstract="false" native="false" synchronized="false"
  40336. static="true" final="false" visibility="public"
  40337. deprecated="not deprecated">
  40338. <param name="args" type="java.lang.String[]"/>
  40339. <doc>
  40340. <![CDATA[@param args]]>
  40341. </doc>
  40342. </method>
  40343. <doc>
  40344. <![CDATA[A micro-application that prints the main class name out of a jar file.]]>
  40345. </doc>
  40346. </class>
  40347. <!-- end class org.apache.hadoop.util.PrintJarMainClass -->
  40348. <!-- start class org.apache.hadoop.util.PriorityQueue -->
  40349. <class name="PriorityQueue" extends="java.lang.Object"
  40350. abstract="true"
  40351. static="false" final="false" visibility="public"
  40352. deprecated="not deprecated">
  40353. <constructor name="PriorityQueue"
  40354. static="false" final="false" visibility="public"
  40355. deprecated="not deprecated">
  40356. </constructor>
  40357. <method name="lessThan" return="boolean"
  40358. abstract="true" native="false" synchronized="false"
  40359. static="false" final="false" visibility="protected"
  40360. deprecated="not deprecated">
  40361. <param name="a" type="java.lang.Object"/>
  40362. <param name="b" type="java.lang.Object"/>
  40363. <doc>
  40364. <![CDATA[Determines the ordering of objects in this priority queue. Subclasses
  40365. must define this one method.]]>
  40366. </doc>
  40367. </method>
  40368. <method name="initialize"
  40369. abstract="false" native="false" synchronized="false"
  40370. static="false" final="true" visibility="protected"
  40371. deprecated="not deprecated">
  40372. <param name="maxSize" type="int"/>
  40373. <doc>
  40374. <![CDATA[Subclass constructors must call this.]]>
  40375. </doc>
  40376. </method>
  40377. <method name="put"
  40378. abstract="false" native="false" synchronized="false"
  40379. static="false" final="true" visibility="public"
  40380. deprecated="not deprecated">
  40381. <param name="element" type="java.lang.Object"/>
  40382. <doc>
  40383. <![CDATA[Adds an Object to a PriorityQueue in log(size) time.
  40384. If one tries to add more objects than maxSize from initialize
  40385. a RuntimeException (ArrayIndexOutOfBound) is thrown.]]>
  40386. </doc>
  40387. </method>
  40388. <method name="insert" return="boolean"
  40389. abstract="false" native="false" synchronized="false"
  40390. static="false" final="false" visibility="public"
  40391. deprecated="not deprecated">
  40392. <param name="element" type="java.lang.Object"/>
  40393. <doc>
  40394. <![CDATA[Adds element to the PriorityQueue in log(size) time if either
  40395. the PriorityQueue is not full, or not lessThan(element, top()).
  40396. @param element
  40397. @return true if element is added, false otherwise.]]>
  40398. </doc>
  40399. </method>
  40400. <method name="top" return="java.lang.Object"
  40401. abstract="false" native="false" synchronized="false"
  40402. static="false" final="true" visibility="public"
  40403. deprecated="not deprecated">
  40404. <doc>
  40405. <![CDATA[Returns the least element of the PriorityQueue in constant time.]]>
  40406. </doc>
  40407. </method>
  40408. <method name="pop" return="java.lang.Object"
  40409. abstract="false" native="false" synchronized="false"
  40410. static="false" final="true" visibility="public"
  40411. deprecated="not deprecated">
  40412. <doc>
  40413. <![CDATA[Removes and returns the least element of the PriorityQueue in log(size)
  40414. time.]]>
  40415. </doc>
  40416. </method>
  40417. <method name="adjustTop"
  40418. abstract="false" native="false" synchronized="false"
  40419. static="false" final="true" visibility="public"
  40420. deprecated="not deprecated">
  40421. <doc>
  40422. <![CDATA[Should be called when the Object at top changes values. Still log(n)
  40423. worst case, but it's at least twice as fast to <pre>
  40424. { pq.top().change(); pq.adjustTop(); }
  40425. </pre> instead of <pre>
  40426. { o = pq.pop(); o.change(); pq.push(o); }
  40427. </pre>]]>
  40428. </doc>
  40429. </method>
  40430. <method name="size" return="int"
  40431. abstract="false" native="false" synchronized="false"
  40432. static="false" final="true" visibility="public"
  40433. deprecated="not deprecated">
  40434. <doc>
  40435. <![CDATA[Returns the number of elements currently stored in the PriorityQueue.]]>
  40436. </doc>
  40437. </method>
  40438. <method name="clear"
  40439. abstract="false" native="false" synchronized="false"
  40440. static="false" final="true" visibility="public"
  40441. deprecated="not deprecated">
  40442. <doc>
  40443. <![CDATA[Removes all entries from the PriorityQueue.]]>
  40444. </doc>
  40445. </method>
  40446. <doc>
  40447. <![CDATA[A PriorityQueue maintains a partial ordering of its elements such that the
  40448. least element can always be found in constant time. Put()'s and pop()'s
  40449. require log(size) time.]]>
  40450. </doc>
  40451. </class>
  40452. <!-- end class org.apache.hadoop.util.PriorityQueue -->
  40453. <!-- start class org.apache.hadoop.util.ProcessTree -->
  40454. <class name="ProcessTree" extends="java.lang.Object"
  40455. abstract="false"
  40456. static="false" final="false" visibility="public"
  40457. deprecated="not deprecated">
  40458. <constructor name="ProcessTree"
  40459. static="false" final="false" visibility="public"
  40460. deprecated="not deprecated">
  40461. </constructor>
  40462. <method name="killProcess"
  40463. abstract="false" native="false" synchronized="false"
  40464. static="true" final="false" visibility="public"
  40465. deprecated="not deprecated">
  40466. <param name="pid" type="java.lang.String"/>
  40467. <param name="signal" type="org.apache.hadoop.util.ProcessTree.Signal"/>
  40468. <doc>
  40469. <![CDATA[Sends signal to process, forcefully terminating the process.
  40470. @param pid process id
  40471. @param signal the signal number to send]]>
  40472. </doc>
  40473. </method>
  40474. <method name="killProcessGroup"
  40475. abstract="false" native="false" synchronized="false"
  40476. static="true" final="false" visibility="public"
  40477. deprecated="not deprecated">
  40478. <param name="pgrpId" type="java.lang.String"/>
  40479. <param name="signal" type="org.apache.hadoop.util.ProcessTree.Signal"/>
  40480. <doc>
  40481. <![CDATA[Sends signal to all process belonging to same process group,
  40482. forcefully terminating the process group.
  40483. @param pgrpId process group id
  40484. @param signal the signal number to send]]>
  40485. </doc>
  40486. </method>
  40487. <method name="isAlive" return="boolean"
  40488. abstract="false" native="false" synchronized="false"
  40489. static="true" final="false" visibility="public"
  40490. deprecated="not deprecated">
  40491. <param name="pid" type="java.lang.String"/>
  40492. <doc>
  40493. <![CDATA[Is the process with PID pid still alive?
  40494. This method assumes that isAlive is called on a pid that was alive not
  40495. too long ago, and hence assumes no chance of pid-wrapping-around.
  40496. @param pid pid of the process to check.
  40497. @return true if process is alive.]]>
  40498. </doc>
  40499. </method>
  40500. <method name="isProcessGroupAlive" return="boolean"
  40501. abstract="false" native="false" synchronized="false"
  40502. static="true" final="false" visibility="public"
  40503. deprecated="not deprecated">
  40504. <param name="pgrpId" type="java.lang.String"/>
  40505. <doc>
  40506. <![CDATA[Is the process group with still alive?
  40507. This method assumes that isAlive is called on a pid that was alive not
  40508. too long ago, and hence assumes no chance of pid-wrapping-around.
  40509. @param pgrpId process group id
  40510. @return true if any of process in group is alive.]]>
  40511. </doc>
  40512. </method>
  40513. <field name="isSetsidAvailable" type="boolean"
  40514. transient="false" volatile="false"
  40515. static="true" final="true" visibility="public"
  40516. deprecated="not deprecated">
  40517. </field>
  40518. <doc>
  40519. <![CDATA[Process tree related operations]]>
  40520. </doc>
  40521. </class>
  40522. <!-- end class org.apache.hadoop.util.ProcessTree -->
  40523. <!-- start class org.apache.hadoop.util.ProcessTree.Signal -->
  40524. <class name="ProcessTree.Signal" extends="java.lang.Enum"
  40525. abstract="false"
  40526. static="true" final="true" visibility="public"
  40527. deprecated="not deprecated">
  40528. <method name="values" return="org.apache.hadoop.util.ProcessTree.Signal[]"
  40529. abstract="false" native="false" synchronized="false"
  40530. static="true" final="false" visibility="public"
  40531. deprecated="not deprecated">
  40532. </method>
  40533. <method name="valueOf" return="org.apache.hadoop.util.ProcessTree.Signal"
  40534. abstract="false" native="false" synchronized="false"
  40535. static="true" final="false" visibility="public"
  40536. deprecated="not deprecated">
  40537. <param name="name" type="java.lang.String"/>
  40538. </method>
  40539. <method name="getValue" return="int"
  40540. abstract="false" native="false" synchronized="false"
  40541. static="false" final="false" visibility="public"
  40542. deprecated="not deprecated">
  40543. </method>
  40544. <field name="QUIT" type="org.apache.hadoop.util.ProcessTree.Signal"
  40545. transient="false" volatile="false"
  40546. static="true" final="true" visibility="public"
  40547. deprecated="not deprecated">
  40548. </field>
  40549. <field name="KILL" type="org.apache.hadoop.util.ProcessTree.Signal"
  40550. transient="false" volatile="false"
  40551. static="true" final="true" visibility="public"
  40552. deprecated="not deprecated">
  40553. </field>
  40554. <field name="TERM" type="org.apache.hadoop.util.ProcessTree.Signal"
  40555. transient="false" volatile="false"
  40556. static="true" final="true" visibility="public"
  40557. deprecated="not deprecated">
  40558. </field>
  40559. <doc>
  40560. <![CDATA[The constants for the signals.]]>
  40561. </doc>
  40562. </class>
  40563. <!-- end class org.apache.hadoop.util.ProcessTree.Signal -->
  40564. <!-- start class org.apache.hadoop.util.ProcfsBasedProcessTree -->
  40565. <class name="ProcfsBasedProcessTree" extends="org.apache.hadoop.util.ProcessTree"
  40566. abstract="false"
  40567. static="false" final="false" visibility="public"
  40568. deprecated="not deprecated">
  40569. <constructor name="ProcfsBasedProcessTree" type="java.lang.String"
  40570. static="false" final="false" visibility="public"
  40571. deprecated="not deprecated">
  40572. </constructor>
  40573. <constructor name="ProcfsBasedProcessTree" type="java.lang.String, boolean"
  40574. static="false" final="false" visibility="public"
  40575. deprecated="not deprecated">
  40576. </constructor>
  40577. <constructor name="ProcfsBasedProcessTree" type="java.lang.String, java.lang.String"
  40578. static="false" final="false" visibility="public"
  40579. deprecated="not deprecated">
  40580. </constructor>
  40581. <method name="isAvailable" return="boolean"
  40582. abstract="false" native="false" synchronized="false"
  40583. static="true" final="false" visibility="public"
  40584. deprecated="not deprecated">
  40585. <doc>
  40586. <![CDATA[Checks if the ProcfsBasedProcessTree is available on this system.
  40587. @return true if ProcfsBasedProcessTree is available. False otherwise.]]>
  40588. </doc>
  40589. </method>
  40590. <method name="getProcessTree" return="org.apache.hadoop.util.ProcfsBasedProcessTree"
  40591. abstract="false" native="false" synchronized="false"
  40592. static="false" final="false" visibility="public"
  40593. deprecated="not deprecated">
  40594. <doc>
  40595. <![CDATA[Get the process-tree with latest state. If the root-process is not alive,
  40596. an empty tree will be returned.
  40597. @return the process-tree with latest state.]]>
  40598. </doc>
  40599. </method>
  40600. <method name="isAlive" return="boolean"
  40601. abstract="false" native="false" synchronized="false"
  40602. static="false" final="false" visibility="public"
  40603. deprecated="not deprecated">
  40604. <doc>
  40605. <![CDATA[Is the root-process alive?
  40606. @return true if the root-process is alive, false otherwise.]]>
  40607. </doc>
  40608. </method>
  40609. <method name="isAnyProcessInTreeAlive" return="boolean"
  40610. abstract="false" native="false" synchronized="false"
  40611. static="false" final="false" visibility="public"
  40612. deprecated="not deprecated">
  40613. <doc>
  40614. <![CDATA[Is any of the subprocesses in the process-tree alive?
  40615. @return true if any of the processes in the process-tree is
  40616. alive, false otherwise.]]>
  40617. </doc>
  40618. </method>
  40619. <method name="getProcessTreeDump" return="java.lang.String"
  40620. abstract="false" native="false" synchronized="false"
  40621. static="false" final="false" visibility="public"
  40622. deprecated="not deprecated">
  40623. <doc>
  40624. <![CDATA[Get a dump of the process-tree.
  40625. @return a string concatenating the dump of information of all the processes
  40626. in the process-tree]]>
  40627. </doc>
  40628. </method>
  40629. <method name="getCumulativeVmem" return="long"
  40630. abstract="false" native="false" synchronized="false"
  40631. static="false" final="false" visibility="public"
  40632. deprecated="not deprecated">
  40633. <doc>
  40634. <![CDATA[Get the cumulative virtual memory used by all the processes in the
  40635. process-tree.
  40636. @return cumulative virtual memory used by the process-tree in bytes.]]>
  40637. </doc>
  40638. </method>
  40639. <method name="getCumulativeRssmem" return="long"
  40640. abstract="false" native="false" synchronized="false"
  40641. static="false" final="false" visibility="public"
  40642. deprecated="not deprecated">
  40643. <doc>
  40644. <![CDATA[Get the cumulative resident set size (rss) memory used by all the processes
  40645. in the process-tree.
  40646. @return cumulative rss memory used by the process-tree in bytes. return 0
  40647. if it cannot be calculated]]>
  40648. </doc>
  40649. </method>
  40650. <method name="getCumulativeVmem" return="long"
  40651. abstract="false" native="false" synchronized="false"
  40652. static="false" final="false" visibility="public"
  40653. deprecated="not deprecated">
  40654. <param name="olderThanAge" type="int"/>
  40655. <doc>
  40656. <![CDATA[Get the cumulative virtual memory used by all the processes in the
  40657. process-tree that are older than the passed in age.
  40658. @param olderThanAge processes above this age are included in the
  40659. memory addition
  40660. @return cumulative virtual memory used by the process-tree in bytes,
  40661. for processes older than this age.]]>
  40662. </doc>
  40663. </method>
  40664. <method name="getCumulativeRssmem" return="long"
  40665. abstract="false" native="false" synchronized="false"
  40666. static="false" final="false" visibility="public"
  40667. deprecated="not deprecated">
  40668. <param name="olderThanAge" type="int"/>
  40669. <doc>
  40670. <![CDATA[Get the cumulative resident set size (rss) memory used by all the processes
  40671. in the process-tree that are older than the passed in age.
  40672. @param olderThanAge processes above this age are included in the
  40673. memory addition
  40674. @return cumulative rss memory used by the process-tree in bytes,
  40675. for processes older than this age. return 0 if it cannot be
  40676. calculated]]>
  40677. </doc>
  40678. </method>
  40679. <method name="getCumulativeCpuTime" return="long"
  40680. abstract="false" native="false" synchronized="false"
  40681. static="false" final="false" visibility="public"
  40682. deprecated="not deprecated">
  40683. <doc>
  40684. <![CDATA[Get the CPU time in millisecond used by all the processes in the
  40685. process-tree since the process-tree created
  40686. @return cumulative CPU time in millisecond since the process-tree created
  40687. return 0 if it cannot be calculated]]>
  40688. </doc>
  40689. </method>
  40690. <method name="toString" return="java.lang.String"
  40691. abstract="false" native="false" synchronized="false"
  40692. static="false" final="false" visibility="public"
  40693. deprecated="not deprecated">
  40694. <doc>
  40695. <![CDATA[Returns a string printing PIDs of process present in the
  40696. ProcfsBasedProcessTree. Output format : [pid pid ..]]]>
  40697. </doc>
  40698. </method>
  40699. <field name="PAGE_SIZE" type="long"
  40700. transient="false" volatile="false"
  40701. static="true" final="true" visibility="public"
  40702. deprecated="not deprecated">
  40703. </field>
  40704. <field name="JIFFY_LENGTH_IN_MILLIS" type="long"
  40705. transient="false" volatile="false"
  40706. static="true" final="true" visibility="public"
  40707. deprecated="not deprecated">
  40708. </field>
  40709. <doc>
  40710. <![CDATA[A Proc file-system based ProcessTree. Works only on Linux.]]>
  40711. </doc>
  40712. </class>
  40713. <!-- end class org.apache.hadoop.util.ProcfsBasedProcessTree -->
  40714. <!-- start class org.apache.hadoop.util.ProgramDriver -->
  40715. <class name="ProgramDriver" extends="java.lang.Object"
  40716. abstract="false"
  40717. static="false" final="false" visibility="public"
  40718. deprecated="not deprecated">
  40719. <constructor name="ProgramDriver"
  40720. static="false" final="false" visibility="public"
  40721. deprecated="not deprecated">
  40722. </constructor>
  40723. <method name="addClass"
  40724. abstract="false" native="false" synchronized="false"
  40725. static="false" final="false" visibility="public"
  40726. deprecated="not deprecated">
  40727. <param name="name" type="java.lang.String"/>
  40728. <param name="mainClass" type="java.lang.Class"/>
  40729. <param name="description" type="java.lang.String"/>
  40730. <exception name="Throwable" type="java.lang.Throwable"/>
  40731. <doc>
  40732. <![CDATA[This is the method that adds the classed to the repository
  40733. @param name The name of the string you want the class instance to be called with
  40734. @param mainClass The class that you want to add to the repository
  40735. @param description The description of the class
  40736. @throws NoSuchMethodException
  40737. @throws SecurityException]]>
  40738. </doc>
  40739. </method>
  40740. <method name="driver"
  40741. abstract="false" native="false" synchronized="false"
  40742. static="false" final="false" visibility="public"
  40743. deprecated="not deprecated">
  40744. <param name="args" type="java.lang.String[]"/>
  40745. <exception name="Throwable" type="java.lang.Throwable"/>
  40746. <doc>
  40747. <![CDATA[This is a driver for the example programs.
  40748. It looks at the first command line argument and tries to find an
  40749. example program with that name.
  40750. If it is found, it calls the main method in that class with the rest
  40751. of the command line arguments.
  40752. @param args The argument from the user. args[0] is the command to run.
  40753. @throws NoSuchMethodException
  40754. @throws SecurityException
  40755. @throws IllegalAccessException
  40756. @throws IllegalArgumentException
  40757. @throws Throwable Anything thrown by the example program's main]]>
  40758. </doc>
  40759. </method>
  40760. <doc>
  40761. <![CDATA[A driver that is used to run programs added to it]]>
  40762. </doc>
  40763. </class>
  40764. <!-- end class org.apache.hadoop.util.ProgramDriver -->
  40765. <!-- start class org.apache.hadoop.util.Progress -->
  40766. <class name="Progress" extends="java.lang.Object"
  40767. abstract="false"
  40768. static="false" final="false" visibility="public"
  40769. deprecated="not deprecated">
  40770. <constructor name="Progress"
  40771. static="false" final="false" visibility="public"
  40772. deprecated="not deprecated">
  40773. <doc>
  40774. <![CDATA[Creates a new root node.]]>
  40775. </doc>
  40776. </constructor>
  40777. <method name="addPhase" return="org.apache.hadoop.util.Progress"
  40778. abstract="false" native="false" synchronized="false"
  40779. static="false" final="false" visibility="public"
  40780. deprecated="not deprecated">
  40781. <param name="status" type="java.lang.String"/>
  40782. <doc>
  40783. <![CDATA[Adds a named node to the tree.]]>
  40784. </doc>
  40785. </method>
  40786. <method name="addPhase" return="org.apache.hadoop.util.Progress"
  40787. abstract="false" native="false" synchronized="true"
  40788. static="false" final="false" visibility="public"
  40789. deprecated="not deprecated">
  40790. <doc>
  40791. <![CDATA[Adds a node to the tree.]]>
  40792. </doc>
  40793. </method>
  40794. <method name="startNextPhase"
  40795. abstract="false" native="false" synchronized="true"
  40796. static="false" final="false" visibility="public"
  40797. deprecated="not deprecated">
  40798. <doc>
  40799. <![CDATA[Called during execution to move to the next phase at this level in the
  40800. tree.]]>
  40801. </doc>
  40802. </method>
  40803. <method name="phase" return="org.apache.hadoop.util.Progress"
  40804. abstract="false" native="false" synchronized="true"
  40805. static="false" final="false" visibility="public"
  40806. deprecated="not deprecated">
  40807. <doc>
  40808. <![CDATA[Returns the current sub-node executing.]]>
  40809. </doc>
  40810. </method>
  40811. <method name="complete"
  40812. abstract="false" native="false" synchronized="false"
  40813. static="false" final="false" visibility="public"
  40814. deprecated="not deprecated">
  40815. <doc>
  40816. <![CDATA[Completes this node, moving the parent node to its next child.]]>
  40817. </doc>
  40818. </method>
  40819. <method name="set"
  40820. abstract="false" native="false" synchronized="true"
  40821. static="false" final="false" visibility="public"
  40822. deprecated="not deprecated">
  40823. <param name="progress" type="float"/>
  40824. <doc>
  40825. <![CDATA[Called during execution on a leaf node to set its progress.]]>
  40826. </doc>
  40827. </method>
  40828. <method name="get" return="float"
  40829. abstract="false" native="false" synchronized="true"
  40830. static="false" final="false" visibility="public"
  40831. deprecated="not deprecated">
  40832. <doc>
  40833. <![CDATA[Returns the overall progress of the root.]]>
  40834. </doc>
  40835. </method>
  40836. <method name="getProgress" return="float"
  40837. abstract="false" native="false" synchronized="true"
  40838. static="false" final="false" visibility="public"
  40839. deprecated="not deprecated">
  40840. <doc>
  40841. <![CDATA[Returns progress in this node. get() would give overall progress of the
  40842. root node(not just given current node).]]>
  40843. </doc>
  40844. </method>
  40845. <method name="setStatus"
  40846. abstract="false" native="false" synchronized="true"
  40847. static="false" final="false" visibility="public"
  40848. deprecated="not deprecated">
  40849. <param name="status" type="java.lang.String"/>
  40850. </method>
  40851. <method name="toString" return="java.lang.String"
  40852. abstract="false" native="false" synchronized="false"
  40853. static="false" final="false" visibility="public"
  40854. deprecated="not deprecated">
  40855. </method>
  40856. <doc>
  40857. <![CDATA[Utility to assist with generation of progress reports. Applications build
  40858. a hierarchy of {@link Progress} instances, each modelling a phase of
  40859. execution. The root is constructed with {@link #Progress()}. Nodes for
  40860. sub-phases are created by calling {@link #addPhase()}.]]>
  40861. </doc>
  40862. </class>
  40863. <!-- end class org.apache.hadoop.util.Progress -->
  40864. <!-- start interface org.apache.hadoop.util.Progressable -->
  40865. <interface name="Progressable" abstract="true"
  40866. static="false" final="false" visibility="public"
  40867. deprecated="not deprecated">
  40868. <method name="progress"
  40869. abstract="false" native="false" synchronized="false"
  40870. static="false" final="false" visibility="public"
  40871. deprecated="not deprecated">
  40872. <doc>
  40873. <![CDATA[Report progress to the Hadoop framework.]]>
  40874. </doc>
  40875. </method>
  40876. <doc>
  40877. <![CDATA[A facility for reporting progress.
  40878. <p>Clients and/or applications can use the provided <code>Progressable</code>
  40879. to explicitly report progress to the Hadoop framework. This is especially
  40880. important for operations which take an insignificant amount of time since,
  40881. in-lieu of the reported progress, the framework has to assume that an error
  40882. has occured and time-out the operation.</p>]]>
  40883. </doc>
  40884. </interface>
  40885. <!-- end interface org.apache.hadoop.util.Progressable -->
  40886. <!-- start class org.apache.hadoop.util.PureJavaCrc32 -->
  40887. <class name="PureJavaCrc32" extends="java.lang.Object"
  40888. abstract="false"
  40889. static="false" final="false" visibility="public"
  40890. deprecated="not deprecated">
  40891. <implements name="java.util.zip.Checksum"/>
  40892. <constructor name="PureJavaCrc32"
  40893. static="false" final="false" visibility="public"
  40894. deprecated="not deprecated">
  40895. </constructor>
  40896. <method name="getValue" return="long"
  40897. abstract="false" native="false" synchronized="false"
  40898. static="false" final="false" visibility="public"
  40899. deprecated="not deprecated">
  40900. <doc>
  40901. <![CDATA[{@inheritDoc}]]>
  40902. </doc>
  40903. </method>
  40904. <method name="reset"
  40905. abstract="false" native="false" synchronized="false"
  40906. static="false" final="false" visibility="public"
  40907. deprecated="not deprecated">
  40908. <doc>
  40909. <![CDATA[{@inheritDoc}]]>
  40910. </doc>
  40911. </method>
  40912. <method name="update"
  40913. abstract="false" native="false" synchronized="false"
  40914. static="false" final="false" visibility="public"
  40915. deprecated="not deprecated">
  40916. <param name="b" type="byte[]"/>
  40917. <param name="off" type="int"/>
  40918. <param name="len" type="int"/>
  40919. <doc>
  40920. <![CDATA[{@inheritDoc}]]>
  40921. </doc>
  40922. </method>
  40923. <method name="update"
  40924. abstract="false" native="false" synchronized="false"
  40925. static="false" final="true" visibility="public"
  40926. deprecated="not deprecated">
  40927. <param name="b" type="int"/>
  40928. <doc>
  40929. <![CDATA[{@inheritDoc}]]>
  40930. </doc>
  40931. </method>
  40932. <doc>
  40933. <![CDATA[A pure-java implementation of the CRC32 checksum that uses
  40934. the same polynomial as the built-in native CRC32.
  40935. This is to avoid the JNI overhead for certain uses of Checksumming
  40936. where many small pieces of data are checksummed in succession.
  40937. The current version is ~10x to 1.8x as fast as Sun's native
  40938. java.util.zip.CRC32 in Java 1.6
  40939. @see java.util.zip.CRC32]]>
  40940. </doc>
  40941. </class>
  40942. <!-- end class org.apache.hadoop.util.PureJavaCrc32 -->
  40943. <!-- start class org.apache.hadoop.util.QueueProcessingStatistics -->
  40944. <class name="QueueProcessingStatistics" extends="java.lang.Object"
  40945. abstract="true"
  40946. static="false" final="false" visibility="public"
  40947. deprecated="not deprecated">
  40948. <constructor name="QueueProcessingStatistics" type="java.lang.String, java.lang.String, org.apache.commons.logging.Log"
  40949. static="false" final="false" visibility="public"
  40950. deprecated="not deprecated">
  40951. <doc>
  40952. <![CDATA[@param queueName - Human-readable name of the queue being monitored,
  40953. used as first word in the log messages.
  40954. @param workItemsName - what kind of work items are being managed
  40955. on the queue? A plural word is best here, for logging.
  40956. @param logObject - What log do you want the log messages to be sent to?]]>
  40957. </doc>
  40958. </constructor>
  40959. <method name="startCycle"
  40960. abstract="false" native="false" synchronized="false"
  40961. static="false" final="false" visibility="public"
  40962. deprecated="not deprecated">
  40963. <param name="maxWorkToProcess" type="int"/>
  40964. </method>
  40965. <method name="endCycle"
  40966. abstract="false" native="false" synchronized="false"
  40967. static="false" final="false" visibility="public"
  40968. deprecated="not deprecated">
  40969. <param name="workFound" type="int"/>
  40970. </method>
  40971. <method name="checkRestart"
  40972. abstract="false" native="false" synchronized="false"
  40973. static="false" final="false" visibility="public"
  40974. deprecated="not deprecated">
  40975. </method>
  40976. <method name="preCheckIsLastCycle" return="boolean"
  40977. abstract="true" native="false" synchronized="false"
  40978. static="false" final="false" visibility="public"
  40979. deprecated="not deprecated">
  40980. <param name="maxWorkToProcess" type="int"/>
  40981. <doc>
  40982. <![CDATA[The termination condition is to identify the last cycle that will
  40983. empty the queue. Two abstract APIs are called: {@code preCheckIsLastCycle}
  40984. is called at the beginning of each cycle, and
  40985. {@link #postCheckIsLastCycle} is called at the end of each cycle.
  40986. At least one of them must correctly provide the termination
  40987. condition. The other may always return 'false'. If either of them
  40988. returns 'true' in a given cycle, then at the end of that cycle the
  40989. stats will be output to log, and stats collection will end.
  40990. @param maxWorkToProcess - if this number is greater than the amount
  40991. of work remaining at the start of a cycle, then it will
  40992. be the last cycle.
  40993. @return - true if last cycle detected, else false]]>
  40994. </doc>
  40995. </method>
  40996. <method name="postCheckIsLastCycle" return="boolean"
  40997. abstract="true" native="false" synchronized="false"
  40998. static="false" final="false" visibility="public"
  40999. deprecated="not deprecated">
  41000. <param name="workFound" type="int"/>
  41001. <doc>
  41002. <![CDATA[See {@link #preCheckIsLastCycle}.
  41003. @param workFound - may not be useful
  41004. @return - true if remaining work is zero at end of cycle,
  41005. else false]]>
  41006. </doc>
  41007. </method>
  41008. <doc>
  41009. <![CDATA[Hadoop has several work queues, such as
  41010. {@link org.apache.hadoop.hdfs.server.namenode.FSNamesystem#neededReplications}
  41011. With a properly throttled queue, a worker thread cycles repeatedly,
  41012. doing a chunk of work each cycle then resting a bit, until the queue is
  41013. empty. This class is intended to collect statistics about the behavior of
  41014. such queues and consumers. It reports the amount of work done and
  41015. how long it took, for the first cycle after collection starts, and for
  41016. the total number of cycles needed to flush the queue. We use a state
  41017. machine to detect when the queue has been flushed and then we log the
  41018. stats; see {@link State} for enumeration of the states and their meanings.]]>
  41019. </doc>
  41020. </class>
  41021. <!-- end class org.apache.hadoop.util.QueueProcessingStatistics -->
  41022. <!-- start class org.apache.hadoop.util.QueueProcessingStatistics.State -->
  41023. <class name="QueueProcessingStatistics.State" extends="java.lang.Enum"
  41024. abstract="false"
  41025. static="true" final="true" visibility="public"
  41026. deprecated="not deprecated">
  41027. <method name="values" return="org.apache.hadoop.util.QueueProcessingStatistics.State[]"
  41028. abstract="false" native="false" synchronized="false"
  41029. static="true" final="false" visibility="public"
  41030. deprecated="not deprecated">
  41031. </method>
  41032. <method name="valueOf" return="org.apache.hadoop.util.QueueProcessingStatistics.State"
  41033. abstract="false" native="false" synchronized="false"
  41034. static="true" final="false" visibility="public"
  41035. deprecated="not deprecated">
  41036. <param name="name" type="java.lang.String"/>
  41037. </method>
  41038. <field name="BEGIN_COLLECTING" type="org.apache.hadoop.util.QueueProcessingStatistics.State"
  41039. transient="false" volatile="false"
  41040. static="true" final="true" visibility="public"
  41041. deprecated="not deprecated">
  41042. </field>
  41043. <field name="IN_FIRST_CYCLE" type="org.apache.hadoop.util.QueueProcessingStatistics.State"
  41044. transient="false" volatile="false"
  41045. static="true" final="true" visibility="public"
  41046. deprecated="not deprecated">
  41047. </field>
  41048. <field name="IN_SOLE_CYCLE" type="org.apache.hadoop.util.QueueProcessingStatistics.State"
  41049. transient="false" volatile="false"
  41050. static="true" final="true" visibility="public"
  41051. deprecated="not deprecated">
  41052. </field>
  41053. <field name="DONE_FIRST_CYCLE" type="org.apache.hadoop.util.QueueProcessingStatistics.State"
  41054. transient="false" volatile="false"
  41055. static="true" final="true" visibility="public"
  41056. deprecated="not deprecated">
  41057. </field>
  41058. <field name="IN_LAST_CYCLE" type="org.apache.hadoop.util.QueueProcessingStatistics.State"
  41059. transient="false" volatile="false"
  41060. static="true" final="true" visibility="public"
  41061. deprecated="not deprecated">
  41062. </field>
  41063. <field name="DONE_COLLECTING" type="org.apache.hadoop.util.QueueProcessingStatistics.State"
  41064. transient="false" volatile="false"
  41065. static="true" final="true" visibility="public"
  41066. deprecated="not deprecated">
  41067. </field>
  41068. <doc>
  41069. <![CDATA[This enum provides the "states" of a state machine for
  41070. {@link QueueProcessingStatistics}.
  41071. The meanings of the states are: <ul>
  41072. <li> BEGIN_COLLECTING - Ready to begin.
  41073. <li> IN_FIRST_CYCLE - Started the first cycle.
  41074. <li> IN_SOLE_CYCLE - Still in first cycle, but already know there will be
  41075. no further cycles because this one will complete all
  41076. needed work. When done, will go straight to
  41077. "DONE_COLLECTING".
  41078. <li> DONE_FIRST_CYCLE - Done first cycle, doing subsequent cycles.
  41079. <li> IN_LAST_CYCLE - Started the last cycle.
  41080. <li> DONE_COLLECTING - Done with last cycle, finishing up.
  41081. </ul>]]>
  41082. </doc>
  41083. </class>
  41084. <!-- end class org.apache.hadoop.util.QueueProcessingStatistics.State -->
  41085. <!-- start class org.apache.hadoop.util.QuickSort -->
  41086. <class name="QuickSort" extends="java.lang.Object"
  41087. abstract="false"
  41088. static="false" final="true" visibility="public"
  41089. deprecated="not deprecated">
  41090. <implements name="org.apache.hadoop.util.IndexedSorter"/>
  41091. <constructor name="QuickSort"
  41092. static="false" final="false" visibility="public"
  41093. deprecated="not deprecated">
  41094. </constructor>
  41095. <method name="getMaxDepth" return="int"
  41096. abstract="false" native="false" synchronized="false"
  41097. static="true" final="false" visibility="protected"
  41098. deprecated="not deprecated">
  41099. <param name="x" type="int"/>
  41100. <doc>
  41101. <![CDATA[Deepest recursion before giving up and doing a heapsort.
  41102. Returns 2 * ceil(log(n)).]]>
  41103. </doc>
  41104. </method>
  41105. <method name="sort"
  41106. abstract="false" native="false" synchronized="false"
  41107. static="false" final="false" visibility="public"
  41108. deprecated="not deprecated">
  41109. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  41110. <param name="p" type="int"/>
  41111. <param name="r" type="int"/>
  41112. <doc>
  41113. <![CDATA[Sort the given range of items using quick sort.
  41114. {@inheritDoc} If the recursion depth falls below {@link #getMaxDepth},
  41115. then switch to {@link HeapSort}.]]>
  41116. </doc>
  41117. </method>
  41118. <method name="sort"
  41119. abstract="false" native="false" synchronized="false"
  41120. static="false" final="false" visibility="public"
  41121. deprecated="not deprecated">
  41122. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  41123. <param name="p" type="int"/>
  41124. <param name="r" type="int"/>
  41125. <param name="rep" type="org.apache.hadoop.util.Progressable"/>
  41126. <doc>
  41127. <![CDATA[{@inheritDoc}]]>
  41128. </doc>
  41129. </method>
  41130. <doc>
  41131. <![CDATA[An implementation of the core algorithm of QuickSort.]]>
  41132. </doc>
  41133. </class>
  41134. <!-- end class org.apache.hadoop.util.QuickSort -->
  41135. <!-- start class org.apache.hadoop.util.ReflectionUtils -->
  41136. <class name="ReflectionUtils" extends="java.lang.Object"
  41137. abstract="false"
  41138. static="false" final="false" visibility="public"
  41139. deprecated="not deprecated">
  41140. <constructor name="ReflectionUtils"
  41141. static="false" final="false" visibility="public"
  41142. deprecated="not deprecated">
  41143. </constructor>
  41144. <method name="setConf"
  41145. abstract="false" native="false" synchronized="false"
  41146. static="true" final="false" visibility="public"
  41147. deprecated="not deprecated">
  41148. <param name="theObject" type="java.lang.Object"/>
  41149. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  41150. <doc>
  41151. <![CDATA[Check and set 'configuration' if necessary.
  41152. @param theObject object for which to set configuration
  41153. @param conf Configuration]]>
  41154. </doc>
  41155. </method>
  41156. <method name="newInstance" return="java.lang.Object"
  41157. abstract="false" native="false" synchronized="false"
  41158. static="true" final="false" visibility="public"
  41159. deprecated="not deprecated">
  41160. <param name="theClass" type="java.lang.Class"/>
  41161. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  41162. <doc>
  41163. <![CDATA[Create an object for the given class and initialize it from conf
  41164. @param theClass class of which an object is created
  41165. @param conf Configuration
  41166. @return a new object]]>
  41167. </doc>
  41168. </method>
  41169. <method name="setContentionTracing"
  41170. abstract="false" native="false" synchronized="false"
  41171. static="true" final="false" visibility="public"
  41172. deprecated="not deprecated">
  41173. <param name="val" type="boolean"/>
  41174. </method>
  41175. <method name="printThreadInfo"
  41176. abstract="false" native="false" synchronized="false"
  41177. static="true" final="false" visibility="public"
  41178. deprecated="not deprecated">
  41179. <param name="stream" type="java.io.PrintWriter"/>
  41180. <param name="title" type="java.lang.String"/>
  41181. <doc>
  41182. <![CDATA[Print all of the thread's information and stack traces.
  41183. @param stream the stream to
  41184. @param title a string title for the stack trace]]>
  41185. </doc>
  41186. </method>
  41187. <method name="logThreadInfo"
  41188. abstract="false" native="false" synchronized="false"
  41189. static="true" final="false" visibility="public"
  41190. deprecated="not deprecated">
  41191. <param name="log" type="org.apache.commons.logging.Log"/>
  41192. <param name="title" type="java.lang.String"/>
  41193. <param name="minInterval" type="long"/>
  41194. <doc>
  41195. <![CDATA[Log the current thread stacks at INFO level.
  41196. @param log the logger that logs the stack trace
  41197. @param title a descriptive title for the call stacks
  41198. @param minInterval the minimum time from the last]]>
  41199. </doc>
  41200. </method>
  41201. <method name="getClass" return="java.lang.Class"
  41202. abstract="false" native="false" synchronized="false"
  41203. static="true" final="false" visibility="public"
  41204. deprecated="not deprecated">
  41205. <param name="o" type="java.lang.Object"/>
  41206. <doc>
  41207. <![CDATA[Return the correctly-typed {@link Class} of the given object.
  41208. @param o object whose correctly-typed <code>Class</code> is to be obtained
  41209. @return the correctly typed <code>Class</code> of the given object.]]>
  41210. </doc>
  41211. </method>
  41212. <method name="copy" return="java.lang.Object"
  41213. abstract="false" native="false" synchronized="false"
  41214. static="true" final="false" visibility="public"
  41215. deprecated="not deprecated">
  41216. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  41217. <param name="src" type="java.lang.Object"/>
  41218. <param name="dst" type="java.lang.Object"/>
  41219. <exception name="IOException" type="java.io.IOException"/>
  41220. <doc>
  41221. <![CDATA[Make a copy of the writable object using serialization to a buffer
  41222. @param dst the object to copy from
  41223. @param src the object to copy into, which is destroyed
  41224. @throws IOException]]>
  41225. </doc>
  41226. </method>
  41227. <method name="cloneWritableInto"
  41228. abstract="false" native="false" synchronized="false"
  41229. static="true" final="false" visibility="public"
  41230. deprecated="not deprecated">
  41231. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  41232. <param name="src" type="org.apache.hadoop.io.Writable"/>
  41233. <exception name="IOException" type="java.io.IOException"/>
  41234. </method>
  41235. <doc>
  41236. <![CDATA[General reflection utils]]>
  41237. </doc>
  41238. </class>
  41239. <!-- end class org.apache.hadoop.util.ReflectionUtils -->
  41240. <!-- start class org.apache.hadoop.util.ResourceCalculatorPlugin -->
  41241. <class name="ResourceCalculatorPlugin" extends="org.apache.hadoop.conf.Configured"
  41242. abstract="true"
  41243. static="false" final="false" visibility="public"
  41244. deprecated="not deprecated">
  41245. <constructor name="ResourceCalculatorPlugin"
  41246. static="false" final="false" visibility="public"
  41247. deprecated="not deprecated">
  41248. </constructor>
  41249. <method name="getVirtualMemorySize" return="long"
  41250. abstract="true" native="false" synchronized="false"
  41251. static="false" final="false" visibility="public"
  41252. deprecated="not deprecated">
  41253. <doc>
  41254. <![CDATA[Obtain the total size of the virtual memory present in the system.
  41255. @return virtual memory size in bytes.]]>
  41256. </doc>
  41257. </method>
  41258. <method name="getPhysicalMemorySize" return="long"
  41259. abstract="true" native="false" synchronized="false"
  41260. static="false" final="false" visibility="public"
  41261. deprecated="not deprecated">
  41262. <doc>
  41263. <![CDATA[Obtain the total size of the physical memory present in the system.
  41264. @return physical memory size bytes.]]>
  41265. </doc>
  41266. </method>
  41267. <method name="getAvailableVirtualMemorySize" return="long"
  41268. abstract="true" native="false" synchronized="false"
  41269. static="false" final="false" visibility="public"
  41270. deprecated="not deprecated">
  41271. <doc>
  41272. <![CDATA[Obtain the total size of the available virtual memory present
  41273. in the system.
  41274. @return available virtual memory size in bytes.]]>
  41275. </doc>
  41276. </method>
  41277. <method name="getAvailablePhysicalMemorySize" return="long"
  41278. abstract="true" native="false" synchronized="false"
  41279. static="false" final="false" visibility="public"
  41280. deprecated="not deprecated">
  41281. <doc>
  41282. <![CDATA[Obtain the total size of the available physical memory present
  41283. in the system.
  41284. @return available physical memory size bytes.]]>
  41285. </doc>
  41286. </method>
  41287. <method name="getNumProcessors" return="int"
  41288. abstract="true" native="false" synchronized="false"
  41289. static="false" final="false" visibility="public"
  41290. deprecated="not deprecated">
  41291. <doc>
  41292. <![CDATA[Obtain the total number of processors present on the system.
  41293. @return number of processors]]>
  41294. </doc>
  41295. </method>
  41296. <method name="getCpuFrequency" return="long"
  41297. abstract="true" native="false" synchronized="false"
  41298. static="false" final="false" visibility="public"
  41299. deprecated="not deprecated">
  41300. <doc>
  41301. <![CDATA[Obtain the CPU frequency of on the system.
  41302. @return CPU frequency in kHz]]>
  41303. </doc>
  41304. </method>
  41305. <method name="getCumulativeCpuTime" return="long"
  41306. abstract="true" native="false" synchronized="false"
  41307. static="false" final="false" visibility="public"
  41308. deprecated="not deprecated">
  41309. <doc>
  41310. <![CDATA[Obtain the cumulative CPU time since the system is on.
  41311. @return cumulative CPU time in milliseconds]]>
  41312. </doc>
  41313. </method>
  41314. <method name="getCpuUsage" return="float"
  41315. abstract="true" native="false" synchronized="false"
  41316. static="false" final="false" visibility="public"
  41317. deprecated="not deprecated">
  41318. <doc>
  41319. <![CDATA[Obtain the CPU usage % of the machine. Return -1 if it is unavailable
  41320. @return CPU usage in %]]>
  41321. </doc>
  41322. </method>
  41323. <method name="getProcResourceValues" return="org.apache.hadoop.util.ResourceCalculatorPlugin.ProcResourceValues"
  41324. abstract="true" native="false" synchronized="false"
  41325. static="false" final="false" visibility="public"
  41326. deprecated="not deprecated">
  41327. <doc>
  41328. <![CDATA[Obtain resource status used by current process tree.]]>
  41329. </doc>
  41330. </method>
  41331. <method name="getResourceCalculatorPlugin" return="org.apache.hadoop.util.ResourceCalculatorPlugin"
  41332. abstract="false" native="false" synchronized="false"
  41333. static="true" final="false" visibility="public"
  41334. deprecated="not deprecated">
  41335. <param name="clazz" type="java.lang.Class"/>
  41336. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  41337. <doc>
  41338. <![CDATA[Get the ResourceCalculatorPlugin from the class name and configure it. If
  41339. class name is null, this method will try and return a memory calculator
  41340. plugin available for this system.
  41341. @param clazz class-name
  41342. @param conf configure the plugin with this.
  41343. @return ResourceCalculatorPlugin]]>
  41344. </doc>
  41345. </method>
  41346. <doc>
  41347. <![CDATA[Plugin to calculate resource information on the system.]]>
  41348. </doc>
  41349. </class>
  41350. <!-- end class org.apache.hadoop.util.ResourceCalculatorPlugin -->
  41351. <!-- start class org.apache.hadoop.util.ResourceCalculatorPlugin.ProcResourceValues -->
  41352. <class name="ResourceCalculatorPlugin.ProcResourceValues" extends="java.lang.Object"
  41353. abstract="false"
  41354. static="true" final="false" visibility="public"
  41355. deprecated="not deprecated">
  41356. <constructor name="ResourceCalculatorPlugin.ProcResourceValues" type="long, long, long"
  41357. static="false" final="false" visibility="public"
  41358. deprecated="not deprecated">
  41359. </constructor>
  41360. <method name="getPhysicalMemorySize" return="long"
  41361. abstract="false" native="false" synchronized="false"
  41362. static="false" final="false" visibility="public"
  41363. deprecated="not deprecated">
  41364. <doc>
  41365. <![CDATA[Obtain the physical memory size used by current process tree.
  41366. @return physical memory size in bytes.]]>
  41367. </doc>
  41368. </method>
  41369. <method name="getVirtualMemorySize" return="long"
  41370. abstract="false" native="false" synchronized="false"
  41371. static="false" final="false" visibility="public"
  41372. deprecated="not deprecated">
  41373. <doc>
  41374. <![CDATA[Obtain the virtual memory size used by a current process tree.
  41375. @return virtual memory size in bytes.]]>
  41376. </doc>
  41377. </method>
  41378. <method name="getCumulativeCpuTime" return="long"
  41379. abstract="false" native="false" synchronized="false"
  41380. static="false" final="false" visibility="public"
  41381. deprecated="not deprecated">
  41382. <doc>
  41383. <![CDATA[Obtain the cumulative CPU time used by a current process tree.
  41384. @return cumulative CPU time in milliseconds]]>
  41385. </doc>
  41386. </method>
  41387. </class>
  41388. <!-- end class org.apache.hadoop.util.ResourceCalculatorPlugin.ProcResourceValues -->
  41389. <!-- start class org.apache.hadoop.util.RunJar -->
  41390. <class name="RunJar" extends="java.lang.Object"
  41391. abstract="false"
  41392. static="false" final="false" visibility="public"
  41393. deprecated="not deprecated">
  41394. <constructor name="RunJar"
  41395. static="false" final="false" visibility="public"
  41396. deprecated="not deprecated">
  41397. </constructor>
  41398. <method name="unJar"
  41399. abstract="false" native="false" synchronized="false"
  41400. static="true" final="false" visibility="public"
  41401. deprecated="not deprecated">
  41402. <param name="jarFile" type="java.io.File"/>
  41403. <param name="toDir" type="java.io.File"/>
  41404. <exception name="IOException" type="java.io.IOException"/>
  41405. <doc>
  41406. <![CDATA[Unpack a jar file into a directory.]]>
  41407. </doc>
  41408. </method>
  41409. <method name="main"
  41410. abstract="false" native="false" synchronized="false"
  41411. static="true" final="false" visibility="public"
  41412. deprecated="not deprecated">
  41413. <param name="args" type="java.lang.String[]"/>
  41414. <exception name="Throwable" type="java.lang.Throwable"/>
  41415. <doc>
  41416. <![CDATA[Run a Hadoop job jar. If the main class is not in the jar's manifest,
  41417. then it must be provided on the command line.]]>
  41418. </doc>
  41419. </method>
  41420. <doc>
  41421. <![CDATA[Run a Hadoop job jar.]]>
  41422. </doc>
  41423. </class>
  41424. <!-- end class org.apache.hadoop.util.RunJar -->
  41425. <!-- start class org.apache.hadoop.util.ServletUtil -->
  41426. <class name="ServletUtil" extends="java.lang.Object"
  41427. abstract="false"
  41428. static="false" final="false" visibility="public"
  41429. deprecated="not deprecated">
  41430. <constructor name="ServletUtil"
  41431. static="false" final="false" visibility="public"
  41432. deprecated="not deprecated">
  41433. </constructor>
  41434. <method name="initHTML" return="java.io.PrintWriter"
  41435. abstract="false" native="false" synchronized="false"
  41436. static="true" final="false" visibility="public"
  41437. deprecated="not deprecated">
  41438. <param name="response" type="javax.servlet.ServletResponse"/>
  41439. <param name="title" type="java.lang.String"/>
  41440. <exception name="IOException" type="java.io.IOException"/>
  41441. <doc>
  41442. <![CDATA[Initial HTML header]]>
  41443. </doc>
  41444. </method>
  41445. <method name="getParameter" return="java.lang.String"
  41446. abstract="false" native="false" synchronized="false"
  41447. static="true" final="false" visibility="public"
  41448. deprecated="not deprecated">
  41449. <param name="request" type="javax.servlet.ServletRequest"/>
  41450. <param name="name" type="java.lang.String"/>
  41451. <doc>
  41452. <![CDATA[Get a parameter from a ServletRequest.
  41453. Return null if the parameter contains only white spaces.]]>
  41454. </doc>
  41455. </method>
  41456. <method name="htmlFooter" return="java.lang.String"
  41457. abstract="false" native="false" synchronized="false"
  41458. static="true" final="false" visibility="public"
  41459. deprecated="not deprecated">
  41460. <doc>
  41461. <![CDATA[HTML footer to be added in the jsps.
  41462. @return the HTML footer.]]>
  41463. </doc>
  41464. </method>
  41465. <method name="percentageGraph" return="java.lang.String"
  41466. abstract="false" native="false" synchronized="false"
  41467. static="true" final="false" visibility="public"
  41468. deprecated="not deprecated">
  41469. <param name="perc" type="int"/>
  41470. <param name="width" type="int"/>
  41471. <exception name="IOException" type="java.io.IOException"/>
  41472. <doc>
  41473. <![CDATA[Generate the percentage graph and returns HTML representation string
  41474. of the same.
  41475. @param perc The percentage value for which graph is to be generated
  41476. @param width The width of the display table
  41477. @return HTML String representation of the percentage graph
  41478. @throws IOException]]>
  41479. </doc>
  41480. </method>
  41481. <method name="percentageGraph" return="java.lang.String"
  41482. abstract="false" native="false" synchronized="false"
  41483. static="true" final="false" visibility="public"
  41484. deprecated="not deprecated">
  41485. <param name="perc" type="float"/>
  41486. <param name="width" type="int"/>
  41487. <exception name="IOException" type="java.io.IOException"/>
  41488. <doc>
  41489. <![CDATA[Generate the percentage graph and returns HTML representation string
  41490. of the same.
  41491. @param perc The percentage value for which graph is to be generated
  41492. @param width The width of the display table
  41493. @return HTML String representation of the percentage graph
  41494. @throws IOException]]>
  41495. </doc>
  41496. </method>
  41497. <field name="HTML_TAIL" type="java.lang.String"
  41498. transient="false" volatile="false"
  41499. static="true" final="true" visibility="public"
  41500. deprecated="not deprecated">
  41501. </field>
  41502. </class>
  41503. <!-- end class org.apache.hadoop.util.ServletUtil -->
  41504. <!-- start class org.apache.hadoop.util.Shell -->
  41505. <class name="Shell" extends="java.lang.Object"
  41506. abstract="true"
  41507. static="false" final="false" visibility="public"
  41508. deprecated="not deprecated">
  41509. <constructor name="Shell"
  41510. static="false" final="false" visibility="public"
  41511. deprecated="not deprecated">
  41512. </constructor>
  41513. <constructor name="Shell" type="long"
  41514. static="false" final="false" visibility="public"
  41515. deprecated="not deprecated">
  41516. <doc>
  41517. <![CDATA[@param interval the minimum duration to wait before re-executing the
  41518. command.]]>
  41519. </doc>
  41520. </constructor>
  41521. <method name="getGroupsCommand" return="java.lang.String[]"
  41522. abstract="false" native="false" synchronized="false"
  41523. static="true" final="false" visibility="public"
  41524. deprecated="not deprecated">
  41525. <doc>
  41526. <![CDATA[a Unix command to get the current user's groups list]]>
  41527. </doc>
  41528. </method>
  41529. <method name="getGroupsForUserCommand" return="java.lang.String[]"
  41530. abstract="false" native="false" synchronized="false"
  41531. static="true" final="false" visibility="public"
  41532. deprecated="not deprecated">
  41533. <param name="user" type="java.lang.String"/>
  41534. <doc>
  41535. <![CDATA[a Unix command to get a given user's groups list]]>
  41536. </doc>
  41537. </method>
  41538. <method name="getUsersForNetgroupCommand" return="java.lang.String[]"
  41539. abstract="false" native="false" synchronized="false"
  41540. static="true" final="false" visibility="public"
  41541. deprecated="not deprecated">
  41542. <param name="netgroup" type="java.lang.String"/>
  41543. <doc>
  41544. <![CDATA[a Unix command to get a given netgroup's user list]]>
  41545. </doc>
  41546. </method>
  41547. <method name="getGET_PERMISSION_COMMAND" return="java.lang.String[]"
  41548. abstract="false" native="false" synchronized="false"
  41549. static="true" final="false" visibility="public"
  41550. deprecated="not deprecated">
  41551. <doc>
  41552. <![CDATA[Return a Unix command to get permission information.]]>
  41553. </doc>
  41554. </method>
  41555. <method name="getUlimitMemoryCommand" return="java.lang.String[]"
  41556. abstract="false" native="false" synchronized="false"
  41557. static="true" final="false" visibility="public"
  41558. deprecated="not deprecated">
  41559. <param name="memoryLimit" type="int"/>
  41560. <doc>
  41561. <![CDATA[Get the Unix command for setting the maximum virtual memory available
  41562. to a given child process. This is only relevant when we are forking a
  41563. process from within the Mapper or the Reducer implementations.
  41564. Also see Hadoop Pipes and Hadoop Streaming.
  41565. It also checks to ensure that we are running on a *nix platform else
  41566. (e.g. in Cygwin/Windows) it returns <code>null</code>.
  41567. @param memoryLimit virtual memory limit
  41568. @return a <code>String[]</code> with the ulimit command arguments or
  41569. <code>null</code> if we are running on a non *nix platform or
  41570. if the limit is unspecified.]]>
  41571. </doc>
  41572. </method>
  41573. <method name="getUlimitMemoryCommand" return="java.lang.String[]"
  41574. abstract="false" native="false" synchronized="false"
  41575. static="true" final="false" visibility="public"
  41576. deprecated="Use {@link #getUlimitMemoryCommand(int)}">
  41577. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  41578. <doc>
  41579. <![CDATA[Get the Unix command for setting the maximum virtual memory available
  41580. to a given child process. This is only relevant when we are forking a
  41581. process from within the {@link org.apache.hadoop.mapred.Mapper} or the
  41582. {@link org.apache.hadoop.mapred.Reducer} implementations
  41583. e.g. <a href="{@docRoot}/org/apache/hadoop/mapred/pipes/package-summary.html">Hadoop Pipes</a>
  41584. or <a href="{@docRoot}/org/apache/hadoop/streaming/package-summary.html">Hadoop Streaming</a>.
  41585. It also checks to ensure that we are running on a *nix platform else
  41586. (e.g. in Cygwin/Windows) it returns <code>null</code>.
  41587. @param conf configuration
  41588. @return a <code>String[]</code> with the ulimit command arguments or
  41589. <code>null</code> if we are running on a non *nix platform or
  41590. if the limit is unspecified.
  41591. @deprecated Use {@link #getUlimitMemoryCommand(int)}]]>
  41592. </doc>
  41593. </method>
  41594. <method name="setEnvironment"
  41595. abstract="false" native="false" synchronized="false"
  41596. static="false" final="false" visibility="protected"
  41597. deprecated="not deprecated">
  41598. <param name="env" type="java.util.Map"/>
  41599. <doc>
  41600. <![CDATA[set the environment for the command
  41601. @param env Mapping of environment variables]]>
  41602. </doc>
  41603. </method>
  41604. <method name="setWorkingDirectory"
  41605. abstract="false" native="false" synchronized="false"
  41606. static="false" final="false" visibility="protected"
  41607. deprecated="not deprecated">
  41608. <param name="dir" type="java.io.File"/>
  41609. <doc>
  41610. <![CDATA[set the working directory
  41611. @param dir The directory where the command would be executed]]>
  41612. </doc>
  41613. </method>
  41614. <method name="run"
  41615. abstract="false" native="false" synchronized="false"
  41616. static="false" final="false" visibility="protected"
  41617. deprecated="not deprecated">
  41618. <exception name="IOException" type="java.io.IOException"/>
  41619. <doc>
  41620. <![CDATA[check to see if a command needs to be executed and execute if needed]]>
  41621. </doc>
  41622. </method>
  41623. <method name="getExecString" return="java.lang.String[]"
  41624. abstract="true" native="false" synchronized="false"
  41625. static="false" final="false" visibility="protected"
  41626. deprecated="not deprecated">
  41627. <doc>
  41628. <![CDATA[return an array containing the command name & its parameters]]>
  41629. </doc>
  41630. </method>
  41631. <method name="parseExecResult"
  41632. abstract="true" native="false" synchronized="false"
  41633. static="false" final="false" visibility="protected"
  41634. deprecated="not deprecated">
  41635. <param name="lines" type="java.io.BufferedReader"/>
  41636. <exception name="IOException" type="java.io.IOException"/>
  41637. <doc>
  41638. <![CDATA[Parse the execution result]]>
  41639. </doc>
  41640. </method>
  41641. <method name="getProcess" return="java.lang.Process"
  41642. abstract="false" native="false" synchronized="false"
  41643. static="false" final="false" visibility="public"
  41644. deprecated="not deprecated">
  41645. <doc>
  41646. <![CDATA[get the current sub-process executing the given command
  41647. @return process executing the command]]>
  41648. </doc>
  41649. </method>
  41650. <method name="getExitCode" return="int"
  41651. abstract="false" native="false" synchronized="false"
  41652. static="false" final="false" visibility="public"
  41653. deprecated="not deprecated">
  41654. <doc>
  41655. <![CDATA[get the exit code
  41656. @return the exit code of the process]]>
  41657. </doc>
  41658. </method>
  41659. <method name="isTimedOut" return="boolean"
  41660. abstract="false" native="false" synchronized="false"
  41661. static="false" final="false" visibility="public"
  41662. deprecated="not deprecated">
  41663. <doc>
  41664. <![CDATA[To check if the passed script to shell command executor timed out or
  41665. not.
  41666. @return if the script timed out.]]>
  41667. </doc>
  41668. </method>
  41669. <method name="execCommand" return="java.lang.String"
  41670. abstract="false" native="false" synchronized="false"
  41671. static="true" final="false" visibility="public"
  41672. deprecated="not deprecated">
  41673. <param name="cmd" type="java.lang.String[]"/>
  41674. <exception name="IOException" type="java.io.IOException"/>
  41675. <doc>
  41676. <![CDATA[Static method to execute a shell command.
  41677. Covers most of the simple cases without requiring the user to implement
  41678. the <code>Shell</code> interface.
  41679. @param cmd shell command to execute.
  41680. @return the output of the executed command.]]>
  41681. </doc>
  41682. </method>
  41683. <method name="execCommand" return="java.lang.String"
  41684. abstract="false" native="false" synchronized="false"
  41685. static="true" final="false" visibility="public"
  41686. deprecated="not deprecated">
  41687. <param name="env" type="java.util.Map"/>
  41688. <param name="cmd" type="java.lang.String[]"/>
  41689. <param name="timeout" type="long"/>
  41690. <exception name="IOException" type="java.io.IOException"/>
  41691. <doc>
  41692. <![CDATA[Static method to execute a shell command.
  41693. Covers most of the simple cases without requiring the user to implement
  41694. the <code>Shell</code> interface.
  41695. @param env the map of environment key=value
  41696. @param cmd shell command to execute.
  41697. @param timeout time in milliseconds after which script should be marked timeout
  41698. @return the output of the executed command.o]]>
  41699. </doc>
  41700. </method>
  41701. <method name="execCommand" return="java.lang.String"
  41702. abstract="false" native="false" synchronized="false"
  41703. static="true" final="false" visibility="public"
  41704. deprecated="not deprecated">
  41705. <param name="env" type="java.util.Map"/>
  41706. <param name="cmd" type="java.lang.String[]"/>
  41707. <exception name="IOException" type="java.io.IOException"/>
  41708. <doc>
  41709. <![CDATA[Static method to execute a shell command.
  41710. Covers most of the simple cases without requiring the user to implement
  41711. the <code>Shell</code> interface.
  41712. @param env the map of environment key=value
  41713. @param cmd shell command to execute.
  41714. @return the output of the executed command.]]>
  41715. </doc>
  41716. </method>
  41717. <field name="LOG" type="org.apache.commons.logging.Log"
  41718. transient="false" volatile="false"
  41719. static="true" final="true" visibility="public"
  41720. deprecated="not deprecated">
  41721. </field>
  41722. <field name="USER_NAME_COMMAND" type="java.lang.String"
  41723. transient="false" volatile="false"
  41724. static="true" final="true" visibility="public"
  41725. deprecated="not deprecated">
  41726. <doc>
  41727. <![CDATA[a Unix command to get the current user's name]]>
  41728. </doc>
  41729. </field>
  41730. <field name="SET_PERMISSION_COMMAND" type="java.lang.String"
  41731. transient="false" volatile="false"
  41732. static="true" final="true" visibility="public"
  41733. deprecated="not deprecated">
  41734. <doc>
  41735. <![CDATA[a Unix command to set permission]]>
  41736. </doc>
  41737. </field>
  41738. <field name="SET_OWNER_COMMAND" type="java.lang.String"
  41739. transient="false" volatile="false"
  41740. static="true" final="true" visibility="public"
  41741. deprecated="not deprecated">
  41742. <doc>
  41743. <![CDATA[a Unix command to set owner]]>
  41744. </doc>
  41745. </field>
  41746. <field name="SET_GROUP_COMMAND" type="java.lang.String"
  41747. transient="false" volatile="false"
  41748. static="true" final="true" visibility="public"
  41749. deprecated="not deprecated">
  41750. </field>
  41751. <field name="timeOutInterval" type="long"
  41752. transient="false" volatile="false"
  41753. static="false" final="false" visibility="protected"
  41754. deprecated="not deprecated">
  41755. <doc>
  41756. <![CDATA[Time after which the executing script would be timedout]]>
  41757. </doc>
  41758. </field>
  41759. <field name="ULIMIT_COMMAND" type="java.lang.String"
  41760. transient="false" volatile="false"
  41761. static="true" final="true" visibility="public"
  41762. deprecated="not deprecated">
  41763. <doc>
  41764. <![CDATA[a Unix command to get ulimit of a process.]]>
  41765. </doc>
  41766. </field>
  41767. <field name="WINDOWS" type="boolean"
  41768. transient="false" volatile="false"
  41769. static="true" final="true" visibility="public"
  41770. deprecated="not deprecated">
  41771. <doc>
  41772. <![CDATA[Set to true on Windows platforms]]>
  41773. </doc>
  41774. </field>
  41775. <doc>
  41776. <![CDATA[A base class for running a Unix command.
  41777. <code>Shell</code> can be used to run unix commands like <code>du</code> or
  41778. <code>df</code>. It also offers facilities to gate commands by
  41779. time-intervals.]]>
  41780. </doc>
  41781. </class>
  41782. <!-- end class org.apache.hadoop.util.Shell -->
  41783. <!-- start class org.apache.hadoop.util.Shell.ExitCodeException -->
  41784. <class name="Shell.ExitCodeException" extends="java.io.IOException"
  41785. abstract="false"
  41786. static="true" final="false" visibility="public"
  41787. deprecated="not deprecated">
  41788. <constructor name="Shell.ExitCodeException" type="int, java.lang.String"
  41789. static="false" final="false" visibility="public"
  41790. deprecated="not deprecated">
  41791. </constructor>
  41792. <method name="getExitCode" return="int"
  41793. abstract="false" native="false" synchronized="false"
  41794. static="false" final="false" visibility="public"
  41795. deprecated="not deprecated">
  41796. </method>
  41797. <doc>
  41798. <![CDATA[This is an IOException with exit code added.]]>
  41799. </doc>
  41800. </class>
  41801. <!-- end class org.apache.hadoop.util.Shell.ExitCodeException -->
  41802. <!-- start class org.apache.hadoop.util.Shell.ShellCommandExecutor -->
  41803. <class name="Shell.ShellCommandExecutor" extends="org.apache.hadoop.util.Shell"
  41804. abstract="false"
  41805. static="true" final="false" visibility="public"
  41806. deprecated="not deprecated">
  41807. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[]"
  41808. static="false" final="false" visibility="public"
  41809. deprecated="not deprecated">
  41810. </constructor>
  41811. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[], java.io.File"
  41812. static="false" final="false" visibility="public"
  41813. deprecated="not deprecated">
  41814. </constructor>
  41815. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[], java.io.File, java.util.Map"
  41816. static="false" final="false" visibility="public"
  41817. deprecated="not deprecated">
  41818. </constructor>
  41819. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[], java.io.File, java.util.Map, long"
  41820. static="false" final="false" visibility="public"
  41821. deprecated="not deprecated">
  41822. <doc>
  41823. <![CDATA[Create a new instance of the ShellCommandExecutor to execute a command.
  41824. @param execString The command to execute with arguments
  41825. @param dir If not-null, specifies the directory which should be set
  41826. as the current working directory for the command.
  41827. If null, the current working directory is not modified.
  41828. @param env If not-null, environment of the command will include the
  41829. key-value pairs specified in the map. If null, the current
  41830. environment is not modified.
  41831. @param timeout Specifies the time in milliseconds, after which the
  41832. command will be killed and the status marked as timedout.
  41833. If 0, the command will not be timed out.]]>
  41834. </doc>
  41835. </constructor>
  41836. <method name="execute"
  41837. abstract="false" native="false" synchronized="false"
  41838. static="false" final="false" visibility="public"
  41839. deprecated="not deprecated">
  41840. <exception name="IOException" type="java.io.IOException"/>
  41841. <doc>
  41842. <![CDATA[Execute the shell command.]]>
  41843. </doc>
  41844. </method>
  41845. <method name="getExecString" return="java.lang.String[]"
  41846. abstract="false" native="false" synchronized="false"
  41847. static="false" final="false" visibility="protected"
  41848. deprecated="not deprecated">
  41849. </method>
  41850. <method name="parseExecResult"
  41851. abstract="false" native="false" synchronized="false"
  41852. static="false" final="false" visibility="protected"
  41853. deprecated="not deprecated">
  41854. <param name="lines" type="java.io.BufferedReader"/>
  41855. <exception name="IOException" type="java.io.IOException"/>
  41856. </method>
  41857. <method name="getOutput" return="java.lang.String"
  41858. abstract="false" native="false" synchronized="false"
  41859. static="false" final="false" visibility="public"
  41860. deprecated="not deprecated">
  41861. <doc>
  41862. <![CDATA[Get the output of the shell command.]]>
  41863. </doc>
  41864. </method>
  41865. <method name="toString" return="java.lang.String"
  41866. abstract="false" native="false" synchronized="false"
  41867. static="false" final="false" visibility="public"
  41868. deprecated="not deprecated">
  41869. <doc>
  41870. <![CDATA[Returns the commands of this instance.
  41871. Arguments with spaces in are presented with quotes round; other
  41872. arguments are presented raw
  41873. @return a string representation of the object.]]>
  41874. </doc>
  41875. </method>
  41876. <doc>
  41877. <![CDATA[A simple shell command executor.
  41878. <code>ShellCommandExecutor</code>should be used in cases where the output
  41879. of the command needs no explicit parsing and where the command, working
  41880. directory and the environment remains unchanged. The output of the command
  41881. is stored as-is and is expected to be small.]]>
  41882. </doc>
  41883. </class>
  41884. <!-- end class org.apache.hadoop.util.Shell.ShellCommandExecutor -->
  41885. <!-- start class org.apache.hadoop.util.StringUtils -->
  41886. <class name="StringUtils" extends="java.lang.Object"
  41887. abstract="false"
  41888. static="false" final="false" visibility="public"
  41889. deprecated="not deprecated">
  41890. <constructor name="StringUtils"
  41891. static="false" final="false" visibility="public"
  41892. deprecated="not deprecated">
  41893. </constructor>
  41894. <method name="stringifyException" return="java.lang.String"
  41895. abstract="false" native="false" synchronized="false"
  41896. static="true" final="false" visibility="public"
  41897. deprecated="not deprecated">
  41898. <param name="e" type="java.lang.Throwable"/>
  41899. <doc>
  41900. <![CDATA[Make a string representation of the exception.
  41901. @param e The exception to stringify
  41902. @return A string with exception name and call stack.]]>
  41903. </doc>
  41904. </method>
  41905. <method name="simpleHostname" return="java.lang.String"
  41906. abstract="false" native="false" synchronized="false"
  41907. static="true" final="false" visibility="public"
  41908. deprecated="not deprecated">
  41909. <param name="fullHostname" type="java.lang.String"/>
  41910. <doc>
  41911. <![CDATA[Given a full hostname, return the word upto the first dot.
  41912. @param fullHostname the full hostname
  41913. @return the hostname to the first dot]]>
  41914. </doc>
  41915. </method>
  41916. <method name="humanReadableInt" return="java.lang.String"
  41917. abstract="false" native="false" synchronized="false"
  41918. static="true" final="false" visibility="public"
  41919. deprecated="not deprecated">
  41920. <param name="number" type="long"/>
  41921. <doc>
  41922. <![CDATA[Given an integer, return a string that is in an approximate, but human
  41923. readable format.
  41924. It uses the bases 'k', 'm', and 'g' for 1024, 1024**2, and 1024**3.
  41925. @param number the number to format
  41926. @return a human readable form of the integer]]>
  41927. </doc>
  41928. </method>
  41929. <method name="formatPercent" return="java.lang.String"
  41930. abstract="false" native="false" synchronized="false"
  41931. static="true" final="false" visibility="public"
  41932. deprecated="not deprecated">
  41933. <param name="done" type="double"/>
  41934. <param name="digits" type="int"/>
  41935. <doc>
  41936. <![CDATA[Format a percentage for presentation to the user.
  41937. @param done the percentage to format (0.0 to 1.0)
  41938. @param digits the number of digits past the decimal point
  41939. @return a string representation of the percentage]]>
  41940. </doc>
  41941. </method>
  41942. <method name="arrayToString" return="java.lang.String"
  41943. abstract="false" native="false" synchronized="false"
  41944. static="true" final="false" visibility="public"
  41945. deprecated="not deprecated">
  41946. <param name="strs" type="java.lang.String[]"/>
  41947. <doc>
  41948. <![CDATA[Given an array of strings, return a comma-separated list of its elements.
  41949. @param strs Array of strings
  41950. @return Empty string if strs.length is 0, comma separated list of strings
  41951. otherwise]]>
  41952. </doc>
  41953. </method>
  41954. <method name="byteToHexString" return="java.lang.String"
  41955. abstract="false" native="false" synchronized="false"
  41956. static="true" final="false" visibility="public"
  41957. deprecated="not deprecated">
  41958. <param name="bytes" type="byte[]"/>
  41959. <param name="start" type="int"/>
  41960. <param name="end" type="int"/>
  41961. <doc>
  41962. <![CDATA[Given an array of bytes it will convert the bytes to a hex string
  41963. representation of the bytes
  41964. @param bytes
  41965. @param start start index, inclusively
  41966. @param end end index, exclusively
  41967. @return hex string representation of the byte array]]>
  41968. </doc>
  41969. </method>
  41970. <method name="byteToHexString" return="java.lang.String"
  41971. abstract="false" native="false" synchronized="false"
  41972. static="true" final="false" visibility="public"
  41973. deprecated="not deprecated">
  41974. <param name="bytes" type="byte[]"/>
  41975. <doc>
  41976. <![CDATA[Same as byteToHexString(bytes, 0, bytes.length).]]>
  41977. </doc>
  41978. </method>
  41979. <method name="hexStringToByte" return="byte[]"
  41980. abstract="false" native="false" synchronized="false"
  41981. static="true" final="false" visibility="public"
  41982. deprecated="not deprecated">
  41983. <param name="hex" type="java.lang.String"/>
  41984. <doc>
  41985. <![CDATA[Given a hexstring this will return the byte array corresponding to the
  41986. string
  41987. @param hex the hex String array
  41988. @return a byte array that is a hex string representation of the given
  41989. string. The size of the byte array is therefore hex.length/2]]>
  41990. </doc>
  41991. </method>
  41992. <method name="uriToString" return="java.lang.String"
  41993. abstract="false" native="false" synchronized="false"
  41994. static="true" final="false" visibility="public"
  41995. deprecated="not deprecated">
  41996. <param name="uris" type="java.net.URI[]"/>
  41997. <doc>
  41998. <![CDATA[@param uris]]>
  41999. </doc>
  42000. </method>
  42001. <method name="stringToURI" return="java.net.URI[]"
  42002. abstract="false" native="false" synchronized="false"
  42003. static="true" final="false" visibility="public"
  42004. deprecated="not deprecated">
  42005. <param name="str" type="java.lang.String[]"/>
  42006. <doc>
  42007. <![CDATA[@param str]]>
  42008. </doc>
  42009. </method>
  42010. <method name="stringToPath" return="org.apache.hadoop.fs.Path[]"
  42011. abstract="false" native="false" synchronized="false"
  42012. static="true" final="false" visibility="public"
  42013. deprecated="not deprecated">
  42014. <param name="str" type="java.lang.String[]"/>
  42015. <doc>
  42016. <![CDATA[@param str]]>
  42017. </doc>
  42018. </method>
  42019. <method name="formatTimeDiff" return="java.lang.String"
  42020. abstract="false" native="false" synchronized="false"
  42021. static="true" final="false" visibility="public"
  42022. deprecated="not deprecated">
  42023. <param name="finishTime" type="long"/>
  42024. <param name="startTime" type="long"/>
  42025. <doc>
  42026. <![CDATA[Given a finish and start time in long milliseconds, returns a
  42027. String in the format Xhrs, Ymins, Z sec, for the time difference between two times.
  42028. If finish time comes before start time then negative valeus of X, Y and Z wil return.
  42029. @param finishTime finish time
  42030. @param startTime start time]]>
  42031. </doc>
  42032. </method>
  42033. <method name="formatTime" return="java.lang.String"
  42034. abstract="false" native="false" synchronized="false"
  42035. static="true" final="false" visibility="public"
  42036. deprecated="not deprecated">
  42037. <param name="timeDiff" type="long"/>
  42038. <doc>
  42039. <![CDATA[Given the time in long milliseconds, returns a
  42040. String in the format Xhrs, Ymins, Z sec.
  42041. @param timeDiff The time difference to format]]>
  42042. </doc>
  42043. </method>
  42044. <method name="getFormattedTimeWithDiff" return="java.lang.String"
  42045. abstract="false" native="false" synchronized="false"
  42046. static="true" final="false" visibility="public"
  42047. deprecated="not deprecated">
  42048. <param name="dateFormat" type="java.text.DateFormat"/>
  42049. <param name="finishTime" type="long"/>
  42050. <param name="startTime" type="long"/>
  42051. <doc>
  42052. <![CDATA[Formats time in ms and appends difference (finishTime - startTime)
  42053. as returned by formatTimeDiff().
  42054. If finish time is 0, empty string is returned, if start time is 0
  42055. then difference is not appended to return value.
  42056. @param dateFormat date format to use
  42057. @param finishTime fnish time
  42058. @param startTime start time
  42059. @return formatted value.]]>
  42060. </doc>
  42061. </method>
  42062. <method name="getStrings" return="java.lang.String[]"
  42063. abstract="false" native="false" synchronized="false"
  42064. static="true" final="false" visibility="public"
  42065. deprecated="not deprecated">
  42066. <param name="str" type="java.lang.String"/>
  42067. <doc>
  42068. <![CDATA[Returns an arraylist of strings.
  42069. @param str the comma seperated string values
  42070. @return the arraylist of the comma seperated string values]]>
  42071. </doc>
  42072. </method>
  42073. <method name="getStringCollection" return="java.util.Collection"
  42074. abstract="false" native="false" synchronized="false"
  42075. static="true" final="false" visibility="public"
  42076. deprecated="not deprecated">
  42077. <param name="str" type="java.lang.String"/>
  42078. <doc>
  42079. <![CDATA[Returns a collection of strings.
  42080. @param str comma seperated string values
  42081. @return an <code>ArrayList</code> of string values]]>
  42082. </doc>
  42083. </method>
  42084. <method name="split" return="java.lang.String[]"
  42085. abstract="false" native="false" synchronized="false"
  42086. static="true" final="false" visibility="public"
  42087. deprecated="not deprecated">
  42088. <param name="str" type="java.lang.String"/>
  42089. <doc>
  42090. <![CDATA[Split a string using the default separator
  42091. @param str a string that may have escaped separator
  42092. @return an array of strings]]>
  42093. </doc>
  42094. </method>
  42095. <method name="split" return="java.lang.String[]"
  42096. abstract="false" native="false" synchronized="false"
  42097. static="true" final="false" visibility="public"
  42098. deprecated="not deprecated">
  42099. <param name="str" type="java.lang.String"/>
  42100. <param name="escapeChar" type="char"/>
  42101. <param name="separator" type="char"/>
  42102. <doc>
  42103. <![CDATA[Split a string using the given separator
  42104. @param str a string that may have escaped separator
  42105. @param escapeChar a char that be used to escape the separator
  42106. @param separator a separator char
  42107. @return an array of strings]]>
  42108. </doc>
  42109. </method>
  42110. <method name="findNext" return="int"
  42111. abstract="false" native="false" synchronized="false"
  42112. static="true" final="false" visibility="public"
  42113. deprecated="not deprecated">
  42114. <param name="str" type="java.lang.String"/>
  42115. <param name="separator" type="char"/>
  42116. <param name="escapeChar" type="char"/>
  42117. <param name="start" type="int"/>
  42118. <param name="split" type="java.lang.StringBuilder"/>
  42119. <doc>
  42120. <![CDATA[Finds the first occurrence of the separator character ignoring the escaped
  42121. separators starting from the index. Note the substring between the index
  42122. and the position of the separator is passed.
  42123. @param str the source string
  42124. @param separator the character to find
  42125. @param escapeChar character used to escape
  42126. @param start from where to search
  42127. @param split used to pass back the extracted string]]>
  42128. </doc>
  42129. </method>
  42130. <method name="escapeString" return="java.lang.String"
  42131. abstract="false" native="false" synchronized="false"
  42132. static="true" final="false" visibility="public"
  42133. deprecated="not deprecated">
  42134. <param name="str" type="java.lang.String"/>
  42135. <doc>
  42136. <![CDATA[Escape commas in the string using the default escape char
  42137. @param str a string
  42138. @return an escaped string]]>
  42139. </doc>
  42140. </method>
  42141. <method name="escapeString" return="java.lang.String"
  42142. abstract="false" native="false" synchronized="false"
  42143. static="true" final="false" visibility="public"
  42144. deprecated="not deprecated">
  42145. <param name="str" type="java.lang.String"/>
  42146. <param name="escapeChar" type="char"/>
  42147. <param name="charToEscape" type="char"/>
  42148. <doc>
  42149. <![CDATA[Escape <code>charToEscape</code> in the string
  42150. with the escape char <code>escapeChar</code>
  42151. @param str string
  42152. @param escapeChar escape char
  42153. @param charToEscape the char to be escaped
  42154. @return an escaped string]]>
  42155. </doc>
  42156. </method>
  42157. <method name="escapeString" return="java.lang.String"
  42158. abstract="false" native="false" synchronized="false"
  42159. static="true" final="false" visibility="public"
  42160. deprecated="not deprecated">
  42161. <param name="str" type="java.lang.String"/>
  42162. <param name="escapeChar" type="char"/>
  42163. <param name="charsToEscape" type="char[]"/>
  42164. <doc>
  42165. <![CDATA[@param charsToEscape array of characters to be escaped]]>
  42166. </doc>
  42167. </method>
  42168. <method name="unEscapeString" return="java.lang.String"
  42169. abstract="false" native="false" synchronized="false"
  42170. static="true" final="false" visibility="public"
  42171. deprecated="not deprecated">
  42172. <param name="str" type="java.lang.String"/>
  42173. <doc>
  42174. <![CDATA[Unescape commas in the string using the default escape char
  42175. @param str a string
  42176. @return an unescaped string]]>
  42177. </doc>
  42178. </method>
  42179. <method name="unEscapeString" return="java.lang.String"
  42180. abstract="false" native="false" synchronized="false"
  42181. static="true" final="false" visibility="public"
  42182. deprecated="not deprecated">
  42183. <param name="str" type="java.lang.String"/>
  42184. <param name="escapeChar" type="char"/>
  42185. <param name="charToEscape" type="char"/>
  42186. <doc>
  42187. <![CDATA[Unescape <code>charToEscape</code> in the string
  42188. with the escape char <code>escapeChar</code>
  42189. @param str string
  42190. @param escapeChar escape char
  42191. @param charToEscape the escaped char
  42192. @return an unescaped string]]>
  42193. </doc>
  42194. </method>
  42195. <method name="unEscapeString" return="java.lang.String"
  42196. abstract="false" native="false" synchronized="false"
  42197. static="true" final="false" visibility="public"
  42198. deprecated="not deprecated">
  42199. <param name="str" type="java.lang.String"/>
  42200. <param name="escapeChar" type="char"/>
  42201. <param name="charsToEscape" type="char[]"/>
  42202. <doc>
  42203. <![CDATA[@param charsToEscape array of characters to unescape]]>
  42204. </doc>
  42205. </method>
  42206. <method name="getHostname" return="java.lang.String"
  42207. abstract="false" native="false" synchronized="false"
  42208. static="true" final="false" visibility="public"
  42209. deprecated="not deprecated">
  42210. <doc>
  42211. <![CDATA[Return hostname without throwing exception.
  42212. @return hostname]]>
  42213. </doc>
  42214. </method>
  42215. <method name="startupShutdownMessage"
  42216. abstract="false" native="false" synchronized="false"
  42217. static="true" final="false" visibility="public"
  42218. deprecated="not deprecated">
  42219. <param name="clazz" type="java.lang.Class"/>
  42220. <param name="args" type="java.lang.String[]"/>
  42221. <param name="LOG" type="org.apache.commons.logging.Log"/>
  42222. <doc>
  42223. <![CDATA[Print a log message for starting up and shutting down
  42224. @param clazz the class of the server
  42225. @param args arguments
  42226. @param LOG the target log object]]>
  42227. </doc>
  42228. </method>
  42229. <method name="escapeHTML" return="java.lang.String"
  42230. abstract="false" native="false" synchronized="false"
  42231. static="true" final="false" visibility="public"
  42232. deprecated="not deprecated">
  42233. <param name="string" type="java.lang.String"/>
  42234. <doc>
  42235. <![CDATA[Escapes HTML Special characters present in the string.
  42236. @param string
  42237. @return HTML Escaped String representation]]>
  42238. </doc>
  42239. </method>
  42240. <method name="byteDesc" return="java.lang.String"
  42241. abstract="false" native="false" synchronized="false"
  42242. static="true" final="false" visibility="public"
  42243. deprecated="not deprecated">
  42244. <param name="len" type="long"/>
  42245. <doc>
  42246. <![CDATA[Return an abbreviated English-language desc of the byte length]]>
  42247. </doc>
  42248. </method>
  42249. <method name="limitDecimalTo2" return="java.lang.String"
  42250. abstract="false" native="false" synchronized="true"
  42251. static="true" final="false" visibility="public"
  42252. deprecated="not deprecated">
  42253. <param name="d" type="double"/>
  42254. </method>
  42255. <method name="join" return="java.lang.String"
  42256. abstract="false" native="false" synchronized="false"
  42257. static="true" final="false" visibility="public"
  42258. deprecated="not deprecated">
  42259. <param name="separator" type="java.lang.CharSequence"/>
  42260. <param name="strings" type="java.lang.Iterable"/>
  42261. <doc>
  42262. <![CDATA[Concatenates strings, using a separator.
  42263. @param separator Separator to join with.
  42264. @param strings Strings to join.
  42265. @return the joined string]]>
  42266. </doc>
  42267. </method>
  42268. <method name="join" return="java.lang.String"
  42269. abstract="false" native="false" synchronized="false"
  42270. static="true" final="false" visibility="public"
  42271. deprecated="not deprecated">
  42272. <param name="separator" type="java.lang.CharSequence"/>
  42273. <param name="strings" type="java.lang.String[]"/>
  42274. <doc>
  42275. <![CDATA[Concatenates strings, using a separator.
  42276. @param separator to join with
  42277. @param strings to join
  42278. @return the joined string]]>
  42279. </doc>
  42280. </method>
  42281. <method name="join" return="java.lang.String"
  42282. abstract="false" native="false" synchronized="false"
  42283. static="true" final="false" visibility="public"
  42284. deprecated="not deprecated">
  42285. <param name="separator" type="java.lang.CharSequence"/>
  42286. <param name="objects" type="java.lang.Object[]"/>
  42287. <doc>
  42288. <![CDATA[Concatenates objects, using a separator.
  42289. @param separator to join with
  42290. @param objects to join
  42291. @return the joined string]]>
  42292. </doc>
  42293. </method>
  42294. <method name="capitalize" return="java.lang.String"
  42295. abstract="false" native="false" synchronized="false"
  42296. static="true" final="false" visibility="public"
  42297. deprecated="not deprecated">
  42298. <param name="s" type="java.lang.String"/>
  42299. <doc>
  42300. <![CDATA[Capitalize a word
  42301. @param s the input string
  42302. @return capitalized string]]>
  42303. </doc>
  42304. </method>
  42305. <method name="camelize" return="java.lang.String"
  42306. abstract="false" native="false" synchronized="false"
  42307. static="true" final="false" visibility="public"
  42308. deprecated="not deprecated">
  42309. <param name="s" type="java.lang.String"/>
  42310. <doc>
  42311. <![CDATA[Convert SOME_STUFF to SomeStuff
  42312. @param s input string
  42313. @return camelized string]]>
  42314. </doc>
  42315. </method>
  42316. <field name="COMMA" type="char"
  42317. transient="false" volatile="false"
  42318. static="true" final="true" visibility="public"
  42319. deprecated="not deprecated">
  42320. </field>
  42321. <field name="COMMA_STR" type="java.lang.String"
  42322. transient="false" volatile="false"
  42323. static="true" final="true" visibility="public"
  42324. deprecated="not deprecated">
  42325. </field>
  42326. <field name="ESCAPE_CHAR" type="char"
  42327. transient="false" volatile="false"
  42328. static="true" final="true" visibility="public"
  42329. deprecated="not deprecated">
  42330. </field>
  42331. <doc>
  42332. <![CDATA[General string utils]]>
  42333. </doc>
  42334. </class>
  42335. <!-- end class org.apache.hadoop.util.StringUtils -->
  42336. <!-- start class org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix -->
  42337. <class name="StringUtils.TraditionalBinaryPrefix" extends="java.lang.Enum"
  42338. abstract="false"
  42339. static="true" final="true" visibility="public"
  42340. deprecated="not deprecated">
  42341. <method name="values" return="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix[]"
  42342. abstract="false" native="false" synchronized="false"
  42343. static="true" final="false" visibility="public"
  42344. deprecated="not deprecated">
  42345. </method>
  42346. <method name="valueOf" return="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  42347. abstract="false" native="false" synchronized="false"
  42348. static="true" final="false" visibility="public"
  42349. deprecated="not deprecated">
  42350. <param name="name" type="java.lang.String"/>
  42351. </method>
  42352. <method name="valueOf" return="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  42353. abstract="false" native="false" synchronized="false"
  42354. static="true" final="false" visibility="public"
  42355. deprecated="not deprecated">
  42356. <param name="symbol" type="char"/>
  42357. <doc>
  42358. <![CDATA[@return The TraditionalBinaryPrefix object corresponding to the symbol.]]>
  42359. </doc>
  42360. </method>
  42361. <method name="string2long" return="long"
  42362. abstract="false" native="false" synchronized="false"
  42363. static="true" final="false" visibility="public"
  42364. deprecated="not deprecated">
  42365. <param name="s" type="java.lang.String"/>
  42366. <doc>
  42367. <![CDATA[Convert a string to long.
  42368. The input string is first be trimmed
  42369. and then it is parsed with traditional binary prefix.
  42370. For example,
  42371. "-1230k" will be converted to -1230 * 1024 = -1259520;
  42372. "891g" will be converted to 891 * 1024^3 = 956703965184;
  42373. @param s input string
  42374. @return a long value represented by the input string.]]>
  42375. </doc>
  42376. </method>
  42377. <field name="KILO" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  42378. transient="false" volatile="false"
  42379. static="true" final="true" visibility="public"
  42380. deprecated="not deprecated">
  42381. </field>
  42382. <field name="MEGA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  42383. transient="false" volatile="false"
  42384. static="true" final="true" visibility="public"
  42385. deprecated="not deprecated">
  42386. </field>
  42387. <field name="GIGA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  42388. transient="false" volatile="false"
  42389. static="true" final="true" visibility="public"
  42390. deprecated="not deprecated">
  42391. </field>
  42392. <field name="TERA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  42393. transient="false" volatile="false"
  42394. static="true" final="true" visibility="public"
  42395. deprecated="not deprecated">
  42396. </field>
  42397. <field name="PETA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  42398. transient="false" volatile="false"
  42399. static="true" final="true" visibility="public"
  42400. deprecated="not deprecated">
  42401. </field>
  42402. <field name="EXA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  42403. transient="false" volatile="false"
  42404. static="true" final="true" visibility="public"
  42405. deprecated="not deprecated">
  42406. </field>
  42407. <field name="value" type="long"
  42408. transient="false" volatile="false"
  42409. static="false" final="true" visibility="public"
  42410. deprecated="not deprecated">
  42411. </field>
  42412. <field name="symbol" type="char"
  42413. transient="false" volatile="false"
  42414. static="false" final="true" visibility="public"
  42415. deprecated="not deprecated">
  42416. </field>
  42417. <doc>
  42418. <![CDATA[The traditional binary prefixes, kilo, mega, ..., exa,
  42419. which can be represented by a 64-bit integer.
  42420. TraditionalBinaryPrefix symbol are case insensitive.]]>
  42421. </doc>
  42422. </class>
  42423. <!-- end class org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix -->
  42424. <!-- start interface org.apache.hadoop.util.Tool -->
  42425. <interface name="Tool" abstract="true"
  42426. static="false" final="false" visibility="public"
  42427. deprecated="not deprecated">
  42428. <implements name="org.apache.hadoop.conf.Configurable"/>
  42429. <method name="run" return="int"
  42430. abstract="false" native="false" synchronized="false"
  42431. static="false" final="false" visibility="public"
  42432. deprecated="not deprecated">
  42433. <param name="args" type="java.lang.String[]"/>
  42434. <exception name="Exception" type="java.lang.Exception"/>
  42435. <doc>
  42436. <![CDATA[Execute the command with the given arguments.
  42437. @param args command specific arguments.
  42438. @return exit code.
  42439. @throws Exception]]>
  42440. </doc>
  42441. </method>
  42442. <doc>
  42443. <![CDATA[A tool interface that supports handling of generic command-line options.
  42444. <p><code>Tool</code>, is the standard for any Map-Reduce tool/application.
  42445. The tool/application should delegate the handling of
  42446. <a href="{@docRoot}/org/apache/hadoop/util/GenericOptionsParser.html#GenericOptions">
  42447. standard command-line options</a> to {@link ToolRunner#run(Tool, String[])}
  42448. and only handle its custom arguments.</p>
  42449. <p>Here is how a typical <code>Tool</code> is implemented:</p>
  42450. <p><blockquote><pre>
  42451. public class MyApp extends Configured implements Tool {
  42452. public int run(String[] args) throws Exception {
  42453. // <code>Configuration</code> processed by <code>ToolRunner</code>
  42454. Configuration conf = getConf();
  42455. // Create a JobConf using the processed <code>conf</code>
  42456. JobConf job = new JobConf(conf, MyApp.class);
  42457. // Process custom command-line options
  42458. Path in = new Path(args[1]);
  42459. Path out = new Path(args[2]);
  42460. // Specify various job-specific parameters
  42461. job.setJobName("my-app");
  42462. job.setInputPath(in);
  42463. job.setOutputPath(out);
  42464. job.setMapperClass(MyApp.MyMapper.class);
  42465. job.setReducerClass(MyApp.MyReducer.class);
  42466. // Submit the job, then poll for progress until the job is complete
  42467. JobClient.runJob(job);
  42468. }
  42469. public static void main(String[] args) throws Exception {
  42470. // Let <code>ToolRunner</code> handle generic command-line options
  42471. int res = ToolRunner.run(new Configuration(), new Sort(), args);
  42472. System.exit(res);
  42473. }
  42474. }
  42475. </pre></blockquote></p>
  42476. @see GenericOptionsParser
  42477. @see ToolRunner]]>
  42478. </doc>
  42479. </interface>
  42480. <!-- end interface org.apache.hadoop.util.Tool -->
  42481. <!-- start class org.apache.hadoop.util.ToolRunner -->
  42482. <class name="ToolRunner" extends="java.lang.Object"
  42483. abstract="false"
  42484. static="false" final="false" visibility="public"
  42485. deprecated="not deprecated">
  42486. <constructor name="ToolRunner"
  42487. static="false" final="false" visibility="public"
  42488. deprecated="not deprecated">
  42489. </constructor>
  42490. <method name="run" return="int"
  42491. abstract="false" native="false" synchronized="false"
  42492. static="true" final="false" visibility="public"
  42493. deprecated="not deprecated">
  42494. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42495. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  42496. <param name="args" type="java.lang.String[]"/>
  42497. <exception name="Exception" type="java.lang.Exception"/>
  42498. <doc>
  42499. <![CDATA[Runs the given <code>Tool</code> by {@link Tool#run(String[])}, after
  42500. parsing with the given generic arguments. Uses the given
  42501. <code>Configuration</code>, or builds one if null.
  42502. Sets the <code>Tool</code>'s configuration with the possibly modified
  42503. version of the <code>conf</code>.
  42504. @param conf <code>Configuration</code> for the <code>Tool</code>.
  42505. @param tool <code>Tool</code> to run.
  42506. @param args command-line arguments to the tool.
  42507. @return exit code of the {@link Tool#run(String[])} method.]]>
  42508. </doc>
  42509. </method>
  42510. <method name="run" return="int"
  42511. abstract="false" native="false" synchronized="false"
  42512. static="true" final="false" visibility="public"
  42513. deprecated="not deprecated">
  42514. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  42515. <param name="args" type="java.lang.String[]"/>
  42516. <exception name="Exception" type="java.lang.Exception"/>
  42517. <doc>
  42518. <![CDATA[Runs the <code>Tool</code> with its <code>Configuration</code>.
  42519. Equivalent to <code>run(tool.getConf(), tool, args)</code>.
  42520. @param tool <code>Tool</code> to run.
  42521. @param args command-line arguments to the tool.
  42522. @return exit code of the {@link Tool#run(String[])} method.]]>
  42523. </doc>
  42524. </method>
  42525. <method name="printGenericCommandUsage"
  42526. abstract="false" native="false" synchronized="false"
  42527. static="true" final="false" visibility="public"
  42528. deprecated="not deprecated">
  42529. <param name="out" type="java.io.PrintStream"/>
  42530. <doc>
  42531. <![CDATA[Prints generic command-line argurments and usage information.
  42532. @param out stream to write usage information to.]]>
  42533. </doc>
  42534. </method>
  42535. <doc>
  42536. <![CDATA[A utility to help run {@link Tool}s.
  42537. <p><code>ToolRunner</code> can be used to run classes implementing
  42538. <code>Tool</code> interface. It works in conjunction with
  42539. {@link GenericOptionsParser} to parse the
  42540. <a href="{@docRoot}/org/apache/hadoop/util/GenericOptionsParser.html#GenericOptions">
  42541. generic hadoop command line arguments</a> and modifies the
  42542. <code>Configuration</code> of the <code>Tool</code>. The
  42543. application-specific options are passed along without being modified.
  42544. </p>
  42545. @see Tool
  42546. @see GenericOptionsParser]]>
  42547. </doc>
  42548. </class>
  42549. <!-- end class org.apache.hadoop.util.ToolRunner -->
  42550. <!-- start class org.apache.hadoop.util.UTF8ByteArrayUtils -->
  42551. <class name="UTF8ByteArrayUtils" extends="java.lang.Object"
  42552. abstract="false"
  42553. static="false" final="false" visibility="public"
  42554. deprecated="not deprecated">
  42555. <constructor name="UTF8ByteArrayUtils"
  42556. static="false" final="false" visibility="public"
  42557. deprecated="not deprecated">
  42558. </constructor>
  42559. <method name="findByte" return="int"
  42560. abstract="false" native="false" synchronized="false"
  42561. static="true" final="false" visibility="public"
  42562. deprecated="not deprecated">
  42563. <param name="utf" type="byte[]"/>
  42564. <param name="start" type="int"/>
  42565. <param name="end" type="int"/>
  42566. <param name="b" type="byte"/>
  42567. <doc>
  42568. <![CDATA[Find the first occurrence of the given byte b in a UTF-8 encoded string
  42569. @param utf a byte array containing a UTF-8 encoded string
  42570. @param start starting offset
  42571. @param end ending position
  42572. @param b the byte to find
  42573. @return position that first byte occures otherwise -1]]>
  42574. </doc>
  42575. </method>
  42576. <method name="findBytes" return="int"
  42577. abstract="false" native="false" synchronized="false"
  42578. static="true" final="false" visibility="public"
  42579. deprecated="not deprecated">
  42580. <param name="utf" type="byte[]"/>
  42581. <param name="start" type="int"/>
  42582. <param name="end" type="int"/>
  42583. <param name="b" type="byte[]"/>
  42584. <doc>
  42585. <![CDATA[Find the first occurrence of the given bytes b in a UTF-8 encoded string
  42586. @param utf a byte array containing a UTF-8 encoded string
  42587. @param start starting offset
  42588. @param end ending position
  42589. @param b the bytes to find
  42590. @return position that first byte occures otherwise -1]]>
  42591. </doc>
  42592. </method>
  42593. <method name="findNthByte" return="int"
  42594. abstract="false" native="false" synchronized="false"
  42595. static="true" final="false" visibility="public"
  42596. deprecated="not deprecated">
  42597. <param name="utf" type="byte[]"/>
  42598. <param name="start" type="int"/>
  42599. <param name="length" type="int"/>
  42600. <param name="b" type="byte"/>
  42601. <param name="n" type="int"/>
  42602. <doc>
  42603. <![CDATA[Find the nth occurrence of the given byte b in a UTF-8 encoded string
  42604. @param utf a byte array containing a UTF-8 encoded string
  42605. @param start starting offset
  42606. @param length the length of byte array
  42607. @param b the byte to find
  42608. @param n the desired occurrence of the given byte
  42609. @return position that nth occurrence of the given byte if exists; otherwise -1]]>
  42610. </doc>
  42611. </method>
  42612. <method name="findNthByte" return="int"
  42613. abstract="false" native="false" synchronized="false"
  42614. static="true" final="false" visibility="public"
  42615. deprecated="not deprecated">
  42616. <param name="utf" type="byte[]"/>
  42617. <param name="b" type="byte"/>
  42618. <param name="n" type="int"/>
  42619. <doc>
  42620. <![CDATA[Find the nth occurrence of the given byte b in a UTF-8 encoded string
  42621. @param utf a byte array containing a UTF-8 encoded string
  42622. @param b the byte to find
  42623. @param n the desired occurrence of the given byte
  42624. @return position that nth occurrence of the given byte if exists; otherwise -1]]>
  42625. </doc>
  42626. </method>
  42627. </class>
  42628. <!-- end class org.apache.hadoop.util.UTF8ByteArrayUtils -->
  42629. <!-- start class org.apache.hadoop.util.VersionInfo -->
  42630. <class name="VersionInfo" extends="java.lang.Object"
  42631. abstract="false"
  42632. static="false" final="false" visibility="public"
  42633. deprecated="not deprecated">
  42634. <constructor name="VersionInfo"
  42635. static="false" final="false" visibility="public"
  42636. deprecated="not deprecated">
  42637. </constructor>
  42638. <method name="getVersion" return="java.lang.String"
  42639. abstract="false" native="false" synchronized="false"
  42640. static="true" final="false" visibility="public"
  42641. deprecated="not deprecated">
  42642. <doc>
  42643. <![CDATA[Get the Hadoop version.
  42644. @return the Hadoop version string, eg. "0.6.3-dev"]]>
  42645. </doc>
  42646. </method>
  42647. <method name="getRevision" return="java.lang.String"
  42648. abstract="false" native="false" synchronized="false"
  42649. static="true" final="false" visibility="public"
  42650. deprecated="not deprecated">
  42651. <doc>
  42652. <![CDATA[Get the subversion revision number for the root directory
  42653. @return the revision number, eg. "451451"]]>
  42654. </doc>
  42655. </method>
  42656. <method name="getDate" return="java.lang.String"
  42657. abstract="false" native="false" synchronized="false"
  42658. static="true" final="false" visibility="public"
  42659. deprecated="not deprecated">
  42660. <doc>
  42661. <![CDATA[The date that Hadoop was compiled.
  42662. @return the compilation date in unix date format]]>
  42663. </doc>
  42664. </method>
  42665. <method name="getUser" return="java.lang.String"
  42666. abstract="false" native="false" synchronized="false"
  42667. static="true" final="false" visibility="public"
  42668. deprecated="not deprecated">
  42669. <doc>
  42670. <![CDATA[The user that compiled Hadoop.
  42671. @return the username of the user]]>
  42672. </doc>
  42673. </method>
  42674. <method name="getUrl" return="java.lang.String"
  42675. abstract="false" native="false" synchronized="false"
  42676. static="true" final="false" visibility="public"
  42677. deprecated="not deprecated">
  42678. <doc>
  42679. <![CDATA[Get the subversion URL for the root Hadoop directory.]]>
  42680. </doc>
  42681. </method>
  42682. <method name="getSrcChecksum" return="java.lang.String"
  42683. abstract="false" native="false" synchronized="false"
  42684. static="true" final="false" visibility="public"
  42685. deprecated="not deprecated">
  42686. <doc>
  42687. <![CDATA[Get the checksum of the source files from which Hadoop was
  42688. built.]]>
  42689. </doc>
  42690. </method>
  42691. <method name="getBuildVersion" return="java.lang.String"
  42692. abstract="false" native="false" synchronized="false"
  42693. static="true" final="false" visibility="public"
  42694. deprecated="not deprecated">
  42695. <doc>
  42696. <![CDATA[Returns the full version string containing version,
  42697. revision, user and source checksum.]]>
  42698. </doc>
  42699. </method>
  42700. <method name="main"
  42701. abstract="false" native="false" synchronized="false"
  42702. static="true" final="false" visibility="public"
  42703. deprecated="not deprecated">
  42704. <param name="args" type="java.lang.String[]"/>
  42705. </method>
  42706. <doc>
  42707. <![CDATA[This class finds the package info for Hadoop and the HadoopVersionAnnotation
  42708. information.]]>
  42709. </doc>
  42710. </class>
  42711. <!-- end class org.apache.hadoop.util.VersionInfo -->
  42712. <!-- start class org.apache.hadoop.util.XMLUtils -->
  42713. <class name="XMLUtils" extends="java.lang.Object"
  42714. abstract="false"
  42715. static="false" final="false" visibility="public"
  42716. deprecated="not deprecated">
  42717. <constructor name="XMLUtils"
  42718. static="false" final="false" visibility="public"
  42719. deprecated="not deprecated">
  42720. </constructor>
  42721. <method name="transform"
  42722. abstract="false" native="false" synchronized="false"
  42723. static="true" final="false" visibility="public"
  42724. deprecated="not deprecated">
  42725. <param name="styleSheet" type="java.io.InputStream"/>
  42726. <param name="xml" type="java.io.InputStream"/>
  42727. <param name="out" type="java.io.Writer"/>
  42728. <exception name="TransformerConfigurationException" type="javax.xml.transform.TransformerConfigurationException"/>
  42729. <exception name="TransformerException" type="javax.xml.transform.TransformerException"/>
  42730. <doc>
  42731. <![CDATA[Transform input xml given a stylesheet.
  42732. @param styleSheet the style-sheet
  42733. @param xml input xml data
  42734. @param out output
  42735. @throws TransformerConfigurationException
  42736. @throws TransformerException]]>
  42737. </doc>
  42738. </method>
  42739. <doc>
  42740. <![CDATA[General xml utilities.]]>
  42741. </doc>
  42742. </class>
  42743. <!-- end class org.apache.hadoop.util.XMLUtils -->
  42744. </package>
  42745. <package name="org.apache.hadoop.util.bloom">
  42746. <!-- start class org.apache.hadoop.util.bloom.BloomFilter -->
  42747. <class name="BloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  42748. abstract="false"
  42749. static="false" final="false" visibility="public"
  42750. deprecated="not deprecated">
  42751. <constructor name="BloomFilter"
  42752. static="false" final="false" visibility="public"
  42753. deprecated="not deprecated">
  42754. <doc>
  42755. <![CDATA[Default constructor - use with readFields]]>
  42756. </doc>
  42757. </constructor>
  42758. <constructor name="BloomFilter" type="int, int, int"
  42759. static="false" final="false" visibility="public"
  42760. deprecated="not deprecated">
  42761. <doc>
  42762. <![CDATA[Constructor
  42763. @param vectorSize The vector size of <i>this</i> filter.
  42764. @param nbHash The number of hash function to consider.
  42765. @param hashType type of the hashing function (see
  42766. {@link org.apache.hadoop.util.hash.Hash}).]]>
  42767. </doc>
  42768. </constructor>
  42769. <method name="add"
  42770. abstract="false" native="false" synchronized="false"
  42771. static="false" final="false" visibility="public"
  42772. deprecated="not deprecated">
  42773. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  42774. </method>
  42775. <method name="and"
  42776. abstract="false" native="false" synchronized="false"
  42777. static="false" final="false" visibility="public"
  42778. deprecated="not deprecated">
  42779. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  42780. </method>
  42781. <method name="membershipTest" return="boolean"
  42782. abstract="false" native="false" synchronized="false"
  42783. static="false" final="false" visibility="public"
  42784. deprecated="not deprecated">
  42785. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  42786. </method>
  42787. <method name="not"
  42788. abstract="false" native="false" synchronized="false"
  42789. static="false" final="false" visibility="public"
  42790. deprecated="not deprecated">
  42791. </method>
  42792. <method name="or"
  42793. abstract="false" native="false" synchronized="false"
  42794. static="false" final="false" visibility="public"
  42795. deprecated="not deprecated">
  42796. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  42797. </method>
  42798. <method name="xor"
  42799. abstract="false" native="false" synchronized="false"
  42800. static="false" final="false" visibility="public"
  42801. deprecated="not deprecated">
  42802. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  42803. </method>
  42804. <method name="toString" return="java.lang.String"
  42805. abstract="false" native="false" synchronized="false"
  42806. static="false" final="false" visibility="public"
  42807. deprecated="not deprecated">
  42808. </method>
  42809. <method name="getVectorSize" return="int"
  42810. abstract="false" native="false" synchronized="false"
  42811. static="false" final="false" visibility="public"
  42812. deprecated="not deprecated">
  42813. <doc>
  42814. <![CDATA[@return size of the the bloomfilter]]>
  42815. </doc>
  42816. </method>
  42817. <method name="write"
  42818. abstract="false" native="false" synchronized="false"
  42819. static="false" final="false" visibility="public"
  42820. deprecated="not deprecated">
  42821. <param name="out" type="java.io.DataOutput"/>
  42822. <exception name="IOException" type="java.io.IOException"/>
  42823. </method>
  42824. <method name="readFields"
  42825. abstract="false" native="false" synchronized="false"
  42826. static="false" final="false" visibility="public"
  42827. deprecated="not deprecated">
  42828. <param name="in" type="java.io.DataInput"/>
  42829. <exception name="IOException" type="java.io.IOException"/>
  42830. </method>
  42831. <doc>
  42832. <![CDATA[Implements a <i>Bloom filter</i>, as defined by Bloom in 1970.
  42833. <p>
  42834. The Bloom filter is a data structure that was introduced in 1970 and that has been adopted by
  42835. the networking research community in the past decade thanks to the bandwidth efficiencies that it
  42836. offers for the transmission of set membership information between networked hosts. A sender encodes
  42837. the information into a bit vector, the Bloom filter, that is more compact than a conventional
  42838. representation. Computation and space costs for construction are linear in the number of elements.
  42839. The receiver uses the filter to test whether various elements are members of the set. Though the
  42840. filter will occasionally return a false positive, it will never return a false negative. When creating
  42841. the filter, the sender can choose its desired point in a trade-off between the false positive rate and the size.
  42842. <p>
  42843. Originally created by
  42844. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  42845. @see Filter The general behavior of a filter
  42846. @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>]]>
  42847. </doc>
  42848. </class>
  42849. <!-- end class org.apache.hadoop.util.bloom.BloomFilter -->
  42850. <!-- start class org.apache.hadoop.util.bloom.CountingBloomFilter -->
  42851. <class name="CountingBloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  42852. abstract="false"
  42853. static="false" final="true" visibility="public"
  42854. deprecated="not deprecated">
  42855. <constructor name="CountingBloomFilter"
  42856. static="false" final="false" visibility="public"
  42857. deprecated="not deprecated">
  42858. <doc>
  42859. <![CDATA[Default constructor - use with readFields]]>
  42860. </doc>
  42861. </constructor>
  42862. <constructor name="CountingBloomFilter" type="int, int, int"
  42863. static="false" final="false" visibility="public"
  42864. deprecated="not deprecated">
  42865. <doc>
  42866. <![CDATA[Constructor
  42867. @param vectorSize The vector size of <i>this</i> filter.
  42868. @param nbHash The number of hash function to consider.
  42869. @param hashType type of the hashing function (see
  42870. {@link org.apache.hadoop.util.hash.Hash}).]]>
  42871. </doc>
  42872. </constructor>
  42873. <method name="add"
  42874. abstract="false" native="false" synchronized="false"
  42875. static="false" final="false" visibility="public"
  42876. deprecated="not deprecated">
  42877. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  42878. </method>
  42879. <method name="delete"
  42880. abstract="false" native="false" synchronized="false"
  42881. static="false" final="false" visibility="public"
  42882. deprecated="not deprecated">
  42883. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  42884. <doc>
  42885. <![CDATA[Removes a specified key from <i>this</i> counting Bloom filter.
  42886. <p>
  42887. <b>Invariant</b>: nothing happens if the specified key does not belong to <i>this</i> counter Bloom filter.
  42888. @param key The key to remove.]]>
  42889. </doc>
  42890. </method>
  42891. <method name="and"
  42892. abstract="false" native="false" synchronized="false"
  42893. static="false" final="false" visibility="public"
  42894. deprecated="not deprecated">
  42895. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  42896. </method>
  42897. <method name="membershipTest" return="boolean"
  42898. abstract="false" native="false" synchronized="false"
  42899. static="false" final="false" visibility="public"
  42900. deprecated="not deprecated">
  42901. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  42902. </method>
  42903. <method name="approximateCount" return="int"
  42904. abstract="false" native="false" synchronized="false"
  42905. static="false" final="false" visibility="public"
  42906. deprecated="not deprecated">
  42907. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  42908. <doc>
  42909. <![CDATA[This method calculates an approximate count of the key, i.e. how many
  42910. times the key was added to the filter. This allows the filter to be
  42911. used as an approximate <code>key -&gt; count</code> map.
  42912. <p>NOTE: due to the bucket size of this filter, inserting the same
  42913. key more than 15 times will cause an overflow at all filter positions
  42914. associated with this key, and it will significantly increase the error
  42915. rate for this and other keys. For this reason the filter can only be
  42916. used to store small count values <code>0 &lt;= N &lt;&lt; 15</code>.
  42917. @param key key to be tested
  42918. @return 0 if the key is not present. Otherwise, a positive value v will
  42919. be returned such that <code>v == count</code> with probability equal to the
  42920. error rate of this filter, and <code>v &gt; count</code> otherwise.
  42921. Additionally, if the filter experienced an underflow as a result of
  42922. {@link #delete(Key)} operation, the return value may be lower than the
  42923. <code>count</code> with the probability of the false negative rate of such
  42924. filter.]]>
  42925. </doc>
  42926. </method>
  42927. <method name="not"
  42928. abstract="false" native="false" synchronized="false"
  42929. static="false" final="false" visibility="public"
  42930. deprecated="not deprecated">
  42931. </method>
  42932. <method name="or"
  42933. abstract="false" native="false" synchronized="false"
  42934. static="false" final="false" visibility="public"
  42935. deprecated="not deprecated">
  42936. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  42937. </method>
  42938. <method name="xor"
  42939. abstract="false" native="false" synchronized="false"
  42940. static="false" final="false" visibility="public"
  42941. deprecated="not deprecated">
  42942. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  42943. </method>
  42944. <method name="toString" return="java.lang.String"
  42945. abstract="false" native="false" synchronized="false"
  42946. static="false" final="false" visibility="public"
  42947. deprecated="not deprecated">
  42948. </method>
  42949. <method name="write"
  42950. abstract="false" native="false" synchronized="false"
  42951. static="false" final="false" visibility="public"
  42952. deprecated="not deprecated">
  42953. <param name="out" type="java.io.DataOutput"/>
  42954. <exception name="IOException" type="java.io.IOException"/>
  42955. </method>
  42956. <method name="readFields"
  42957. abstract="false" native="false" synchronized="false"
  42958. static="false" final="false" visibility="public"
  42959. deprecated="not deprecated">
  42960. <param name="in" type="java.io.DataInput"/>
  42961. <exception name="IOException" type="java.io.IOException"/>
  42962. </method>
  42963. <doc>
  42964. <![CDATA[Implements a <i>counting Bloom filter</i>, as defined by Fan et al. in a ToN
  42965. 2000 paper.
  42966. <p>
  42967. A counting Bloom filter is an improvement to standard a Bloom filter as it
  42968. allows dynamic additions and deletions of set membership information. This
  42969. is achieved through the use of a counting vector instead of a bit vector.
  42970. <p>
  42971. Originally created by
  42972. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  42973. @see Filter The general behavior of a filter
  42974. @see <a href="http://portal.acm.org/citation.cfm?id=343571.343572">Summary cache: a scalable wide-area web cache sharing protocol</a>]]>
  42975. </doc>
  42976. </class>
  42977. <!-- end class org.apache.hadoop.util.bloom.CountingBloomFilter -->
  42978. <!-- start class org.apache.hadoop.util.bloom.DynamicBloomFilter -->
  42979. <class name="DynamicBloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  42980. abstract="false"
  42981. static="false" final="false" visibility="public"
  42982. deprecated="not deprecated">
  42983. <constructor name="DynamicBloomFilter"
  42984. static="false" final="false" visibility="public"
  42985. deprecated="not deprecated">
  42986. <doc>
  42987. <![CDATA[Zero-args constructor for the serialization.]]>
  42988. </doc>
  42989. </constructor>
  42990. <constructor name="DynamicBloomFilter" type="int, int, int, int"
  42991. static="false" final="false" visibility="public"
  42992. deprecated="not deprecated">
  42993. <doc>
  42994. <![CDATA[Constructor.
  42995. <p>
  42996. Builds an empty Dynamic Bloom filter.
  42997. @param vectorSize The number of bits in the vector.
  42998. @param nbHash The number of hash function to consider.
  42999. @param hashType type of the hashing function (see
  43000. {@link org.apache.hadoop.util.hash.Hash}).
  43001. @param nr The threshold for the maximum number of keys to record in a
  43002. dynamic Bloom filter row.]]>
  43003. </doc>
  43004. </constructor>
  43005. <method name="add"
  43006. abstract="false" native="false" synchronized="false"
  43007. static="false" final="false" visibility="public"
  43008. deprecated="not deprecated">
  43009. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  43010. </method>
  43011. <method name="and"
  43012. abstract="false" native="false" synchronized="false"
  43013. static="false" final="false" visibility="public"
  43014. deprecated="not deprecated">
  43015. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  43016. </method>
  43017. <method name="membershipTest" return="boolean"
  43018. abstract="false" native="false" synchronized="false"
  43019. static="false" final="false" visibility="public"
  43020. deprecated="not deprecated">
  43021. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  43022. </method>
  43023. <method name="not"
  43024. abstract="false" native="false" synchronized="false"
  43025. static="false" final="false" visibility="public"
  43026. deprecated="not deprecated">
  43027. </method>
  43028. <method name="or"
  43029. abstract="false" native="false" synchronized="false"
  43030. static="false" final="false" visibility="public"
  43031. deprecated="not deprecated">
  43032. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  43033. </method>
  43034. <method name="xor"
  43035. abstract="false" native="false" synchronized="false"
  43036. static="false" final="false" visibility="public"
  43037. deprecated="not deprecated">
  43038. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  43039. </method>
  43040. <method name="toString" return="java.lang.String"
  43041. abstract="false" native="false" synchronized="false"
  43042. static="false" final="false" visibility="public"
  43043. deprecated="not deprecated">
  43044. </method>
  43045. <method name="write"
  43046. abstract="false" native="false" synchronized="false"
  43047. static="false" final="false" visibility="public"
  43048. deprecated="not deprecated">
  43049. <param name="out" type="java.io.DataOutput"/>
  43050. <exception name="IOException" type="java.io.IOException"/>
  43051. </method>
  43052. <method name="readFields"
  43053. abstract="false" native="false" synchronized="false"
  43054. static="false" final="false" visibility="public"
  43055. deprecated="not deprecated">
  43056. <param name="in" type="java.io.DataInput"/>
  43057. <exception name="IOException" type="java.io.IOException"/>
  43058. </method>
  43059. <doc>
  43060. <![CDATA[Implements a <i>dynamic Bloom filter</i>, as defined in the INFOCOM 2006 paper.
  43061. <p>
  43062. A dynamic Bloom filter (DBF) makes use of a <code>s * m</code> bit matrix but
  43063. each of the <code>s</code> rows is a standard Bloom filter. The creation
  43064. process of a DBF is iterative. At the start, the DBF is a <code>1 * m</code>
  43065. bit matrix, i.e., it is composed of a single standard Bloom filter.
  43066. It assumes that <code>n<sub>r</sub></code> elements are recorded in the
  43067. initial bit vector, where <code>n<sub>r</sub> <= n</code> (<code>n</code> is
  43068. the cardinality of the set <code>A</code> to record in the filter).
  43069. <p>
  43070. As the size of <code>A</code> grows during the execution of the application,
  43071. several keys must be inserted in the DBF. When inserting a key into the DBF,
  43072. one must first get an active Bloom filter in the matrix. A Bloom filter is
  43073. active when the number of recorded keys, <code>n<sub>r</sub></code>, is
  43074. strictly less than the current cardinality of <code>A</code>, <code>n</code>.
  43075. If an active Bloom filter is found, the key is inserted and
  43076. <code>n<sub>r</sub></code> is incremented by one. On the other hand, if there
  43077. is no active Bloom filter, a new one is created (i.e., a new row is added to
  43078. the matrix) according to the current size of <code>A</code> and the element
  43079. is added in this new Bloom filter and the <code>n<sub>r</sub></code> value of
  43080. this new Bloom filter is set to one. A given key is said to belong to the
  43081. DBF if the <code>k</code> positions are set to one in one of the matrix rows.
  43082. <p>
  43083. Originally created by
  43084. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  43085. @see Filter The general behavior of a filter
  43086. @see BloomFilter A Bloom filter
  43087. @see <a href="http://www.cse.fau.edu/~jie/research/publications/Publication_files/infocom2006.pdf">Theory and Network Applications of Dynamic Bloom Filters</a>]]>
  43088. </doc>
  43089. </class>
  43090. <!-- end class org.apache.hadoop.util.bloom.DynamicBloomFilter -->
  43091. <!-- start class org.apache.hadoop.util.bloom.Filter -->
  43092. <class name="Filter" extends="java.lang.Object"
  43093. abstract="true"
  43094. static="false" final="false" visibility="public"
  43095. deprecated="not deprecated">
  43096. <implements name="org.apache.hadoop.io.Writable"/>
  43097. <constructor name="Filter"
  43098. static="false" final="false" visibility="protected"
  43099. deprecated="not deprecated">
  43100. </constructor>
  43101. <constructor name="Filter" type="int, int, int"
  43102. static="false" final="false" visibility="protected"
  43103. deprecated="not deprecated">
  43104. <doc>
  43105. <![CDATA[Constructor.
  43106. @param vectorSize The vector size of <i>this</i> filter.
  43107. @param nbHash The number of hash functions to consider.
  43108. @param hashType type of the hashing function (see {@link Hash}).]]>
  43109. </doc>
  43110. </constructor>
  43111. <method name="add"
  43112. abstract="true" native="false" synchronized="false"
  43113. static="false" final="false" visibility="public"
  43114. deprecated="not deprecated">
  43115. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  43116. <doc>
  43117. <![CDATA[Adds a key to <i>this</i> filter.
  43118. @param key The key to add.]]>
  43119. </doc>
  43120. </method>
  43121. <method name="membershipTest" return="boolean"
  43122. abstract="true" native="false" synchronized="false"
  43123. static="false" final="false" visibility="public"
  43124. deprecated="not deprecated">
  43125. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  43126. <doc>
  43127. <![CDATA[Determines wether a specified key belongs to <i>this</i> filter.
  43128. @param key The key to test.
  43129. @return boolean True if the specified key belongs to <i>this</i> filter.
  43130. False otherwise.]]>
  43131. </doc>
  43132. </method>
  43133. <method name="and"
  43134. abstract="true" native="false" synchronized="false"
  43135. static="false" final="false" visibility="public"
  43136. deprecated="not deprecated">
  43137. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  43138. <doc>
  43139. <![CDATA[Peforms a logical AND between <i>this</i> filter and a specified filter.
  43140. <p>
  43141. <b>Invariant</b>: The result is assigned to <i>this</i> filter.
  43142. @param filter The filter to AND with.]]>
  43143. </doc>
  43144. </method>
  43145. <method name="or"
  43146. abstract="true" native="false" synchronized="false"
  43147. static="false" final="false" visibility="public"
  43148. deprecated="not deprecated">
  43149. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  43150. <doc>
  43151. <![CDATA[Peforms a logical OR between <i>this</i> filter and a specified filter.
  43152. <p>
  43153. <b>Invariant</b>: The result is assigned to <i>this</i> filter.
  43154. @param filter The filter to OR with.]]>
  43155. </doc>
  43156. </method>
  43157. <method name="xor"
  43158. abstract="true" native="false" synchronized="false"
  43159. static="false" final="false" visibility="public"
  43160. deprecated="not deprecated">
  43161. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  43162. <doc>
  43163. <![CDATA[Peforms a logical XOR between <i>this</i> filter and a specified filter.
  43164. <p>
  43165. <b>Invariant</b>: The result is assigned to <i>this</i> filter.
  43166. @param filter The filter to XOR with.]]>
  43167. </doc>
  43168. </method>
  43169. <method name="not"
  43170. abstract="true" native="false" synchronized="false"
  43171. static="false" final="false" visibility="public"
  43172. deprecated="not deprecated">
  43173. <doc>
  43174. <![CDATA[Performs a logical NOT on <i>this</i> filter.
  43175. <p>
  43176. The result is assigned to <i>this</i> filter.]]>
  43177. </doc>
  43178. </method>
  43179. <method name="add"
  43180. abstract="false" native="false" synchronized="false"
  43181. static="false" final="false" visibility="public"
  43182. deprecated="not deprecated">
  43183. <param name="keys" type="java.util.List"/>
  43184. <doc>
  43185. <![CDATA[Adds a list of keys to <i>this</i> filter.
  43186. @param keys The list of keys.]]>
  43187. </doc>
  43188. </method>
  43189. <method name="add"
  43190. abstract="false" native="false" synchronized="false"
  43191. static="false" final="false" visibility="public"
  43192. deprecated="not deprecated">
  43193. <param name="keys" type="java.util.Collection"/>
  43194. <doc>
  43195. <![CDATA[Adds a collection of keys to <i>this</i> filter.
  43196. @param keys The collection of keys.]]>
  43197. </doc>
  43198. </method>
  43199. <method name="add"
  43200. abstract="false" native="false" synchronized="false"
  43201. static="false" final="false" visibility="public"
  43202. deprecated="not deprecated">
  43203. <param name="keys" type="org.apache.hadoop.util.bloom.Key[]"/>
  43204. <doc>
  43205. <![CDATA[Adds an array of keys to <i>this</i> filter.
  43206. @param keys The array of keys.]]>
  43207. </doc>
  43208. </method>
  43209. <method name="write"
  43210. abstract="false" native="false" synchronized="false"
  43211. static="false" final="false" visibility="public"
  43212. deprecated="not deprecated">
  43213. <param name="out" type="java.io.DataOutput"/>
  43214. <exception name="IOException" type="java.io.IOException"/>
  43215. </method>
  43216. <method name="readFields"
  43217. abstract="false" native="false" synchronized="false"
  43218. static="false" final="false" visibility="public"
  43219. deprecated="not deprecated">
  43220. <param name="in" type="java.io.DataInput"/>
  43221. <exception name="IOException" type="java.io.IOException"/>
  43222. </method>
  43223. <field name="vectorSize" type="int"
  43224. transient="false" volatile="false"
  43225. static="false" final="false" visibility="protected"
  43226. deprecated="not deprecated">
  43227. <doc>
  43228. <![CDATA[The vector size of <i>this</i> filter.]]>
  43229. </doc>
  43230. </field>
  43231. <field name="hash" type="org.apache.hadoop.util.bloom.HashFunction"
  43232. transient="false" volatile="false"
  43233. static="false" final="false" visibility="protected"
  43234. deprecated="not deprecated">
  43235. <doc>
  43236. <![CDATA[The hash function used to map a key to several positions in the vector.]]>
  43237. </doc>
  43238. </field>
  43239. <field name="nbHash" type="int"
  43240. transient="false" volatile="false"
  43241. static="false" final="false" visibility="protected"
  43242. deprecated="not deprecated">
  43243. <doc>
  43244. <![CDATA[The number of hash function to consider.]]>
  43245. </doc>
  43246. </field>
  43247. <field name="hashType" type="int"
  43248. transient="false" volatile="false"
  43249. static="false" final="false" visibility="protected"
  43250. deprecated="not deprecated">
  43251. <doc>
  43252. <![CDATA[Type of hashing function to use.]]>
  43253. </doc>
  43254. </field>
  43255. <doc>
  43256. <![CDATA[Defines the general behavior of a filter.
  43257. <p>
  43258. A filter is a data structure which aims at offering a lossy summary of a set <code>A</code>. The
  43259. key idea is to map entries of <code>A</code> (also called <i>keys</i>) into several positions
  43260. in a vector through the use of several hash functions.
  43261. <p>
  43262. Typically, a filter will be implemented as a Bloom filter (or a Bloom filter extension).
  43263. <p>
  43264. It must be extended in order to define the real behavior.
  43265. @see Key The general behavior of a key
  43266. @see HashFunction A hash function]]>
  43267. </doc>
  43268. </class>
  43269. <!-- end class org.apache.hadoop.util.bloom.Filter -->
  43270. <!-- start class org.apache.hadoop.util.bloom.HashFunction -->
  43271. <class name="HashFunction" extends="java.lang.Object"
  43272. abstract="false"
  43273. static="false" final="true" visibility="public"
  43274. deprecated="not deprecated">
  43275. <constructor name="HashFunction" type="int, int, int"
  43276. static="false" final="false" visibility="public"
  43277. deprecated="not deprecated">
  43278. <doc>
  43279. <![CDATA[Constructor.
  43280. <p>
  43281. Builds a hash function that must obey to a given maximum number of returned values and a highest value.
  43282. @param maxValue The maximum highest returned value.
  43283. @param nbHash The number of resulting hashed values.
  43284. @param hashType type of the hashing function (see {@link Hash}).]]>
  43285. </doc>
  43286. </constructor>
  43287. <method name="clear"
  43288. abstract="false" native="false" synchronized="false"
  43289. static="false" final="false" visibility="public"
  43290. deprecated="not deprecated">
  43291. <doc>
  43292. <![CDATA[Clears <i>this</i> hash function. A NOOP]]>
  43293. </doc>
  43294. </method>
  43295. <method name="hash" return="int[]"
  43296. abstract="false" native="false" synchronized="false"
  43297. static="false" final="false" visibility="public"
  43298. deprecated="not deprecated">
  43299. <param name="k" type="org.apache.hadoop.util.bloom.Key"/>
  43300. <doc>
  43301. <![CDATA[Hashes a specified key into several integers.
  43302. @param k The specified key.
  43303. @return The array of hashed values.]]>
  43304. </doc>
  43305. </method>
  43306. <doc>
  43307. <![CDATA[Implements a hash object that returns a certain number of hashed values.
  43308. @see Key The general behavior of a key being stored in a filter
  43309. @see Filter The general behavior of a filter]]>
  43310. </doc>
  43311. </class>
  43312. <!-- end class org.apache.hadoop.util.bloom.HashFunction -->
  43313. <!-- start class org.apache.hadoop.util.bloom.Key -->
  43314. <class name="Key" extends="java.lang.Object"
  43315. abstract="false"
  43316. static="false" final="false" visibility="public"
  43317. deprecated="not deprecated">
  43318. <implements name="org.apache.hadoop.io.WritableComparable"/>
  43319. <constructor name="Key"
  43320. static="false" final="false" visibility="public"
  43321. deprecated="not deprecated">
  43322. <doc>
  43323. <![CDATA[default constructor - use with readFields]]>
  43324. </doc>
  43325. </constructor>
  43326. <constructor name="Key" type="byte[]"
  43327. static="false" final="false" visibility="public"
  43328. deprecated="not deprecated">
  43329. <doc>
  43330. <![CDATA[Constructor.
  43331. <p>
  43332. Builds a key with a default weight.
  43333. @param value The byte value of <i>this</i> key.]]>
  43334. </doc>
  43335. </constructor>
  43336. <constructor name="Key" type="byte[], double"
  43337. static="false" final="false" visibility="public"
  43338. deprecated="not deprecated">
  43339. <doc>
  43340. <![CDATA[Constructor.
  43341. <p>
  43342. Builds a key with a specified weight.
  43343. @param value The value of <i>this</i> key.
  43344. @param weight The weight associated to <i>this</i> key.]]>
  43345. </doc>
  43346. </constructor>
  43347. <method name="set"
  43348. abstract="false" native="false" synchronized="false"
  43349. static="false" final="false" visibility="public"
  43350. deprecated="not deprecated">
  43351. <param name="value" type="byte[]"/>
  43352. <param name="weight" type="double"/>
  43353. <doc>
  43354. <![CDATA[@param value
  43355. @param weight]]>
  43356. </doc>
  43357. </method>
  43358. <method name="getBytes" return="byte[]"
  43359. abstract="false" native="false" synchronized="false"
  43360. static="false" final="false" visibility="public"
  43361. deprecated="not deprecated">
  43362. <doc>
  43363. <![CDATA[@return byte[] The value of <i>this</i> key.]]>
  43364. </doc>
  43365. </method>
  43366. <method name="getWeight" return="double"
  43367. abstract="false" native="false" synchronized="false"
  43368. static="false" final="false" visibility="public"
  43369. deprecated="not deprecated">
  43370. <doc>
  43371. <![CDATA[@return Returns the weight associated to <i>this</i> key.]]>
  43372. </doc>
  43373. </method>
  43374. <method name="incrementWeight"
  43375. abstract="false" native="false" synchronized="false"
  43376. static="false" final="false" visibility="public"
  43377. deprecated="not deprecated">
  43378. <param name="weight" type="double"/>
  43379. <doc>
  43380. <![CDATA[Increments the weight of <i>this</i> key with a specified value.
  43381. @param weight The increment.]]>
  43382. </doc>
  43383. </method>
  43384. <method name="incrementWeight"
  43385. abstract="false" native="false" synchronized="false"
  43386. static="false" final="false" visibility="public"
  43387. deprecated="not deprecated">
  43388. <doc>
  43389. <![CDATA[Increments the weight of <i>this</i> key by one.]]>
  43390. </doc>
  43391. </method>
  43392. <method name="equals" return="boolean"
  43393. abstract="false" native="false" synchronized="false"
  43394. static="false" final="false" visibility="public"
  43395. deprecated="not deprecated">
  43396. <param name="o" type="java.lang.Object"/>
  43397. </method>
  43398. <method name="hashCode" return="int"
  43399. abstract="false" native="false" synchronized="false"
  43400. static="false" final="false" visibility="public"
  43401. deprecated="not deprecated">
  43402. </method>
  43403. <method name="write"
  43404. abstract="false" native="false" synchronized="false"
  43405. static="false" final="false" visibility="public"
  43406. deprecated="not deprecated">
  43407. <param name="out" type="java.io.DataOutput"/>
  43408. <exception name="IOException" type="java.io.IOException"/>
  43409. </method>
  43410. <method name="readFields"
  43411. abstract="false" native="false" synchronized="false"
  43412. static="false" final="false" visibility="public"
  43413. deprecated="not deprecated">
  43414. <param name="in" type="java.io.DataInput"/>
  43415. <exception name="IOException" type="java.io.IOException"/>
  43416. </method>
  43417. <method name="compareTo" return="int"
  43418. abstract="false" native="false" synchronized="false"
  43419. static="false" final="false" visibility="public"
  43420. deprecated="not deprecated">
  43421. <param name="other" type="org.apache.hadoop.util.bloom.Key"/>
  43422. </method>
  43423. <doc>
  43424. <![CDATA[The general behavior of a key that must be stored in a filter.
  43425. @see Filter The general behavior of a filter]]>
  43426. </doc>
  43427. </class>
  43428. <!-- end class org.apache.hadoop.util.bloom.Key -->
  43429. <!-- start interface org.apache.hadoop.util.bloom.RemoveScheme -->
  43430. <interface name="RemoveScheme" abstract="true"
  43431. static="false" final="false" visibility="public"
  43432. deprecated="not deprecated">
  43433. <field name="RANDOM" type="short"
  43434. transient="false" volatile="false"
  43435. static="true" final="true" visibility="public"
  43436. deprecated="not deprecated">
  43437. <doc>
  43438. <![CDATA[Random selection.
  43439. <p>
  43440. The idea is to randomly select a bit to reset.]]>
  43441. </doc>
  43442. </field>
  43443. <field name="MINIMUM_FN" type="short"
  43444. transient="false" volatile="false"
  43445. static="true" final="true" visibility="public"
  43446. deprecated="not deprecated">
  43447. <doc>
  43448. <![CDATA[MinimumFN Selection.
  43449. <p>
  43450. The idea is to select the bit to reset that will generate the minimum
  43451. number of false negative.]]>
  43452. </doc>
  43453. </field>
  43454. <field name="MAXIMUM_FP" type="short"
  43455. transient="false" volatile="false"
  43456. static="true" final="true" visibility="public"
  43457. deprecated="not deprecated">
  43458. <doc>
  43459. <![CDATA[MaximumFP Selection.
  43460. <p>
  43461. The idea is to select the bit to reset that will remove the maximum number
  43462. of false positive.]]>
  43463. </doc>
  43464. </field>
  43465. <field name="RATIO" type="short"
  43466. transient="false" volatile="false"
  43467. static="true" final="true" visibility="public"
  43468. deprecated="not deprecated">
  43469. <doc>
  43470. <![CDATA[Ratio Selection.
  43471. <p>
  43472. The idea is to select the bit to reset that will, at the same time, remove
  43473. the maximum number of false positve while minimizing the amount of false
  43474. negative generated.]]>
  43475. </doc>
  43476. </field>
  43477. <doc>
  43478. <![CDATA[Defines the different remove scheme for retouched Bloom filters.
  43479. <p>
  43480. Originally created by
  43481. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.]]>
  43482. </doc>
  43483. </interface>
  43484. <!-- end interface org.apache.hadoop.util.bloom.RemoveScheme -->
  43485. <!-- start class org.apache.hadoop.util.bloom.RetouchedBloomFilter -->
  43486. <class name="RetouchedBloomFilter" extends="org.apache.hadoop.util.bloom.BloomFilter"
  43487. abstract="false"
  43488. static="false" final="true" visibility="public"
  43489. deprecated="not deprecated">
  43490. <implements name="org.apache.hadoop.util.bloom.RemoveScheme"/>
  43491. <constructor name="RetouchedBloomFilter"
  43492. static="false" final="false" visibility="public"
  43493. deprecated="not deprecated">
  43494. <doc>
  43495. <![CDATA[Default constructor - use with readFields]]>
  43496. </doc>
  43497. </constructor>
  43498. <constructor name="RetouchedBloomFilter" type="int, int, int"
  43499. static="false" final="false" visibility="public"
  43500. deprecated="not deprecated">
  43501. <doc>
  43502. <![CDATA[Constructor
  43503. @param vectorSize The vector size of <i>this</i> filter.
  43504. @param nbHash The number of hash function to consider.
  43505. @param hashType type of the hashing function (see
  43506. {@link org.apache.hadoop.util.hash.Hash}).]]>
  43507. </doc>
  43508. </constructor>
  43509. <method name="add"
  43510. abstract="false" native="false" synchronized="false"
  43511. static="false" final="false" visibility="public"
  43512. deprecated="not deprecated">
  43513. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  43514. </method>
  43515. <method name="addFalsePositive"
  43516. abstract="false" native="false" synchronized="false"
  43517. static="false" final="false" visibility="public"
  43518. deprecated="not deprecated">
  43519. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  43520. <doc>
  43521. <![CDATA[Adds a false positive information to <i>this</i> retouched Bloom filter.
  43522. <p>
  43523. <b>Invariant</b>: if the false positive is <code>null</code>, nothing happens.
  43524. @param key The false positive key to add.]]>
  43525. </doc>
  43526. </method>
  43527. <method name="addFalsePositive"
  43528. abstract="false" native="false" synchronized="false"
  43529. static="false" final="false" visibility="public"
  43530. deprecated="not deprecated">
  43531. <param name="coll" type="java.util.Collection"/>
  43532. <doc>
  43533. <![CDATA[Adds a collection of false positive information to <i>this</i> retouched Bloom filter.
  43534. @param coll The collection of false positive.]]>
  43535. </doc>
  43536. </method>
  43537. <method name="addFalsePositive"
  43538. abstract="false" native="false" synchronized="false"
  43539. static="false" final="false" visibility="public"
  43540. deprecated="not deprecated">
  43541. <param name="keys" type="java.util.List"/>
  43542. <doc>
  43543. <![CDATA[Adds a list of false positive information to <i>this</i> retouched Bloom filter.
  43544. @param keys The list of false positive.]]>
  43545. </doc>
  43546. </method>
  43547. <method name="addFalsePositive"
  43548. abstract="false" native="false" synchronized="false"
  43549. static="false" final="false" visibility="public"
  43550. deprecated="not deprecated">
  43551. <param name="keys" type="org.apache.hadoop.util.bloom.Key[]"/>
  43552. <doc>
  43553. <![CDATA[Adds an array of false positive information to <i>this</i> retouched Bloom filter.
  43554. @param keys The array of false positive.]]>
  43555. </doc>
  43556. </method>
  43557. <method name="selectiveClearing"
  43558. abstract="false" native="false" synchronized="false"
  43559. static="false" final="false" visibility="public"
  43560. deprecated="not deprecated">
  43561. <param name="k" type="org.apache.hadoop.util.bloom.Key"/>
  43562. <param name="scheme" type="short"/>
  43563. <doc>
  43564. <![CDATA[Performs the selective clearing for a given key.
  43565. @param k The false positive key to remove from <i>this</i> retouched Bloom filter.
  43566. @param scheme The selective clearing scheme to apply.]]>
  43567. </doc>
  43568. </method>
  43569. <method name="write"
  43570. abstract="false" native="false" synchronized="false"
  43571. static="false" final="false" visibility="public"
  43572. deprecated="not deprecated">
  43573. <param name="out" type="java.io.DataOutput"/>
  43574. <exception name="IOException" type="java.io.IOException"/>
  43575. </method>
  43576. <method name="readFields"
  43577. abstract="false" native="false" synchronized="false"
  43578. static="false" final="false" visibility="public"
  43579. deprecated="not deprecated">
  43580. <param name="in" type="java.io.DataInput"/>
  43581. <exception name="IOException" type="java.io.IOException"/>
  43582. </method>
  43583. <doc>
  43584. <![CDATA[Implements a <i>retouched Bloom filter</i>, as defined in the CoNEXT 2006 paper.
  43585. <p>
  43586. It allows the removal of selected false positives at the cost of introducing
  43587. random false negatives, and with the benefit of eliminating some random false
  43588. positives at the same time.
  43589. <p>
  43590. Originally created by
  43591. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  43592. @see Filter The general behavior of a filter
  43593. @see BloomFilter A Bloom filter
  43594. @see RemoveScheme The different selective clearing algorithms
  43595. @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>]]>
  43596. </doc>
  43597. </class>
  43598. <!-- end class org.apache.hadoop.util.bloom.RetouchedBloomFilter -->
  43599. </package>
  43600. <package name="org.apache.hadoop.util.hash">
  43601. <!-- start class org.apache.hadoop.util.hash.Hash -->
  43602. <class name="Hash" extends="java.lang.Object"
  43603. abstract="true"
  43604. static="false" final="false" visibility="public"
  43605. deprecated="not deprecated">
  43606. <constructor name="Hash"
  43607. static="false" final="false" visibility="public"
  43608. deprecated="not deprecated">
  43609. </constructor>
  43610. <method name="parseHashType" return="int"
  43611. abstract="false" native="false" synchronized="false"
  43612. static="true" final="false" visibility="public"
  43613. deprecated="not deprecated">
  43614. <param name="name" type="java.lang.String"/>
  43615. <doc>
  43616. <![CDATA[This utility method converts String representation of hash function name
  43617. to a symbolic constant. Currently two function types are supported,
  43618. "jenkins" and "murmur".
  43619. @param name hash function name
  43620. @return one of the predefined constants]]>
  43621. </doc>
  43622. </method>
  43623. <method name="getHashType" return="int"
  43624. abstract="false" native="false" synchronized="false"
  43625. static="true" final="false" visibility="public"
  43626. deprecated="not deprecated">
  43627. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43628. <doc>
  43629. <![CDATA[This utility method converts the name of the configured
  43630. hash type to a symbolic constant.
  43631. @param conf configuration
  43632. @return one of the predefined constants]]>
  43633. </doc>
  43634. </method>
  43635. <method name="getInstance" return="org.apache.hadoop.util.hash.Hash"
  43636. abstract="false" native="false" synchronized="false"
  43637. static="true" final="false" visibility="public"
  43638. deprecated="not deprecated">
  43639. <param name="type" type="int"/>
  43640. <doc>
  43641. <![CDATA[Get a singleton instance of hash function of a given type.
  43642. @param type predefined hash type
  43643. @return hash function instance, or null if type is invalid]]>
  43644. </doc>
  43645. </method>
  43646. <method name="getInstance" return="org.apache.hadoop.util.hash.Hash"
  43647. abstract="false" native="false" synchronized="false"
  43648. static="true" final="false" visibility="public"
  43649. deprecated="not deprecated">
  43650. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43651. <doc>
  43652. <![CDATA[Get a singleton instance of hash function of a type
  43653. defined in the configuration.
  43654. @param conf current configuration
  43655. @return defined hash type, or null if type is invalid]]>
  43656. </doc>
  43657. </method>
  43658. <method name="hash" return="int"
  43659. abstract="false" native="false" synchronized="false"
  43660. static="false" final="false" visibility="public"
  43661. deprecated="not deprecated">
  43662. <param name="bytes" type="byte[]"/>
  43663. <doc>
  43664. <![CDATA[Calculate a hash using all bytes from the input argument, and
  43665. a seed of -1.
  43666. @param bytes input bytes
  43667. @return hash value]]>
  43668. </doc>
  43669. </method>
  43670. <method name="hash" return="int"
  43671. abstract="false" native="false" synchronized="false"
  43672. static="false" final="false" visibility="public"
  43673. deprecated="not deprecated">
  43674. <param name="bytes" type="byte[]"/>
  43675. <param name="initval" type="int"/>
  43676. <doc>
  43677. <![CDATA[Calculate a hash using all bytes from the input argument,
  43678. and a provided seed value.
  43679. @param bytes input bytes
  43680. @param initval seed value
  43681. @return hash value]]>
  43682. </doc>
  43683. </method>
  43684. <method name="hash" return="int"
  43685. abstract="true" native="false" synchronized="false"
  43686. static="false" final="false" visibility="public"
  43687. deprecated="not deprecated">
  43688. <param name="bytes" type="byte[]"/>
  43689. <param name="length" type="int"/>
  43690. <param name="initval" type="int"/>
  43691. <doc>
  43692. <![CDATA[Calculate a hash using bytes from 0 to <code>length</code>, and
  43693. the provided seed value
  43694. @param bytes input bytes
  43695. @param length length of the valid bytes to consider
  43696. @param initval seed value
  43697. @return hash value]]>
  43698. </doc>
  43699. </method>
  43700. <field name="INVALID_HASH" type="int"
  43701. transient="false" volatile="false"
  43702. static="true" final="true" visibility="public"
  43703. deprecated="not deprecated">
  43704. <doc>
  43705. <![CDATA[Constant to denote invalid hash type.]]>
  43706. </doc>
  43707. </field>
  43708. <field name="JENKINS_HASH" type="int"
  43709. transient="false" volatile="false"
  43710. static="true" final="true" visibility="public"
  43711. deprecated="not deprecated">
  43712. <doc>
  43713. <![CDATA[Constant to denote {@link JenkinsHash}.]]>
  43714. </doc>
  43715. </field>
  43716. <field name="MURMUR_HASH" type="int"
  43717. transient="false" volatile="false"
  43718. static="true" final="true" visibility="public"
  43719. deprecated="not deprecated">
  43720. <doc>
  43721. <![CDATA[Constant to denote {@link MurmurHash}.]]>
  43722. </doc>
  43723. </field>
  43724. <doc>
  43725. <![CDATA[This class represents a common API for hashing functions.]]>
  43726. </doc>
  43727. </class>
  43728. <!-- end class org.apache.hadoop.util.hash.Hash -->
  43729. <!-- start class org.apache.hadoop.util.hash.JenkinsHash -->
  43730. <class name="JenkinsHash" extends="org.apache.hadoop.util.hash.Hash"
  43731. abstract="false"
  43732. static="false" final="false" visibility="public"
  43733. deprecated="not deprecated">
  43734. <constructor name="JenkinsHash"
  43735. static="false" final="false" visibility="public"
  43736. deprecated="not deprecated">
  43737. </constructor>
  43738. <method name="getInstance" return="org.apache.hadoop.util.hash.Hash"
  43739. abstract="false" native="false" synchronized="false"
  43740. static="true" final="false" visibility="public"
  43741. deprecated="not deprecated">
  43742. </method>
  43743. <method name="hash" return="int"
  43744. abstract="false" native="false" synchronized="false"
  43745. static="false" final="false" visibility="public"
  43746. deprecated="not deprecated">
  43747. <param name="key" type="byte[]"/>
  43748. <param name="nbytes" type="int"/>
  43749. <param name="initval" type="int"/>
  43750. <doc>
  43751. <![CDATA[taken from hashlittle() -- hash a variable-length key into a 32-bit value
  43752. @param key the key (the unaligned variable-length array of bytes)
  43753. @param nbytes number of bytes to include in hash
  43754. @param initval can be any integer value
  43755. @return a 32-bit value. Every bit of the key affects every bit of the
  43756. return value. Two keys differing by one or two bits will have totally
  43757. different hash values.
  43758. <p>The best hash table sizes are powers of 2. There is no need to do mod
  43759. a prime (mod is sooo slow!). If you need less than 32 bits, use a bitmask.
  43760. For example, if you need only 10 bits, do
  43761. <code>h = (h & hashmask(10));</code>
  43762. In which case, the hash table should have hashsize(10) elements.
  43763. <p>If you are hashing n strings byte[][] k, do it like this:
  43764. for (int i = 0, h = 0; i < n; ++i) h = hash( k[i], h);
  43765. <p>By Bob Jenkins, 2006. bob_jenkins@burtleburtle.net. You may use this
  43766. code any way you wish, private, educational, or commercial. It's free.
  43767. <p>Use for hash table lookup, or anything where one collision in 2^^32 is
  43768. acceptable. Do NOT use for cryptographic purposes.]]>
  43769. </doc>
  43770. </method>
  43771. <method name="main"
  43772. abstract="false" native="false" synchronized="false"
  43773. static="true" final="false" visibility="public"
  43774. deprecated="not deprecated">
  43775. <param name="args" type="java.lang.String[]"/>
  43776. <exception name="IOException" type="java.io.IOException"/>
  43777. <doc>
  43778. <![CDATA[Compute the hash of the specified file
  43779. @param args name of file to compute hash of.
  43780. @throws IOException]]>
  43781. </doc>
  43782. </method>
  43783. <doc>
  43784. <![CDATA[Produces 32-bit hash for hash table lookup.
  43785. <pre>lookup3.c, by Bob Jenkins, May 2006, Public Domain.
  43786. You can use this free for any purpose. It's in the public domain.
  43787. It has no warranty.
  43788. </pre>
  43789. @see <a href="http://burtleburtle.net/bob/c/lookup3.c">lookup3.c</a>
  43790. @see <a href="http://www.ddj.com/184410284">Hash Functions (and how this
  43791. function compares to others such as CRC, MD?, etc</a>
  43792. @see <a href="http://burtleburtle.net/bob/hash/doobs.html">Has update on the
  43793. Dr. Dobbs Article</a>]]>
  43794. </doc>
  43795. </class>
  43796. <!-- end class org.apache.hadoop.util.hash.JenkinsHash -->
  43797. <!-- start class org.apache.hadoop.util.hash.MurmurHash -->
  43798. <class name="MurmurHash" extends="org.apache.hadoop.util.hash.Hash"
  43799. abstract="false"
  43800. static="false" final="false" visibility="public"
  43801. deprecated="not deprecated">
  43802. <constructor name="MurmurHash"
  43803. static="false" final="false" visibility="public"
  43804. deprecated="not deprecated">
  43805. </constructor>
  43806. <method name="getInstance" return="org.apache.hadoop.util.hash.Hash"
  43807. abstract="false" native="false" synchronized="false"
  43808. static="true" final="false" visibility="public"
  43809. deprecated="not deprecated">
  43810. </method>
  43811. <method name="hash" return="int"
  43812. abstract="false" native="false" synchronized="false"
  43813. static="false" final="false" visibility="public"
  43814. deprecated="not deprecated">
  43815. <param name="data" type="byte[]"/>
  43816. <param name="length" type="int"/>
  43817. <param name="seed" type="int"/>
  43818. </method>
  43819. <doc>
  43820. <![CDATA[This is a very fast, non-cryptographic hash suitable for general hash-based
  43821. lookup. See http://murmurhash.googlepages.com/ for more details.
  43822. <p>The C version of MurmurHash 2.0 found at that site was ported
  43823. to Java by Andrzej Bialecki (ab at getopt org).</p>]]>
  43824. </doc>
  43825. </class>
  43826. <!-- end class org.apache.hadoop.util.hash.MurmurHash -->
  43827. </package>
  43828. <package name="org.apache.hadoop.filecache">
  43829. <!-- start class org.apache.hadoop.filecache.DistributedCache -->
  43830. <class name="DistributedCache" extends="java.lang.Object"
  43831. abstract="false"
  43832. static="false" final="false" visibility="public"
  43833. deprecated="not deprecated">
  43834. <constructor name="DistributedCache"
  43835. static="false" final="false" visibility="public"
  43836. deprecated="not deprecated">
  43837. </constructor>
  43838. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  43839. abstract="false" native="false" synchronized="false"
  43840. static="true" final="false" visibility="public"
  43841. deprecated="not deprecated">
  43842. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43843. <param name="cache" type="java.net.URI"/>
  43844. <exception name="IOException" type="java.io.IOException"/>
  43845. <doc>
  43846. <![CDATA[Returns {@link FileStatus} of a given cache file on hdfs. Internal to
  43847. MapReduce.
  43848. @param conf configuration
  43849. @param cache cache file
  43850. @return <code>FileStatus</code> of a given cache file on hdfs
  43851. @throws IOException]]>
  43852. </doc>
  43853. </method>
  43854. <method name="getTimestamp" return="long"
  43855. abstract="false" native="false" synchronized="false"
  43856. static="true" final="false" visibility="public"
  43857. deprecated="not deprecated">
  43858. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43859. <param name="cache" type="java.net.URI"/>
  43860. <exception name="IOException" type="java.io.IOException"/>
  43861. <doc>
  43862. <![CDATA[Returns mtime of a given cache file on hdfs. Internal to MapReduce.
  43863. @param conf configuration
  43864. @param cache cache file
  43865. @return mtime of a given cache file on hdfs
  43866. @throws IOException]]>
  43867. </doc>
  43868. </method>
  43869. <method name="createAllSymlink"
  43870. abstract="false" native="false" synchronized="false"
  43871. static="true" final="false" visibility="public"
  43872. deprecated="Internal to MapReduce framework. Use DistributedCacheManager
  43873. instead.">
  43874. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43875. <param name="jobCacheDir" type="java.io.File"/>
  43876. <param name="workDir" type="java.io.File"/>
  43877. <exception name="IOException" type="java.io.IOException"/>
  43878. <doc>
  43879. <![CDATA[This method create symlinks for all files in a given dir in another directory
  43880. @param conf the configuration
  43881. @param jobCacheDir the target directory for creating symlinks
  43882. @param workDir the directory in which the symlinks are created
  43883. @throws IOException
  43884. @deprecated Internal to MapReduce framework. Use DistributedCacheManager
  43885. instead.]]>
  43886. </doc>
  43887. </method>
  43888. <method name="setCacheArchives"
  43889. abstract="false" native="false" synchronized="false"
  43890. static="true" final="false" visibility="public"
  43891. deprecated="not deprecated">
  43892. <param name="archives" type="java.net.URI[]"/>
  43893. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43894. <doc>
  43895. <![CDATA[Set the configuration with the given set of archives. Intended
  43896. to be used by user code.
  43897. @param archives The list of archives that need to be localized
  43898. @param conf Configuration which will be changed]]>
  43899. </doc>
  43900. </method>
  43901. <method name="setCacheFiles"
  43902. abstract="false" native="false" synchronized="false"
  43903. static="true" final="false" visibility="public"
  43904. deprecated="not deprecated">
  43905. <param name="files" type="java.net.URI[]"/>
  43906. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43907. <doc>
  43908. <![CDATA[Set the configuration with the given set of files. Intended to be
  43909. used by user code.
  43910. @param files The list of files that need to be localized
  43911. @param conf Configuration which will be changed]]>
  43912. </doc>
  43913. </method>
  43914. <method name="getCacheArchives" return="java.net.URI[]"
  43915. abstract="false" native="false" synchronized="false"
  43916. static="true" final="false" visibility="public"
  43917. deprecated="not deprecated">
  43918. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43919. <exception name="IOException" type="java.io.IOException"/>
  43920. <doc>
  43921. <![CDATA[Get cache archives set in the Configuration. Used by
  43922. internal DistributedCache and MapReduce code.
  43923. @param conf The configuration which contains the archives
  43924. @return An array of the caches set in the Configuration
  43925. @throws IOException]]>
  43926. </doc>
  43927. </method>
  43928. <method name="getCacheFiles" return="java.net.URI[]"
  43929. abstract="false" native="false" synchronized="false"
  43930. static="true" final="false" visibility="public"
  43931. deprecated="not deprecated">
  43932. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43933. <exception name="IOException" type="java.io.IOException"/>
  43934. <doc>
  43935. <![CDATA[Get cache files set in the Configuration. Used by internal
  43936. DistributedCache and MapReduce code.
  43937. @param conf The configuration which contains the files
  43938. @return Am array of the files set in the Configuration
  43939. @throws IOException]]>
  43940. </doc>
  43941. </method>
  43942. <method name="getLocalCacheArchives" return="org.apache.hadoop.fs.Path[]"
  43943. abstract="false" native="false" synchronized="false"
  43944. static="true" final="false" visibility="public"
  43945. deprecated="not deprecated">
  43946. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43947. <exception name="IOException" type="java.io.IOException"/>
  43948. <doc>
  43949. <![CDATA[Return the path array of the localized caches. Intended to be used
  43950. by user code.
  43951. @param conf Configuration that contains the localized archives
  43952. @return A path array of localized caches
  43953. @throws IOException]]>
  43954. </doc>
  43955. </method>
  43956. <method name="getLocalCacheFiles" return="org.apache.hadoop.fs.Path[]"
  43957. abstract="false" native="false" synchronized="false"
  43958. static="true" final="false" visibility="public"
  43959. deprecated="not deprecated">
  43960. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43961. <exception name="IOException" type="java.io.IOException"/>
  43962. <doc>
  43963. <![CDATA[Return the path array of the localized files. Intended to be used
  43964. by user code.
  43965. @param conf Configuration that contains the localized files
  43966. @return A path array of localized files
  43967. @throws IOException]]>
  43968. </doc>
  43969. </method>
  43970. <method name="getArchiveTimestamps" return="long[]"
  43971. abstract="false" native="false" synchronized="false"
  43972. static="true" final="false" visibility="public"
  43973. deprecated="not deprecated">
  43974. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43975. <doc>
  43976. <![CDATA[Get the timestamps of the archives. Used by internal
  43977. DistributedCache and MapReduce code.
  43978. @param conf The configuration which stored the timestamps
  43979. @return a long array of timestamps
  43980. @throws IOException]]>
  43981. </doc>
  43982. </method>
  43983. <method name="getFileTimestamps" return="long[]"
  43984. abstract="false" native="false" synchronized="false"
  43985. static="true" final="false" visibility="public"
  43986. deprecated="not deprecated">
  43987. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43988. <doc>
  43989. <![CDATA[Get the timestamps of the files. Used by internal
  43990. DistributedCache and MapReduce code.
  43991. @param conf The configuration which stored the timestamps
  43992. @return a long array of timestamps
  43993. @throws IOException]]>
  43994. </doc>
  43995. </method>
  43996. <method name="setArchiveTimestamps"
  43997. abstract="false" native="false" synchronized="false"
  43998. static="true" final="false" visibility="public"
  43999. deprecated="not deprecated">
  44000. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44001. <param name="timestamps" type="java.lang.String"/>
  44002. <doc>
  44003. <![CDATA[This is to check the timestamp of the archives to be localized.
  44004. Used by internal MapReduce code.
  44005. @param conf Configuration which stores the timestamp's
  44006. @param timestamps comma separated list of timestamps of archives.
  44007. The order should be the same as the order in which the archives are added.]]>
  44008. </doc>
  44009. </method>
  44010. <method name="setFileTimestamps"
  44011. abstract="false" native="false" synchronized="false"
  44012. static="true" final="false" visibility="public"
  44013. deprecated="not deprecated">
  44014. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44015. <param name="timestamps" type="java.lang.String"/>
  44016. <doc>
  44017. <![CDATA[This is to check the timestamp of the files to be localized.
  44018. Used by internal MapReduce code.
  44019. @param conf Configuration which stores the timestamp's
  44020. @param timestamps comma separated list of timestamps of files.
  44021. The order should be the same as the order in which the files are added.]]>
  44022. </doc>
  44023. </method>
  44024. <method name="setLocalArchives"
  44025. abstract="false" native="false" synchronized="false"
  44026. static="true" final="false" visibility="public"
  44027. deprecated="not deprecated">
  44028. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44029. <param name="str" type="java.lang.String"/>
  44030. <doc>
  44031. <![CDATA[Set the conf to contain the location for localized archives. Used
  44032. by internal DistributedCache code.
  44033. @param conf The conf to modify to contain the localized caches
  44034. @param str a comma separated list of local archives]]>
  44035. </doc>
  44036. </method>
  44037. <method name="setLocalFiles"
  44038. abstract="false" native="false" synchronized="false"
  44039. static="true" final="false" visibility="public"
  44040. deprecated="not deprecated">
  44041. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44042. <param name="str" type="java.lang.String"/>
  44043. <doc>
  44044. <![CDATA[Set the conf to contain the location for localized files. Used
  44045. by internal DistributedCache code.
  44046. @param conf The conf to modify to contain the localized caches
  44047. @param str a comma separated list of local files]]>
  44048. </doc>
  44049. </method>
  44050. <method name="addLocalArchives"
  44051. abstract="false" native="false" synchronized="false"
  44052. static="true" final="false" visibility="public"
  44053. deprecated="not deprecated">
  44054. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44055. <param name="str" type="java.lang.String"/>
  44056. <doc>
  44057. <![CDATA[Add a archive that has been localized to the conf. Used
  44058. by internal DistributedCache code.
  44059. @param conf The conf to modify to contain the localized caches
  44060. @param str a comma separated list of local archives]]>
  44061. </doc>
  44062. </method>
  44063. <method name="addLocalFiles"
  44064. abstract="false" native="false" synchronized="false"
  44065. static="true" final="false" visibility="public"
  44066. deprecated="not deprecated">
  44067. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44068. <param name="str" type="java.lang.String"/>
  44069. <doc>
  44070. <![CDATA[Add a file that has been localized to the conf.. Used
  44071. by internal DistributedCache code.
  44072. @param conf The conf to modify to contain the localized caches
  44073. @param str a comma separated list of local files]]>
  44074. </doc>
  44075. </method>
  44076. <method name="addCacheArchive"
  44077. abstract="false" native="false" synchronized="false"
  44078. static="true" final="false" visibility="public"
  44079. deprecated="not deprecated">
  44080. <param name="uri" type="java.net.URI"/>
  44081. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44082. <doc>
  44083. <![CDATA[Add a archives to be localized to the conf. Intended to
  44084. be used by user code.
  44085. @param uri The uri of the cache to be localized
  44086. @param conf Configuration to add the cache to]]>
  44087. </doc>
  44088. </method>
  44089. <method name="addCacheFile"
  44090. abstract="false" native="false" synchronized="false"
  44091. static="true" final="false" visibility="public"
  44092. deprecated="not deprecated">
  44093. <param name="uri" type="java.net.URI"/>
  44094. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44095. <doc>
  44096. <![CDATA[Add a file to be localized to the conf. Intended
  44097. to be used by user code.
  44098. @param uri The uri of the cache to be localized
  44099. @param conf Configuration to add the cache to]]>
  44100. </doc>
  44101. </method>
  44102. <method name="addFileToClassPath"
  44103. abstract="false" native="false" synchronized="false"
  44104. static="true" final="false" visibility="public"
  44105. deprecated="Please use {@link #addFileToClassPath(Path, Configuration, FileSystem)}
  44106. instead. The {@code FileSystem} should be obtained within an
  44107. appropriate {@code doAs}.">
  44108. <param name="file" type="org.apache.hadoop.fs.Path"/>
  44109. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44110. <exception name="IOException" type="java.io.IOException"/>
  44111. <doc>
  44112. <![CDATA[Add a file path to the current set of classpath entries. It adds the file
  44113. to cache as well. Intended to be used by user code.
  44114. @deprecated
  44115. Please use {@link #addFileToClassPath(Path, Configuration, FileSystem)}
  44116. instead. The {@code FileSystem} should be obtained within an
  44117. appropriate {@code doAs}.
  44118. @param file Path of the file to be added
  44119. @param conf Configuration that contains the classpath setting]]>
  44120. </doc>
  44121. </method>
  44122. <method name="addFileToClassPath"
  44123. abstract="false" native="false" synchronized="false"
  44124. static="true" final="false" visibility="public"
  44125. deprecated="not deprecated">
  44126. <param name="file" type="org.apache.hadoop.fs.Path"/>
  44127. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44128. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  44129. <exception name="IOException" type="java.io.IOException"/>
  44130. <doc>
  44131. <![CDATA[Add a file path to the current set of classpath entries. It adds the file
  44132. to cache as well. Intended to be used by user code.
  44133. @param file Path of the file to be added
  44134. @param conf Configuration that contains the classpath setting
  44135. @param fs FileSystem with respect to which {@code archivefile} should
  44136. be interpreted.]]>
  44137. </doc>
  44138. </method>
  44139. <method name="getFileClassPaths" return="org.apache.hadoop.fs.Path[]"
  44140. abstract="false" native="false" synchronized="false"
  44141. static="true" final="false" visibility="public"
  44142. deprecated="not deprecated">
  44143. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44144. <doc>
  44145. <![CDATA[Get the file entries in classpath as an array of Path.
  44146. Used by internal DistributedCache code.
  44147. @param conf Configuration that contains the classpath setting]]>
  44148. </doc>
  44149. </method>
  44150. <method name="addArchiveToClassPath"
  44151. abstract="false" native="false" synchronized="false"
  44152. static="true" final="false" visibility="public"
  44153. deprecated="Please use {@link #addArchiveToClassPath(Path, Configuration, FileSystem)}
  44154. instead. The {@code FileSystem} should be obtained within an
  44155. appropriate {@code doAs}.">
  44156. <param name="archive" type="org.apache.hadoop.fs.Path"/>
  44157. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44158. <exception name="IOException" type="java.io.IOException"/>
  44159. <doc>
  44160. <![CDATA[Add an archive path to the current set of classpath entries. It adds the
  44161. archive to cache as well. Intended to be used by user code.
  44162. @deprecated
  44163. Please use {@link #addArchiveToClassPath(Path, Configuration, FileSystem)}
  44164. instead. The {@code FileSystem} should be obtained within an
  44165. appropriate {@code doAs}.
  44166. @param archive Path of the archive to be added
  44167. @param conf Configuration that contains the classpath setting]]>
  44168. </doc>
  44169. </method>
  44170. <method name="addArchiveToClassPath"
  44171. abstract="false" native="false" synchronized="false"
  44172. static="true" final="false" visibility="public"
  44173. deprecated="not deprecated">
  44174. <param name="archive" type="org.apache.hadoop.fs.Path"/>
  44175. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44176. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  44177. <exception name="IOException" type="java.io.IOException"/>
  44178. <doc>
  44179. <![CDATA[Add an archive path to the current set of classpath entries. It adds the
  44180. archive to cache as well. Intended to be used by user code.
  44181. @param archive Path of the archive to be added
  44182. @param conf Configuration that contains the classpath setting
  44183. @param fs FileSystem with respect to which {@code archive} should be interpreted.]]>
  44184. </doc>
  44185. </method>
  44186. <method name="getArchiveClassPaths" return="org.apache.hadoop.fs.Path[]"
  44187. abstract="false" native="false" synchronized="false"
  44188. static="true" final="false" visibility="public"
  44189. deprecated="not deprecated">
  44190. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44191. <doc>
  44192. <![CDATA[Get the archive entries in classpath as an array of Path.
  44193. Used by internal DistributedCache code.
  44194. @param conf Configuration that contains the classpath setting]]>
  44195. </doc>
  44196. </method>
  44197. <method name="createSymlink"
  44198. abstract="false" native="false" synchronized="false"
  44199. static="true" final="false" visibility="public"
  44200. deprecated="not deprecated">
  44201. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44202. <doc>
  44203. <![CDATA[This method allows you to create symlinks in the current working directory
  44204. of the task to all the cache files/archives.
  44205. Intended to be used by user code.
  44206. @param conf the jobconf]]>
  44207. </doc>
  44208. </method>
  44209. <method name="getSymlink" return="boolean"
  44210. abstract="false" native="false" synchronized="false"
  44211. static="true" final="false" visibility="public"
  44212. deprecated="not deprecated">
  44213. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44214. <doc>
  44215. <![CDATA[This method checks to see if symlinks are to be create for the
  44216. localized cache files in the current working directory
  44217. Used by internal DistributedCache code.
  44218. @param conf the jobconf
  44219. @return true if symlinks are to be created- else return false]]>
  44220. </doc>
  44221. </method>
  44222. <method name="checkURIs" return="boolean"
  44223. abstract="false" native="false" synchronized="false"
  44224. static="true" final="false" visibility="public"
  44225. deprecated="not deprecated">
  44226. <param name="uriFiles" type="java.net.URI[]"/>
  44227. <param name="uriArchives" type="java.net.URI[]"/>
  44228. <doc>
  44229. <![CDATA[This method checks if there is a conflict in the fragment names
  44230. of the uris. Also makes sure that each uri has a fragment. It
  44231. is only to be called if you want to create symlinks for
  44232. the various archives and files. May be used by user code.
  44233. @param uriFiles The uri array of urifiles
  44234. @param uriArchives the uri array of uri archives]]>
  44235. </doc>
  44236. </method>
  44237. <field name="CACHE_FILES_SIZES" type="java.lang.String"
  44238. transient="false" volatile="false"
  44239. static="true" final="true" visibility="public"
  44240. deprecated="not deprecated">
  44241. <doc>
  44242. <![CDATA[Warning: {@link #CACHE_FILES_SIZES} is not a *public* constant.]]>
  44243. </doc>
  44244. </field>
  44245. <field name="CACHE_ARCHIVES_SIZES" type="java.lang.String"
  44246. transient="false" volatile="false"
  44247. static="true" final="true" visibility="public"
  44248. deprecated="not deprecated">
  44249. <doc>
  44250. <![CDATA[Warning: {@link #CACHE_ARCHIVES_SIZES} is not a *public* constant.]]>
  44251. </doc>
  44252. </field>
  44253. <field name="CACHE_ARCHIVES_TIMESTAMPS" type="java.lang.String"
  44254. transient="false" volatile="false"
  44255. static="true" final="true" visibility="public"
  44256. deprecated="not deprecated">
  44257. <doc>
  44258. <![CDATA[Warning: {@link #CACHE_ARCHIVES_TIMESTAMPS} is not a *public* constant.]]>
  44259. </doc>
  44260. </field>
  44261. <field name="CACHE_FILES_TIMESTAMPS" type="java.lang.String"
  44262. transient="false" volatile="false"
  44263. static="true" final="true" visibility="public"
  44264. deprecated="not deprecated">
  44265. <doc>
  44266. <![CDATA[Warning: {@link #CACHE_FILES_TIMESTAMPS} is not a *public* constant.]]>
  44267. </doc>
  44268. </field>
  44269. <field name="CACHE_ARCHIVES" type="java.lang.String"
  44270. transient="false" volatile="false"
  44271. static="true" final="true" visibility="public"
  44272. deprecated="not deprecated">
  44273. <doc>
  44274. <![CDATA[Warning: {@link #CACHE_ARCHIVES} is not a *public* constant.]]>
  44275. </doc>
  44276. </field>
  44277. <field name="CACHE_FILES" type="java.lang.String"
  44278. transient="false" volatile="false"
  44279. static="true" final="true" visibility="public"
  44280. deprecated="not deprecated">
  44281. <doc>
  44282. <![CDATA[Warning: {@link #CACHE_FILES} is not a *public* constant.]]>
  44283. </doc>
  44284. </field>
  44285. <field name="CACHE_LOCALARCHIVES" type="java.lang.String"
  44286. transient="false" volatile="false"
  44287. static="true" final="true" visibility="public"
  44288. deprecated="not deprecated">
  44289. <doc>
  44290. <![CDATA[Warning: {@link #CACHE_LOCALARCHIVES} is not a *public* constant.]]>
  44291. </doc>
  44292. </field>
  44293. <field name="CACHE_LOCALFILES" type="java.lang.String"
  44294. transient="false" volatile="false"
  44295. static="true" final="true" visibility="public"
  44296. deprecated="not deprecated">
  44297. <doc>
  44298. <![CDATA[Warning: {@link #CACHE_LOCALFILES} is not a *public* constant.]]>
  44299. </doc>
  44300. </field>
  44301. <field name="CACHE_SYMLINK" type="java.lang.String"
  44302. transient="false" volatile="false"
  44303. static="true" final="true" visibility="public"
  44304. deprecated="not deprecated">
  44305. <doc>
  44306. <![CDATA[Warning: {@link #CACHE_SYMLINK} is not a *public* constant.]]>
  44307. </doc>
  44308. </field>
  44309. <doc>
  44310. <![CDATA[Distribute application-specific large, read-only files efficiently.
  44311. <p><code>DistributedCache</code> is a facility provided by the Map-Reduce
  44312. framework to cache files (text, archives, jars etc.) needed by applications.
  44313. </p>
  44314. <p>Applications specify the files, via urls (hdfs:// or http://) to be cached
  44315. via the {@link org.apache.hadoop.mapred.JobConf}.
  44316. The <code>DistributedCache</code> assumes that the
  44317. files specified via hdfs:// urls are already present on the
  44318. {@link FileSystem} at the path specified by the url.</p>
  44319. <p>The framework will copy the necessary files on to the slave node before
  44320. any tasks for the job are executed on that node. Its efficiency stems from
  44321. the fact that the files are only copied once per job and the ability to
  44322. cache archives which are un-archived on the slaves.</p>
  44323. <p><code>DistributedCache</code> can be used to distribute simple, read-only
  44324. data/text files and/or more complex types such as archives, jars etc.
  44325. Archives (zip, tar and tgz/tar.gz files) are un-archived at the slave nodes.
  44326. Jars may be optionally added to the classpath of the tasks, a rudimentary
  44327. software distribution mechanism. Files have execution permissions.
  44328. Optionally users can also direct it to symlink the distributed cache file(s)
  44329. into the working directory of the task.</p>
  44330. <p><code>DistributedCache</code> tracks modification timestamps of the cache
  44331. files. Clearly the cache files should not be modified by the application
  44332. or externally while the job is executing.</p>
  44333. <p>Here is an illustrative example on how to use the
  44334. <code>DistributedCache</code>:</p>
  44335. <p><blockquote><pre>
  44336. // Setting up the cache for the application
  44337. 1. Copy the requisite files to the <code>FileSystem</code>:
  44338. $ bin/hadoop fs -copyFromLocal lookup.dat /myapp/lookup.dat
  44339. $ bin/hadoop fs -copyFromLocal map.zip /myapp/map.zip
  44340. $ bin/hadoop fs -copyFromLocal mylib.jar /myapp/mylib.jar
  44341. $ bin/hadoop fs -copyFromLocal mytar.tar /myapp/mytar.tar
  44342. $ bin/hadoop fs -copyFromLocal mytgz.tgz /myapp/mytgz.tgz
  44343. $ bin/hadoop fs -copyFromLocal mytargz.tar.gz /myapp/mytargz.tar.gz
  44344. 2. Setup the application's <code>JobConf</code>:
  44345. JobConf job = new JobConf();
  44346. DistributedCache.addCacheFile(new URI("/myapp/lookup.dat#lookup.dat"),
  44347. job);
  44348. DistributedCache.addCacheArchive(new URI("/myapp/map.zip", job);
  44349. DistributedCache.addFileToClassPath(new Path("/myapp/mylib.jar"), job);
  44350. DistributedCache.addCacheArchive(new URI("/myapp/mytar.tar", job);
  44351. DistributedCache.addCacheArchive(new URI("/myapp/mytgz.tgz", job);
  44352. DistributedCache.addCacheArchive(new URI("/myapp/mytargz.tar.gz", job);
  44353. 3. Use the cached files in the {@link org.apache.hadoop.mapred.Mapper}
  44354. or {@link org.apache.hadoop.mapred.Reducer}:
  44355. public static class MapClass extends MapReduceBase
  44356. implements Mapper&lt;K, V, K, V&gt; {
  44357. private Path[] localArchives;
  44358. private Path[] localFiles;
  44359. public void configure(JobConf job) {
  44360. // Get the cached archives/files
  44361. localArchives = DistributedCache.getLocalCacheArchives(job);
  44362. localFiles = DistributedCache.getLocalCacheFiles(job);
  44363. }
  44364. public void map(K key, V value,
  44365. OutputCollector&lt;K, V&gt; output, Reporter reporter)
  44366. throws IOException {
  44367. // Use data from the cached archives/files here
  44368. // ...
  44369. // ...
  44370. output.collect(k, v);
  44371. }
  44372. }
  44373. </pre></blockquote></p>
  44374. It is also very common to use the DistributedCache by using
  44375. {@link org.apache.hadoop.util.GenericOptionsParser}.
  44376. This class includes methods that should be used by users
  44377. (specifically those mentioned in the example above, as well
  44378. as {@link DistributedCache#addArchiveToClassPath(Path, Configuration)}),
  44379. as well as methods intended for use by the MapReduce framework
  44380. (e.g., {@link org.apache.hadoop.mapred.JobClient}). For implementation
  44381. details, see {@link TrackerDistributedCacheManager} and
  44382. {@link TaskDistributedCacheManager}.
  44383. @see TrackerDistributedCacheManager
  44384. @see TaskDistributedCacheManager
  44385. @see org.apache.hadoop.mapred.JobConf
  44386. @see org.apache.hadoop.mapred.JobClient]]>
  44387. </doc>
  44388. </class>
  44389. <!-- end class org.apache.hadoop.filecache.DistributedCache -->
  44390. <!-- start class org.apache.hadoop.filecache.TaskDistributedCacheManager -->
  44391. <class name="TaskDistributedCacheManager" extends="java.lang.Object"
  44392. abstract="false"
  44393. static="false" final="false" visibility="public"
  44394. deprecated="not deprecated">
  44395. <method name="setupCache"
  44396. abstract="false" native="false" synchronized="false"
  44397. static="false" final="false" visibility="public"
  44398. deprecated="not deprecated">
  44399. <param name="taskConf" type="org.apache.hadoop.conf.Configuration"/>
  44400. <param name="publicCacheSubdir" type="java.lang.String"/>
  44401. <param name="privateCacheSubdir" type="java.lang.String"/>
  44402. <exception name="IOException" type="java.io.IOException"/>
  44403. <doc>
  44404. <![CDATA[Retrieve public distributed cache files into the local cache and updates
  44405. the task configuration (which has been passed in via the constructor).
  44406. The private distributed cache is just looked at and the paths where the
  44407. files/archives should go to is decided here. The actual localization is
  44408. done by {@link JobLocalizer}.
  44409. It is the caller's responsibility to re-write the task configuration XML
  44410. file, if necessary.]]>
  44411. </doc>
  44412. </method>
  44413. <method name="getClassPaths" return="java.util.List"
  44414. abstract="false" native="false" synchronized="false"
  44415. static="false" final="false" visibility="public"
  44416. deprecated="not deprecated">
  44417. <exception name="IOException" type="java.io.IOException"/>
  44418. <doc>
  44419. <![CDATA[Retrieves class paths (as local references) to add.
  44420. Should be called after setup().]]>
  44421. </doc>
  44422. </method>
  44423. <method name="release"
  44424. abstract="false" native="false" synchronized="false"
  44425. static="false" final="false" visibility="public"
  44426. deprecated="not deprecated">
  44427. <exception name="IOException" type="java.io.IOException"/>
  44428. <doc>
  44429. <![CDATA[Releases the cached files/archives, so that space
  44430. can be reclaimed by the {@link TrackerDistributedCacheManager}.]]>
  44431. </doc>
  44432. </method>
  44433. <method name="setSizes"
  44434. abstract="false" native="false" synchronized="false"
  44435. static="false" final="false" visibility="public"
  44436. deprecated="not deprecated">
  44437. <param name="sizes" type="long[]"/>
  44438. <exception name="IOException" type="java.io.IOException"/>
  44439. </method>
  44440. <method name="makeClassLoader" return="java.lang.ClassLoader"
  44441. abstract="false" native="false" synchronized="false"
  44442. static="false" final="false" visibility="public"
  44443. deprecated="not deprecated">
  44444. <param name="parent" type="java.lang.ClassLoader"/>
  44445. <exception name="MalformedURLException" type="java.net.MalformedURLException"/>
  44446. <doc>
  44447. <![CDATA[Creates a class loader that includes the designated
  44448. files and archives.]]>
  44449. </doc>
  44450. </method>
  44451. <doc>
  44452. <![CDATA[Helper class of {@link TrackerDistributedCacheManager} that represents
  44453. the cached files of a single job.
  44454. <b>This class is internal to Hadoop, and should not be treated as a public
  44455. interface.</b>]]>
  44456. </doc>
  44457. </class>
  44458. <!-- end class org.apache.hadoop.filecache.TaskDistributedCacheManager -->
  44459. <!-- start class org.apache.hadoop.filecache.TrackerDistributedCacheManager -->
  44460. <class name="TrackerDistributedCacheManager" extends="java.lang.Object"
  44461. abstract="false"
  44462. static="false" final="false" visibility="public"
  44463. deprecated="not deprecated">
  44464. <constructor name="TrackerDistributedCacheManager" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.TaskController"
  44465. static="false" final="false" visibility="public"
  44466. deprecated="not deprecated">
  44467. <exception name="IOException" type="java.io.IOException"/>
  44468. </constructor>
  44469. <method name="downloadCacheObject" return="long"
  44470. abstract="false" native="false" synchronized="false"
  44471. static="true" final="false" visibility="public"
  44472. deprecated="not deprecated">
  44473. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44474. <param name="source" type="java.net.URI"/>
  44475. <param name="destination" type="org.apache.hadoop.fs.Path"/>
  44476. <param name="desiredTimestamp" type="long"/>
  44477. <param name="isArchive" type="boolean"/>
  44478. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  44479. <exception name="IOException" type="java.io.IOException"/>
  44480. <doc>
  44481. <![CDATA[Download a given path to the local file system.
  44482. @param conf the job's configuration
  44483. @param source the source to copy from
  44484. @param destination where to copy the file. must be local fs
  44485. @param desiredTimestamp the required modification timestamp of the source
  44486. @param isArchive is this an archive that should be expanded
  44487. @param permission the desired permissions of the file.
  44488. @return for archives, the number of bytes in the unpacked directory
  44489. @throws IOException]]>
  44490. </doc>
  44491. </method>
  44492. <method name="createAllSymlink"
  44493. abstract="false" native="false" synchronized="false"
  44494. static="true" final="false" visibility="public"
  44495. deprecated="not deprecated">
  44496. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44497. <param name="jobCacheDir" type="java.io.File"/>
  44498. <param name="workDir" type="java.io.File"/>
  44499. <exception name="IOException" type="java.io.IOException"/>
  44500. <doc>
  44501. <![CDATA[This method create symlinks for all files in a given dir in another
  44502. directory.
  44503. Should not be used outside of DistributedCache code.
  44504. @param conf the configuration
  44505. @param jobCacheDir the target directory for creating symlinks
  44506. @param workDir the directory in which the symlinks are created
  44507. @throws IOException]]>
  44508. </doc>
  44509. </method>
  44510. <method name="purgeCache"
  44511. abstract="false" native="false" synchronized="false"
  44512. static="false" final="false" visibility="public"
  44513. deprecated="not deprecated">
  44514. <doc>
  44515. <![CDATA[Clear the entire contents of the cache and delete the backing files. This
  44516. should only be used when the server is reinitializing, because the users
  44517. are going to lose their files.]]>
  44518. </doc>
  44519. </method>
  44520. <method name="newTaskDistributedCacheManager" return="org.apache.hadoop.filecache.TaskDistributedCacheManager"
  44521. abstract="false" native="false" synchronized="false"
  44522. static="false" final="false" visibility="public"
  44523. deprecated="not deprecated">
  44524. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  44525. <param name="taskConf" type="org.apache.hadoop.conf.Configuration"/>
  44526. <exception name="IOException" type="java.io.IOException"/>
  44527. </method>
  44528. <method name="setArchiveSizes"
  44529. abstract="false" native="false" synchronized="false"
  44530. static="false" final="false" visibility="public"
  44531. deprecated="not deprecated">
  44532. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  44533. <param name="sizes" type="long[]"/>
  44534. <exception name="IOException" type="java.io.IOException"/>
  44535. <doc>
  44536. <![CDATA[Set the sizes for any archives, files, or directories in the private
  44537. distributed cache.]]>
  44538. </doc>
  44539. </method>
  44540. <method name="removeTaskDistributedCacheManager"
  44541. abstract="false" native="false" synchronized="false"
  44542. static="false" final="false" visibility="public"
  44543. deprecated="not deprecated">
  44544. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  44545. </method>
  44546. <method name="getTaskDistributedCacheManager" return="org.apache.hadoop.filecache.TaskDistributedCacheManager"
  44547. abstract="false" native="false" synchronized="false"
  44548. static="false" final="false" visibility="protected"
  44549. deprecated="not deprecated">
  44550. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  44551. </method>
  44552. <method name="determineTimestamps"
  44553. abstract="false" native="false" synchronized="false"
  44554. static="true" final="false" visibility="public"
  44555. deprecated="not deprecated">
  44556. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  44557. <exception name="IOException" type="java.io.IOException"/>
  44558. <doc>
  44559. <![CDATA[Determines timestamps of files to be cached, and stores those
  44560. in the configuration. This is intended to be used internally by JobClient
  44561. after all cache files have been added.
  44562. This is an internal method!
  44563. @param job Configuration of a job.
  44564. @throws IOException]]>
  44565. </doc>
  44566. </method>
  44567. <method name="determineCacheVisibilities"
  44568. abstract="false" native="false" synchronized="false"
  44569. static="true" final="false" visibility="public"
  44570. deprecated="not deprecated">
  44571. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  44572. <exception name="IOException" type="java.io.IOException"/>
  44573. <doc>
  44574. <![CDATA[Determines the visibilities of the distributed cache files and
  44575. archives. The visibility of a cache path is "public" if the leaf component
  44576. has READ permissions for others, and the parent subdirs have
  44577. EXECUTE permissions for others
  44578. @param job
  44579. @throws IOException]]>
  44580. </doc>
  44581. </method>
  44582. <method name="getFileVisibilities" return="boolean[]"
  44583. abstract="false" native="false" synchronized="false"
  44584. static="true" final="false" visibility="public"
  44585. deprecated="not deprecated">
  44586. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44587. <doc>
  44588. <![CDATA[Get the booleans on whether the files are public or not. Used by
  44589. internal DistributedCache and MapReduce code.
  44590. @param conf The configuration which stored the timestamps
  44591. @return array of booleans
  44592. @throws IOException]]>
  44593. </doc>
  44594. </method>
  44595. <method name="getArchiveVisibilities" return="boolean[]"
  44596. abstract="false" native="false" synchronized="false"
  44597. static="true" final="false" visibility="public"
  44598. deprecated="not deprecated">
  44599. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44600. <doc>
  44601. <![CDATA[Get the booleans on whether the archives are public or not. Used by
  44602. internal DistributedCache and MapReduce code.
  44603. @param conf The configuration which stored the timestamps
  44604. @return array of booleans]]>
  44605. </doc>
  44606. </method>
  44607. <method name="getDelegationTokens"
  44608. abstract="false" native="false" synchronized="false"
  44609. static="true" final="false" visibility="public"
  44610. deprecated="not deprecated">
  44611. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  44612. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  44613. <exception name="IOException" type="java.io.IOException"/>
  44614. <doc>
  44615. <![CDATA[For each archive or cache file - get the corresponding delegation token
  44616. @param job
  44617. @param credentials
  44618. @throws IOException]]>
  44619. </doc>
  44620. </method>
  44621. <method name="validate"
  44622. abstract="false" native="false" synchronized="false"
  44623. static="true" final="false" visibility="public"
  44624. deprecated="not deprecated">
  44625. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44626. <exception name="InvalidJobConfException" type="org.apache.hadoop.mapred.InvalidJobConfException"/>
  44627. <doc>
  44628. <![CDATA[This is part of the framework API. It's called within the job
  44629. submission code only, not by users. In the non-error case it has
  44630. no side effects and returns normally. If there's a URI in both
  44631. mapred.cache.files and mapred.cache.archives, it throws its
  44632. exception.
  44633. @param conf a {@link Configuration} to be cheked for duplication
  44634. in cached URIs
  44635. @throws InvalidJobConfException]]>
  44636. </doc>
  44637. </method>
  44638. <method name="startCleanupThread"
  44639. abstract="false" native="false" synchronized="false"
  44640. static="false" final="false" visibility="public"
  44641. deprecated="not deprecated">
  44642. <doc>
  44643. <![CDATA[Start the background thread]]>
  44644. </doc>
  44645. </method>
  44646. <method name="stopCleanupThread"
  44647. abstract="false" native="false" synchronized="false"
  44648. static="false" final="false" visibility="public"
  44649. deprecated="not deprecated">
  44650. <doc>
  44651. <![CDATA[Stop the background thread]]>
  44652. </doc>
  44653. </method>
  44654. <field name="baseDirManager" type="org.apache.hadoop.filecache.TrackerDistributedCacheManager.BaseDirManager"
  44655. transient="false" volatile="false"
  44656. static="false" final="false" visibility="protected"
  44657. deprecated="not deprecated">
  44658. </field>
  44659. <field name="cleanupThread" type="org.apache.hadoop.filecache.TrackerDistributedCacheManager.CleanupThread"
  44660. transient="false" volatile="false"
  44661. static="false" final="false" visibility="protected"
  44662. deprecated="not deprecated">
  44663. </field>
  44664. <doc>
  44665. <![CDATA[Manages a single machine's instance of a cross-job
  44666. cache. This class would typically be instantiated
  44667. by a TaskTracker (or something that emulates it,
  44668. like LocalJobRunner).
  44669. <b>This class is internal to Hadoop, and should not be treated as a public
  44670. interface.</b>]]>
  44671. </doc>
  44672. </class>
  44673. <!-- end class org.apache.hadoop.filecache.TrackerDistributedCacheManager -->
  44674. <!-- start class org.apache.hadoop.filecache.TrackerDistributedCacheManager.BaseDirManager -->
  44675. <class name="TrackerDistributedCacheManager.BaseDirManager" extends="java.lang.Object"
  44676. abstract="false"
  44677. static="false" final="false" visibility="protected"
  44678. deprecated="not deprecated">
  44679. <constructor name="TrackerDistributedCacheManager.BaseDirManager"
  44680. static="false" final="false" visibility="protected"
  44681. deprecated="not deprecated">
  44682. </constructor>
  44683. <method name="deleteCacheInfoUpdate"
  44684. abstract="false" native="false" synchronized="false"
  44685. static="false" final="false" visibility="public"
  44686. deprecated="not deprecated">
  44687. <param name="cacheStatus" type="org.apache.hadoop.filecache.TrackerDistributedCacheManager.CacheStatus"/>
  44688. <doc>
  44689. <![CDATA[Decrement the size and sub directory count of the cache from baseDirSize
  44690. and baseDirNumberSubDir. Have to lock lcacheStatus before calling this.
  44691. @param cacheStatus cache status of the cache is deleted]]>
  44692. </doc>
  44693. </method>
  44694. <method name="addCacheInfoUpdate"
  44695. abstract="false" native="false" synchronized="false"
  44696. static="false" final="false" visibility="public"
  44697. deprecated="not deprecated">
  44698. <param name="cacheStatus" type="org.apache.hadoop.filecache.TrackerDistributedCacheManager.CacheStatus"/>
  44699. <doc>
  44700. <![CDATA[Update the maps baseDirSize and baseDirNumberSubDir when adding cache.
  44701. Increase the size and sub directory count of the cache from baseDirSize
  44702. and baseDirNumberSubDir. Have to lock lcacheStatus before calling this.
  44703. @param cacheStatus cache status of the cache is added]]>
  44704. </doc>
  44705. </method>
  44706. <doc>
  44707. <![CDATA[This class holds properties of each base directories and is responsible
  44708. for clean up unused cache files in base directories.]]>
  44709. </doc>
  44710. </class>
  44711. <!-- end class org.apache.hadoop.filecache.TrackerDistributedCacheManager.BaseDirManager -->
  44712. <!-- start class org.apache.hadoop.filecache.TrackerDistributedCacheManager.CleanupThread -->
  44713. <class name="TrackerDistributedCacheManager.CleanupThread" extends="java.lang.Thread"
  44714. abstract="false"
  44715. static="false" final="false" visibility="protected"
  44716. deprecated="not deprecated">
  44717. <constructor name="TrackerDistributedCacheManager.CleanupThread" type="org.apache.hadoop.conf.Configuration"
  44718. static="false" final="false" visibility="public"
  44719. deprecated="not deprecated">
  44720. </constructor>
  44721. <method name="stopRunning"
  44722. abstract="false" native="false" synchronized="false"
  44723. static="false" final="false" visibility="public"
  44724. deprecated="not deprecated">
  44725. </method>
  44726. <method name="run"
  44727. abstract="false" native="false" synchronized="false"
  44728. static="false" final="false" visibility="public"
  44729. deprecated="not deprecated">
  44730. </method>
  44731. <method name="exitTaskTracker"
  44732. abstract="false" native="false" synchronized="false"
  44733. static="false" final="false" visibility="protected"
  44734. deprecated="not deprecated">
  44735. <param name="t" type="java.lang.Throwable"/>
  44736. <doc>
  44737. <![CDATA[Exit the task tracker because of a fatal error.]]>
  44738. </doc>
  44739. </method>
  44740. <doc>
  44741. <![CDATA[A thread to check and cleanup the unused files periodically]]>
  44742. </doc>
  44743. </class>
  44744. <!-- end class org.apache.hadoop.filecache.TrackerDistributedCacheManager.CleanupThread -->
  44745. </package>
  44746. <package name="org.apache.hadoop.mapred">
  44747. <!-- start interface org.apache.hadoop.mapred.AdminOperationsProtocol -->
  44748. <interface name="AdminOperationsProtocol" abstract="true"
  44749. static="false" final="false" visibility="public"
  44750. deprecated="not deprecated">
  44751. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  44752. <method name="refreshQueues"
  44753. abstract="false" native="false" synchronized="false"
  44754. static="false" final="false" visibility="public"
  44755. deprecated="not deprecated">
  44756. <exception name="IOException" type="java.io.IOException"/>
  44757. <doc>
  44758. <![CDATA[Refresh the queue acls in use currently.
  44759. Refresh the queues used by the jobtracker and scheduler.
  44760. Access control lists and queue states are refreshed.]]>
  44761. </doc>
  44762. </method>
  44763. <method name="refreshNodes"
  44764. abstract="false" native="false" synchronized="false"
  44765. static="false" final="false" visibility="public"
  44766. deprecated="not deprecated">
  44767. <exception name="IOException" type="java.io.IOException"/>
  44768. <doc>
  44769. <![CDATA[Refresh the node list at the {@link JobTracker}]]>
  44770. </doc>
  44771. </method>
  44772. <method name="setSafeMode" return="boolean"
  44773. abstract="false" native="false" synchronized="false"
  44774. static="false" final="false" visibility="public"
  44775. deprecated="not deprecated">
  44776. <param name="safeModeAction" type="org.apache.hadoop.mapred.JobTracker.SafeModeAction"/>
  44777. <exception name="IOException" type="java.io.IOException"/>
  44778. <doc>
  44779. <![CDATA[Set safe mode for the JobTracker.
  44780. @param safeModeAction safe mode action
  44781. @return current safemode
  44782. @throws IOException]]>
  44783. </doc>
  44784. </method>
  44785. <field name="versionID" type="long"
  44786. transient="false" volatile="false"
  44787. static="true" final="true" visibility="public"
  44788. deprecated="not deprecated">
  44789. <doc>
  44790. <![CDATA[Version 1: Initial version. Added refreshQueueAcls.
  44791. Version 2: Added node refresh facility
  44792. Version 3: Changed refreshQueueAcls to refreshQueues]]>
  44793. </doc>
  44794. </field>
  44795. <doc>
  44796. <![CDATA[Protocol for admin operations. This is a framework-public interface and is
  44797. NOT_TO_BE_USED_BY_USERS_DIRECTLY.]]>
  44798. </doc>
  44799. </interface>
  44800. <!-- end interface org.apache.hadoop.mapred.AdminOperationsProtocol -->
  44801. <!-- start class org.apache.hadoop.mapred.ClusterStatus -->
  44802. <class name="ClusterStatus" extends="java.lang.Object"
  44803. abstract="false"
  44804. static="false" final="false" visibility="public"
  44805. deprecated="not deprecated">
  44806. <implements name="org.apache.hadoop.io.Writable"/>
  44807. <method name="getTaskTrackers" return="int"
  44808. abstract="false" native="false" synchronized="false"
  44809. static="false" final="false" visibility="public"
  44810. deprecated="not deprecated">
  44811. <doc>
  44812. <![CDATA[Get the number of active task trackers in the cluster. Includes
  44813. graylisted but not blacklisted trackers.
  44814. @return the number of active task trackers in the cluster.]]>
  44815. </doc>
  44816. </method>
  44817. <method name="getActiveTrackerNames" return="java.util.Collection"
  44818. abstract="false" native="false" synchronized="false"
  44819. static="false" final="false" visibility="public"
  44820. deprecated="not deprecated">
  44821. <doc>
  44822. <![CDATA[Get the names of active task trackers in the cluster. Includes
  44823. graylisted but not blacklisted trackers.
  44824. @return the active task trackers in the cluster.]]>
  44825. </doc>
  44826. </method>
  44827. <method name="getBlacklistedTrackerNames" return="java.util.Collection"
  44828. abstract="false" native="false" synchronized="false"
  44829. static="false" final="false" visibility="public"
  44830. deprecated="not deprecated">
  44831. <doc>
  44832. <![CDATA[Get the names of blacklisted task trackers in the cluster.
  44833. @return the blacklisted task trackers in the cluster.]]>
  44834. </doc>
  44835. </method>
  44836. <method name="getBlacklistedTrackers" return="int"
  44837. abstract="false" native="false" synchronized="false"
  44838. static="false" final="false" visibility="public"
  44839. deprecated="not deprecated">
  44840. <doc>
  44841. <![CDATA[Get the number of blacklisted task trackers in the cluster.
  44842. @return the number of blacklisted task trackers in the cluster.]]>
  44843. </doc>
  44844. </method>
  44845. <method name="getGraylistedTrackerNames" return="java.util.Collection"
  44846. abstract="false" native="false" synchronized="false"
  44847. static="false" final="false" visibility="public"
  44848. deprecated="not deprecated">
  44849. <doc>
  44850. <![CDATA[Get the names of graylisted task trackers in the cluster.
  44851. @return the graylisted task trackers in the cluster.]]>
  44852. </doc>
  44853. </method>
  44854. <method name="getGraylistedTrackers" return="int"
  44855. abstract="false" native="false" synchronized="false"
  44856. static="false" final="false" visibility="public"
  44857. deprecated="not deprecated">
  44858. <doc>
  44859. <![CDATA[Get the number of graylisted task trackers in the cluster.
  44860. @return the number of graylisted task trackers in the cluster.]]>
  44861. </doc>
  44862. </method>
  44863. <method name="getNumExcludedNodes" return="int"
  44864. abstract="false" native="false" synchronized="false"
  44865. static="false" final="false" visibility="public"
  44866. deprecated="not deprecated">
  44867. <doc>
  44868. <![CDATA[Get the number of excluded hosts in the cluster.
  44869. @return the number of excluded hosts in the cluster.]]>
  44870. </doc>
  44871. </method>
  44872. <method name="getTTExpiryInterval" return="long"
  44873. abstract="false" native="false" synchronized="false"
  44874. static="false" final="false" visibility="public"
  44875. deprecated="not deprecated">
  44876. <doc>
  44877. <![CDATA[Get the tasktracker expiry interval for the cluster
  44878. @return the expiry interval in msec]]>
  44879. </doc>
  44880. </method>
  44881. <method name="getMapTasks" return="int"
  44882. abstract="false" native="false" synchronized="false"
  44883. static="false" final="false" visibility="public"
  44884. deprecated="not deprecated">
  44885. <doc>
  44886. <![CDATA[Get the number of currently running map tasks in the cluster.
  44887. @return the number of currently running map tasks in the cluster.]]>
  44888. </doc>
  44889. </method>
  44890. <method name="getReduceTasks" return="int"
  44891. abstract="false" native="false" synchronized="false"
  44892. static="false" final="false" visibility="public"
  44893. deprecated="not deprecated">
  44894. <doc>
  44895. <![CDATA[Get the number of currently running reduce tasks in the cluster.
  44896. @return the number of currently running reduce tasks in the cluster.]]>
  44897. </doc>
  44898. </method>
  44899. <method name="getMaxMapTasks" return="int"
  44900. abstract="false" native="false" synchronized="false"
  44901. static="false" final="false" visibility="public"
  44902. deprecated="not deprecated">
  44903. <doc>
  44904. <![CDATA[Get the maximum capacity for running map tasks in the cluster.
  44905. @return the maximum capacity for running map tasks in the cluster.]]>
  44906. </doc>
  44907. </method>
  44908. <method name="getMaxReduceTasks" return="int"
  44909. abstract="false" native="false" synchronized="false"
  44910. static="false" final="false" visibility="public"
  44911. deprecated="not deprecated">
  44912. <doc>
  44913. <![CDATA[Get the maximum capacity for running reduce tasks in the cluster.
  44914. @return the maximum capacity for running reduce tasks in the cluster.]]>
  44915. </doc>
  44916. </method>
  44917. <method name="getJobTrackerState" return="org.apache.hadoop.mapred.JobTracker.State"
  44918. abstract="false" native="false" synchronized="false"
  44919. static="false" final="false" visibility="public"
  44920. deprecated="not deprecated">
  44921. <doc>
  44922. <![CDATA[Get the current state of the <code>JobTracker</code>,
  44923. as {@link JobTracker.State}
  44924. @return the current state of the <code>JobTracker</code>.]]>
  44925. </doc>
  44926. </method>
  44927. <method name="getUsedMemory" return="long"
  44928. abstract="false" native="false" synchronized="false"
  44929. static="false" final="false" visibility="public"
  44930. deprecated="not deprecated">
  44931. <doc>
  44932. <![CDATA[Get the total heap memory used by the <code>JobTracker</code>
  44933. @return the size of heap memory used by the <code>JobTracker</code>]]>
  44934. </doc>
  44935. </method>
  44936. <method name="getMaxMemory" return="long"
  44937. abstract="false" native="false" synchronized="false"
  44938. static="false" final="false" visibility="public"
  44939. deprecated="not deprecated">
  44940. <doc>
  44941. <![CDATA[Get the maximum configured heap memory that can be used by the <code>JobTracker</code>
  44942. @return the configured size of max heap memory that can be used by the <code>JobTracker</code>]]>
  44943. </doc>
  44944. </method>
  44945. <method name="write"
  44946. abstract="false" native="false" synchronized="false"
  44947. static="false" final="false" visibility="public"
  44948. deprecated="not deprecated">
  44949. <param name="out" type="java.io.DataOutput"/>
  44950. <exception name="IOException" type="java.io.IOException"/>
  44951. </method>
  44952. <method name="readFields"
  44953. abstract="false" native="false" synchronized="false"
  44954. static="false" final="false" visibility="public"
  44955. deprecated="not deprecated">
  44956. <param name="in" type="java.io.DataInput"/>
  44957. <exception name="IOException" type="java.io.IOException"/>
  44958. </method>
  44959. <field name="UNINITIALIZED_MEMORY_VALUE" type="long"
  44960. transient="false" volatile="false"
  44961. static="true" final="true" visibility="public"
  44962. deprecated="not deprecated">
  44963. </field>
  44964. <doc>
  44965. <![CDATA[Status information on the current state of the Map-Reduce cluster.
  44966. <p><code>ClusterStatus</code> provides clients with information such as:
  44967. <ol>
  44968. <li>
  44969. Size of the cluster.
  44970. </li>
  44971. <li>
  44972. Name of the trackers.
  44973. </li>
  44974. <li>
  44975. Task capacity of the cluster.
  44976. </li>
  44977. <li>
  44978. The number of currently running map & reduce tasks.
  44979. </li>
  44980. <li>
  44981. State of the <code>JobTracker</code>.
  44982. </li>
  44983. </ol></p>
  44984. <p>Clients can query for the latest <code>ClusterStatus</code>, via
  44985. {@link JobClient#getClusterStatus()}.</p>
  44986. @see JobClient]]>
  44987. </doc>
  44988. </class>
  44989. <!-- end class org.apache.hadoop.mapred.ClusterStatus -->
  44990. <!-- start class org.apache.hadoop.mapred.Counters -->
  44991. <class name="Counters" extends="java.lang.Object"
  44992. abstract="false"
  44993. static="false" final="false" visibility="public"
  44994. deprecated="not deprecated">
  44995. <implements name="org.apache.hadoop.io.Writable"/>
  44996. <implements name="java.lang.Iterable"/>
  44997. <constructor name="Counters"
  44998. static="false" final="false" visibility="public"
  44999. deprecated="not deprecated">
  45000. </constructor>
  45001. <method name="getGroupNames" return="java.util.Collection"
  45002. abstract="false" native="false" synchronized="true"
  45003. static="false" final="false" visibility="public"
  45004. deprecated="not deprecated">
  45005. <doc>
  45006. <![CDATA[Returns the names of all counter classes.
  45007. @return Set of counter names.]]>
  45008. </doc>
  45009. </method>
  45010. <method name="iterator" return="java.util.Iterator"
  45011. abstract="false" native="false" synchronized="true"
  45012. static="false" final="false" visibility="public"
  45013. deprecated="not deprecated">
  45014. </method>
  45015. <method name="getGroup" return="org.apache.hadoop.mapred.Counters.Group"
  45016. abstract="false" native="false" synchronized="true"
  45017. static="false" final="false" visibility="public"
  45018. deprecated="not deprecated">
  45019. <param name="groupName" type="java.lang.String"/>
  45020. <doc>
  45021. <![CDATA[Returns the named counter group, or an empty group if there is none
  45022. with the specified name.]]>
  45023. </doc>
  45024. </method>
  45025. <method name="findCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  45026. abstract="false" native="false" synchronized="true"
  45027. static="false" final="false" visibility="public"
  45028. deprecated="not deprecated">
  45029. <param name="key" type="java.lang.Enum"/>
  45030. <doc>
  45031. <![CDATA[Find the counter for the given enum. The same enum will always return the
  45032. same counter.
  45033. @param key the counter key
  45034. @return the matching counter object]]>
  45035. </doc>
  45036. </method>
  45037. <method name="findCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  45038. abstract="false" native="false" synchronized="true"
  45039. static="false" final="false" visibility="public"
  45040. deprecated="not deprecated">
  45041. <param name="group" type="java.lang.String"/>
  45042. <param name="name" type="java.lang.String"/>
  45043. <doc>
  45044. <![CDATA[Find a counter given the group and the name.
  45045. @param group the name of the group
  45046. @param name the internal name of the counter
  45047. @return the counter for that name]]>
  45048. </doc>
  45049. </method>
  45050. <method name="findCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  45051. abstract="false" native="false" synchronized="true"
  45052. static="false" final="false" visibility="public"
  45053. deprecated="deprecated, no comment">
  45054. <param name="group" type="java.lang.String"/>
  45055. <param name="id" type="int"/>
  45056. <param name="name" type="java.lang.String"/>
  45057. <doc>
  45058. <![CDATA[Find a counter by using strings
  45059. @param group the name of the group
  45060. @param id the id of the counter within the group (0 to N-1)
  45061. @param name the internal name of the counter
  45062. @return the counter for that name
  45063. @deprecated]]>
  45064. </doc>
  45065. </method>
  45066. <method name="incrCounter"
  45067. abstract="false" native="false" synchronized="true"
  45068. static="false" final="false" visibility="public"
  45069. deprecated="not deprecated">
  45070. <param name="key" type="java.lang.Enum"/>
  45071. <param name="amount" type="long"/>
  45072. <doc>
  45073. <![CDATA[Increments the specified counter by the specified amount, creating it if
  45074. it didn't already exist.
  45075. @param key identifies a counter
  45076. @param amount amount by which counter is to be incremented]]>
  45077. </doc>
  45078. </method>
  45079. <method name="incrCounter"
  45080. abstract="false" native="false" synchronized="true"
  45081. static="false" final="false" visibility="public"
  45082. deprecated="not deprecated">
  45083. <param name="group" type="java.lang.String"/>
  45084. <param name="counter" type="java.lang.String"/>
  45085. <param name="amount" type="long"/>
  45086. <doc>
  45087. <![CDATA[Increments the specified counter by the specified amount, creating it if
  45088. it didn't already exist.
  45089. @param group the name of the group
  45090. @param counter the internal name of the counter
  45091. @param amount amount by which counter is to be incremented]]>
  45092. </doc>
  45093. </method>
  45094. <method name="getCounter" return="long"
  45095. abstract="false" native="false" synchronized="true"
  45096. static="false" final="false" visibility="public"
  45097. deprecated="not deprecated">
  45098. <param name="key" type="java.lang.Enum"/>
  45099. <doc>
  45100. <![CDATA[Returns current value of the specified counter, or 0 if the counter
  45101. does not exist.]]>
  45102. </doc>
  45103. </method>
  45104. <method name="incrAllCounters"
  45105. abstract="false" native="false" synchronized="true"
  45106. static="false" final="false" visibility="public"
  45107. deprecated="not deprecated">
  45108. <param name="other" type="org.apache.hadoop.mapred.Counters"/>
  45109. <doc>
  45110. <![CDATA[Increments multiple counters by their amounts in another Counters
  45111. instance.
  45112. @param other the other Counters instance]]>
  45113. </doc>
  45114. </method>
  45115. <method name="sum" return="org.apache.hadoop.mapred.Counters"
  45116. abstract="false" native="false" synchronized="false"
  45117. static="true" final="false" visibility="public"
  45118. deprecated="not deprecated">
  45119. <param name="a" type="org.apache.hadoop.mapred.Counters"/>
  45120. <param name="b" type="org.apache.hadoop.mapred.Counters"/>
  45121. <doc>
  45122. <![CDATA[Convenience method for computing the sum of two sets of counters.]]>
  45123. </doc>
  45124. </method>
  45125. <method name="size" return="int"
  45126. abstract="false" native="false" synchronized="true"
  45127. static="false" final="false" visibility="public"
  45128. deprecated="not deprecated">
  45129. <doc>
  45130. <![CDATA[Returns the total number of counters, by summing the number of counters
  45131. in each group.]]>
  45132. </doc>
  45133. </method>
  45134. <method name="write"
  45135. abstract="false" native="false" synchronized="true"
  45136. static="false" final="false" visibility="public"
  45137. deprecated="not deprecated">
  45138. <param name="out" type="java.io.DataOutput"/>
  45139. <exception name="IOException" type="java.io.IOException"/>
  45140. <doc>
  45141. <![CDATA[Write the set of groups.
  45142. The external format is:
  45143. #groups (groupName group)*
  45144. i.e. the number of groups followed by 0 or more groups, where each
  45145. group is of the form:
  45146. groupDisplayName #counters (false | true counter)*
  45147. where each counter is of the form:
  45148. name (false | true displayName) value]]>
  45149. </doc>
  45150. </method>
  45151. <method name="readFields"
  45152. abstract="false" native="false" synchronized="true"
  45153. static="false" final="false" visibility="public"
  45154. deprecated="not deprecated">
  45155. <param name="in" type="java.io.DataInput"/>
  45156. <exception name="IOException" type="java.io.IOException"/>
  45157. <doc>
  45158. <![CDATA[Read a set of groups.]]>
  45159. </doc>
  45160. </method>
  45161. <method name="log"
  45162. abstract="false" native="false" synchronized="false"
  45163. static="false" final="false" visibility="public"
  45164. deprecated="not deprecated">
  45165. <param name="log" type="org.apache.commons.logging.Log"/>
  45166. <doc>
  45167. <![CDATA[Logs the current counter values.
  45168. @param log The log to use.]]>
  45169. </doc>
  45170. </method>
  45171. <method name="toString" return="java.lang.String"
  45172. abstract="false" native="false" synchronized="true"
  45173. static="false" final="false" visibility="public"
  45174. deprecated="not deprecated">
  45175. <doc>
  45176. <![CDATA[Return textual representation of the counter values.]]>
  45177. </doc>
  45178. </method>
  45179. <method name="makeCompactString" return="java.lang.String"
  45180. abstract="false" native="false" synchronized="true"
  45181. static="false" final="false" visibility="public"
  45182. deprecated="not deprecated">
  45183. <doc>
  45184. <![CDATA[Convert a counters object into a single line that is easy to parse.
  45185. @return the string with "name=value" for each counter and separated by ","]]>
  45186. </doc>
  45187. </method>
  45188. <method name="makeEscapedCompactString" return="java.lang.String"
  45189. abstract="false" native="false" synchronized="true"
  45190. static="false" final="false" visibility="public"
  45191. deprecated="not deprecated">
  45192. <doc>
  45193. <![CDATA[Represent the counter in a textual format that can be converted back to
  45194. its object form
  45195. @return the string in the following format
  45196. {(groupname)(group-displayname)[(countername)(displayname)(value)][][]}{}{}]]>
  45197. </doc>
  45198. </method>
  45199. <method name="fromEscapedCompactString" return="org.apache.hadoop.mapred.Counters"
  45200. abstract="false" native="false" synchronized="false"
  45201. static="true" final="false" visibility="public"
  45202. deprecated="not deprecated">
  45203. <param name="compactString" type="java.lang.String"/>
  45204. <exception name="ParseException" type="java.text.ParseException"/>
  45205. <doc>
  45206. <![CDATA[Convert a stringified counter representation into a counter object. Note
  45207. that the counter can be recovered if its stringified using
  45208. {@link #makeEscapedCompactString()}.
  45209. @return a Counter]]>
  45210. </doc>
  45211. </method>
  45212. <method name="hashCode" return="int"
  45213. abstract="false" native="false" synchronized="true"
  45214. static="false" final="false" visibility="public"
  45215. deprecated="not deprecated">
  45216. </method>
  45217. <method name="equals" return="boolean"
  45218. abstract="false" native="false" synchronized="true"
  45219. static="false" final="false" visibility="public"
  45220. deprecated="not deprecated">
  45221. <param name="obj" type="java.lang.Object"/>
  45222. </method>
  45223. <field name="MAX_COUNTER_LIMIT" type="int"
  45224. transient="false" volatile="false"
  45225. static="true" final="false" visibility="public"
  45226. deprecated="not deprecated">
  45227. <doc>
  45228. <![CDATA[limit on counters]]>
  45229. </doc>
  45230. </field>
  45231. <field name="MAX_GROUP_LIMIT" type="int"
  45232. transient="false" volatile="false"
  45233. static="true" final="true" visibility="public"
  45234. deprecated="not deprecated">
  45235. <doc>
  45236. <![CDATA[the max groups allowed]]>
  45237. </doc>
  45238. </field>
  45239. <doc>
  45240. <![CDATA[A set of named counters.
  45241. <p><code>Counters</code> represent global counters, defined either by the
  45242. Map-Reduce framework or applications. Each <code>Counter</code> can be of
  45243. any {@link Enum} type.</p>
  45244. <p><code>Counters</code> are bunched into {@link Group}s, each comprising of
  45245. counters from a particular <code>Enum</code> class.]]>
  45246. </doc>
  45247. </class>
  45248. <!-- end class org.apache.hadoop.mapred.Counters -->
  45249. <!-- start class org.apache.hadoop.mapred.Counters.Counter -->
  45250. <class name="Counters.Counter" extends="org.apache.hadoop.mapreduce.Counter"
  45251. abstract="false"
  45252. static="true" final="false" visibility="public"
  45253. deprecated="not deprecated">
  45254. <method name="setDisplayName"
  45255. abstract="false" native="false" synchronized="false"
  45256. static="false" final="false" visibility="public"
  45257. deprecated="not deprecated">
  45258. <param name="newName" type="java.lang.String"/>
  45259. </method>
  45260. <method name="makeEscapedCompactString" return="java.lang.String"
  45261. abstract="false" native="false" synchronized="true"
  45262. static="false" final="false" visibility="public"
  45263. deprecated="not deprecated">
  45264. <doc>
  45265. <![CDATA[Returns the compact stringified version of the counter in the format
  45266. [(actual-name)(display-name)(value)]]]>
  45267. </doc>
  45268. </method>
  45269. <method name="getCounter" return="long"
  45270. abstract="false" native="false" synchronized="true"
  45271. static="false" final="false" visibility="public"
  45272. deprecated="not deprecated">
  45273. <doc>
  45274. <![CDATA[What is the current value of this counter?
  45275. @return the current value]]>
  45276. </doc>
  45277. </method>
  45278. <doc>
  45279. <![CDATA[A counter record, comprising its name and value.]]>
  45280. </doc>
  45281. </class>
  45282. <!-- end class org.apache.hadoop.mapred.Counters.Counter -->
  45283. <!-- start class org.apache.hadoop.mapred.Counters.CountersExceededException -->
  45284. <class name="Counters.CountersExceededException" extends="java.lang.RuntimeException"
  45285. abstract="false"
  45286. static="true" final="false" visibility="public"
  45287. deprecated="not deprecated">
  45288. <constructor name="Counters.CountersExceededException" type="java.lang.String"
  45289. static="false" final="false" visibility="public"
  45290. deprecated="not deprecated">
  45291. </constructor>
  45292. <doc>
  45293. <![CDATA[Counter exception thrown when the number of counters exceed
  45294. the limit]]>
  45295. </doc>
  45296. </class>
  45297. <!-- end class org.apache.hadoop.mapred.Counters.CountersExceededException -->
  45298. <!-- start class org.apache.hadoop.mapred.Counters.Group -->
  45299. <class name="Counters.Group" extends="java.lang.Object"
  45300. abstract="false"
  45301. static="false" final="false" visibility="public"
  45302. deprecated="not deprecated">
  45303. <implements name="org.apache.hadoop.io.Writable"/>
  45304. <implements name="java.lang.Iterable"/>
  45305. <method name="getName" return="java.lang.String"
  45306. abstract="false" native="false" synchronized="false"
  45307. static="false" final="false" visibility="public"
  45308. deprecated="not deprecated">
  45309. <doc>
  45310. <![CDATA[Returns raw name of the group. This is the name of the enum class
  45311. for this group of counters.]]>
  45312. </doc>
  45313. </method>
  45314. <method name="getDisplayName" return="java.lang.String"
  45315. abstract="false" native="false" synchronized="false"
  45316. static="false" final="false" visibility="public"
  45317. deprecated="not deprecated">
  45318. <doc>
  45319. <![CDATA[Returns localized name of the group. This is the same as getName() by
  45320. default, but different if an appropriate ResourceBundle is found.]]>
  45321. </doc>
  45322. </method>
  45323. <method name="setDisplayName"
  45324. abstract="false" native="false" synchronized="false"
  45325. static="false" final="false" visibility="public"
  45326. deprecated="not deprecated">
  45327. <param name="displayName" type="java.lang.String"/>
  45328. <doc>
  45329. <![CDATA[Set the display name]]>
  45330. </doc>
  45331. </method>
  45332. <method name="makeEscapedCompactString" return="java.lang.String"
  45333. abstract="false" native="false" synchronized="false"
  45334. static="false" final="false" visibility="public"
  45335. deprecated="not deprecated">
  45336. <doc>
  45337. <![CDATA[Returns the compact stringified version of the group in the format
  45338. {(actual-name)(display-name)(value)[][][]} where [] are compact strings for the
  45339. counters within.]]>
  45340. </doc>
  45341. </method>
  45342. <method name="hashCode" return="int"
  45343. abstract="false" native="false" synchronized="false"
  45344. static="false" final="false" visibility="public"
  45345. deprecated="not deprecated">
  45346. </method>
  45347. <method name="equals" return="boolean"
  45348. abstract="false" native="false" synchronized="true"
  45349. static="false" final="false" visibility="public"
  45350. deprecated="not deprecated">
  45351. <param name="obj" type="java.lang.Object"/>
  45352. <doc>
  45353. <![CDATA[Checks for (content) equality of Groups]]>
  45354. </doc>
  45355. </method>
  45356. <method name="getCounter" return="long"
  45357. abstract="false" native="false" synchronized="true"
  45358. static="false" final="false" visibility="public"
  45359. deprecated="not deprecated">
  45360. <param name="counterName" type="java.lang.String"/>
  45361. <doc>
  45362. <![CDATA[Returns the value of the specified counter, or 0 if the counter does
  45363. not exist.]]>
  45364. </doc>
  45365. </method>
  45366. <method name="getCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  45367. abstract="false" native="false" synchronized="true"
  45368. static="false" final="false" visibility="public"
  45369. deprecated="use {@link #getCounter(String)} instead">
  45370. <param name="id" type="int"/>
  45371. <param name="name" type="java.lang.String"/>
  45372. <doc>
  45373. <![CDATA[Get the counter for the given id and create it if it doesn't exist.
  45374. @param id the numeric id of the counter within the group
  45375. @param name the internal counter name
  45376. @return the counter
  45377. @deprecated use {@link #getCounter(String)} instead]]>
  45378. </doc>
  45379. </method>
  45380. <method name="getCounterForName" return="org.apache.hadoop.mapred.Counters.Counter"
  45381. abstract="false" native="false" synchronized="true"
  45382. static="false" final="false" visibility="public"
  45383. deprecated="not deprecated">
  45384. <param name="name" type="java.lang.String"/>
  45385. <doc>
  45386. <![CDATA[Get the counter for the given name and create it if it doesn't exist.
  45387. @param name the internal counter name
  45388. @return the counter]]>
  45389. </doc>
  45390. </method>
  45391. <method name="size" return="int"
  45392. abstract="false" native="false" synchronized="true"
  45393. static="false" final="false" visibility="public"
  45394. deprecated="not deprecated">
  45395. <doc>
  45396. <![CDATA[Returns the number of counters in this group.]]>
  45397. </doc>
  45398. </method>
  45399. <method name="write"
  45400. abstract="false" native="false" synchronized="true"
  45401. static="false" final="false" visibility="public"
  45402. deprecated="not deprecated">
  45403. <param name="out" type="java.io.DataOutput"/>
  45404. <exception name="IOException" type="java.io.IOException"/>
  45405. </method>
  45406. <method name="readFields"
  45407. abstract="false" native="false" synchronized="true"
  45408. static="false" final="false" visibility="public"
  45409. deprecated="not deprecated">
  45410. <param name="in" type="java.io.DataInput"/>
  45411. <exception name="IOException" type="java.io.IOException"/>
  45412. </method>
  45413. <method name="iterator" return="java.util.Iterator"
  45414. abstract="false" native="false" synchronized="true"
  45415. static="false" final="false" visibility="public"
  45416. deprecated="not deprecated">
  45417. </method>
  45418. <doc>
  45419. <![CDATA[<code>Group</code> of counters, comprising of counters from a particular
  45420. counter {@link Enum} class.
  45421. <p><code>Group</code>handles localization of the class name and the
  45422. counter names.</p>]]>
  45423. </doc>
  45424. </class>
  45425. <!-- end class org.apache.hadoop.mapred.Counters.Group -->
  45426. <!-- start class org.apache.hadoop.mapred.DefaultJobHistoryParser -->
  45427. <class name="DefaultJobHistoryParser" extends="java.lang.Object"
  45428. abstract="false"
  45429. static="false" final="false" visibility="public"
  45430. deprecated="not deprecated">
  45431. <constructor name="DefaultJobHistoryParser"
  45432. static="false" final="false" visibility="public"
  45433. deprecated="not deprecated">
  45434. </constructor>
  45435. <method name="parseJobTasks"
  45436. abstract="false" native="false" synchronized="false"
  45437. static="true" final="false" visibility="public"
  45438. deprecated="not deprecated">
  45439. <param name="jobHistoryFile" type="java.lang.String"/>
  45440. <param name="job" type="org.apache.hadoop.mapred.JobHistory.JobInfo"/>
  45441. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  45442. <exception name="IOException" type="java.io.IOException"/>
  45443. <doc>
  45444. <![CDATA[Populates a JobInfo object from the job's history log file.
  45445. @param jobHistoryFile history file for this job.
  45446. @param job a precreated JobInfo object, should be non-null.
  45447. @param fs FileSystem where historyFile is present.
  45448. @throws IOException]]>
  45449. </doc>
  45450. </method>
  45451. <doc>
  45452. <![CDATA[Default parser for job history files. It creates object model from
  45453. job history file.]]>
  45454. </doc>
  45455. </class>
  45456. <!-- end class org.apache.hadoop.mapred.DefaultJobHistoryParser -->
  45457. <!-- start class org.apache.hadoop.mapred.DefaultTaskController -->
  45458. <class name="DefaultTaskController" extends="org.apache.hadoop.mapred.TaskController"
  45459. abstract="false"
  45460. static="false" final="false" visibility="public"
  45461. deprecated="not deprecated">
  45462. <constructor name="DefaultTaskController"
  45463. static="false" final="false" visibility="public"
  45464. deprecated="not deprecated">
  45465. </constructor>
  45466. <method name="setConf"
  45467. abstract="false" native="false" synchronized="false"
  45468. static="false" final="false" visibility="public"
  45469. deprecated="not deprecated">
  45470. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  45471. </method>
  45472. <method name="createLogDir"
  45473. abstract="false" native="false" synchronized="false"
  45474. static="false" final="false" visibility="public"
  45475. deprecated="not deprecated">
  45476. <param name="taskID" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  45477. <param name="isCleanup" type="boolean"/>
  45478. <exception name="IOException" type="java.io.IOException"/>
  45479. </method>
  45480. <method name="launchTask" return="int"
  45481. abstract="false" native="false" synchronized="false"
  45482. static="false" final="false" visibility="public"
  45483. deprecated="not deprecated">
  45484. <param name="user" type="java.lang.String"/>
  45485. <param name="jobId" type="java.lang.String"/>
  45486. <param name="attemptId" type="java.lang.String"/>
  45487. <param name="setup" type="java.util.List"/>
  45488. <param name="jvmArguments" type="java.util.List"/>
  45489. <param name="currentWorkDirectory" type="java.io.File"/>
  45490. <param name="stdout" type="java.lang.String"/>
  45491. <param name="stderr" type="java.lang.String"/>
  45492. <exception name="IOException" type="java.io.IOException"/>
  45493. <doc>
  45494. <![CDATA[Create all of the directories for the task and launches the child jvm.
  45495. @param user the user name
  45496. @param attemptId the attempt id
  45497. @throws IOException]]>
  45498. </doc>
  45499. </method>
  45500. <method name="initializeJob"
  45501. abstract="false" native="false" synchronized="false"
  45502. static="false" final="false" visibility="public"
  45503. deprecated="not deprecated">
  45504. <param name="user" type="java.lang.String"/>
  45505. <param name="jobid" type="java.lang.String"/>
  45506. <param name="credentials" type="org.apache.hadoop.fs.Path"/>
  45507. <param name="jobConf" type="org.apache.hadoop.fs.Path"/>
  45508. <param name="taskTracker" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  45509. <param name="ttAddr" type="java.net.InetSocketAddress"/>
  45510. <exception name="IOException" type="java.io.IOException"/>
  45511. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  45512. <doc>
  45513. <![CDATA[This routine initializes the local file system for running a job.
  45514. Details:
  45515. <ul>
  45516. <li>Copies the credentials file from the TaskTracker's private space to
  45517. the job's private space </li>
  45518. <li>Creates the job work directory and set
  45519. {@link TaskTracker#JOB_LOCAL_DIR} in the configuration</li>
  45520. <li>Downloads the job.jar, unjars it, and updates the configuration to
  45521. reflect the localized path of the job.jar</li>
  45522. <li>Creates a base JobConf in the job's private space</li>
  45523. <li>Sets up the distributed cache</li>
  45524. <li>Sets up the user logs directory for the job</li>
  45525. </ul>
  45526. This method must be invoked in the access control context of the job owner
  45527. user. This is because the distributed cache is also setup here and the
  45528. access to the hdfs files requires authentication tokens in case where
  45529. security is enabled.
  45530. @param user the user in question (the job owner)
  45531. @param jobid the ID of the job in question
  45532. @param credentials the path to the credentials file that the TaskTracker
  45533. downloaded
  45534. @param jobConf the path to the job configuration file that the TaskTracker
  45535. downloaded
  45536. @param taskTracker the connection to the task tracker
  45537. @throws IOException
  45538. @throws InterruptedException]]>
  45539. </doc>
  45540. </method>
  45541. <method name="signalTask"
  45542. abstract="false" native="false" synchronized="false"
  45543. static="false" final="false" visibility="public"
  45544. deprecated="not deprecated">
  45545. <param name="user" type="java.lang.String"/>
  45546. <param name="taskPid" type="int"/>
  45547. <param name="signal" type="org.apache.hadoop.util.ProcessTree.Signal"/>
  45548. </method>
  45549. <method name="deleteAsUser"
  45550. abstract="false" native="false" synchronized="false"
  45551. static="false" final="false" visibility="public"
  45552. deprecated="not deprecated">
  45553. <param name="user" type="java.lang.String"/>
  45554. <param name="subDir" type="java.lang.String"/>
  45555. <exception name="IOException" type="java.io.IOException"/>
  45556. <doc>
  45557. <![CDATA[Delete the user's files under all of the task tracker root directories.
  45558. @param user the user name
  45559. @param subDir the path relative to the user's subdirectory under
  45560. the task tracker root directories.
  45561. @throws IOException]]>
  45562. </doc>
  45563. </method>
  45564. <method name="deleteLogAsUser"
  45565. abstract="false" native="false" synchronized="false"
  45566. static="false" final="false" visibility="public"
  45567. deprecated="not deprecated">
  45568. <param name="user" type="java.lang.String"/>
  45569. <param name="subDir" type="java.lang.String"/>
  45570. <exception name="IOException" type="java.io.IOException"/>
  45571. <doc>
  45572. <![CDATA[Delete the user's files under the userlogs directory.
  45573. @param user the user to work as
  45574. @param subDir the path under the userlogs directory.
  45575. @throws IOException]]>
  45576. </doc>
  45577. </method>
  45578. <method name="truncateLogsAsUser"
  45579. abstract="false" native="false" synchronized="false"
  45580. static="false" final="false" visibility="public"
  45581. deprecated="not deprecated">
  45582. <param name="user" type="java.lang.String"/>
  45583. <param name="allAttempts" type="java.util.List"/>
  45584. <exception name="IOException" type="java.io.IOException"/>
  45585. </method>
  45586. <method name="setup"
  45587. abstract="false" native="false" synchronized="false"
  45588. static="false" final="false" visibility="public"
  45589. deprecated="not deprecated">
  45590. <param name="allocator" type="org.apache.hadoop.fs.LocalDirAllocator"/>
  45591. <param name="localStorage" type="org.apache.hadoop.mapred.TaskTracker.LocalStorage"/>
  45592. </method>
  45593. <doc>
  45594. <![CDATA[The default implementation for controlling tasks.
  45595. This class provides an implementation for launching and killing
  45596. tasks that need to be run as the tasktracker itself. Hence,
  45597. many of the initializing or cleanup methods are not required here.
  45598. <br/>
  45599. NOTE: This class is internal only class and not intended for users!!]]>
  45600. </doc>
  45601. </class>
  45602. <!-- end class org.apache.hadoop.mapred.DefaultTaskController -->
  45603. <!-- start class org.apache.hadoop.mapred.FileAlreadyExistsException -->
  45604. <class name="FileAlreadyExistsException" extends="java.io.IOException"
  45605. abstract="false"
  45606. static="false" final="false" visibility="public"
  45607. deprecated="not deprecated">
  45608. <constructor name="FileAlreadyExistsException"
  45609. static="false" final="false" visibility="public"
  45610. deprecated="not deprecated">
  45611. </constructor>
  45612. <constructor name="FileAlreadyExistsException" type="java.lang.String"
  45613. static="false" final="false" visibility="public"
  45614. deprecated="not deprecated">
  45615. </constructor>
  45616. <doc>
  45617. <![CDATA[Used when target file already exists for any operation and
  45618. is not configured to be overwritten.]]>
  45619. </doc>
  45620. </class>
  45621. <!-- end class org.apache.hadoop.mapred.FileAlreadyExistsException -->
  45622. <!-- start class org.apache.hadoop.mapred.FileInputFormat -->
  45623. <class name="FileInputFormat" extends="java.lang.Object"
  45624. abstract="true"
  45625. static="false" final="false" visibility="public"
  45626. deprecated="not deprecated">
  45627. <implements name="org.apache.hadoop.mapred.InputFormat"/>
  45628. <constructor name="FileInputFormat"
  45629. static="false" final="false" visibility="public"
  45630. deprecated="not deprecated">
  45631. </constructor>
  45632. <method name="setMinSplitSize"
  45633. abstract="false" native="false" synchronized="false"
  45634. static="false" final="false" visibility="protected"
  45635. deprecated="not deprecated">
  45636. <param name="minSplitSize" type="long"/>
  45637. </method>
  45638. <method name="isSplitable" return="boolean"
  45639. abstract="false" native="false" synchronized="false"
  45640. static="false" final="false" visibility="protected"
  45641. deprecated="not deprecated">
  45642. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  45643. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  45644. <doc>
  45645. <![CDATA[Is the given filename splitable? Usually, true, but if the file is
  45646. stream compressed, it will not be.
  45647. <code>FileInputFormat</code> implementations can override this and return
  45648. <code>false</code> to ensure that individual input files are never split-up
  45649. so that {@link Mapper}s process entire files.
  45650. @param fs the file system that the file is on
  45651. @param filename the file name to check
  45652. @return is this file splitable?]]>
  45653. </doc>
  45654. </method>
  45655. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  45656. abstract="true" native="false" synchronized="false"
  45657. static="false" final="false" visibility="public"
  45658. deprecated="not deprecated">
  45659. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  45660. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  45661. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  45662. <exception name="IOException" type="java.io.IOException"/>
  45663. </method>
  45664. <method name="setInputPathFilter"
  45665. abstract="false" native="false" synchronized="false"
  45666. static="true" final="false" visibility="public"
  45667. deprecated="not deprecated">
  45668. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  45669. <param name="filter" type="java.lang.Class"/>
  45670. <doc>
  45671. <![CDATA[Set a PathFilter to be applied to the input paths for the map-reduce job.
  45672. @param filter the PathFilter class use for filtering the input paths.]]>
  45673. </doc>
  45674. </method>
  45675. <method name="getInputPathFilter" return="org.apache.hadoop.fs.PathFilter"
  45676. abstract="false" native="false" synchronized="false"
  45677. static="true" final="false" visibility="public"
  45678. deprecated="not deprecated">
  45679. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  45680. <doc>
  45681. <![CDATA[Get a PathFilter instance of the filter set for the input paths.
  45682. @return the PathFilter instance set for the job, NULL if none has been set.]]>
  45683. </doc>
  45684. </method>
  45685. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  45686. abstract="false" native="false" synchronized="false"
  45687. static="false" final="false" visibility="protected"
  45688. deprecated="not deprecated">
  45689. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  45690. <exception name="IOException" type="java.io.IOException"/>
  45691. <doc>
  45692. <![CDATA[List input directories.
  45693. Subclasses may override to, e.g., select only files matching a regular
  45694. expression.
  45695. @param job the job to list input paths for
  45696. @return array of FileStatus objects
  45697. @throws IOException if zero items.]]>
  45698. </doc>
  45699. </method>
  45700. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  45701. abstract="false" native="false" synchronized="false"
  45702. static="false" final="false" visibility="public"
  45703. deprecated="not deprecated">
  45704. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  45705. <param name="numSplits" type="int"/>
  45706. <exception name="IOException" type="java.io.IOException"/>
  45707. <doc>
  45708. <![CDATA[Splits files returned by {@link #listStatus(JobConf)} when
  45709. they're too big.]]>
  45710. </doc>
  45711. </method>
  45712. <method name="computeSplitSize" return="long"
  45713. abstract="false" native="false" synchronized="false"
  45714. static="false" final="false" visibility="protected"
  45715. deprecated="not deprecated">
  45716. <param name="goalSize" type="long"/>
  45717. <param name="minSize" type="long"/>
  45718. <param name="blockSize" type="long"/>
  45719. </method>
  45720. <method name="getBlockIndex" return="int"
  45721. abstract="false" native="false" synchronized="false"
  45722. static="false" final="false" visibility="protected"
  45723. deprecated="not deprecated">
  45724. <param name="blkLocations" type="org.apache.hadoop.fs.BlockLocation[]"/>
  45725. <param name="offset" type="long"/>
  45726. </method>
  45727. <method name="setInputPaths"
  45728. abstract="false" native="false" synchronized="false"
  45729. static="true" final="false" visibility="public"
  45730. deprecated="not deprecated">
  45731. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  45732. <param name="commaSeparatedPaths" type="java.lang.String"/>
  45733. <doc>
  45734. <![CDATA[Sets the given comma separated paths as the list of inputs
  45735. for the map-reduce job.
  45736. @param conf Configuration of the job
  45737. @param commaSeparatedPaths Comma separated paths to be set as
  45738. the list of inputs for the map-reduce job.]]>
  45739. </doc>
  45740. </method>
  45741. <method name="addInputPaths"
  45742. abstract="false" native="false" synchronized="false"
  45743. static="true" final="false" visibility="public"
  45744. deprecated="not deprecated">
  45745. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  45746. <param name="commaSeparatedPaths" type="java.lang.String"/>
  45747. <doc>
  45748. <![CDATA[Add the given comma separated paths to the list of inputs for
  45749. the map-reduce job.
  45750. @param conf The configuration of the job
  45751. @param commaSeparatedPaths Comma separated paths to be added to
  45752. the list of inputs for the map-reduce job.]]>
  45753. </doc>
  45754. </method>
  45755. <method name="setInputPaths"
  45756. abstract="false" native="false" synchronized="false"
  45757. static="true" final="false" visibility="public"
  45758. deprecated="not deprecated">
  45759. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  45760. <param name="inputPaths" type="org.apache.hadoop.fs.Path[]"/>
  45761. <doc>
  45762. <![CDATA[Set the array of {@link Path}s as the list of inputs
  45763. for the map-reduce job.
  45764. @param conf Configuration of the job.
  45765. @param inputPaths the {@link Path}s of the input directories/files
  45766. for the map-reduce job.]]>
  45767. </doc>
  45768. </method>
  45769. <method name="addInputPath"
  45770. abstract="false" native="false" synchronized="false"
  45771. static="true" final="false" visibility="public"
  45772. deprecated="not deprecated">
  45773. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  45774. <param name="path" type="org.apache.hadoop.fs.Path"/>
  45775. <doc>
  45776. <![CDATA[Add a {@link Path} to the list of inputs for the map-reduce job.
  45777. @param conf The configuration of the job
  45778. @param path {@link Path} to be added to the list of inputs for
  45779. the map-reduce job.]]>
  45780. </doc>
  45781. </method>
  45782. <method name="getInputPaths" return="org.apache.hadoop.fs.Path[]"
  45783. abstract="false" native="false" synchronized="false"
  45784. static="true" final="false" visibility="public"
  45785. deprecated="not deprecated">
  45786. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  45787. <doc>
  45788. <![CDATA[Get the list of input {@link Path}s for the map-reduce job.
  45789. @param conf The configuration of the job
  45790. @return the list of input {@link Path}s for the map-reduce job.]]>
  45791. </doc>
  45792. </method>
  45793. <method name="getSplitHosts" return="java.lang.String[]"
  45794. abstract="false" native="false" synchronized="false"
  45795. static="false" final="false" visibility="protected"
  45796. deprecated="not deprecated">
  45797. <param name="blkLocations" type="org.apache.hadoop.fs.BlockLocation[]"/>
  45798. <param name="offset" type="long"/>
  45799. <param name="splitSize" type="long"/>
  45800. <param name="clusterMap" type="org.apache.hadoop.net.NetworkTopology"/>
  45801. <exception name="IOException" type="java.io.IOException"/>
  45802. <doc>
  45803. <![CDATA[This function identifies and returns the hosts that contribute
  45804. most for a given split. For calculating the contribution, rack
  45805. locality is treated on par with host locality, so hosts from racks
  45806. that contribute the most are preferred over hosts on racks that
  45807. contribute less
  45808. @param blkLocations The list of block locations
  45809. @param offset
  45810. @param splitSize
  45811. @return array of hosts that contribute most to this split
  45812. @throws IOException]]>
  45813. </doc>
  45814. </method>
  45815. <field name="LOG" type="org.apache.commons.logging.Log"
  45816. transient="false" volatile="false"
  45817. static="true" final="true" visibility="public"
  45818. deprecated="not deprecated">
  45819. </field>
  45820. <doc>
  45821. <![CDATA[A base class for file-based {@link InputFormat}.
  45822. <p><code>FileInputFormat</code> is the base class for all file-based
  45823. <code>InputFormat</code>s. This provides a generic implementation of
  45824. {@link #getSplits(JobConf, int)}.
  45825. Subclasses of <code>FileInputFormat</code> can also override the
  45826. {@link #isSplitable(FileSystem, Path)} method to ensure input-files are
  45827. not split-up and are processed as a whole by {@link Mapper}s.]]>
  45828. </doc>
  45829. </class>
  45830. <!-- end class org.apache.hadoop.mapred.FileInputFormat -->
  45831. <!-- start class org.apache.hadoop.mapred.FileInputFormat.Counter -->
  45832. <class name="FileInputFormat.Counter" extends="java.lang.Enum"
  45833. abstract="false"
  45834. static="true" final="true" visibility="public"
  45835. deprecated="not deprecated">
  45836. <method name="values" return="org.apache.hadoop.mapred.FileInputFormat.Counter[]"
  45837. abstract="false" native="false" synchronized="false"
  45838. static="true" final="false" visibility="public"
  45839. deprecated="not deprecated">
  45840. </method>
  45841. <method name="valueOf" return="org.apache.hadoop.mapred.FileInputFormat.Counter"
  45842. abstract="false" native="false" synchronized="false"
  45843. static="true" final="false" visibility="public"
  45844. deprecated="not deprecated">
  45845. <param name="name" type="java.lang.String"/>
  45846. </method>
  45847. <field name="BYTES_READ" type="org.apache.hadoop.mapred.FileInputFormat.Counter"
  45848. transient="false" volatile="false"
  45849. static="true" final="true" visibility="public"
  45850. deprecated="not deprecated">
  45851. </field>
  45852. </class>
  45853. <!-- end class org.apache.hadoop.mapred.FileInputFormat.Counter -->
  45854. <!-- start class org.apache.hadoop.mapred.FileOutputCommitter -->
  45855. <class name="FileOutputCommitter" extends="org.apache.hadoop.mapred.OutputCommitter"
  45856. abstract="false"
  45857. static="false" final="false" visibility="public"
  45858. deprecated="not deprecated">
  45859. <constructor name="FileOutputCommitter"
  45860. static="false" final="false" visibility="public"
  45861. deprecated="not deprecated">
  45862. </constructor>
  45863. <method name="setupJob"
  45864. abstract="false" native="false" synchronized="false"
  45865. static="false" final="false" visibility="public"
  45866. deprecated="not deprecated">
  45867. <param name="context" type="org.apache.hadoop.mapred.JobContext"/>
  45868. <exception name="IOException" type="java.io.IOException"/>
  45869. </method>
  45870. <method name="commitJob"
  45871. abstract="false" native="false" synchronized="false"
  45872. static="false" final="false" visibility="public"
  45873. deprecated="not deprecated">
  45874. <param name="context" type="org.apache.hadoop.mapred.JobContext"/>
  45875. <exception name="IOException" type="java.io.IOException"/>
  45876. </method>
  45877. <method name="cleanupJob"
  45878. abstract="false" native="false" synchronized="false"
  45879. static="false" final="false" visibility="public"
  45880. deprecated="not deprecated">
  45881. <param name="context" type="org.apache.hadoop.mapred.JobContext"/>
  45882. <exception name="IOException" type="java.io.IOException"/>
  45883. </method>
  45884. <method name="abortJob"
  45885. abstract="false" native="false" synchronized="false"
  45886. static="false" final="false" visibility="public"
  45887. deprecated="not deprecated">
  45888. <param name="context" type="org.apache.hadoop.mapred.JobContext"/>
  45889. <param name="runState" type="int"/>
  45890. <exception name="IOException" type="java.io.IOException"/>
  45891. <doc>
  45892. <![CDATA[Delete the temporary directory, including all of the work directories.
  45893. @param context the job's context
  45894. @param runState final run state of the job, should be
  45895. {@link JobStatus#KILLED} or {@link JobStatus#FAILED}]]>
  45896. </doc>
  45897. </method>
  45898. <method name="setupTask"
  45899. abstract="false" native="false" synchronized="false"
  45900. static="false" final="false" visibility="public"
  45901. deprecated="not deprecated">
  45902. <param name="context" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  45903. <exception name="IOException" type="java.io.IOException"/>
  45904. </method>
  45905. <method name="commitTask"
  45906. abstract="false" native="false" synchronized="false"
  45907. static="false" final="false" visibility="public"
  45908. deprecated="not deprecated">
  45909. <param name="context" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  45910. <exception name="IOException" type="java.io.IOException"/>
  45911. </method>
  45912. <method name="abortTask"
  45913. abstract="false" native="false" synchronized="false"
  45914. static="false" final="false" visibility="public"
  45915. deprecated="not deprecated">
  45916. <param name="context" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  45917. <exception name="IOException" type="java.io.IOException"/>
  45918. </method>
  45919. <method name="needsTaskCommit" return="boolean"
  45920. abstract="false" native="false" synchronized="false"
  45921. static="false" final="false" visibility="public"
  45922. deprecated="not deprecated">
  45923. <param name="context" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  45924. <exception name="IOException" type="java.io.IOException"/>
  45925. </method>
  45926. <field name="LOG" type="org.apache.commons.logging.Log"
  45927. transient="false" volatile="false"
  45928. static="true" final="true" visibility="public"
  45929. deprecated="not deprecated">
  45930. </field>
  45931. <field name="TEMP_DIR_NAME" type="java.lang.String"
  45932. transient="false" volatile="false"
  45933. static="true" final="true" visibility="public"
  45934. deprecated="not deprecated">
  45935. <doc>
  45936. <![CDATA[Temporary directory name]]>
  45937. </doc>
  45938. </field>
  45939. <field name="SUCCEEDED_FILE_NAME" type="java.lang.String"
  45940. transient="false" volatile="false"
  45941. static="true" final="true" visibility="public"
  45942. deprecated="not deprecated">
  45943. </field>
  45944. <doc>
  45945. <![CDATA[An {@link OutputCommitter} that commits files specified
  45946. in job output directory i.e. ${mapred.output.dir}.]]>
  45947. </doc>
  45948. </class>
  45949. <!-- end class org.apache.hadoop.mapred.FileOutputCommitter -->
  45950. <!-- start class org.apache.hadoop.mapred.FileOutputFormat -->
  45951. <class name="FileOutputFormat" extends="java.lang.Object"
  45952. abstract="true"
  45953. static="false" final="false" visibility="public"
  45954. deprecated="not deprecated">
  45955. <implements name="org.apache.hadoop.mapred.OutputFormat"/>
  45956. <constructor name="FileOutputFormat"
  45957. static="false" final="false" visibility="public"
  45958. deprecated="not deprecated">
  45959. </constructor>
  45960. <method name="setCompressOutput"
  45961. abstract="false" native="false" synchronized="false"
  45962. static="true" final="false" visibility="public"
  45963. deprecated="not deprecated">
  45964. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  45965. <param name="compress" type="boolean"/>
  45966. <doc>
  45967. <![CDATA[Set whether the output of the job is compressed.
  45968. @param conf the {@link JobConf} to modify
  45969. @param compress should the output of the job be compressed?]]>
  45970. </doc>
  45971. </method>
  45972. <method name="getCompressOutput" return="boolean"
  45973. abstract="false" native="false" synchronized="false"
  45974. static="true" final="false" visibility="public"
  45975. deprecated="not deprecated">
  45976. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  45977. <doc>
  45978. <![CDATA[Is the job output compressed?
  45979. @param conf the {@link JobConf} to look in
  45980. @return <code>true</code> if the job output should be compressed,
  45981. <code>false</code> otherwise]]>
  45982. </doc>
  45983. </method>
  45984. <method name="setOutputCompressorClass"
  45985. abstract="false" native="false" synchronized="false"
  45986. static="true" final="false" visibility="public"
  45987. deprecated="not deprecated">
  45988. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  45989. <param name="codecClass" type="java.lang.Class"/>
  45990. <doc>
  45991. <![CDATA[Set the {@link CompressionCodec} to be used to compress job outputs.
  45992. @param conf the {@link JobConf} to modify
  45993. @param codecClass the {@link CompressionCodec} to be used to
  45994. compress the job outputs]]>
  45995. </doc>
  45996. </method>
  45997. <method name="getOutputCompressorClass" return="java.lang.Class"
  45998. abstract="false" native="false" synchronized="false"
  45999. static="true" final="false" visibility="public"
  46000. deprecated="not deprecated">
  46001. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46002. <param name="defaultValue" type="java.lang.Class"/>
  46003. <doc>
  46004. <![CDATA[Get the {@link CompressionCodec} for compressing the job outputs.
  46005. @param conf the {@link JobConf} to look in
  46006. @param defaultValue the {@link CompressionCodec} to return if not set
  46007. @return the {@link CompressionCodec} to be used to compress the
  46008. job outputs
  46009. @throws IllegalArgumentException if the class was specified, but not found]]>
  46010. </doc>
  46011. </method>
  46012. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  46013. abstract="true" native="false" synchronized="false"
  46014. static="false" final="false" visibility="public"
  46015. deprecated="not deprecated">
  46016. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  46017. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  46018. <param name="name" type="java.lang.String"/>
  46019. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  46020. <exception name="IOException" type="java.io.IOException"/>
  46021. </method>
  46022. <method name="checkOutputSpecs"
  46023. abstract="false" native="false" synchronized="false"
  46024. static="false" final="false" visibility="public"
  46025. deprecated="not deprecated">
  46026. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  46027. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  46028. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.mapred.FileAlreadyExistsException"/>
  46029. <exception name="InvalidJobConfException" type="org.apache.hadoop.mapred.InvalidJobConfException"/>
  46030. <exception name="IOException" type="java.io.IOException"/>
  46031. </method>
  46032. <method name="setOutputPath"
  46033. abstract="false" native="false" synchronized="false"
  46034. static="true" final="false" visibility="public"
  46035. deprecated="not deprecated">
  46036. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46037. <param name="outputDir" type="org.apache.hadoop.fs.Path"/>
  46038. <doc>
  46039. <![CDATA[Set the {@link Path} of the output directory for the map-reduce job.
  46040. @param conf The configuration of the job.
  46041. @param outputDir the {@link Path} of the output directory for
  46042. the map-reduce job.]]>
  46043. </doc>
  46044. </method>
  46045. <method name="getOutputPath" return="org.apache.hadoop.fs.Path"
  46046. abstract="false" native="false" synchronized="false"
  46047. static="true" final="false" visibility="public"
  46048. deprecated="not deprecated">
  46049. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46050. <doc>
  46051. <![CDATA[Get the {@link Path} to the output directory for the map-reduce job.
  46052. @return the {@link Path} to the output directory for the map-reduce job.
  46053. @see FileOutputFormat#getWorkOutputPath(JobConf)]]>
  46054. </doc>
  46055. </method>
  46056. <method name="getWorkOutputPath" return="org.apache.hadoop.fs.Path"
  46057. abstract="false" native="false" synchronized="false"
  46058. static="true" final="false" visibility="public"
  46059. deprecated="not deprecated">
  46060. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46061. <doc>
  46062. <![CDATA[Get the {@link Path} to the task's temporary output directory
  46063. for the map-reduce job
  46064. <h4 id="SideEffectFiles">Tasks' Side-Effect Files</h4>
  46065. <p><i>Note:</i> The following is valid only if the {@link OutputCommitter}
  46066. is {@link FileOutputCommitter}. If <code>OutputCommitter</code> is not
  46067. a <code>FileOutputCommitter</code>, the task's temporary output
  46068. directory is same as {@link #getOutputPath(JobConf)} i.e.
  46069. <tt>${mapred.output.dir}$</tt></p>
  46070. <p>Some applications need to create/write-to side-files, which differ from
  46071. the actual job-outputs.
  46072. <p>In such cases there could be issues with 2 instances of the same TIP
  46073. (running simultaneously e.g. speculative tasks) trying to open/write-to the
  46074. same file (path) on HDFS. Hence the application-writer will have to pick
  46075. unique names per task-attempt (e.g. using the attemptid, say
  46076. <tt>attempt_200709221812_0001_m_000000_0</tt>), not just per TIP.</p>
  46077. <p>To get around this the Map-Reduce framework helps the application-writer
  46078. out by maintaining a special
  46079. <tt>${mapred.output.dir}/_temporary/_${taskid}</tt>
  46080. sub-directory for each task-attempt on HDFS where the output of the
  46081. task-attempt goes. On successful completion of the task-attempt the files
  46082. in the <tt>${mapred.output.dir}/_temporary/_${taskid}</tt> (only)
  46083. are <i>promoted</i> to <tt>${mapred.output.dir}</tt>. Of course, the
  46084. framework discards the sub-directory of unsuccessful task-attempts. This
  46085. is completely transparent to the application.</p>
  46086. <p>The application-writer can take advantage of this by creating any
  46087. side-files required in <tt>${mapred.work.output.dir}</tt> during execution
  46088. of his reduce-task i.e. via {@link #getWorkOutputPath(JobConf)}, and the
  46089. framework will move them out similarly - thus she doesn't have to pick
  46090. unique paths per task-attempt.</p>
  46091. <p><i>Note</i>: the value of <tt>${mapred.work.output.dir}</tt> during
  46092. execution of a particular task-attempt is actually
  46093. <tt>${mapred.output.dir}/_temporary/_{$taskid}</tt>, and this value is
  46094. set by the map-reduce framework. So, just create any side-files in the
  46095. path returned by {@link #getWorkOutputPath(JobConf)} from map/reduce
  46096. task to take advantage of this feature.</p>
  46097. <p>The entire discussion holds true for maps of jobs with
  46098. reducer=NONE (i.e. 0 reduces) since output of the map, in that case,
  46099. goes directly to HDFS.</p>
  46100. @return the {@link Path} to the task's temporary output directory
  46101. for the map-reduce job.]]>
  46102. </doc>
  46103. </method>
  46104. <method name="getTaskOutputPath" return="org.apache.hadoop.fs.Path"
  46105. abstract="false" native="false" synchronized="false"
  46106. static="true" final="false" visibility="public"
  46107. deprecated="not deprecated">
  46108. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46109. <param name="name" type="java.lang.String"/>
  46110. <exception name="IOException" type="java.io.IOException"/>
  46111. <doc>
  46112. <![CDATA[Helper function to create the task's temporary output directory and
  46113. return the path to the task's output file.
  46114. @param conf job-configuration
  46115. @param name temporary task-output filename
  46116. @return path to the task's temporary output file
  46117. @throws IOException]]>
  46118. </doc>
  46119. </method>
  46120. <method name="getUniqueName" return="java.lang.String"
  46121. abstract="false" native="false" synchronized="false"
  46122. static="true" final="false" visibility="public"
  46123. deprecated="not deprecated">
  46124. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46125. <param name="name" type="java.lang.String"/>
  46126. <doc>
  46127. <![CDATA[Helper function to generate a name that is unique for the task.
  46128. <p>The generated name can be used to create custom files from within the
  46129. different tasks for the job, the names for different tasks will not collide
  46130. with each other.</p>
  46131. <p>The given name is postfixed with the task type, 'm' for maps, 'r' for
  46132. reduces and the task partition number. For example, give a name 'test'
  46133. running on the first map o the job the generated name will be
  46134. 'test-m-00000'.</p>
  46135. @param conf the configuration for the job.
  46136. @param name the name to make unique.
  46137. @return a unique name accross all tasks of the job.]]>
  46138. </doc>
  46139. </method>
  46140. <method name="getPathForCustomFile" return="org.apache.hadoop.fs.Path"
  46141. abstract="false" native="false" synchronized="false"
  46142. static="true" final="false" visibility="public"
  46143. deprecated="not deprecated">
  46144. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46145. <param name="name" type="java.lang.String"/>
  46146. <doc>
  46147. <![CDATA[Helper function to generate a {@link Path} for a file that is unique for
  46148. the task within the job output directory.
  46149. <p>The path can be used to create custom files from within the map and
  46150. reduce tasks. The path name will be unique for each task. The path parent
  46151. will be the job output directory.</p>ls
  46152. <p>This method uses the {@link #getUniqueName} method to make the file name
  46153. unique for the task.</p>
  46154. @param conf the configuration for the job.
  46155. @param name the name for the file.
  46156. @return a unique path accross all tasks of the job.]]>
  46157. </doc>
  46158. </method>
  46159. <doc>
  46160. <![CDATA[A base class for {@link OutputFormat}.]]>
  46161. </doc>
  46162. </class>
  46163. <!-- end class org.apache.hadoop.mapred.FileOutputFormat -->
  46164. <!-- start class org.apache.hadoop.mapred.FileOutputFormat.Counter -->
  46165. <class name="FileOutputFormat.Counter" extends="java.lang.Enum"
  46166. abstract="false"
  46167. static="true" final="true" visibility="public"
  46168. deprecated="not deprecated">
  46169. <method name="values" return="org.apache.hadoop.mapred.FileOutputFormat.Counter[]"
  46170. abstract="false" native="false" synchronized="false"
  46171. static="true" final="false" visibility="public"
  46172. deprecated="not deprecated">
  46173. </method>
  46174. <method name="valueOf" return="org.apache.hadoop.mapred.FileOutputFormat.Counter"
  46175. abstract="false" native="false" synchronized="false"
  46176. static="true" final="false" visibility="public"
  46177. deprecated="not deprecated">
  46178. <param name="name" type="java.lang.String"/>
  46179. </method>
  46180. <field name="BYTES_WRITTEN" type="org.apache.hadoop.mapred.FileOutputFormat.Counter"
  46181. transient="false" volatile="false"
  46182. static="true" final="true" visibility="public"
  46183. deprecated="not deprecated">
  46184. </field>
  46185. </class>
  46186. <!-- end class org.apache.hadoop.mapred.FileOutputFormat.Counter -->
  46187. <!-- start class org.apache.hadoop.mapred.FileSplit -->
  46188. <class name="FileSplit" extends="org.apache.hadoop.mapreduce.InputSplit"
  46189. abstract="false"
  46190. static="false" final="false" visibility="public"
  46191. deprecated="not deprecated">
  46192. <implements name="org.apache.hadoop.mapred.InputSplit"/>
  46193. <constructor name="FileSplit" type="org.apache.hadoop.fs.Path, long, long, org.apache.hadoop.mapred.JobConf"
  46194. static="false" final="false" visibility="public"
  46195. deprecated="deprecated, no comment">
  46196. <doc>
  46197. <![CDATA[Constructs a split.
  46198. @deprecated
  46199. @param file the file name
  46200. @param start the position of the first byte in the file to process
  46201. @param length the number of bytes in the file to process]]>
  46202. </doc>
  46203. </constructor>
  46204. <constructor name="FileSplit" type="org.apache.hadoop.fs.Path, long, long, java.lang.String[]"
  46205. static="false" final="false" visibility="public"
  46206. deprecated="not deprecated">
  46207. <doc>
  46208. <![CDATA[Constructs a split with host information
  46209. @param file the file name
  46210. @param start the position of the first byte in the file to process
  46211. @param length the number of bytes in the file to process
  46212. @param hosts the list of hosts containing the block, possibly null]]>
  46213. </doc>
  46214. </constructor>
  46215. <method name="getPath" return="org.apache.hadoop.fs.Path"
  46216. abstract="false" native="false" synchronized="false"
  46217. static="false" final="false" visibility="public"
  46218. deprecated="not deprecated">
  46219. <doc>
  46220. <![CDATA[The file containing this split's data.]]>
  46221. </doc>
  46222. </method>
  46223. <method name="getStart" return="long"
  46224. abstract="false" native="false" synchronized="false"
  46225. static="false" final="false" visibility="public"
  46226. deprecated="not deprecated">
  46227. <doc>
  46228. <![CDATA[The position of the first byte in the file to process.]]>
  46229. </doc>
  46230. </method>
  46231. <method name="getLength" return="long"
  46232. abstract="false" native="false" synchronized="false"
  46233. static="false" final="false" visibility="public"
  46234. deprecated="not deprecated">
  46235. <doc>
  46236. <![CDATA[The number of bytes in the file to process.]]>
  46237. </doc>
  46238. </method>
  46239. <method name="toString" return="java.lang.String"
  46240. abstract="false" native="false" synchronized="false"
  46241. static="false" final="false" visibility="public"
  46242. deprecated="not deprecated">
  46243. </method>
  46244. <method name="write"
  46245. abstract="false" native="false" synchronized="false"
  46246. static="false" final="false" visibility="public"
  46247. deprecated="not deprecated">
  46248. <param name="out" type="java.io.DataOutput"/>
  46249. <exception name="IOException" type="java.io.IOException"/>
  46250. </method>
  46251. <method name="readFields"
  46252. abstract="false" native="false" synchronized="false"
  46253. static="false" final="false" visibility="public"
  46254. deprecated="not deprecated">
  46255. <param name="in" type="java.io.DataInput"/>
  46256. <exception name="IOException" type="java.io.IOException"/>
  46257. </method>
  46258. <method name="getLocations" return="java.lang.String[]"
  46259. abstract="false" native="false" synchronized="false"
  46260. static="false" final="false" visibility="public"
  46261. deprecated="not deprecated">
  46262. <exception name="IOException" type="java.io.IOException"/>
  46263. </method>
  46264. <doc>
  46265. <![CDATA[A section of an input file. Returned by {@link
  46266. InputFormat#getSplits(JobConf, int)} and passed to
  46267. {@link InputFormat#getRecordReader(InputSplit,JobConf,Reporter)}.]]>
  46268. </doc>
  46269. </class>
  46270. <!-- end class org.apache.hadoop.mapred.FileSplit -->
  46271. <!-- start class org.apache.hadoop.mapred.HDFSMonitorThread -->
  46272. <class name="HDFSMonitorThread" extends="java.lang.Thread"
  46273. abstract="false"
  46274. static="false" final="false" visibility="public"
  46275. deprecated="not deprecated">
  46276. <constructor name="HDFSMonitorThread" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.JobTracker, org.apache.hadoop.fs.FileSystem"
  46277. static="false" final="false" visibility="public"
  46278. deprecated="not deprecated">
  46279. </constructor>
  46280. <method name="run"
  46281. abstract="false" native="false" synchronized="false"
  46282. static="false" final="false" visibility="public"
  46283. deprecated="not deprecated">
  46284. </method>
  46285. <field name="LOG" type="org.apache.commons.logging.Log"
  46286. transient="false" volatile="false"
  46287. static="true" final="true" visibility="public"
  46288. deprecated="not deprecated">
  46289. </field>
  46290. </class>
  46291. <!-- end class org.apache.hadoop.mapred.HDFSMonitorThread -->
  46292. <!-- start class org.apache.hadoop.mapred.ID -->
  46293. <class name="ID" extends="org.apache.hadoop.mapreduce.ID"
  46294. abstract="true"
  46295. static="false" final="false" visibility="public"
  46296. deprecated="not deprecated">
  46297. <constructor name="ID" type="int"
  46298. static="false" final="false" visibility="public"
  46299. deprecated="not deprecated">
  46300. <doc>
  46301. <![CDATA[constructs an ID object from the given int]]>
  46302. </doc>
  46303. </constructor>
  46304. <constructor name="ID"
  46305. static="false" final="false" visibility="protected"
  46306. deprecated="not deprecated">
  46307. </constructor>
  46308. <doc>
  46309. <![CDATA[A general identifier, which internally stores the id
  46310. as an integer. This is the super class of {@link JobID},
  46311. {@link TaskID} and {@link TaskAttemptID}.
  46312. @see JobID
  46313. @see TaskID
  46314. @see TaskAttemptID]]>
  46315. </doc>
  46316. </class>
  46317. <!-- end class org.apache.hadoop.mapred.ID -->
  46318. <!-- start interface org.apache.hadoop.mapred.InputFormat -->
  46319. <interface name="InputFormat" abstract="true"
  46320. static="false" final="false" visibility="public"
  46321. deprecated="not deprecated">
  46322. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  46323. abstract="false" native="false" synchronized="false"
  46324. static="false" final="false" visibility="public"
  46325. deprecated="not deprecated">
  46326. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  46327. <param name="numSplits" type="int"/>
  46328. <exception name="IOException" type="java.io.IOException"/>
  46329. <doc>
  46330. <![CDATA[Logically split the set of input files for the job.
  46331. <p>Each {@link InputSplit} is then assigned to an individual {@link Mapper}
  46332. for processing.</p>
  46333. <p><i>Note</i>: The split is a <i>logical</i> split of the inputs and the
  46334. input files are not physically split into chunks. For e.g. a split could
  46335. be <i>&lt;input-file-path, start, offset&gt;</i> tuple.
  46336. @param job job configuration.
  46337. @param numSplits the desired number of splits, a hint.
  46338. @return an array of {@link InputSplit}s for the job.]]>
  46339. </doc>
  46340. </method>
  46341. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  46342. abstract="false" native="false" synchronized="false"
  46343. static="false" final="false" visibility="public"
  46344. deprecated="not deprecated">
  46345. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  46346. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  46347. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  46348. <exception name="IOException" type="java.io.IOException"/>
  46349. <doc>
  46350. <![CDATA[Get the {@link RecordReader} for the given {@link InputSplit}.
  46351. <p>It is the responsibility of the <code>RecordReader</code> to respect
  46352. record boundaries while processing the logical split to present a
  46353. record-oriented view to the individual task.</p>
  46354. @param split the {@link InputSplit}
  46355. @param job the job that this split belongs to
  46356. @return a {@link RecordReader}]]>
  46357. </doc>
  46358. </method>
  46359. <doc>
  46360. <![CDATA[<code>InputFormat</code> describes the input-specification for a
  46361. Map-Reduce job.
  46362. <p>The Map-Reduce framework relies on the <code>InputFormat</code> of the
  46363. job to:<p>
  46364. <ol>
  46365. <li>
  46366. Validate the input-specification of the job.
  46367. <li>
  46368. Split-up the input file(s) into logical {@link InputSplit}s, each of
  46369. which is then assigned to an individual {@link Mapper}.
  46370. </li>
  46371. <li>
  46372. Provide the {@link RecordReader} implementation to be used to glean
  46373. input records from the logical <code>InputSplit</code> for processing by
  46374. the {@link Mapper}.
  46375. </li>
  46376. </ol>
  46377. <p>The default behavior of file-based {@link InputFormat}s, typically
  46378. sub-classes of {@link FileInputFormat}, is to split the
  46379. input into <i>logical</i> {@link InputSplit}s based on the total size, in
  46380. bytes, of the input files. However, the {@link FileSystem} blocksize of
  46381. the input files is treated as an upper bound for input splits. A lower bound
  46382. on the split size can be set via
  46383. <a href="{@docRoot}/../mapred-default.html#mapred.min.split.size">
  46384. mapred.min.split.size</a>.</p>
  46385. <p>Clearly, logical splits based on input-size is insufficient for many
  46386. applications since record boundaries are to respected. In such cases, the
  46387. application has to also implement a {@link RecordReader} on whom lies the
  46388. responsibilty to respect record-boundaries and present a record-oriented
  46389. view of the logical <code>InputSplit</code> to the individual task.
  46390. @see InputSplit
  46391. @see RecordReader
  46392. @see JobClient
  46393. @see FileInputFormat]]>
  46394. </doc>
  46395. </interface>
  46396. <!-- end interface org.apache.hadoop.mapred.InputFormat -->
  46397. <!-- start interface org.apache.hadoop.mapred.InputSplit -->
  46398. <interface name="InputSplit" abstract="true"
  46399. static="false" final="false" visibility="public"
  46400. deprecated="not deprecated">
  46401. <implements name="org.apache.hadoop.io.Writable"/>
  46402. <method name="getLength" return="long"
  46403. abstract="false" native="false" synchronized="false"
  46404. static="false" final="false" visibility="public"
  46405. deprecated="not deprecated">
  46406. <exception name="IOException" type="java.io.IOException"/>
  46407. <doc>
  46408. <![CDATA[Get the total number of bytes in the data of the <code>InputSplit</code>.
  46409. @return the number of bytes in the input split.
  46410. @throws IOException]]>
  46411. </doc>
  46412. </method>
  46413. <method name="getLocations" return="java.lang.String[]"
  46414. abstract="false" native="false" synchronized="false"
  46415. static="false" final="false" visibility="public"
  46416. deprecated="not deprecated">
  46417. <exception name="IOException" type="java.io.IOException"/>
  46418. <doc>
  46419. <![CDATA[Get the list of hostnames where the input split is located.
  46420. @return list of hostnames where data of the <code>InputSplit</code> is
  46421. located as an array of <code>String</code>s.
  46422. @throws IOException]]>
  46423. </doc>
  46424. </method>
  46425. <doc>
  46426. <![CDATA[<code>InputSplit</code> represents the data to be processed by an
  46427. individual {@link Mapper}.
  46428. <p>Typically, it presents a byte-oriented view on the input and is the
  46429. responsibility of {@link RecordReader} of the job to process this and present
  46430. a record-oriented view.
  46431. @see InputFormat
  46432. @see RecordReader]]>
  46433. </doc>
  46434. </interface>
  46435. <!-- end interface org.apache.hadoop.mapred.InputSplit -->
  46436. <!-- start class org.apache.hadoop.mapred.InvalidFileTypeException -->
  46437. <class name="InvalidFileTypeException" extends="java.io.IOException"
  46438. abstract="false"
  46439. static="false" final="false" visibility="public"
  46440. deprecated="not deprecated">
  46441. <constructor name="InvalidFileTypeException"
  46442. static="false" final="false" visibility="public"
  46443. deprecated="not deprecated">
  46444. </constructor>
  46445. <constructor name="InvalidFileTypeException" type="java.lang.String"
  46446. static="false" final="false" visibility="public"
  46447. deprecated="not deprecated">
  46448. </constructor>
  46449. <doc>
  46450. <![CDATA[Used when file type differs from the desired file type. like
  46451. getting a file when a directory is expected. Or a wrong file type.]]>
  46452. </doc>
  46453. </class>
  46454. <!-- end class org.apache.hadoop.mapred.InvalidFileTypeException -->
  46455. <!-- start class org.apache.hadoop.mapred.InvalidInputException -->
  46456. <class name="InvalidInputException" extends="java.io.IOException"
  46457. abstract="false"
  46458. static="false" final="false" visibility="public"
  46459. deprecated="not deprecated">
  46460. <constructor name="InvalidInputException" type="java.util.List"
  46461. static="false" final="false" visibility="public"
  46462. deprecated="not deprecated">
  46463. <doc>
  46464. <![CDATA[Create the exception with the given list.
  46465. @param probs the list of problems to report. this list is not copied.]]>
  46466. </doc>
  46467. </constructor>
  46468. <method name="getProblems" return="java.util.List"
  46469. abstract="false" native="false" synchronized="false"
  46470. static="false" final="false" visibility="public"
  46471. deprecated="not deprecated">
  46472. <doc>
  46473. <![CDATA[Get the complete list of the problems reported.
  46474. @return the list of problems, which must not be modified]]>
  46475. </doc>
  46476. </method>
  46477. <method name="getMessage" return="java.lang.String"
  46478. abstract="false" native="false" synchronized="false"
  46479. static="false" final="false" visibility="public"
  46480. deprecated="not deprecated">
  46481. <doc>
  46482. <![CDATA[Get a summary message of the problems found.
  46483. @return the concatenated messages from all of the problems.]]>
  46484. </doc>
  46485. </method>
  46486. <doc>
  46487. <![CDATA[This class wraps a list of problems with the input, so that the user
  46488. can get a list of problems together instead of finding and fixing them one
  46489. by one.]]>
  46490. </doc>
  46491. </class>
  46492. <!-- end class org.apache.hadoop.mapred.InvalidInputException -->
  46493. <!-- start class org.apache.hadoop.mapred.InvalidJobConfException -->
  46494. <class name="InvalidJobConfException" extends="java.io.IOException"
  46495. abstract="false"
  46496. static="false" final="false" visibility="public"
  46497. deprecated="not deprecated">
  46498. <constructor name="InvalidJobConfException"
  46499. static="false" final="false" visibility="public"
  46500. deprecated="not deprecated">
  46501. </constructor>
  46502. <constructor name="InvalidJobConfException" type="java.lang.String"
  46503. static="false" final="false" visibility="public"
  46504. deprecated="not deprecated">
  46505. </constructor>
  46506. <constructor name="InvalidJobConfException" type="java.lang.String, java.lang.Throwable"
  46507. static="false" final="false" visibility="public"
  46508. deprecated="not deprecated">
  46509. </constructor>
  46510. <constructor name="InvalidJobConfException" type="java.lang.Throwable"
  46511. static="false" final="false" visibility="public"
  46512. deprecated="not deprecated">
  46513. </constructor>
  46514. <doc>
  46515. <![CDATA[This exception is thrown when jobconf misses some mendatory attributes
  46516. or value of some attributes is invalid.]]>
  46517. </doc>
  46518. </class>
  46519. <!-- end class org.apache.hadoop.mapred.InvalidJobConfException -->
  46520. <!-- start class org.apache.hadoop.mapred.IsolationRunner -->
  46521. <class name="IsolationRunner" extends="java.lang.Object"
  46522. abstract="false"
  46523. static="false" final="false" visibility="public"
  46524. deprecated="not deprecated">
  46525. <constructor name="IsolationRunner"
  46526. static="false" final="false" visibility="public"
  46527. deprecated="not deprecated">
  46528. </constructor>
  46529. <method name="main"
  46530. abstract="false" native="false" synchronized="false"
  46531. static="true" final="false" visibility="public"
  46532. deprecated="not deprecated">
  46533. <param name="args" type="java.lang.String[]"/>
  46534. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  46535. <exception name="IOException" type="java.io.IOException"/>
  46536. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  46537. <doc>
  46538. <![CDATA[Run a single task.
  46539. @param args the first argument is the task directory]]>
  46540. </doc>
  46541. </method>
  46542. <doc>
  46543. <![CDATA[IsolationRunner is intended to facilitate debugging by re-running a specific
  46544. task, given left-over task files for a (typically failed) past job.
  46545. Currently, it is limited to re-running map tasks.
  46546. Users may coerce MapReduce to keep task files around by setting
  46547. keep.failed.task.files. See mapred_tutorial.xml for more documentation.]]>
  46548. </doc>
  46549. </class>
  46550. <!-- end class org.apache.hadoop.mapred.IsolationRunner -->
  46551. <!-- start class org.apache.hadoop.mapred.JobClient -->
  46552. <class name="JobClient" extends="org.apache.hadoop.conf.Configured"
  46553. abstract="false"
  46554. static="false" final="false" visibility="public"
  46555. deprecated="not deprecated">
  46556. <implements name="org.apache.hadoop.mapred.MRConstants"/>
  46557. <implements name="org.apache.hadoop.util.Tool"/>
  46558. <constructor name="JobClient"
  46559. static="false" final="false" visibility="public"
  46560. deprecated="not deprecated">
  46561. <doc>
  46562. <![CDATA[Create a job client.]]>
  46563. </doc>
  46564. </constructor>
  46565. <constructor name="JobClient" type="org.apache.hadoop.mapred.JobConf"
  46566. static="false" final="false" visibility="public"
  46567. deprecated="not deprecated">
  46568. <exception name="IOException" type="java.io.IOException"/>
  46569. <doc>
  46570. <![CDATA[Build a job client with the given {@link JobConf}, and connect to the
  46571. default {@link JobTracker}.
  46572. @param conf the job configuration.
  46573. @throws IOException]]>
  46574. </doc>
  46575. </constructor>
  46576. <constructor name="JobClient" type="java.net.InetSocketAddress, org.apache.hadoop.conf.Configuration"
  46577. static="false" final="false" visibility="public"
  46578. deprecated="not deprecated">
  46579. <exception name="IOException" type="java.io.IOException"/>
  46580. <doc>
  46581. <![CDATA[Build a job client, connect to the indicated job tracker.
  46582. @param jobTrackAddr the job tracker to connect to.
  46583. @param conf configuration.]]>
  46584. </doc>
  46585. </constructor>
  46586. <method name="init"
  46587. abstract="false" native="false" synchronized="false"
  46588. static="false" final="false" visibility="public"
  46589. deprecated="not deprecated">
  46590. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46591. <exception name="IOException" type="java.io.IOException"/>
  46592. <doc>
  46593. <![CDATA[Connect to the default {@link JobTracker}.
  46594. @param conf the job configuration.
  46595. @throws IOException]]>
  46596. </doc>
  46597. </method>
  46598. <method name="close"
  46599. abstract="false" native="false" synchronized="true"
  46600. static="false" final="false" visibility="public"
  46601. deprecated="not deprecated">
  46602. <exception name="IOException" type="java.io.IOException"/>
  46603. <doc>
  46604. <![CDATA[Close the <code>JobClient</code>.]]>
  46605. </doc>
  46606. </method>
  46607. <method name="getFs" return="org.apache.hadoop.fs.FileSystem"
  46608. abstract="false" native="false" synchronized="true"
  46609. static="false" final="false" visibility="public"
  46610. deprecated="not deprecated">
  46611. <exception name="IOException" type="java.io.IOException"/>
  46612. <doc>
  46613. <![CDATA[Get a filesystem handle. We need this to prepare jobs
  46614. for submission to the MapReduce system.
  46615. @return the filesystem handle.
  46616. @throws IOException]]>
  46617. </doc>
  46618. </method>
  46619. <method name="submitJob" return="org.apache.hadoop.mapred.RunningJob"
  46620. abstract="false" native="false" synchronized="false"
  46621. static="false" final="false" visibility="public"
  46622. deprecated="not deprecated">
  46623. <param name="jobFile" type="java.lang.String"/>
  46624. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  46625. <exception name="InvalidJobConfException" type="org.apache.hadoop.mapred.InvalidJobConfException"/>
  46626. <exception name="IOException" type="java.io.IOException"/>
  46627. <doc>
  46628. <![CDATA[Submit a job to the MR system.
  46629. This returns a handle to the {@link RunningJob} which can be used to track
  46630. the running-job.
  46631. @param jobFile the job configuration.
  46632. @return a handle to the {@link RunningJob} which can be used to track the
  46633. running-job.
  46634. @throws FileNotFoundException
  46635. @throws InvalidJobConfException
  46636. @throws IOException]]>
  46637. </doc>
  46638. </method>
  46639. <method name="submitJob" return="org.apache.hadoop.mapred.RunningJob"
  46640. abstract="false" native="false" synchronized="false"
  46641. static="false" final="false" visibility="public"
  46642. deprecated="not deprecated">
  46643. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  46644. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  46645. <exception name="IOException" type="java.io.IOException"/>
  46646. <doc>
  46647. <![CDATA[Submit a job to the MR system.
  46648. This returns a handle to the {@link RunningJob} which can be used to track
  46649. the running-job.
  46650. @param job the job configuration.
  46651. @return a handle to the {@link RunningJob} which can be used to track the
  46652. running-job.
  46653. @throws FileNotFoundException
  46654. @throws IOException]]>
  46655. </doc>
  46656. </method>
  46657. <method name="submitJobInternal" return="org.apache.hadoop.mapred.RunningJob"
  46658. abstract="false" native="false" synchronized="false"
  46659. static="false" final="false" visibility="public"
  46660. deprecated="not deprecated">
  46661. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  46662. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  46663. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  46664. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  46665. <exception name="IOException" type="java.io.IOException"/>
  46666. <doc>
  46667. <![CDATA[Internal method for submitting jobs to the system.
  46668. @param job the configuration to submit
  46669. @return a proxy object for the running job
  46670. @throws FileNotFoundException
  46671. @throws ClassNotFoundException
  46672. @throws InterruptedException
  46673. @throws IOException]]>
  46674. </doc>
  46675. </method>
  46676. <method name="isJobDirValid" return="boolean"
  46677. abstract="false" native="false" synchronized="false"
  46678. static="true" final="false" visibility="public"
  46679. deprecated="not deprecated">
  46680. <param name="jobDirPath" type="org.apache.hadoop.fs.Path"/>
  46681. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  46682. <exception name="IOException" type="java.io.IOException"/>
  46683. <doc>
  46684. <![CDATA[Checks if the job directory is clean and has all the required components
  46685. for (re) starting the job]]>
  46686. </doc>
  46687. </method>
  46688. <method name="getJob" return="org.apache.hadoop.mapred.RunningJob"
  46689. abstract="false" native="false" synchronized="false"
  46690. static="false" final="false" visibility="public"
  46691. deprecated="not deprecated">
  46692. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  46693. <exception name="IOException" type="java.io.IOException"/>
  46694. <doc>
  46695. <![CDATA[Get an {@link RunningJob} object to track an ongoing job. Returns
  46696. null if the id does not correspond to any known job.
  46697. @param jobid the jobid of the job.
  46698. @return the {@link RunningJob} handle to track the job, null if the
  46699. <code>jobid</code> doesn't correspond to any known job.
  46700. @throws IOException]]>
  46701. </doc>
  46702. </method>
  46703. <method name="getJob" return="org.apache.hadoop.mapred.RunningJob"
  46704. abstract="false" native="false" synchronized="false"
  46705. static="false" final="false" visibility="public"
  46706. deprecated="Applications should rather use {@link #getJob(JobID)}.">
  46707. <param name="jobid" type="java.lang.String"/>
  46708. <exception name="IOException" type="java.io.IOException"/>
  46709. <doc>
  46710. <![CDATA[@deprecated Applications should rather use {@link #getJob(JobID)}.]]>
  46711. </doc>
  46712. </method>
  46713. <method name="getMapTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  46714. abstract="false" native="false" synchronized="false"
  46715. static="false" final="false" visibility="public"
  46716. deprecated="not deprecated">
  46717. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  46718. <exception name="IOException" type="java.io.IOException"/>
  46719. <doc>
  46720. <![CDATA[Get the information of the current state of the map tasks of a job.
  46721. @param jobId the job to query.
  46722. @return the list of all of the map tips.
  46723. @throws IOException]]>
  46724. </doc>
  46725. </method>
  46726. <method name="getMapTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  46727. abstract="false" native="false" synchronized="false"
  46728. static="false" final="false" visibility="public"
  46729. deprecated="Applications should rather use {@link #getMapTaskReports(JobID)}">
  46730. <param name="jobId" type="java.lang.String"/>
  46731. <exception name="IOException" type="java.io.IOException"/>
  46732. <doc>
  46733. <![CDATA[@deprecated Applications should rather use {@link #getMapTaskReports(JobID)}]]>
  46734. </doc>
  46735. </method>
  46736. <method name="getReduceTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  46737. abstract="false" native="false" synchronized="false"
  46738. static="false" final="false" visibility="public"
  46739. deprecated="not deprecated">
  46740. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  46741. <exception name="IOException" type="java.io.IOException"/>
  46742. <doc>
  46743. <![CDATA[Get the information of the current state of the reduce tasks of a job.
  46744. @param jobId the job to query.
  46745. @return the list of all of the reduce tips.
  46746. @throws IOException]]>
  46747. </doc>
  46748. </method>
  46749. <method name="getCleanupTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  46750. abstract="false" native="false" synchronized="false"
  46751. static="false" final="false" visibility="public"
  46752. deprecated="not deprecated">
  46753. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  46754. <exception name="IOException" type="java.io.IOException"/>
  46755. <doc>
  46756. <![CDATA[Get the information of the current state of the cleanup tasks of a job.
  46757. @param jobId the job to query.
  46758. @return the list of all of the cleanup tips.
  46759. @throws IOException]]>
  46760. </doc>
  46761. </method>
  46762. <method name="getSetupTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  46763. abstract="false" native="false" synchronized="false"
  46764. static="false" final="false" visibility="public"
  46765. deprecated="not deprecated">
  46766. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  46767. <exception name="IOException" type="java.io.IOException"/>
  46768. <doc>
  46769. <![CDATA[Get the information of the current state of the setup tasks of a job.
  46770. @param jobId the job to query.
  46771. @return the list of all of the setup tips.
  46772. @throws IOException]]>
  46773. </doc>
  46774. </method>
  46775. <method name="getReduceTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  46776. abstract="false" native="false" synchronized="false"
  46777. static="false" final="false" visibility="public"
  46778. deprecated="Applications should rather use {@link #getReduceTaskReports(JobID)}">
  46779. <param name="jobId" type="java.lang.String"/>
  46780. <exception name="IOException" type="java.io.IOException"/>
  46781. <doc>
  46782. <![CDATA[@deprecated Applications should rather use {@link #getReduceTaskReports(JobID)}]]>
  46783. </doc>
  46784. </method>
  46785. <method name="displayTasks"
  46786. abstract="false" native="false" synchronized="false"
  46787. static="false" final="false" visibility="public"
  46788. deprecated="not deprecated">
  46789. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  46790. <param name="type" type="java.lang.String"/>
  46791. <param name="state" type="java.lang.String"/>
  46792. <exception name="IOException" type="java.io.IOException"/>
  46793. <doc>
  46794. <![CDATA[Display the information about a job's tasks, of a particular type and
  46795. in a particular state
  46796. @param jobId the ID of the job
  46797. @param type the type of the task (map/reduce/setup/cleanup)
  46798. @param state the state of the task
  46799. (pending/running/completed/failed/killed)]]>
  46800. </doc>
  46801. </method>
  46802. <method name="getClusterStatus" return="org.apache.hadoop.mapred.ClusterStatus"
  46803. abstract="false" native="false" synchronized="false"
  46804. static="false" final="false" visibility="public"
  46805. deprecated="not deprecated">
  46806. <exception name="IOException" type="java.io.IOException"/>
  46807. <doc>
  46808. <![CDATA[Get status information about the Map-Reduce cluster.
  46809. @return the status information about the Map-Reduce cluster as an object
  46810. of {@link ClusterStatus}.
  46811. @throws IOException]]>
  46812. </doc>
  46813. </method>
  46814. <method name="getClusterStatus" return="org.apache.hadoop.mapred.ClusterStatus"
  46815. abstract="false" native="false" synchronized="false"
  46816. static="false" final="false" visibility="public"
  46817. deprecated="not deprecated">
  46818. <param name="detailed" type="boolean"/>
  46819. <exception name="IOException" type="java.io.IOException"/>
  46820. <doc>
  46821. <![CDATA[Get status information about the Map-Reduce cluster.
  46822. @param detailed if true then get a detailed status including the
  46823. tracker names and memory usage of the JobTracker
  46824. @return the status information about the Map-Reduce cluster as an object
  46825. of {@link ClusterStatus}.
  46826. @throws IOException]]>
  46827. </doc>
  46828. </method>
  46829. <method name="getStagingAreaDir" return="org.apache.hadoop.fs.Path"
  46830. abstract="false" native="false" synchronized="false"
  46831. static="false" final="false" visibility="public"
  46832. deprecated="not deprecated">
  46833. <exception name="IOException" type="java.io.IOException"/>
  46834. <doc>
  46835. <![CDATA[Grab the jobtracker's view of the staging directory path where
  46836. job-specific files will be placed.
  46837. @return the staging directory where job-specific files are to be placed.]]>
  46838. </doc>
  46839. </method>
  46840. <method name="jobsToComplete" return="org.apache.hadoop.mapred.JobStatus[]"
  46841. abstract="false" native="false" synchronized="false"
  46842. static="false" final="false" visibility="public"
  46843. deprecated="not deprecated">
  46844. <exception name="IOException" type="java.io.IOException"/>
  46845. <doc>
  46846. <![CDATA[Get the jobs that are not completed and not failed.
  46847. @return array of {@link JobStatus} for the running/to-be-run jobs.
  46848. @throws IOException]]>
  46849. </doc>
  46850. </method>
  46851. <method name="getAllJobs" return="org.apache.hadoop.mapred.JobStatus[]"
  46852. abstract="false" native="false" synchronized="false"
  46853. static="false" final="false" visibility="public"
  46854. deprecated="not deprecated">
  46855. <exception name="IOException" type="java.io.IOException"/>
  46856. <doc>
  46857. <![CDATA[Get the jobs that are submitted.
  46858. @return array of {@link JobStatus} for the submitted jobs.
  46859. @throws IOException]]>
  46860. </doc>
  46861. </method>
  46862. <method name="runJob" return="org.apache.hadoop.mapred.RunningJob"
  46863. abstract="false" native="false" synchronized="false"
  46864. static="true" final="false" visibility="public"
  46865. deprecated="not deprecated">
  46866. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  46867. <exception name="IOException" type="java.io.IOException"/>
  46868. <doc>
  46869. <![CDATA[Utility that submits a job, then polls for progress until the job is
  46870. complete.
  46871. @param job the job configuration.
  46872. @throws IOException if the job fails]]>
  46873. </doc>
  46874. </method>
  46875. <method name="monitorAndPrintJob" return="boolean"
  46876. abstract="false" native="false" synchronized="false"
  46877. static="false" final="false" visibility="public"
  46878. deprecated="not deprecated">
  46879. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46880. <param name="job" type="org.apache.hadoop.mapred.RunningJob"/>
  46881. <exception name="IOException" type="java.io.IOException"/>
  46882. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  46883. <doc>
  46884. <![CDATA[Monitor a job and print status in real-time as progress is made and tasks
  46885. fail.
  46886. @param conf the job's configuration
  46887. @param job the job to track
  46888. @return true if the job succeeded
  46889. @throws IOException if communication to the JobTracker fails]]>
  46890. </doc>
  46891. </method>
  46892. <method name="setTaskOutputFilter"
  46893. abstract="false" native="false" synchronized="false"
  46894. static="false" final="false" visibility="public"
  46895. deprecated="not deprecated">
  46896. <param name="newValue" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"/>
  46897. <doc>
  46898. <![CDATA[Sets the output filter for tasks. only those tasks are printed whose
  46899. output matches the filter.
  46900. @param newValue task filter.]]>
  46901. </doc>
  46902. </method>
  46903. <method name="getTaskOutputFilter" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  46904. abstract="false" native="false" synchronized="false"
  46905. static="true" final="false" visibility="public"
  46906. deprecated="not deprecated">
  46907. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  46908. <doc>
  46909. <![CDATA[Get the task output filter out of the JobConf.
  46910. @param job the JobConf to examine.
  46911. @return the filter level.]]>
  46912. </doc>
  46913. </method>
  46914. <method name="setTaskOutputFilter"
  46915. abstract="false" native="false" synchronized="false"
  46916. static="true" final="false" visibility="public"
  46917. deprecated="not deprecated">
  46918. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  46919. <param name="newValue" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"/>
  46920. <doc>
  46921. <![CDATA[Modify the JobConf to set the task output filter.
  46922. @param job the JobConf to modify.
  46923. @param newValue the value to set.]]>
  46924. </doc>
  46925. </method>
  46926. <method name="getTaskOutputFilter" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  46927. abstract="false" native="false" synchronized="false"
  46928. static="false" final="false" visibility="public"
  46929. deprecated="not deprecated">
  46930. <doc>
  46931. <![CDATA[Returns task output filter.
  46932. @return task filter.]]>
  46933. </doc>
  46934. </method>
  46935. <method name="run" return="int"
  46936. abstract="false" native="false" synchronized="false"
  46937. static="false" final="false" visibility="public"
  46938. deprecated="not deprecated">
  46939. <param name="argv" type="java.lang.String[]"/>
  46940. <exception name="Exception" type="java.lang.Exception"/>
  46941. </method>
  46942. <method name="getDefaultMaps" return="int"
  46943. abstract="false" native="false" synchronized="false"
  46944. static="false" final="false" visibility="public"
  46945. deprecated="not deprecated">
  46946. <exception name="IOException" type="java.io.IOException"/>
  46947. <doc>
  46948. <![CDATA[Get status information about the max available Maps in the cluster.
  46949. @return the max available Maps in the cluster
  46950. @throws IOException]]>
  46951. </doc>
  46952. </method>
  46953. <method name="getDefaultReduces" return="int"
  46954. abstract="false" native="false" synchronized="false"
  46955. static="false" final="false" visibility="public"
  46956. deprecated="not deprecated">
  46957. <exception name="IOException" type="java.io.IOException"/>
  46958. <doc>
  46959. <![CDATA[Get status information about the max available Reduces in the cluster.
  46960. @return the max available Reduces in the cluster
  46961. @throws IOException]]>
  46962. </doc>
  46963. </method>
  46964. <method name="getSystemDir" return="org.apache.hadoop.fs.Path"
  46965. abstract="false" native="false" synchronized="false"
  46966. static="false" final="false" visibility="public"
  46967. deprecated="not deprecated">
  46968. <doc>
  46969. <![CDATA[Grab the jobtracker system directory path where job-specific files are to be placed.
  46970. @return the system directory where job-specific files are to be placed.]]>
  46971. </doc>
  46972. </method>
  46973. <method name="getQueues" return="org.apache.hadoop.mapred.JobQueueInfo[]"
  46974. abstract="false" native="false" synchronized="false"
  46975. static="false" final="false" visibility="public"
  46976. deprecated="not deprecated">
  46977. <exception name="IOException" type="java.io.IOException"/>
  46978. <doc>
  46979. <![CDATA[Return an array of queue information objects about all the Job Queues
  46980. configured.
  46981. @return Array of JobQueueInfo objects
  46982. @throws IOException]]>
  46983. </doc>
  46984. </method>
  46985. <method name="getJobsFromQueue" return="org.apache.hadoop.mapred.JobStatus[]"
  46986. abstract="false" native="false" synchronized="false"
  46987. static="false" final="false" visibility="public"
  46988. deprecated="not deprecated">
  46989. <param name="queueName" type="java.lang.String"/>
  46990. <exception name="IOException" type="java.io.IOException"/>
  46991. <doc>
  46992. <![CDATA[Gets all the jobs which were added to particular Job Queue
  46993. @param queueName name of the Job Queue
  46994. @return Array of jobs present in the job queue
  46995. @throws IOException]]>
  46996. </doc>
  46997. </method>
  46998. <method name="getQueueInfo" return="org.apache.hadoop.mapred.JobQueueInfo"
  46999. abstract="false" native="false" synchronized="false"
  47000. static="false" final="false" visibility="public"
  47001. deprecated="not deprecated">
  47002. <param name="queueName" type="java.lang.String"/>
  47003. <exception name="IOException" type="java.io.IOException"/>
  47004. <doc>
  47005. <![CDATA[Gets the queue information associated to a particular Job Queue
  47006. @param queueName name of the job queue.
  47007. @return Queue information associated to particular queue.
  47008. @throws IOException]]>
  47009. </doc>
  47010. </method>
  47011. <method name="getQueueAclsForCurrentUser" return="org.apache.hadoop.mapred.QueueAclsInfo[]"
  47012. abstract="false" native="false" synchronized="false"
  47013. static="false" final="false" visibility="public"
  47014. deprecated="not deprecated">
  47015. <exception name="IOException" type="java.io.IOException"/>
  47016. <doc>
  47017. <![CDATA[Gets the Queue ACLs for current user
  47018. @return array of QueueAclsInfo object for current user.
  47019. @throws IOException]]>
  47020. </doc>
  47021. </method>
  47022. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  47023. abstract="false" native="false" synchronized="false"
  47024. static="false" final="false" visibility="public"
  47025. deprecated="not deprecated">
  47026. <param name="renewer" type="org.apache.hadoop.io.Text"/>
  47027. <exception name="IOException" type="java.io.IOException"/>
  47028. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  47029. </method>
  47030. <method name="renewDelegationToken" return="long"
  47031. abstract="false" native="false" synchronized="false"
  47032. static="false" final="false" visibility="public"
  47033. deprecated="not deprecated">
  47034. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  47035. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  47036. <exception name="IOException" type="java.io.IOException"/>
  47037. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  47038. <doc>
  47039. <![CDATA[Renew a delegation token
  47040. @param token the token to renew
  47041. @return the new expiration time
  47042. @throws InvalidToken
  47043. @throws IOException]]>
  47044. </doc>
  47045. </method>
  47046. <method name="cancelDelegationToken"
  47047. abstract="false" native="false" synchronized="false"
  47048. static="false" final="false" visibility="public"
  47049. deprecated="not deprecated">
  47050. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  47051. <exception name="IOException" type="java.io.IOException"/>
  47052. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  47053. <doc>
  47054. <![CDATA[Cancel a delegation token from the JobTracker
  47055. @param token the token to cancel
  47056. @throws IOException]]>
  47057. </doc>
  47058. </method>
  47059. <method name="main"
  47060. abstract="false" native="false" synchronized="false"
  47061. static="true" final="false" visibility="public"
  47062. deprecated="not deprecated">
  47063. <param name="argv" type="java.lang.String[]"/>
  47064. <exception name="Exception" type="java.lang.Exception"/>
  47065. </method>
  47066. <field name="MAPREDUCE_CLIENT_RETRY_POLICY_ENABLED_KEY" type="java.lang.String"
  47067. transient="false" volatile="false"
  47068. static="true" final="true" visibility="public"
  47069. deprecated="not deprecated">
  47070. </field>
  47071. <field name="MAPREDUCE_CLIENT_RETRY_POLICY_ENABLED_DEFAULT" type="boolean"
  47072. transient="false" volatile="false"
  47073. static="true" final="true" visibility="public"
  47074. deprecated="not deprecated">
  47075. </field>
  47076. <field name="MAPREDUCE_CLIENT_RETRY_POLICY_SPEC_KEY" type="java.lang.String"
  47077. transient="false" volatile="false"
  47078. static="true" final="true" visibility="public"
  47079. deprecated="not deprecated">
  47080. </field>
  47081. <field name="MAPREDUCE_CLIENT_RETRY_POLICY_SPEC_DEFAULT" type="java.lang.String"
  47082. transient="false" volatile="false"
  47083. static="true" final="true" visibility="public"
  47084. deprecated="not deprecated">
  47085. </field>
  47086. <doc>
  47087. <![CDATA[<code>JobClient</code> is the primary interface for the user-job to interact
  47088. with the {@link JobTracker}.
  47089. <code>JobClient</code> provides facilities to submit jobs, track their
  47090. progress, access component-tasks' reports/logs, get the Map-Reduce cluster
  47091. status information etc.
  47092. <p>The job submission process involves:
  47093. <ol>
  47094. <li>
  47095. Checking the input and output specifications of the job.
  47096. </li>
  47097. <li>
  47098. Computing the {@link InputSplit}s for the job.
  47099. </li>
  47100. <li>
  47101. Setup the requisite accounting information for the {@link DistributedCache}
  47102. of the job, if necessary.
  47103. </li>
  47104. <li>
  47105. Copying the job's jar and configuration to the map-reduce system directory
  47106. on the distributed file-system.
  47107. </li>
  47108. <li>
  47109. Submitting the job to the <code>JobTracker</code> and optionally monitoring
  47110. it's status.
  47111. </li>
  47112. </ol></p>
  47113. Normally the user creates the application, describes various facets of the
  47114. job via {@link JobConf} and then uses the <code>JobClient</code> to submit
  47115. the job and monitor its progress.
  47116. <p>Here is an example on how to use <code>JobClient</code>:</p>
  47117. <p><blockquote><pre>
  47118. // Create a new JobConf
  47119. JobConf job = new JobConf(new Configuration(), MyJob.class);
  47120. // Specify various job-specific parameters
  47121. job.setJobName("myjob");
  47122. job.setInputPath(new Path("in"));
  47123. job.setOutputPath(new Path("out"));
  47124. job.setMapperClass(MyJob.MyMapper.class);
  47125. job.setReducerClass(MyJob.MyReducer.class);
  47126. // Submit the job, then poll for progress until the job is complete
  47127. JobClient.runJob(job);
  47128. </pre></blockquote></p>
  47129. <h4 id="JobControl">Job Control</h4>
  47130. <p>At times clients would chain map-reduce jobs to accomplish complex tasks
  47131. which cannot be done via a single map-reduce job. This is fairly easy since
  47132. the output of the job, typically, goes to distributed file-system and that
  47133. can be used as the input for the next job.</p>
  47134. <p>However, this also means that the onus on ensuring jobs are complete
  47135. (success/failure) lies squarely on the clients. In such situations the
  47136. various job-control options are:
  47137. <ol>
  47138. <li>
  47139. {@link #runJob(JobConf)} : submits the job and returns only after
  47140. the job has completed.
  47141. </li>
  47142. <li>
  47143. {@link #submitJob(JobConf)} : only submits the job, then poll the
  47144. returned handle to the {@link RunningJob} to query status and make
  47145. scheduling decisions.
  47146. </li>
  47147. <li>
  47148. {@link JobConf#setJobEndNotificationURI(String)} : setup a notification
  47149. on job-completion, thus avoiding polling.
  47150. </li>
  47151. </ol></p>
  47152. @see JobConf
  47153. @see ClusterStatus
  47154. @see Tool
  47155. @see DistributedCache]]>
  47156. </doc>
  47157. </class>
  47158. <!-- end class org.apache.hadoop.mapred.JobClient -->
  47159. <!-- start class org.apache.hadoop.mapred.JobClient.Renewer -->
  47160. <class name="JobClient.Renewer" extends="org.apache.hadoop.security.token.TokenRenewer"
  47161. abstract="false"
  47162. static="true" final="false" visibility="public"
  47163. deprecated="not deprecated">
  47164. <constructor name="JobClient.Renewer"
  47165. static="false" final="false" visibility="public"
  47166. deprecated="not deprecated">
  47167. </constructor>
  47168. <method name="handleKind" return="boolean"
  47169. abstract="false" native="false" synchronized="false"
  47170. static="false" final="false" visibility="public"
  47171. deprecated="not deprecated">
  47172. <param name="kind" type="org.apache.hadoop.io.Text"/>
  47173. </method>
  47174. <method name="renew" return="long"
  47175. abstract="false" native="false" synchronized="false"
  47176. static="false" final="false" visibility="public"
  47177. deprecated="not deprecated">
  47178. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  47179. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  47180. <exception name="IOException" type="java.io.IOException"/>
  47181. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  47182. </method>
  47183. <method name="cancel"
  47184. abstract="false" native="false" synchronized="false"
  47185. static="false" final="false" visibility="public"
  47186. deprecated="not deprecated">
  47187. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  47188. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  47189. <exception name="IOException" type="java.io.IOException"/>
  47190. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  47191. </method>
  47192. <method name="isManaged" return="boolean"
  47193. abstract="false" native="false" synchronized="false"
  47194. static="false" final="false" visibility="public"
  47195. deprecated="not deprecated">
  47196. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  47197. <exception name="IOException" type="java.io.IOException"/>
  47198. </method>
  47199. </class>
  47200. <!-- end class org.apache.hadoop.mapred.JobClient.Renewer -->
  47201. <!-- start class org.apache.hadoop.mapred.JobClient.TaskStatusFilter -->
  47202. <class name="JobClient.TaskStatusFilter" extends="java.lang.Enum"
  47203. abstract="false"
  47204. static="true" final="true" visibility="public"
  47205. deprecated="not deprecated">
  47206. <method name="values" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter[]"
  47207. abstract="false" native="false" synchronized="false"
  47208. static="true" final="false" visibility="public"
  47209. deprecated="not deprecated">
  47210. </method>
  47211. <method name="valueOf" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  47212. abstract="false" native="false" synchronized="false"
  47213. static="true" final="false" visibility="public"
  47214. deprecated="not deprecated">
  47215. <param name="name" type="java.lang.String"/>
  47216. </method>
  47217. <field name="NONE" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  47218. transient="false" volatile="false"
  47219. static="true" final="true" visibility="public"
  47220. deprecated="not deprecated">
  47221. </field>
  47222. <field name="KILLED" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  47223. transient="false" volatile="false"
  47224. static="true" final="true" visibility="public"
  47225. deprecated="not deprecated">
  47226. </field>
  47227. <field name="FAILED" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  47228. transient="false" volatile="false"
  47229. static="true" final="true" visibility="public"
  47230. deprecated="not deprecated">
  47231. </field>
  47232. <field name="SUCCEEDED" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  47233. transient="false" volatile="false"
  47234. static="true" final="true" visibility="public"
  47235. deprecated="not deprecated">
  47236. </field>
  47237. <field name="ALL" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  47238. transient="false" volatile="false"
  47239. static="true" final="true" visibility="public"
  47240. deprecated="not deprecated">
  47241. </field>
  47242. </class>
  47243. <!-- end class org.apache.hadoop.mapred.JobClient.TaskStatusFilter -->
  47244. <!-- start class org.apache.hadoop.mapred.JobConf -->
  47245. <class name="JobConf" extends="org.apache.hadoop.conf.Configuration"
  47246. abstract="false"
  47247. static="false" final="false" visibility="public"
  47248. deprecated="not deprecated">
  47249. <constructor name="JobConf"
  47250. static="false" final="false" visibility="public"
  47251. deprecated="not deprecated">
  47252. <doc>
  47253. <![CDATA[Construct a map/reduce job configuration.]]>
  47254. </doc>
  47255. </constructor>
  47256. <constructor name="JobConf" type="java.lang.Class"
  47257. static="false" final="false" visibility="public"
  47258. deprecated="not deprecated">
  47259. <doc>
  47260. <![CDATA[Construct a map/reduce job configuration.
  47261. @param exampleClass a class whose containing jar is used as the job's jar.]]>
  47262. </doc>
  47263. </constructor>
  47264. <constructor name="JobConf" type="org.apache.hadoop.conf.Configuration"
  47265. static="false" final="false" visibility="public"
  47266. deprecated="not deprecated">
  47267. <doc>
  47268. <![CDATA[Construct a map/reduce job configuration.
  47269. @param conf a Configuration whose settings will be inherited.]]>
  47270. </doc>
  47271. </constructor>
  47272. <constructor name="JobConf" type="org.apache.hadoop.conf.Configuration, java.lang.Class"
  47273. static="false" final="false" visibility="public"
  47274. deprecated="not deprecated">
  47275. <doc>
  47276. <![CDATA[Construct a map/reduce job configuration.
  47277. @param conf a Configuration whose settings will be inherited.
  47278. @param exampleClass a class whose containing jar is used as the job's jar.]]>
  47279. </doc>
  47280. </constructor>
  47281. <constructor name="JobConf" type="java.lang.String"
  47282. static="false" final="false" visibility="public"
  47283. deprecated="not deprecated">
  47284. <doc>
  47285. <![CDATA[Construct a map/reduce configuration.
  47286. @param config a Configuration-format XML job description file.]]>
  47287. </doc>
  47288. </constructor>
  47289. <constructor name="JobConf" type="org.apache.hadoop.fs.Path"
  47290. static="false" final="false" visibility="public"
  47291. deprecated="not deprecated">
  47292. <doc>
  47293. <![CDATA[Construct a map/reduce configuration.
  47294. @param config a Configuration-format XML job description file.]]>
  47295. </doc>
  47296. </constructor>
  47297. <constructor name="JobConf" type="boolean"
  47298. static="false" final="false" visibility="public"
  47299. deprecated="not deprecated">
  47300. <doc>
  47301. <![CDATA[A new map/reduce configuration where the behavior of reading from the
  47302. default resources can be turned off.
  47303. <p/>
  47304. If the parameter {@code loadDefaults} is false, the new instance
  47305. will not load resources from the default files.
  47306. @param loadDefaults specifies whether to load from the default files]]>
  47307. </doc>
  47308. </constructor>
  47309. <method name="getCredentials" return="org.apache.hadoop.security.Credentials"
  47310. abstract="false" native="false" synchronized="false"
  47311. static="false" final="false" visibility="public"
  47312. deprecated="not deprecated">
  47313. <doc>
  47314. <![CDATA[Get credentials for the job.
  47315. @return credentials for the job]]>
  47316. </doc>
  47317. </method>
  47318. <method name="getJar" return="java.lang.String"
  47319. abstract="false" native="false" synchronized="false"
  47320. static="false" final="false" visibility="public"
  47321. deprecated="not deprecated">
  47322. <doc>
  47323. <![CDATA[Get the user jar for the map-reduce job.
  47324. @return the user jar for the map-reduce job.]]>
  47325. </doc>
  47326. </method>
  47327. <method name="setJar"
  47328. abstract="false" native="false" synchronized="false"
  47329. static="false" final="false" visibility="public"
  47330. deprecated="not deprecated">
  47331. <param name="jar" type="java.lang.String"/>
  47332. <doc>
  47333. <![CDATA[Set the user jar for the map-reduce job.
  47334. @param jar the user jar for the map-reduce job.]]>
  47335. </doc>
  47336. </method>
  47337. <method name="setJarByClass"
  47338. abstract="false" native="false" synchronized="false"
  47339. static="false" final="false" visibility="public"
  47340. deprecated="not deprecated">
  47341. <param name="cls" type="java.lang.Class"/>
  47342. <doc>
  47343. <![CDATA[Set the job's jar file by finding an example class location.
  47344. @param cls the example class.]]>
  47345. </doc>
  47346. </method>
  47347. <method name="getLocalDirs" return="java.lang.String[]"
  47348. abstract="false" native="false" synchronized="false"
  47349. static="false" final="false" visibility="public"
  47350. deprecated="not deprecated">
  47351. <exception name="IOException" type="java.io.IOException"/>
  47352. </method>
  47353. <method name="deleteLocalFiles"
  47354. abstract="false" native="false" synchronized="false"
  47355. static="false" final="false" visibility="public"
  47356. deprecated="not deprecated">
  47357. <exception name="IOException" type="java.io.IOException"/>
  47358. </method>
  47359. <method name="deleteLocalFiles"
  47360. abstract="false" native="false" synchronized="false"
  47361. static="false" final="false" visibility="public"
  47362. deprecated="not deprecated">
  47363. <param name="subdir" type="java.lang.String"/>
  47364. <exception name="IOException" type="java.io.IOException"/>
  47365. </method>
  47366. <method name="getLocalPath" return="org.apache.hadoop.fs.Path"
  47367. abstract="false" native="false" synchronized="false"
  47368. static="false" final="false" visibility="public"
  47369. deprecated="not deprecated">
  47370. <param name="pathString" type="java.lang.String"/>
  47371. <exception name="IOException" type="java.io.IOException"/>
  47372. <doc>
  47373. <![CDATA[Constructs a local file name. Files are distributed among configured
  47374. local directories.]]>
  47375. </doc>
  47376. </method>
  47377. <method name="getUser" return="java.lang.String"
  47378. abstract="false" native="false" synchronized="false"
  47379. static="false" final="false" visibility="public"
  47380. deprecated="not deprecated">
  47381. <doc>
  47382. <![CDATA[Get the reported username for this job.
  47383. @return the username]]>
  47384. </doc>
  47385. </method>
  47386. <method name="setUser"
  47387. abstract="false" native="false" synchronized="false"
  47388. static="false" final="false" visibility="public"
  47389. deprecated="not deprecated">
  47390. <param name="user" type="java.lang.String"/>
  47391. <doc>
  47392. <![CDATA[Set the reported username for this job.
  47393. @param user the username for this job.]]>
  47394. </doc>
  47395. </method>
  47396. <method name="setKeepFailedTaskFiles"
  47397. abstract="false" native="false" synchronized="false"
  47398. static="false" final="false" visibility="public"
  47399. deprecated="not deprecated">
  47400. <param name="keep" type="boolean"/>
  47401. <doc>
  47402. <![CDATA[Set whether the framework should keep the intermediate files for
  47403. failed tasks.
  47404. @param keep <code>true</code> if framework should keep the intermediate files
  47405. for failed tasks, <code>false</code> otherwise.]]>
  47406. </doc>
  47407. </method>
  47408. <method name="getKeepFailedTaskFiles" return="boolean"
  47409. abstract="false" native="false" synchronized="false"
  47410. static="false" final="false" visibility="public"
  47411. deprecated="not deprecated">
  47412. <doc>
  47413. <![CDATA[Should the temporary files for failed tasks be kept?
  47414. @return should the files be kept?]]>
  47415. </doc>
  47416. </method>
  47417. <method name="setKeepTaskFilesPattern"
  47418. abstract="false" native="false" synchronized="false"
  47419. static="false" final="false" visibility="public"
  47420. deprecated="not deprecated">
  47421. <param name="pattern" type="java.lang.String"/>
  47422. <doc>
  47423. <![CDATA[Set a regular expression for task names that should be kept.
  47424. The regular expression ".*_m_000123_0" would keep the files
  47425. for the first instance of map 123 that ran.
  47426. @param pattern the java.util.regex.Pattern to match against the
  47427. task names.]]>
  47428. </doc>
  47429. </method>
  47430. <method name="getKeepTaskFilesPattern" return="java.lang.String"
  47431. abstract="false" native="false" synchronized="false"
  47432. static="false" final="false" visibility="public"
  47433. deprecated="not deprecated">
  47434. <doc>
  47435. <![CDATA[Get the regular expression that is matched against the task names
  47436. to see if we need to keep the files.
  47437. @return the pattern as a string, if it was set, othewise null.]]>
  47438. </doc>
  47439. </method>
  47440. <method name="setWorkingDirectory"
  47441. abstract="false" native="false" synchronized="false"
  47442. static="false" final="false" visibility="public"
  47443. deprecated="not deprecated">
  47444. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  47445. <doc>
  47446. <![CDATA[Set the current working directory for the default file system.
  47447. @param dir the new current working directory.]]>
  47448. </doc>
  47449. </method>
  47450. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  47451. abstract="false" native="false" synchronized="false"
  47452. static="false" final="false" visibility="public"
  47453. deprecated="not deprecated">
  47454. <doc>
  47455. <![CDATA[Get the current working directory for the default file system.
  47456. @return the directory name.]]>
  47457. </doc>
  47458. </method>
  47459. <method name="setNumTasksToExecutePerJvm"
  47460. abstract="false" native="false" synchronized="false"
  47461. static="false" final="false" visibility="public"
  47462. deprecated="not deprecated">
  47463. <param name="numTasks" type="int"/>
  47464. <doc>
  47465. <![CDATA[Sets the number of tasks that a spawned task JVM should run
  47466. before it exits
  47467. @param numTasks the number of tasks to execute; defaults to 1;
  47468. -1 signifies no limit]]>
  47469. </doc>
  47470. </method>
  47471. <method name="getNumTasksToExecutePerJvm" return="int"
  47472. abstract="false" native="false" synchronized="false"
  47473. static="false" final="false" visibility="public"
  47474. deprecated="not deprecated">
  47475. <doc>
  47476. <![CDATA[Get the number of tasks that a spawned JVM should execute]]>
  47477. </doc>
  47478. </method>
  47479. <method name="getInputFormat" return="org.apache.hadoop.mapred.InputFormat"
  47480. abstract="false" native="false" synchronized="false"
  47481. static="false" final="false" visibility="public"
  47482. deprecated="not deprecated">
  47483. <doc>
  47484. <![CDATA[Get the {@link InputFormat} implementation for the map-reduce job,
  47485. defaults to {@link TextInputFormat} if not specified explicity.
  47486. @return the {@link InputFormat} implementation for the map-reduce job.]]>
  47487. </doc>
  47488. </method>
  47489. <method name="setInputFormat"
  47490. abstract="false" native="false" synchronized="false"
  47491. static="false" final="false" visibility="public"
  47492. deprecated="not deprecated">
  47493. <param name="theClass" type="java.lang.Class"/>
  47494. <doc>
  47495. <![CDATA[Set the {@link InputFormat} implementation for the map-reduce job.
  47496. @param theClass the {@link InputFormat} implementation for the map-reduce
  47497. job.]]>
  47498. </doc>
  47499. </method>
  47500. <method name="getOutputFormat" return="org.apache.hadoop.mapred.OutputFormat"
  47501. abstract="false" native="false" synchronized="false"
  47502. static="false" final="false" visibility="public"
  47503. deprecated="not deprecated">
  47504. <doc>
  47505. <![CDATA[Get the {@link OutputFormat} implementation for the map-reduce job,
  47506. defaults to {@link TextOutputFormat} if not specified explicity.
  47507. @return the {@link OutputFormat} implementation for the map-reduce job.]]>
  47508. </doc>
  47509. </method>
  47510. <method name="getOutputCommitter" return="org.apache.hadoop.mapred.OutputCommitter"
  47511. abstract="false" native="false" synchronized="false"
  47512. static="false" final="false" visibility="public"
  47513. deprecated="not deprecated">
  47514. <doc>
  47515. <![CDATA[Get the {@link OutputCommitter} implementation for the map-reduce job,
  47516. defaults to {@link FileOutputCommitter} if not specified explicitly.
  47517. @return the {@link OutputCommitter} implementation for the map-reduce job.]]>
  47518. </doc>
  47519. </method>
  47520. <method name="setOutputCommitter"
  47521. abstract="false" native="false" synchronized="false"
  47522. static="false" final="false" visibility="public"
  47523. deprecated="not deprecated">
  47524. <param name="theClass" type="java.lang.Class"/>
  47525. <doc>
  47526. <![CDATA[Set the {@link OutputCommitter} implementation for the map-reduce job.
  47527. @param theClass the {@link OutputCommitter} implementation for the map-reduce
  47528. job.]]>
  47529. </doc>
  47530. </method>
  47531. <method name="setOutputFormat"
  47532. abstract="false" native="false" synchronized="false"
  47533. static="false" final="false" visibility="public"
  47534. deprecated="not deprecated">
  47535. <param name="theClass" type="java.lang.Class"/>
  47536. <doc>
  47537. <![CDATA[Set the {@link OutputFormat} implementation for the map-reduce job.
  47538. @param theClass the {@link OutputFormat} implementation for the map-reduce
  47539. job.]]>
  47540. </doc>
  47541. </method>
  47542. <method name="setCompressMapOutput"
  47543. abstract="false" native="false" synchronized="false"
  47544. static="false" final="false" visibility="public"
  47545. deprecated="not deprecated">
  47546. <param name="compress" type="boolean"/>
  47547. <doc>
  47548. <![CDATA[Should the map outputs be compressed before transfer?
  47549. Uses the SequenceFile compression.
  47550. @param compress should the map outputs be compressed?]]>
  47551. </doc>
  47552. </method>
  47553. <method name="getCompressMapOutput" return="boolean"
  47554. abstract="false" native="false" synchronized="false"
  47555. static="false" final="false" visibility="public"
  47556. deprecated="not deprecated">
  47557. <doc>
  47558. <![CDATA[Are the outputs of the maps be compressed?
  47559. @return <code>true</code> if the outputs of the maps are to be compressed,
  47560. <code>false</code> otherwise.]]>
  47561. </doc>
  47562. </method>
  47563. <method name="setMapOutputCompressorClass"
  47564. abstract="false" native="false" synchronized="false"
  47565. static="false" final="false" visibility="public"
  47566. deprecated="not deprecated">
  47567. <param name="codecClass" type="java.lang.Class"/>
  47568. <doc>
  47569. <![CDATA[Set the given class as the {@link CompressionCodec} for the map outputs.
  47570. @param codecClass the {@link CompressionCodec} class that will compress
  47571. the map outputs.]]>
  47572. </doc>
  47573. </method>
  47574. <method name="getMapOutputCompressorClass" return="java.lang.Class"
  47575. abstract="false" native="false" synchronized="false"
  47576. static="false" final="false" visibility="public"
  47577. deprecated="not deprecated">
  47578. <param name="defaultValue" type="java.lang.Class"/>
  47579. <doc>
  47580. <![CDATA[Get the {@link CompressionCodec} for compressing the map outputs.
  47581. @param defaultValue the {@link CompressionCodec} to return if not set
  47582. @return the {@link CompressionCodec} class that should be used to compress the
  47583. map outputs.
  47584. @throws IllegalArgumentException if the class was specified, but not found]]>
  47585. </doc>
  47586. </method>
  47587. <method name="getMapOutputKeyClass" return="java.lang.Class"
  47588. abstract="false" native="false" synchronized="false"
  47589. static="false" final="false" visibility="public"
  47590. deprecated="not deprecated">
  47591. <doc>
  47592. <![CDATA[Get the key class for the map output data. If it is not set, use the
  47593. (final) output key class. This allows the map output key class to be
  47594. different than the final output key class.
  47595. @return the map output key class.]]>
  47596. </doc>
  47597. </method>
  47598. <method name="setMapOutputKeyClass"
  47599. abstract="false" native="false" synchronized="false"
  47600. static="false" final="false" visibility="public"
  47601. deprecated="not deprecated">
  47602. <param name="theClass" type="java.lang.Class"/>
  47603. <doc>
  47604. <![CDATA[Set the key class for the map output data. This allows the user to
  47605. specify the map output key class to be different than the final output
  47606. value class.
  47607. @param theClass the map output key class.]]>
  47608. </doc>
  47609. </method>
  47610. <method name="getMapOutputValueClass" return="java.lang.Class"
  47611. abstract="false" native="false" synchronized="false"
  47612. static="false" final="false" visibility="public"
  47613. deprecated="not deprecated">
  47614. <doc>
  47615. <![CDATA[Get the value class for the map output data. If it is not set, use the
  47616. (final) output value class This allows the map output value class to be
  47617. different than the final output value class.
  47618. @return the map output value class.]]>
  47619. </doc>
  47620. </method>
  47621. <method name="setMapOutputValueClass"
  47622. abstract="false" native="false" synchronized="false"
  47623. static="false" final="false" visibility="public"
  47624. deprecated="not deprecated">
  47625. <param name="theClass" type="java.lang.Class"/>
  47626. <doc>
  47627. <![CDATA[Set the value class for the map output data. This allows the user to
  47628. specify the map output value class to be different than the final output
  47629. value class.
  47630. @param theClass the map output value class.]]>
  47631. </doc>
  47632. </method>
  47633. <method name="getOutputKeyClass" return="java.lang.Class"
  47634. abstract="false" native="false" synchronized="false"
  47635. static="false" final="false" visibility="public"
  47636. deprecated="not deprecated">
  47637. <doc>
  47638. <![CDATA[Get the key class for the job output data.
  47639. @return the key class for the job output data.]]>
  47640. </doc>
  47641. </method>
  47642. <method name="setOutputKeyClass"
  47643. abstract="false" native="false" synchronized="false"
  47644. static="false" final="false" visibility="public"
  47645. deprecated="not deprecated">
  47646. <param name="theClass" type="java.lang.Class"/>
  47647. <doc>
  47648. <![CDATA[Set the key class for the job output data.
  47649. @param theClass the key class for the job output data.]]>
  47650. </doc>
  47651. </method>
  47652. <method name="getOutputKeyComparator" return="org.apache.hadoop.io.RawComparator"
  47653. abstract="false" native="false" synchronized="false"
  47654. static="false" final="false" visibility="public"
  47655. deprecated="not deprecated">
  47656. <doc>
  47657. <![CDATA[Get the {@link RawComparator} comparator used to compare keys.
  47658. @return the {@link RawComparator} comparator used to compare keys.]]>
  47659. </doc>
  47660. </method>
  47661. <method name="setOutputKeyComparatorClass"
  47662. abstract="false" native="false" synchronized="false"
  47663. static="false" final="false" visibility="public"
  47664. deprecated="not deprecated">
  47665. <param name="theClass" type="java.lang.Class"/>
  47666. <doc>
  47667. <![CDATA[Set the {@link RawComparator} comparator used to compare keys.
  47668. @param theClass the {@link RawComparator} comparator used to
  47669. compare keys.
  47670. @see #setOutputValueGroupingComparator(Class)]]>
  47671. </doc>
  47672. </method>
  47673. <method name="setKeyFieldComparatorOptions"
  47674. abstract="false" native="false" synchronized="false"
  47675. static="false" final="false" visibility="public"
  47676. deprecated="not deprecated">
  47677. <param name="keySpec" type="java.lang.String"/>
  47678. <doc>
  47679. <![CDATA[Set the {@link KeyFieldBasedComparator} options used to compare keys.
  47680. @param keySpec the key specification of the form -k pos1[,pos2], where,
  47681. pos is of the form f[.c][opts], where f is the number
  47682. of the key field to use, and c is the number of the first character from
  47683. the beginning of the field. Fields and character posns are numbered
  47684. starting with 1; a character position of zero in pos2 indicates the
  47685. field's last character. If '.c' is omitted from pos1, it defaults to 1
  47686. (the beginning of the field); if omitted from pos2, it defaults to 0
  47687. (the end of the field). opts are ordering options. The supported options
  47688. are:
  47689. -n, (Sort numerically)
  47690. -r, (Reverse the result of comparison)]]>
  47691. </doc>
  47692. </method>
  47693. <method name="getKeyFieldComparatorOption" return="java.lang.String"
  47694. abstract="false" native="false" synchronized="false"
  47695. static="false" final="false" visibility="public"
  47696. deprecated="not deprecated">
  47697. <doc>
  47698. <![CDATA[Get the {@link KeyFieldBasedComparator} options]]>
  47699. </doc>
  47700. </method>
  47701. <method name="setKeyFieldPartitionerOptions"
  47702. abstract="false" native="false" synchronized="false"
  47703. static="false" final="false" visibility="public"
  47704. deprecated="not deprecated">
  47705. <param name="keySpec" type="java.lang.String"/>
  47706. <doc>
  47707. <![CDATA[Set the {@link KeyFieldBasedPartitioner} options used for
  47708. {@link Partitioner}
  47709. @param keySpec the key specification of the form -k pos1[,pos2], where,
  47710. pos is of the form f[.c][opts], where f is the number
  47711. of the key field to use, and c is the number of the first character from
  47712. the beginning of the field. Fields and character posns are numbered
  47713. starting with 1; a character position of zero in pos2 indicates the
  47714. field's last character. If '.c' is omitted from pos1, it defaults to 1
  47715. (the beginning of the field); if omitted from pos2, it defaults to 0
  47716. (the end of the field).]]>
  47717. </doc>
  47718. </method>
  47719. <method name="getKeyFieldPartitionerOption" return="java.lang.String"
  47720. abstract="false" native="false" synchronized="false"
  47721. static="false" final="false" visibility="public"
  47722. deprecated="not deprecated">
  47723. <doc>
  47724. <![CDATA[Get the {@link KeyFieldBasedPartitioner} options]]>
  47725. </doc>
  47726. </method>
  47727. <method name="getOutputValueGroupingComparator" return="org.apache.hadoop.io.RawComparator"
  47728. abstract="false" native="false" synchronized="false"
  47729. static="false" final="false" visibility="public"
  47730. deprecated="not deprecated">
  47731. <doc>
  47732. <![CDATA[Get the user defined {@link WritableComparable} comparator for
  47733. grouping keys of inputs to the reduce.
  47734. @return comparator set by the user for grouping values.
  47735. @see #setOutputValueGroupingComparator(Class) for details.]]>
  47736. </doc>
  47737. </method>
  47738. <method name="setOutputValueGroupingComparator"
  47739. abstract="false" native="false" synchronized="false"
  47740. static="false" final="false" visibility="public"
  47741. deprecated="not deprecated">
  47742. <param name="theClass" type="java.lang.Class"/>
  47743. <doc>
  47744. <![CDATA[Set the user defined {@link RawComparator} comparator for
  47745. grouping keys in the input to the reduce.
  47746. <p>This comparator should be provided if the equivalence rules for keys
  47747. for sorting the intermediates are different from those for grouping keys
  47748. before each call to
  47749. {@link Reducer#reduce(Object, java.util.Iterator, OutputCollector, Reporter)}.</p>
  47750. <p>For key-value pairs (K1,V1) and (K2,V2), the values (V1, V2) are passed
  47751. in a single call to the reduce function if K1 and K2 compare as equal.</p>
  47752. <p>Since {@link #setOutputKeyComparatorClass(Class)} can be used to control
  47753. how keys are sorted, this can be used in conjunction to simulate
  47754. <i>secondary sort on values</i>.</p>
  47755. <p><i>Note</i>: This is not a guarantee of the reduce sort being
  47756. <i>stable</i> in any sense. (In any case, with the order of available
  47757. map-outputs to the reduce being non-deterministic, it wouldn't make
  47758. that much sense.)</p>
  47759. @param theClass the comparator class to be used for grouping keys.
  47760. It should implement <code>RawComparator</code>.
  47761. @see #setOutputKeyComparatorClass(Class)]]>
  47762. </doc>
  47763. </method>
  47764. <method name="getUseNewMapper" return="boolean"
  47765. abstract="false" native="false" synchronized="false"
  47766. static="false" final="false" visibility="public"
  47767. deprecated="not deprecated">
  47768. <doc>
  47769. <![CDATA[Should the framework use the new context-object code for running
  47770. the mapper?
  47771. @return true, if the new api should be used]]>
  47772. </doc>
  47773. </method>
  47774. <method name="setUseNewMapper"
  47775. abstract="false" native="false" synchronized="false"
  47776. static="false" final="false" visibility="public"
  47777. deprecated="not deprecated">
  47778. <param name="flag" type="boolean"/>
  47779. <doc>
  47780. <![CDATA[Set whether the framework should use the new api for the mapper.
  47781. This is the default for jobs submitted with the new Job api.
  47782. @param flag true, if the new api should be used]]>
  47783. </doc>
  47784. </method>
  47785. <method name="getUseNewReducer" return="boolean"
  47786. abstract="false" native="false" synchronized="false"
  47787. static="false" final="false" visibility="public"
  47788. deprecated="not deprecated">
  47789. <doc>
  47790. <![CDATA[Should the framework use the new context-object code for running
  47791. the reducer?
  47792. @return true, if the new api should be used]]>
  47793. </doc>
  47794. </method>
  47795. <method name="setUseNewReducer"
  47796. abstract="false" native="false" synchronized="false"
  47797. static="false" final="false" visibility="public"
  47798. deprecated="not deprecated">
  47799. <param name="flag" type="boolean"/>
  47800. <doc>
  47801. <![CDATA[Set whether the framework should use the new api for the reducer.
  47802. This is the default for jobs submitted with the new Job api.
  47803. @param flag true, if the new api should be used]]>
  47804. </doc>
  47805. </method>
  47806. <method name="getOutputValueClass" return="java.lang.Class"
  47807. abstract="false" native="false" synchronized="false"
  47808. static="false" final="false" visibility="public"
  47809. deprecated="not deprecated">
  47810. <doc>
  47811. <![CDATA[Get the value class for job outputs.
  47812. @return the value class for job outputs.]]>
  47813. </doc>
  47814. </method>
  47815. <method name="setOutputValueClass"
  47816. abstract="false" native="false" synchronized="false"
  47817. static="false" final="false" visibility="public"
  47818. deprecated="not deprecated">
  47819. <param name="theClass" type="java.lang.Class"/>
  47820. <doc>
  47821. <![CDATA[Set the value class for job outputs.
  47822. @param theClass the value class for job outputs.]]>
  47823. </doc>
  47824. </method>
  47825. <method name="getMapperClass" return="java.lang.Class"
  47826. abstract="false" native="false" synchronized="false"
  47827. static="false" final="false" visibility="public"
  47828. deprecated="not deprecated">
  47829. <doc>
  47830. <![CDATA[Get the {@link Mapper} class for the job.
  47831. @return the {@link Mapper} class for the job.]]>
  47832. </doc>
  47833. </method>
  47834. <method name="setMapperClass"
  47835. abstract="false" native="false" synchronized="false"
  47836. static="false" final="false" visibility="public"
  47837. deprecated="not deprecated">
  47838. <param name="theClass" type="java.lang.Class"/>
  47839. <doc>
  47840. <![CDATA[Set the {@link Mapper} class for the job.
  47841. @param theClass the {@link Mapper} class for the job.]]>
  47842. </doc>
  47843. </method>
  47844. <method name="getMapRunnerClass" return="java.lang.Class"
  47845. abstract="false" native="false" synchronized="false"
  47846. static="false" final="false" visibility="public"
  47847. deprecated="not deprecated">
  47848. <doc>
  47849. <![CDATA[Get the {@link MapRunnable} class for the job.
  47850. @return the {@link MapRunnable} class for the job.]]>
  47851. </doc>
  47852. </method>
  47853. <method name="setMapRunnerClass"
  47854. abstract="false" native="false" synchronized="false"
  47855. static="false" final="false" visibility="public"
  47856. deprecated="not deprecated">
  47857. <param name="theClass" type="java.lang.Class"/>
  47858. <doc>
  47859. <![CDATA[Expert: Set the {@link MapRunnable} class for the job.
  47860. Typically used to exert greater control on {@link Mapper}s.
  47861. @param theClass the {@link MapRunnable} class for the job.]]>
  47862. </doc>
  47863. </method>
  47864. <method name="getPartitionerClass" return="java.lang.Class"
  47865. abstract="false" native="false" synchronized="false"
  47866. static="false" final="false" visibility="public"
  47867. deprecated="not deprecated">
  47868. <doc>
  47869. <![CDATA[Get the {@link Partitioner} used to partition {@link Mapper}-outputs
  47870. to be sent to the {@link Reducer}s.
  47871. @return the {@link Partitioner} used to partition map-outputs.]]>
  47872. </doc>
  47873. </method>
  47874. <method name="setPartitionerClass"
  47875. abstract="false" native="false" synchronized="false"
  47876. static="false" final="false" visibility="public"
  47877. deprecated="not deprecated">
  47878. <param name="theClass" type="java.lang.Class"/>
  47879. <doc>
  47880. <![CDATA[Set the {@link Partitioner} class used to partition
  47881. {@link Mapper}-outputs to be sent to the {@link Reducer}s.
  47882. @param theClass the {@link Partitioner} used to partition map-outputs.]]>
  47883. </doc>
  47884. </method>
  47885. <method name="getReducerClass" return="java.lang.Class"
  47886. abstract="false" native="false" synchronized="false"
  47887. static="false" final="false" visibility="public"
  47888. deprecated="not deprecated">
  47889. <doc>
  47890. <![CDATA[Get the {@link Reducer} class for the job.
  47891. @return the {@link Reducer} class for the job.]]>
  47892. </doc>
  47893. </method>
  47894. <method name="setReducerClass"
  47895. abstract="false" native="false" synchronized="false"
  47896. static="false" final="false" visibility="public"
  47897. deprecated="not deprecated">
  47898. <param name="theClass" type="java.lang.Class"/>
  47899. <doc>
  47900. <![CDATA[Set the {@link Reducer} class for the job.
  47901. @param theClass the {@link Reducer} class for the job.]]>
  47902. </doc>
  47903. </method>
  47904. <method name="getCombinerClass" return="java.lang.Class"
  47905. abstract="false" native="false" synchronized="false"
  47906. static="false" final="false" visibility="public"
  47907. deprecated="not deprecated">
  47908. <doc>
  47909. <![CDATA[Get the user-defined <i>combiner</i> class used to combine map-outputs
  47910. before being sent to the reducers. Typically the combiner is same as the
  47911. the {@link Reducer} for the job i.e. {@link #getReducerClass()}.
  47912. @return the user-defined combiner class used to combine map-outputs.]]>
  47913. </doc>
  47914. </method>
  47915. <method name="setCombinerClass"
  47916. abstract="false" native="false" synchronized="false"
  47917. static="false" final="false" visibility="public"
  47918. deprecated="not deprecated">
  47919. <param name="theClass" type="java.lang.Class"/>
  47920. <doc>
  47921. <![CDATA[Set the user-defined <i>combiner</i> class used to combine map-outputs
  47922. before being sent to the reducers.
  47923. <p>The combiner is an application-specified aggregation operation, which
  47924. can help cut down the amount of data transferred between the
  47925. {@link Mapper} and the {@link Reducer}, leading to better performance.</p>
  47926. <p>The framework may invoke the combiner 0, 1, or multiple times, in both
  47927. the mapper and reducer tasks. In general, the combiner is called as the
  47928. sort/merge result is written to disk. The combiner must:
  47929. <ul>
  47930. <li> be side-effect free</li>
  47931. <li> have the same input and output key types and the same input and
  47932. output value types</li>
  47933. </ul></p>
  47934. <p>Typically the combiner is same as the <code>Reducer</code> for the
  47935. job i.e. {@link #setReducerClass(Class)}.</p>
  47936. @param theClass the user-defined combiner class used to combine
  47937. map-outputs.]]>
  47938. </doc>
  47939. </method>
  47940. <method name="getSpeculativeExecution" return="boolean"
  47941. abstract="false" native="false" synchronized="false"
  47942. static="false" final="false" visibility="public"
  47943. deprecated="not deprecated">
  47944. <doc>
  47945. <![CDATA[Should speculative execution be used for this job?
  47946. Defaults to <code>true</code>.
  47947. @return <code>true</code> if speculative execution be used for this job,
  47948. <code>false</code> otherwise.]]>
  47949. </doc>
  47950. </method>
  47951. <method name="setSpeculativeExecution"
  47952. abstract="false" native="false" synchronized="false"
  47953. static="false" final="false" visibility="public"
  47954. deprecated="not deprecated">
  47955. <param name="speculativeExecution" type="boolean"/>
  47956. <doc>
  47957. <![CDATA[Turn speculative execution on or off for this job.
  47958. @param speculativeExecution <code>true</code> if speculative execution
  47959. should be turned on, else <code>false</code>.]]>
  47960. </doc>
  47961. </method>
  47962. <method name="getMapSpeculativeExecution" return="boolean"
  47963. abstract="false" native="false" synchronized="false"
  47964. static="false" final="false" visibility="public"
  47965. deprecated="not deprecated">
  47966. <doc>
  47967. <![CDATA[Should speculative execution be used for this job for map tasks?
  47968. Defaults to <code>true</code>.
  47969. @return <code>true</code> if speculative execution be
  47970. used for this job for map tasks,
  47971. <code>false</code> otherwise.]]>
  47972. </doc>
  47973. </method>
  47974. <method name="setMapSpeculativeExecution"
  47975. abstract="false" native="false" synchronized="false"
  47976. static="false" final="false" visibility="public"
  47977. deprecated="not deprecated">
  47978. <param name="speculativeExecution" type="boolean"/>
  47979. <doc>
  47980. <![CDATA[Turn speculative execution on or off for this job for map tasks.
  47981. @param speculativeExecution <code>true</code> if speculative execution
  47982. should be turned on for map tasks,
  47983. else <code>false</code>.]]>
  47984. </doc>
  47985. </method>
  47986. <method name="getReduceSpeculativeExecution" return="boolean"
  47987. abstract="false" native="false" synchronized="false"
  47988. static="false" final="false" visibility="public"
  47989. deprecated="not deprecated">
  47990. <doc>
  47991. <![CDATA[Should speculative execution be used for this job for reduce tasks?
  47992. Defaults to <code>true</code>.
  47993. @return <code>true</code> if speculative execution be used
  47994. for reduce tasks for this job,
  47995. <code>false</code> otherwise.]]>
  47996. </doc>
  47997. </method>
  47998. <method name="setReduceSpeculativeExecution"
  47999. abstract="false" native="false" synchronized="false"
  48000. static="false" final="false" visibility="public"
  48001. deprecated="not deprecated">
  48002. <param name="speculativeExecution" type="boolean"/>
  48003. <doc>
  48004. <![CDATA[Turn speculative execution on or off for this job for reduce tasks.
  48005. @param speculativeExecution <code>true</code> if speculative execution
  48006. should be turned on for reduce tasks,
  48007. else <code>false</code>.]]>
  48008. </doc>
  48009. </method>
  48010. <method name="getNumMapTasks" return="int"
  48011. abstract="false" native="false" synchronized="false"
  48012. static="false" final="false" visibility="public"
  48013. deprecated="not deprecated">
  48014. <doc>
  48015. <![CDATA[Get configured the number of reduce tasks for this job.
  48016. Defaults to <code>1</code>.
  48017. @return the number of reduce tasks for this job.]]>
  48018. </doc>
  48019. </method>
  48020. <method name="setNumMapTasks"
  48021. abstract="false" native="false" synchronized="false"
  48022. static="false" final="false" visibility="public"
  48023. deprecated="not deprecated">
  48024. <param name="n" type="int"/>
  48025. <doc>
  48026. <![CDATA[Set the number of map tasks for this job.
  48027. <p><i>Note</i>: This is only a <i>hint</i> to the framework. The actual
  48028. number of spawned map tasks depends on the number of {@link InputSplit}s
  48029. generated by the job's {@link InputFormat#getSplits(JobConf, int)}.
  48030. A custom {@link InputFormat} is typically used to accurately control
  48031. the number of map tasks for the job.</p>
  48032. <h4 id="NoOfMaps">How many maps?</h4>
  48033. <p>The number of maps is usually driven by the total size of the inputs
  48034. i.e. total number of blocks of the input files.</p>
  48035. <p>The right level of parallelism for maps seems to be around 10-100 maps
  48036. per-node, although it has been set up to 300 or so for very cpu-light map
  48037. tasks. Task setup takes awhile, so it is best if the maps take at least a
  48038. minute to execute.</p>
  48039. <p>The default behavior of file-based {@link InputFormat}s is to split the
  48040. input into <i>logical</i> {@link InputSplit}s based on the total size, in
  48041. bytes, of input files. However, the {@link FileSystem} blocksize of the
  48042. input files is treated as an upper bound for input splits. A lower bound
  48043. on the split size can be set via
  48044. <a href="{@docRoot}/../mapred-default.html#mapred.min.split.size">
  48045. mapred.min.split.size</a>.</p>
  48046. <p>Thus, if you expect 10TB of input data and have a blocksize of 128MB,
  48047. you'll end up with 82,000 maps, unless {@link #setNumMapTasks(int)} is
  48048. used to set it even higher.</p>
  48049. @param n the number of map tasks for this job.
  48050. @see InputFormat#getSplits(JobConf, int)
  48051. @see FileInputFormat
  48052. @see FileSystem#getDefaultBlockSize()
  48053. @see FileStatus#getBlockSize()]]>
  48054. </doc>
  48055. </method>
  48056. <method name="getNumReduceTasks" return="int"
  48057. abstract="false" native="false" synchronized="false"
  48058. static="false" final="false" visibility="public"
  48059. deprecated="not deprecated">
  48060. <doc>
  48061. <![CDATA[Get configured the number of reduce tasks for this job. Defaults to
  48062. <code>1</code>.
  48063. @return the number of reduce tasks for this job.]]>
  48064. </doc>
  48065. </method>
  48066. <method name="setNumReduceTasks"
  48067. abstract="false" native="false" synchronized="false"
  48068. static="false" final="false" visibility="public"
  48069. deprecated="not deprecated">
  48070. <param name="n" type="int"/>
  48071. <doc>
  48072. <![CDATA[Set the requisite number of reduce tasks for this job.
  48073. <h4 id="NoOfReduces">How many reduces?</h4>
  48074. <p>The right number of reduces seems to be <code>0.95</code> or
  48075. <code>1.75</code> multiplied by (&lt;<i>no. of nodes</i>&gt; *
  48076. <a href="{@docRoot}/../mapred-default.html#mapred.tasktracker.reduce.tasks.maximum">
  48077. mapred.tasktracker.reduce.tasks.maximum</a>).
  48078. </p>
  48079. <p>With <code>0.95</code> all of the reduces can launch immediately and
  48080. start transfering map outputs as the maps finish. With <code>1.75</code>
  48081. the faster nodes will finish their first round of reduces and launch a
  48082. second wave of reduces doing a much better job of load balancing.</p>
  48083. <p>Increasing the number of reduces increases the framework overhead, but
  48084. increases load balancing and lowers the cost of failures.</p>
  48085. <p>The scaling factors above are slightly less than whole numbers to
  48086. reserve a few reduce slots in the framework for speculative-tasks, failures
  48087. etc.</p>
  48088. <h4 id="ReducerNone">Reducer NONE</h4>
  48089. <p>It is legal to set the number of reduce-tasks to <code>zero</code>.</p>
  48090. <p>In this case the output of the map-tasks directly go to distributed
  48091. file-system, to the path set by
  48092. {@link FileOutputFormat#setOutputPath(JobConf, Path)}. Also, the
  48093. framework doesn't sort the map-outputs before writing it out to HDFS.</p>
  48094. @param n the number of reduce tasks for this job.]]>
  48095. </doc>
  48096. </method>
  48097. <method name="getMaxMapAttempts" return="int"
  48098. abstract="false" native="false" synchronized="false"
  48099. static="false" final="false" visibility="public"
  48100. deprecated="not deprecated">
  48101. <doc>
  48102. <![CDATA[Get the configured number of maximum attempts that will be made to run a
  48103. map task, as specified by the <code>mapred.map.max.attempts</code>
  48104. property. If this property is not already set, the default is 4 attempts.
  48105. @return the max number of attempts per map task.]]>
  48106. </doc>
  48107. </method>
  48108. <method name="setMaxMapAttempts"
  48109. abstract="false" native="false" synchronized="false"
  48110. static="false" final="false" visibility="public"
  48111. deprecated="not deprecated">
  48112. <param name="n" type="int"/>
  48113. <doc>
  48114. <![CDATA[Expert: Set the number of maximum attempts that will be made to run a
  48115. map task.
  48116. @param n the number of attempts per map task.]]>
  48117. </doc>
  48118. </method>
  48119. <method name="getMaxReduceAttempts" return="int"
  48120. abstract="false" native="false" synchronized="false"
  48121. static="false" final="false" visibility="public"
  48122. deprecated="not deprecated">
  48123. <doc>
  48124. <![CDATA[Get the configured number of maximum attempts that will be made to run a
  48125. reduce task, as specified by the <code>mapred.reduce.max.attempts</code>
  48126. property. If this property is not already set, the default is 4 attempts.
  48127. @return the max number of attempts per reduce task.]]>
  48128. </doc>
  48129. </method>
  48130. <method name="setMaxReduceAttempts"
  48131. abstract="false" native="false" synchronized="false"
  48132. static="false" final="false" visibility="public"
  48133. deprecated="not deprecated">
  48134. <param name="n" type="int"/>
  48135. <doc>
  48136. <![CDATA[Expert: Set the number of maximum attempts that will be made to run a
  48137. reduce task.
  48138. @param n the number of attempts per reduce task.]]>
  48139. </doc>
  48140. </method>
  48141. <method name="getJobName" return="java.lang.String"
  48142. abstract="false" native="false" synchronized="false"
  48143. static="false" final="false" visibility="public"
  48144. deprecated="not deprecated">
  48145. <doc>
  48146. <![CDATA[Get the user-specified job name. This is only used to identify the
  48147. job to the user.
  48148. @return the job's name, defaulting to "".]]>
  48149. </doc>
  48150. </method>
  48151. <method name="setJobName"
  48152. abstract="false" native="false" synchronized="false"
  48153. static="false" final="false" visibility="public"
  48154. deprecated="not deprecated">
  48155. <param name="name" type="java.lang.String"/>
  48156. <doc>
  48157. <![CDATA[Set the user-specified job name.
  48158. @param name the job's new name.]]>
  48159. </doc>
  48160. </method>
  48161. <method name="getSessionId" return="java.lang.String"
  48162. abstract="false" native="false" synchronized="false"
  48163. static="false" final="false" visibility="public"
  48164. deprecated="not deprecated">
  48165. <doc>
  48166. <![CDATA[Get the user-specified session identifier. The default is the empty string.
  48167. The session identifier is used to tag metric data that is reported to some
  48168. performance metrics system via the org.apache.hadoop.metrics API. The
  48169. session identifier is intended, in particular, for use by Hadoop-On-Demand
  48170. (HOD) which allocates a virtual Hadoop cluster dynamically and transiently.
  48171. HOD will set the session identifier by modifying the mapred-site.xml file
  48172. before starting the cluster.
  48173. When not running under HOD, this identifer is expected to remain set to
  48174. the empty string.
  48175. @return the session identifier, defaulting to "".]]>
  48176. </doc>
  48177. </method>
  48178. <method name="setSessionId"
  48179. abstract="false" native="false" synchronized="false"
  48180. static="false" final="false" visibility="public"
  48181. deprecated="not deprecated">
  48182. <param name="sessionId" type="java.lang.String"/>
  48183. <doc>
  48184. <![CDATA[Set the user-specified session identifier.
  48185. @param sessionId the new session id.]]>
  48186. </doc>
  48187. </method>
  48188. <method name="setMaxTaskFailuresPerTracker"
  48189. abstract="false" native="false" synchronized="false"
  48190. static="false" final="false" visibility="public"
  48191. deprecated="not deprecated">
  48192. <param name="noFailures" type="int"/>
  48193. <doc>
  48194. <![CDATA[Set the maximum no. of failures of a given job per tasktracker.
  48195. If the no. of task failures exceeds <code>noFailures</code>, the
  48196. tasktracker is <i>blacklisted</i> for this job.
  48197. @param noFailures maximum no. of failures of a given job per tasktracker.]]>
  48198. </doc>
  48199. </method>
  48200. <method name="getMaxTaskFailuresPerTracker" return="int"
  48201. abstract="false" native="false" synchronized="false"
  48202. static="false" final="false" visibility="public"
  48203. deprecated="not deprecated">
  48204. <doc>
  48205. <![CDATA[Expert: Get the maximum no. of failures of a given job per tasktracker.
  48206. If the no. of task failures exceeds this, the tasktracker is
  48207. <i>blacklisted</i> for this job.
  48208. @return the maximum no. of failures of a given job per tasktracker.]]>
  48209. </doc>
  48210. </method>
  48211. <method name="getMaxMapTaskFailuresPercent" return="int"
  48212. abstract="false" native="false" synchronized="false"
  48213. static="false" final="false" visibility="public"
  48214. deprecated="not deprecated">
  48215. <doc>
  48216. <![CDATA[Get the maximum percentage of map tasks that can fail without
  48217. the job being aborted.
  48218. Each map task is executed a minimum of {@link #getMaxMapAttempts()}
  48219. attempts before being declared as <i>failed</i>.
  48220. Defaults to <code>zero</code>, i.e. <i>any</i> failed map-task results in
  48221. the job being declared as {@link JobStatus#FAILED}.
  48222. @return the maximum percentage of map tasks that can fail without
  48223. the job being aborted.]]>
  48224. </doc>
  48225. </method>
  48226. <method name="setMaxMapTaskFailuresPercent"
  48227. abstract="false" native="false" synchronized="false"
  48228. static="false" final="false" visibility="public"
  48229. deprecated="not deprecated">
  48230. <param name="percent" type="int"/>
  48231. <doc>
  48232. <![CDATA[Expert: Set the maximum percentage of map tasks that can fail without the
  48233. job being aborted.
  48234. Each map task is executed a minimum of {@link #getMaxMapAttempts} attempts
  48235. before being declared as <i>failed</i>.
  48236. @param percent the maximum percentage of map tasks that can fail without
  48237. the job being aborted.]]>
  48238. </doc>
  48239. </method>
  48240. <method name="getMaxReduceTaskFailuresPercent" return="int"
  48241. abstract="false" native="false" synchronized="false"
  48242. static="false" final="false" visibility="public"
  48243. deprecated="not deprecated">
  48244. <doc>
  48245. <![CDATA[Get the maximum percentage of reduce tasks that can fail without
  48246. the job being aborted.
  48247. Each reduce task is executed a minimum of {@link #getMaxReduceAttempts()}
  48248. attempts before being declared as <i>failed</i>.
  48249. Defaults to <code>zero</code>, i.e. <i>any</i> failed reduce-task results
  48250. in the job being declared as {@link JobStatus#FAILED}.
  48251. @return the maximum percentage of reduce tasks that can fail without
  48252. the job being aborted.]]>
  48253. </doc>
  48254. </method>
  48255. <method name="setMaxReduceTaskFailuresPercent"
  48256. abstract="false" native="false" synchronized="false"
  48257. static="false" final="false" visibility="public"
  48258. deprecated="not deprecated">
  48259. <param name="percent" type="int"/>
  48260. <doc>
  48261. <![CDATA[Set the maximum percentage of reduce tasks that can fail without the job
  48262. being aborted.
  48263. Each reduce task is executed a minimum of {@link #getMaxReduceAttempts()}
  48264. attempts before being declared as <i>failed</i>.
  48265. @param percent the maximum percentage of reduce tasks that can fail without
  48266. the job being aborted.]]>
  48267. </doc>
  48268. </method>
  48269. <method name="setJobPriority"
  48270. abstract="false" native="false" synchronized="false"
  48271. static="false" final="false" visibility="public"
  48272. deprecated="not deprecated">
  48273. <param name="prio" type="org.apache.hadoop.mapred.JobPriority"/>
  48274. <doc>
  48275. <![CDATA[Set {@link JobPriority} for this job.
  48276. @param prio the {@link JobPriority} for this job.]]>
  48277. </doc>
  48278. </method>
  48279. <method name="getJobPriority" return="org.apache.hadoop.mapred.JobPriority"
  48280. abstract="false" native="false" synchronized="false"
  48281. static="false" final="false" visibility="public"
  48282. deprecated="not deprecated">
  48283. <doc>
  48284. <![CDATA[Get the {@link JobPriority} for this job.
  48285. @return the {@link JobPriority} for this job.]]>
  48286. </doc>
  48287. </method>
  48288. <method name="getProfileEnabled" return="boolean"
  48289. abstract="false" native="false" synchronized="false"
  48290. static="false" final="false" visibility="public"
  48291. deprecated="not deprecated">
  48292. <doc>
  48293. <![CDATA[Get whether the task profiling is enabled.
  48294. @return true if some tasks will be profiled]]>
  48295. </doc>
  48296. </method>
  48297. <method name="setProfileEnabled"
  48298. abstract="false" native="false" synchronized="false"
  48299. static="false" final="false" visibility="public"
  48300. deprecated="not deprecated">
  48301. <param name="newValue" type="boolean"/>
  48302. <doc>
  48303. <![CDATA[Set whether the system should collect profiler information for some of
  48304. the tasks in this job? The information is stored in the user log
  48305. directory.
  48306. @param newValue true means it should be gathered]]>
  48307. </doc>
  48308. </method>
  48309. <method name="getProfileParams" return="java.lang.String"
  48310. abstract="false" native="false" synchronized="false"
  48311. static="false" final="false" visibility="public"
  48312. deprecated="not deprecated">
  48313. <doc>
  48314. <![CDATA[Get the profiler configuration arguments.
  48315. The default value for this property is
  48316. "-agentlib:hprof=cpu=samples,heap=sites,force=n,thread=y,verbose=n,file=%s"
  48317. @return the parameters to pass to the task child to configure profiling]]>
  48318. </doc>
  48319. </method>
  48320. <method name="setProfileParams"
  48321. abstract="false" native="false" synchronized="false"
  48322. static="false" final="false" visibility="public"
  48323. deprecated="not deprecated">
  48324. <param name="value" type="java.lang.String"/>
  48325. <doc>
  48326. <![CDATA[Set the profiler configuration arguments. If the string contains a '%s' it
  48327. will be replaced with the name of the profiling output file when the task
  48328. runs.
  48329. This value is passed to the task child JVM on the command line.
  48330. @param value the configuration string]]>
  48331. </doc>
  48332. </method>
  48333. <method name="getProfileTaskRange" return="org.apache.hadoop.conf.Configuration.IntegerRanges"
  48334. abstract="false" native="false" synchronized="false"
  48335. static="false" final="false" visibility="public"
  48336. deprecated="not deprecated">
  48337. <param name="isMap" type="boolean"/>
  48338. <doc>
  48339. <![CDATA[Get the range of maps or reduces to profile.
  48340. @param isMap is the task a map?
  48341. @return the task ranges]]>
  48342. </doc>
  48343. </method>
  48344. <method name="setProfileTaskRange"
  48345. abstract="false" native="false" synchronized="false"
  48346. static="false" final="false" visibility="public"
  48347. deprecated="not deprecated">
  48348. <param name="isMap" type="boolean"/>
  48349. <param name="newValue" type="java.lang.String"/>
  48350. <doc>
  48351. <![CDATA[Set the ranges of maps or reduces to profile. setProfileEnabled(true)
  48352. must also be called.
  48353. @param newValue a set of integer ranges of the map ids]]>
  48354. </doc>
  48355. </method>
  48356. <method name="setMapDebugScript"
  48357. abstract="false" native="false" synchronized="false"
  48358. static="false" final="false" visibility="public"
  48359. deprecated="not deprecated">
  48360. <param name="mDbgScript" type="java.lang.String"/>
  48361. <doc>
  48362. <![CDATA[Set the debug script to run when the map tasks fail.
  48363. <p>The debug script can aid debugging of failed map tasks. The script is
  48364. given task's stdout, stderr, syslog, jobconf files as arguments.</p>
  48365. <p>The debug command, run on the node where the map failed, is:</p>
  48366. <p><pre><blockquote>
  48367. $script $stdout $stderr $syslog $jobconf.
  48368. </blockquote></pre></p>
  48369. <p> The script file is distributed through {@link DistributedCache}
  48370. APIs. The script needs to be symlinked. </p>
  48371. <p>Here is an example on how to submit a script
  48372. <p><blockquote><pre>
  48373. job.setMapDebugScript("./myscript");
  48374. DistributedCache.createSymlink(job);
  48375. DistributedCache.addCacheFile("/debug/scripts/myscript#myscript");
  48376. </pre></blockquote></p>
  48377. @param mDbgScript the script name]]>
  48378. </doc>
  48379. </method>
  48380. <method name="getMapDebugScript" return="java.lang.String"
  48381. abstract="false" native="false" synchronized="false"
  48382. static="false" final="false" visibility="public"
  48383. deprecated="not deprecated">
  48384. <doc>
  48385. <![CDATA[Get the map task's debug script.
  48386. @return the debug Script for the mapred job for failed map tasks.
  48387. @see #setMapDebugScript(String)]]>
  48388. </doc>
  48389. </method>
  48390. <method name="setReduceDebugScript"
  48391. abstract="false" native="false" synchronized="false"
  48392. static="false" final="false" visibility="public"
  48393. deprecated="not deprecated">
  48394. <param name="rDbgScript" type="java.lang.String"/>
  48395. <doc>
  48396. <![CDATA[Set the debug script to run when the reduce tasks fail.
  48397. <p>The debug script can aid debugging of failed reduce tasks. The script
  48398. is given task's stdout, stderr, syslog, jobconf files as arguments.</p>
  48399. <p>The debug command, run on the node where the map failed, is:</p>
  48400. <p><pre><blockquote>
  48401. $script $stdout $stderr $syslog $jobconf.
  48402. </blockquote></pre></p>
  48403. <p> The script file is distributed through {@link DistributedCache}
  48404. APIs. The script file needs to be symlinked </p>
  48405. <p>Here is an example on how to submit a script
  48406. <p><blockquote><pre>
  48407. job.setReduceDebugScript("./myscript");
  48408. DistributedCache.createSymlink(job);
  48409. DistributedCache.addCacheFile("/debug/scripts/myscript#myscript");
  48410. </pre></blockquote></p>
  48411. @param rDbgScript the script name]]>
  48412. </doc>
  48413. </method>
  48414. <method name="getReduceDebugScript" return="java.lang.String"
  48415. abstract="false" native="false" synchronized="false"
  48416. static="false" final="false" visibility="public"
  48417. deprecated="not deprecated">
  48418. <doc>
  48419. <![CDATA[Get the reduce task's debug Script
  48420. @return the debug script for the mapred job for failed reduce tasks.
  48421. @see #setReduceDebugScript(String)]]>
  48422. </doc>
  48423. </method>
  48424. <method name="getJobEndNotificationURI" return="java.lang.String"
  48425. abstract="false" native="false" synchronized="false"
  48426. static="false" final="false" visibility="public"
  48427. deprecated="not deprecated">
  48428. <doc>
  48429. <![CDATA[Get the uri to be invoked in-order to send a notification after the job
  48430. has completed (success/failure).
  48431. @return the job end notification uri, <code>null</code> if it hasn't
  48432. been set.
  48433. @see #setJobEndNotificationURI(String)]]>
  48434. </doc>
  48435. </method>
  48436. <method name="setJobEndNotificationURI"
  48437. abstract="false" native="false" synchronized="false"
  48438. static="false" final="false" visibility="public"
  48439. deprecated="not deprecated">
  48440. <param name="uri" type="java.lang.String"/>
  48441. <doc>
  48442. <![CDATA[Set the uri to be invoked in-order to send a notification after the job
  48443. has completed (success/failure).
  48444. <p>The uri can contain 2 special parameters: <tt>$jobId</tt> and
  48445. <tt>$jobStatus</tt>. Those, if present, are replaced by the job's
  48446. identifier and completion-status respectively.</p>
  48447. <p>This is typically used by application-writers to implement chaining of
  48448. Map-Reduce jobs in an <i>asynchronous manner</i>.</p>
  48449. @param uri the job end notification uri
  48450. @see JobStatus
  48451. @see <a href="{@docRoot}/org/apache/hadoop/mapred/JobClient.html#
  48452. JobCompletionAndChaining">Job Completion and Chaining</a>]]>
  48453. </doc>
  48454. </method>
  48455. <method name="getJobLocalDir" return="java.lang.String"
  48456. abstract="false" native="false" synchronized="false"
  48457. static="false" final="false" visibility="public"
  48458. deprecated="not deprecated">
  48459. <doc>
  48460. <![CDATA[Get job-specific shared directory for use as scratch space
  48461. <p>
  48462. When a job starts, a shared directory is created at location
  48463. <code>
  48464. ${mapred.local.dir}/taskTracker/$user/jobcache/$jobid/work/ </code>.
  48465. This directory is exposed to the users through
  48466. <code>job.local.dir </code>.
  48467. So, the tasks can use this space
  48468. as scratch space and share files among them. </p>
  48469. This value is available as System property also.
  48470. @return The localized job specific shared directory]]>
  48471. </doc>
  48472. </method>
  48473. <method name="getMemoryForMapTask" return="long"
  48474. abstract="false" native="false" synchronized="false"
  48475. static="false" final="false" visibility="public"
  48476. deprecated="not deprecated">
  48477. <doc>
  48478. <![CDATA[Get memory required to run a map task of the job, in MB.
  48479. If a value is specified in the configuration, it is returned.
  48480. Else, it returns {@link #DISABLED_MEMORY_LIMIT}.
  48481. <p/>
  48482. For backward compatibility, if the job configuration sets the
  48483. key {@link #MAPRED_TASK_MAXVMEM_PROPERTY} to a value different
  48484. from {@link #DISABLED_MEMORY_LIMIT}, that value will be used
  48485. after converting it from bytes to MB.
  48486. @return memory required to run a map task of the job, in MB,
  48487. or {@link #DISABLED_MEMORY_LIMIT} if unset.]]>
  48488. </doc>
  48489. </method>
  48490. <method name="setMemoryForMapTask"
  48491. abstract="false" native="false" synchronized="false"
  48492. static="false" final="false" visibility="public"
  48493. deprecated="not deprecated">
  48494. <param name="mem" type="long"/>
  48495. </method>
  48496. <method name="getMemoryForReduceTask" return="long"
  48497. abstract="false" native="false" synchronized="false"
  48498. static="false" final="false" visibility="public"
  48499. deprecated="not deprecated">
  48500. <doc>
  48501. <![CDATA[Get memory required to run a reduce task of the job, in MB.
  48502. If a value is specified in the configuration, it is returned.
  48503. Else, it returns {@link #DISABLED_MEMORY_LIMIT}.
  48504. <p/>
  48505. For backward compatibility, if the job configuration sets the
  48506. key {@link #MAPRED_TASK_MAXVMEM_PROPERTY} to a value different
  48507. from {@link #DISABLED_MEMORY_LIMIT}, that value will be used
  48508. after converting it from bytes to MB.
  48509. @return memory required to run a reduce task of the job, in MB,
  48510. or {@link #DISABLED_MEMORY_LIMIT} if unset.]]>
  48511. </doc>
  48512. </method>
  48513. <method name="setMemoryForReduceTask"
  48514. abstract="false" native="false" synchronized="false"
  48515. static="false" final="false" visibility="public"
  48516. deprecated="not deprecated">
  48517. <param name="mem" type="long"/>
  48518. </method>
  48519. <method name="getQueueName" return="java.lang.String"
  48520. abstract="false" native="false" synchronized="false"
  48521. static="false" final="false" visibility="public"
  48522. deprecated="not deprecated">
  48523. <doc>
  48524. <![CDATA[Return the name of the queue to which this job is submitted.
  48525. Defaults to 'default'.
  48526. @return name of the queue]]>
  48527. </doc>
  48528. </method>
  48529. <method name="setQueueName"
  48530. abstract="false" native="false" synchronized="false"
  48531. static="false" final="false" visibility="public"
  48532. deprecated="not deprecated">
  48533. <param name="queueName" type="java.lang.String"/>
  48534. <doc>
  48535. <![CDATA[Set the name of the queue to which this job should be submitted.
  48536. @param queueName Name of the queue]]>
  48537. </doc>
  48538. </method>
  48539. <method name="normalizeMemoryConfigValue" return="long"
  48540. abstract="false" native="false" synchronized="false"
  48541. static="true" final="false" visibility="public"
  48542. deprecated="not deprecated">
  48543. <param name="val" type="long"/>
  48544. <doc>
  48545. <![CDATA[Normalize the negative values in configuration
  48546. @param val
  48547. @return normalized value]]>
  48548. </doc>
  48549. </method>
  48550. <method name="getMaxVirtualMemoryForTask" return="long"
  48551. abstract="false" native="false" synchronized="false"
  48552. static="false" final="false" visibility="public"
  48553. deprecated="Use {@link #getMemoryForMapTask()} and
  48554. {@link #getMemoryForReduceTask()}">
  48555. <doc>
  48556. <![CDATA[Get the memory required to run a task of this job, in bytes. See
  48557. {@link #MAPRED_TASK_MAXVMEM_PROPERTY}
  48558. <p/>
  48559. This method is deprecated. Now, different memory limits can be
  48560. set for map and reduce tasks of a job, in MB.
  48561. <p/>
  48562. For backward compatibility, if the job configuration sets the
  48563. key {@link #MAPRED_TASK_MAXVMEM_PROPERTY} to a value different
  48564. from {@link #DISABLED_MEMORY_LIMIT}, that value is returned.
  48565. Otherwise, this method will return the larger of the values returned by
  48566. {@link #getMemoryForMapTask()} and {@link #getMemoryForReduceTask()}
  48567. after converting them into bytes.
  48568. @return Memory required to run a task of this job, in bytes,
  48569. or {@link #DISABLED_MEMORY_LIMIT}, if unset.
  48570. @see #setMaxVirtualMemoryForTask(long)
  48571. @deprecated Use {@link #getMemoryForMapTask()} and
  48572. {@link #getMemoryForReduceTask()}]]>
  48573. </doc>
  48574. </method>
  48575. <method name="setMaxVirtualMemoryForTask"
  48576. abstract="false" native="false" synchronized="false"
  48577. static="false" final="false" visibility="public"
  48578. deprecated="Use {@link #setMemoryForMapTask(long mem)} and
  48579. Use {@link #setMemoryForReduceTask(long mem)}">
  48580. <param name="vmem" type="long"/>
  48581. <doc>
  48582. <![CDATA[Set the maximum amount of memory any task of this job can use. See
  48583. {@link #MAPRED_TASK_MAXVMEM_PROPERTY}
  48584. <p/>
  48585. mapred.task.maxvmem is split into
  48586. mapred.job.map.memory.mb
  48587. and mapred.job.map.memory.mb,mapred
  48588. each of the new key are set
  48589. as mapred.task.maxvmem / 1024
  48590. as new values are in MB
  48591. @param vmem Maximum amount of virtual memory in bytes any task of this job
  48592. can use.
  48593. @see #getMaxVirtualMemoryForTask()
  48594. @deprecated
  48595. Use {@link #setMemoryForMapTask(long mem)} and
  48596. Use {@link #setMemoryForReduceTask(long mem)}]]>
  48597. </doc>
  48598. </method>
  48599. <method name="getMaxPhysicalMemoryForTask" return="long"
  48600. abstract="false" native="false" synchronized="false"
  48601. static="false" final="false" visibility="public"
  48602. deprecated="this variable is deprecated and nolonger in use.">
  48603. <doc>
  48604. <![CDATA[@deprecated this variable is deprecated and nolonger in use.]]>
  48605. </doc>
  48606. </method>
  48607. <method name="setMaxPhysicalMemoryForTask"
  48608. abstract="false" native="false" synchronized="false"
  48609. static="false" final="false" visibility="public"
  48610. deprecated="not deprecated">
  48611. <param name="mem" type="long"/>
  48612. </method>
  48613. <field name="MAPRED_TASK_MAXVMEM_PROPERTY" type="java.lang.String"
  48614. transient="false" volatile="false"
  48615. static="true" final="true" visibility="public"
  48616. deprecated="Use {@link #MAPRED_JOB_MAP_MEMORY_MB_PROPERTY} and
  48617. {@link #MAPRED_JOB_REDUCE_MEMORY_MB_PROPERTY}">
  48618. <doc>
  48619. <![CDATA[@deprecated Use {@link #MAPRED_JOB_MAP_MEMORY_MB_PROPERTY} and
  48620. {@link #MAPRED_JOB_REDUCE_MEMORY_MB_PROPERTY}]]>
  48621. </doc>
  48622. </field>
  48623. <field name="UPPER_LIMIT_ON_TASK_VMEM_PROPERTY" type="java.lang.String"
  48624. transient="false" volatile="false"
  48625. static="true" final="true" visibility="public"
  48626. deprecated="deprecated, no comment">
  48627. <doc>
  48628. <![CDATA[@deprecated]]>
  48629. </doc>
  48630. </field>
  48631. <field name="MAPRED_TASK_DEFAULT_MAXVMEM_PROPERTY" type="java.lang.String"
  48632. transient="false" volatile="false"
  48633. static="true" final="true" visibility="public"
  48634. deprecated="deprecated, no comment">
  48635. <doc>
  48636. <![CDATA[@deprecated]]>
  48637. </doc>
  48638. </field>
  48639. <field name="MAPRED_TASK_MAXPMEM_PROPERTY" type="java.lang.String"
  48640. transient="false" volatile="false"
  48641. static="true" final="true" visibility="public"
  48642. deprecated="deprecated, no comment">
  48643. <doc>
  48644. <![CDATA[@deprecated]]>
  48645. </doc>
  48646. </field>
  48647. <field name="DISABLED_MEMORY_LIMIT" type="long"
  48648. transient="false" volatile="false"
  48649. static="true" final="true" visibility="public"
  48650. deprecated="not deprecated">
  48651. <doc>
  48652. <![CDATA[A value which if set for memory related configuration options,
  48653. indicates that the options are turned off.]]>
  48654. </doc>
  48655. </field>
  48656. <field name="MAPRED_LOCAL_DIR_PROPERTY" type="java.lang.String"
  48657. transient="false" volatile="false"
  48658. static="true" final="true" visibility="public"
  48659. deprecated="not deprecated">
  48660. <doc>
  48661. <![CDATA[Property name for the configuration property mapred.local.dir]]>
  48662. </doc>
  48663. </field>
  48664. <field name="DEFAULT_QUEUE_NAME" type="java.lang.String"
  48665. transient="false" volatile="false"
  48666. static="true" final="true" visibility="public"
  48667. deprecated="not deprecated">
  48668. <doc>
  48669. <![CDATA[Name of the queue to which jobs will be submitted, if no queue
  48670. name is mentioned.]]>
  48671. </doc>
  48672. </field>
  48673. <field name="MAPRED_JOB_MAP_MEMORY_MB_PROPERTY" type="java.lang.String"
  48674. transient="false" volatile="false"
  48675. static="true" final="true" visibility="public"
  48676. deprecated="not deprecated">
  48677. </field>
  48678. <field name="MAPRED_JOB_REDUCE_MEMORY_MB_PROPERTY" type="java.lang.String"
  48679. transient="false" volatile="false"
  48680. static="true" final="true" visibility="public"
  48681. deprecated="not deprecated">
  48682. </field>
  48683. <field name="MAPRED_TASK_JAVA_OPTS" type="java.lang.String"
  48684. transient="false" volatile="false"
  48685. static="true" final="true" visibility="public"
  48686. deprecated="Use {@link #MAPRED_MAP_TASK_JAVA_OPTS} or
  48687. {@link #MAPRED_REDUCE_TASK_JAVA_OPTS}">
  48688. <doc>
  48689. <![CDATA[Configuration key to set the java command line options for the child
  48690. map and reduce tasks.
  48691. Java opts for the task tracker child processes.
  48692. The following symbol, if present, will be interpolated: @taskid@.
  48693. It is replaced by current TaskID. Any other occurrences of '@' will go
  48694. unchanged.
  48695. For example, to enable verbose gc logging to a file named for the taskid in
  48696. /tmp and to set the heap maximum to be a gigabyte, pass a 'value' of:
  48697. -Xmx1024m -verbose:gc -Xloggc:/tmp/@taskid@.gc
  48698. The configuration variable {@link #MAPRED_TASK_ULIMIT} can be used to
  48699. control the maximum virtual memory of the child processes.
  48700. The configuration variable {@link #MAPRED_TASK_ENV} can be used to pass
  48701. other environment variables to the child processes.
  48702. @deprecated Use {@link #MAPRED_MAP_TASK_JAVA_OPTS} or
  48703. {@link #MAPRED_REDUCE_TASK_JAVA_OPTS}]]>
  48704. </doc>
  48705. </field>
  48706. <field name="MAPRED_MAP_TASK_JAVA_OPTS" type="java.lang.String"
  48707. transient="false" volatile="false"
  48708. static="true" final="true" visibility="public"
  48709. deprecated="not deprecated">
  48710. <doc>
  48711. <![CDATA[Configuration key to set the java command line options for the map tasks.
  48712. Java opts for the task tracker child map processes.
  48713. The following symbol, if present, will be interpolated: @taskid@.
  48714. It is replaced by current TaskID. Any other occurrences of '@' will go
  48715. unchanged.
  48716. For example, to enable verbose gc logging to a file named for the taskid in
  48717. /tmp and to set the heap maximum to be a gigabyte, pass a 'value' of:
  48718. -Xmx1024m -verbose:gc -Xloggc:/tmp/@taskid@.gc
  48719. The configuration variable {@link #MAPRED_MAP_TASK_ULIMIT} can be used to
  48720. control the maximum virtual memory of the map processes.
  48721. The configuration variable {@link #MAPRED_MAP_TASK_ENV} can be used to pass
  48722. other environment variables to the map processes.]]>
  48723. </doc>
  48724. </field>
  48725. <field name="MAPRED_REDUCE_TASK_JAVA_OPTS" type="java.lang.String"
  48726. transient="false" volatile="false"
  48727. static="true" final="true" visibility="public"
  48728. deprecated="not deprecated">
  48729. <doc>
  48730. <![CDATA[Configuration key to set the java command line options for the reduce tasks.
  48731. Java opts for the task tracker child reduce processes.
  48732. The following symbol, if present, will be interpolated: @taskid@.
  48733. It is replaced by current TaskID. Any other occurrences of '@' will go
  48734. unchanged.
  48735. For example, to enable verbose gc logging to a file named for the taskid in
  48736. /tmp and to set the heap maximum to be a gigabyte, pass a 'value' of:
  48737. -Xmx1024m -verbose:gc -Xloggc:/tmp/@taskid@.gc
  48738. The configuration variable {@link #MAPRED_REDUCE_TASK_ULIMIT} can be used
  48739. to control the maximum virtual memory of the reduce processes.
  48740. The configuration variable {@link #MAPRED_REDUCE_TASK_ENV} can be used to
  48741. pass process environment variables to the reduce processes.]]>
  48742. </doc>
  48743. </field>
  48744. <field name="DEFAULT_MAPRED_TASK_JAVA_OPTS" type="java.lang.String"
  48745. transient="false" volatile="false"
  48746. static="true" final="true" visibility="public"
  48747. deprecated="not deprecated">
  48748. </field>
  48749. <field name="MAPRED_TASK_ULIMIT" type="java.lang.String"
  48750. transient="false" volatile="false"
  48751. static="true" final="true" visibility="public"
  48752. deprecated="Use {@link #MAPRED_MAP_TASK_ULIMIT} or
  48753. {@link #MAPRED_REDUCE_TASK_ULIMIT}">
  48754. <doc>
  48755. <![CDATA[Configuration key to set the maximum virutal memory available to the child
  48756. map and reduce tasks (in kilo-bytes).
  48757. Note: This must be greater than or equal to the -Xmx passed to the JavaVM
  48758. via {@link #MAPRED_TASK_JAVA_OPTS}, else the VM might not start.
  48759. @deprecated Use {@link #MAPRED_MAP_TASK_ULIMIT} or
  48760. {@link #MAPRED_REDUCE_TASK_ULIMIT}]]>
  48761. </doc>
  48762. </field>
  48763. <field name="MAPRED_MAP_TASK_ULIMIT" type="java.lang.String"
  48764. transient="false" volatile="false"
  48765. static="true" final="true" visibility="public"
  48766. deprecated="not deprecated">
  48767. <doc>
  48768. <![CDATA[Configuration key to set the maximum virutal memory available to the
  48769. map tasks (in kilo-bytes).
  48770. Note: This must be greater than or equal to the -Xmx passed to the JavaVM
  48771. via {@link #MAPRED_MAP_TASK_JAVA_OPTS}, else the VM might not start.]]>
  48772. </doc>
  48773. </field>
  48774. <field name="MAPRED_REDUCE_TASK_ULIMIT" type="java.lang.String"
  48775. transient="false" volatile="false"
  48776. static="true" final="true" visibility="public"
  48777. deprecated="not deprecated">
  48778. <doc>
  48779. <![CDATA[Configuration key to set the maximum virutal memory available to the
  48780. reduce tasks (in kilo-bytes).
  48781. Note: This must be greater than or equal to the -Xmx passed to the JavaVM
  48782. via {@link #MAPRED_REDUCE_TASK_JAVA_OPTS}, else the VM might not start.]]>
  48783. </doc>
  48784. </field>
  48785. <field name="MAPRED_TASK_ENV" type="java.lang.String"
  48786. transient="false" volatile="false"
  48787. static="true" final="true" visibility="public"
  48788. deprecated="Use {@link #MAPRED_MAP_TASK_ENV} or
  48789. {@link #MAPRED_REDUCE_TASK_ENV}">
  48790. <doc>
  48791. <![CDATA[Configuration key to set the environment of the child map/reduce tasks.
  48792. The format of the value is <code>k1=v1,k2=v2</code>. Further it can
  48793. reference existing environment variables via <code>$key</code>.
  48794. Example:
  48795. <ul>
  48796. <li> A=foo - This will set the env variable A to foo. </li>
  48797. <li> B=$X:c This is inherit tasktracker's X env variable. </li>
  48798. </ul>
  48799. @deprecated Use {@link #MAPRED_MAP_TASK_ENV} or
  48800. {@link #MAPRED_REDUCE_TASK_ENV}]]>
  48801. </doc>
  48802. </field>
  48803. <field name="MAPRED_MAP_TASK_ENV" type="java.lang.String"
  48804. transient="false" volatile="false"
  48805. static="true" final="true" visibility="public"
  48806. deprecated="not deprecated">
  48807. <doc>
  48808. <![CDATA[Configuration key to set the maximum virutal memory available to the
  48809. map tasks.
  48810. The format of the value is <code>k1=v1,k2=v2</code>. Further it can
  48811. reference existing environment variables via <code>$key</code>.
  48812. Example:
  48813. <ul>
  48814. <li> A=foo - This will set the env variable A to foo. </li>
  48815. <li> B=$X:c This is inherit tasktracker's X env variable. </li>
  48816. </ul>]]>
  48817. </doc>
  48818. </field>
  48819. <field name="MAPRED_REDUCE_TASK_ENV" type="java.lang.String"
  48820. transient="false" volatile="false"
  48821. static="true" final="true" visibility="public"
  48822. deprecated="not deprecated">
  48823. <doc>
  48824. <![CDATA[Configuration key to set the maximum virutal memory available to the
  48825. reduce tasks.
  48826. The format of the value is <code>k1=v1,k2=v2</code>. Further it can
  48827. reference existing environment variables via <code>$key</code>.
  48828. Example:
  48829. <ul>
  48830. <li> A=foo - This will set the env variable A to foo. </li>
  48831. <li> B=$X:c This is inherit tasktracker's X env variable. </li>
  48832. </ul>]]>
  48833. </doc>
  48834. </field>
  48835. <doc>
  48836. <![CDATA[A map/reduce job configuration.
  48837. <p><code>JobConf</code> is the primary interface for a user to describe a
  48838. map-reduce job to the Hadoop framework for execution. The framework tries to
  48839. faithfully execute the job as-is described by <code>JobConf</code>, however:
  48840. <ol>
  48841. <li>
  48842. Some configuration parameters might have been marked as
  48843. <a href="{@docRoot}/org/apache/hadoop/conf/Configuration.html#FinalParams">
  48844. final</a> by administrators and hence cannot be altered.
  48845. </li>
  48846. <li>
  48847. While some job parameters are straight-forward to set
  48848. (e.g. {@link #setNumReduceTasks(int)}), some parameters interact subtly
  48849. rest of the framework and/or job-configuration and is relatively more
  48850. complex for the user to control finely (e.g. {@link #setNumMapTasks(int)}).
  48851. </li>
  48852. </ol></p>
  48853. <p><code>JobConf</code> typically specifies the {@link Mapper}, combiner
  48854. (if any), {@link Partitioner}, {@link Reducer}, {@link InputFormat} and
  48855. {@link OutputFormat} implementations to be used etc.
  48856. <p>Optionally <code>JobConf</code> is used to specify other advanced facets
  48857. of the job such as <code>Comparator</code>s to be used, files to be put in
  48858. the {@link DistributedCache}, whether or not intermediate and/or job outputs
  48859. are to be compressed (and how), debugability via user-provided scripts
  48860. ( {@link #setMapDebugScript(String)}/{@link #setReduceDebugScript(String)}),
  48861. for doing post-processing on task logs, task's stdout, stderr, syslog.
  48862. and etc.</p>
  48863. <p>Here is an example on how to configure a job via <code>JobConf</code>:</p>
  48864. <p><blockquote><pre>
  48865. // Create a new JobConf
  48866. JobConf job = new JobConf(new Configuration(), MyJob.class);
  48867. // Specify various job-specific parameters
  48868. job.setJobName("myjob");
  48869. FileInputFormat.setInputPaths(job, new Path("in"));
  48870. FileOutputFormat.setOutputPath(job, new Path("out"));
  48871. job.setMapperClass(MyJob.MyMapper.class);
  48872. job.setCombinerClass(MyJob.MyReducer.class);
  48873. job.setReducerClass(MyJob.MyReducer.class);
  48874. job.setInputFormat(SequenceFileInputFormat.class);
  48875. job.setOutputFormat(SequenceFileOutputFormat.class);
  48876. </pre></blockquote></p>
  48877. @see JobClient
  48878. @see ClusterStatus
  48879. @see Tool
  48880. @see DistributedCache]]>
  48881. </doc>
  48882. </class>
  48883. <!-- end class org.apache.hadoop.mapred.JobConf -->
  48884. <!-- start interface org.apache.hadoop.mapred.JobConfigurable -->
  48885. <interface name="JobConfigurable" abstract="true"
  48886. static="false" final="false" visibility="public"
  48887. deprecated="not deprecated">
  48888. <method name="configure"
  48889. abstract="false" native="false" synchronized="false"
  48890. static="false" final="false" visibility="public"
  48891. deprecated="not deprecated">
  48892. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  48893. <doc>
  48894. <![CDATA[Initializes a new instance from a {@link JobConf}.
  48895. @param job the configuration]]>
  48896. </doc>
  48897. </method>
  48898. <doc>
  48899. <![CDATA[That what may be configured.]]>
  48900. </doc>
  48901. </interface>
  48902. <!-- end interface org.apache.hadoop.mapred.JobConfigurable -->
  48903. <!-- start class org.apache.hadoop.mapred.JobContext -->
  48904. <class name="JobContext" extends="org.apache.hadoop.mapreduce.JobContext"
  48905. abstract="false"
  48906. static="false" final="false" visibility="public"
  48907. deprecated="not deprecated">
  48908. <method name="getJobConf" return="org.apache.hadoop.mapred.JobConf"
  48909. abstract="false" native="false" synchronized="false"
  48910. static="false" final="false" visibility="public"
  48911. deprecated="not deprecated">
  48912. <doc>
  48913. <![CDATA[Get the job Configuration
  48914. @return JobConf]]>
  48915. </doc>
  48916. </method>
  48917. <method name="getProgressible" return="org.apache.hadoop.util.Progressable"
  48918. abstract="false" native="false" synchronized="false"
  48919. static="false" final="false" visibility="public"
  48920. deprecated="not deprecated">
  48921. <doc>
  48922. <![CDATA[Get the progress mechanism for reporting progress.
  48923. @return progress mechanism]]>
  48924. </doc>
  48925. </method>
  48926. </class>
  48927. <!-- end class org.apache.hadoop.mapred.JobContext -->
  48928. <!-- start class org.apache.hadoop.mapred.JobEndNotifier -->
  48929. <class name="JobEndNotifier" extends="java.lang.Object"
  48930. abstract="false"
  48931. static="false" final="false" visibility="public"
  48932. deprecated="not deprecated">
  48933. <constructor name="JobEndNotifier"
  48934. static="false" final="false" visibility="public"
  48935. deprecated="not deprecated">
  48936. </constructor>
  48937. <method name="startNotifier"
  48938. abstract="false" native="false" synchronized="false"
  48939. static="true" final="false" visibility="public"
  48940. deprecated="not deprecated">
  48941. </method>
  48942. <method name="stopNotifier"
  48943. abstract="false" native="false" synchronized="false"
  48944. static="true" final="false" visibility="public"
  48945. deprecated="not deprecated">
  48946. </method>
  48947. <method name="registerNotification"
  48948. abstract="false" native="false" synchronized="false"
  48949. static="true" final="false" visibility="public"
  48950. deprecated="not deprecated">
  48951. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  48952. <param name="status" type="org.apache.hadoop.mapred.JobStatus"/>
  48953. </method>
  48954. <method name="localRunnerNotification"
  48955. abstract="false" native="false" synchronized="false"
  48956. static="true" final="false" visibility="public"
  48957. deprecated="not deprecated">
  48958. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  48959. <param name="status" type="org.apache.hadoop.mapred.JobStatus"/>
  48960. </method>
  48961. </class>
  48962. <!-- end class org.apache.hadoop.mapred.JobEndNotifier -->
  48963. <!-- start class org.apache.hadoop.mapred.JobHistory -->
  48964. <class name="JobHistory" extends="java.lang.Object"
  48965. abstract="false"
  48966. static="false" final="false" visibility="public"
  48967. deprecated="not deprecated">
  48968. <constructor name="JobHistory"
  48969. static="false" final="false" visibility="public"
  48970. deprecated="not deprecated">
  48971. </constructor>
  48972. <method name="getHistoryFilePath" return="java.lang.String"
  48973. abstract="false" native="false" synchronized="false"
  48974. static="true" final="false" visibility="public"
  48975. deprecated="not deprecated">
  48976. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  48977. <doc>
  48978. <![CDATA[Given the job id, return the history file path from the cache]]>
  48979. </doc>
  48980. </method>
  48981. <method name="init"
  48982. abstract="false" native="false" synchronized="false"
  48983. static="true" final="false" visibility="public"
  48984. deprecated="not deprecated">
  48985. <param name="jobTracker" type="org.apache.hadoop.mapred.JobTracker"/>
  48986. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  48987. <param name="hostname" type="java.lang.String"/>
  48988. <param name="jobTrackerStartTime" type="long"/>
  48989. <exception name="IOException" type="java.io.IOException"/>
  48990. <doc>
  48991. <![CDATA[Initialize JobHistory files.
  48992. @param conf Jobconf of the job tracker.
  48993. @param hostname jobtracker's hostname
  48994. @param jobTrackerStartTime jobtracker's start time]]>
  48995. </doc>
  48996. </method>
  48997. <method name="parseHistoryFromFS"
  48998. abstract="false" native="false" synchronized="false"
  48999. static="true" final="false" visibility="public"
  49000. deprecated="not deprecated">
  49001. <param name="path" type="java.lang.String"/>
  49002. <param name="l" type="org.apache.hadoop.mapred.JobHistory.Listener"/>
  49003. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  49004. <exception name="IOException" type="java.io.IOException"/>
  49005. <doc>
  49006. <![CDATA[Parses history file and invokes Listener.handle() for
  49007. each line of history. It can be used for looking through history
  49008. files for specific items without having to keep whole history in memory.
  49009. @param path path to history file
  49010. @param l Listener for history events
  49011. @param fs FileSystem where history file is present
  49012. @throws IOException]]>
  49013. </doc>
  49014. </method>
  49015. <method name="getTaskLogsUrl" return="java.lang.String"
  49016. abstract="false" native="false" synchronized="false"
  49017. static="true" final="false" visibility="public"
  49018. deprecated="not deprecated">
  49019. <param name="attempt" type="org.apache.hadoop.mapred.JobHistory.TaskAttempt"/>
  49020. <doc>
  49021. <![CDATA[Return the TaskLogsUrl of a particular TaskAttempt
  49022. @param attempt
  49023. @return the taskLogsUrl. null if http-port or tracker-name or
  49024. task-attempt-id are unavailable.]]>
  49025. </doc>
  49026. </method>
  49027. <field name="LOG" type="org.apache.commons.logging.Log"
  49028. transient="false" volatile="false"
  49029. static="true" final="true" visibility="public"
  49030. deprecated="not deprecated">
  49031. </field>
  49032. <field name="JOB_NAME_TRIM_LENGTH" type="int"
  49033. transient="false" volatile="false"
  49034. static="true" final="true" visibility="public"
  49035. deprecated="not deprecated">
  49036. </field>
  49037. <field name="JOBHISTORY_FILENAME_REGEX" type="java.util.regex.Pattern"
  49038. transient="false" volatile="false"
  49039. static="true" final="true" visibility="public"
  49040. deprecated="not deprecated">
  49041. </field>
  49042. <field name="CONF_FILENAME_REGEX" type="java.util.regex.Pattern"
  49043. transient="false" volatile="false"
  49044. static="true" final="true" visibility="public"
  49045. deprecated="not deprecated">
  49046. </field>
  49047. <doc>
  49048. <![CDATA[Provides methods for writing to and reading from job history.
  49049. Job History works in an append mode, JobHistory and its inner classes provide methods
  49050. to log job events.
  49051. JobHistory is split into multiple files, format of each file is plain text where each line
  49052. is of the format [type (key=value)*], where type identifies the type of the record.
  49053. Type maps to UID of one of the inner classes of this class.
  49054. Job history is maintained in a master index which contains star/stop times of all jobs with
  49055. a few other job level properties. Apart from this each job's history is maintained in a seperate history
  49056. file. name of job history files follows the format jobtrackerId_jobid
  49057. For parsing the job history it supports a listener based interface where each line is parsed
  49058. and passed to listener. The listener can create an object model of history or look for specific
  49059. events and discard rest of the history.
  49060. CHANGE LOG :
  49061. Version 0 : The history has the following format :
  49062. TAG KEY1="VALUE1" KEY2="VALUE2" and so on.
  49063. TAG can be Job, Task, MapAttempt or ReduceAttempt.
  49064. Note that a '"' is the line delimiter.
  49065. Version 1 : Changes the line delimiter to '.'
  49066. Values are now escaped for unambiguous parsing.
  49067. Added the Meta tag to store version info.]]>
  49068. </doc>
  49069. </class>
  49070. <!-- end class org.apache.hadoop.mapred.JobHistory -->
  49071. <!-- start class org.apache.hadoop.mapred.JobHistory.HistoryCleaner -->
  49072. <class name="JobHistory.HistoryCleaner" extends="java.lang.Object"
  49073. abstract="false"
  49074. static="true" final="false" visibility="public"
  49075. deprecated="not deprecated">
  49076. <implements name="java.lang.Runnable"/>
  49077. <constructor name="JobHistory.HistoryCleaner"
  49078. static="false" final="false" visibility="public"
  49079. deprecated="not deprecated">
  49080. </constructor>
  49081. <method name="run"
  49082. abstract="false" native="false" synchronized="false"
  49083. static="false" final="false" visibility="public"
  49084. deprecated="not deprecated">
  49085. <doc>
  49086. <![CDATA[Cleans up history data.]]>
  49087. </doc>
  49088. </method>
  49089. <doc>
  49090. <![CDATA[Delete history files older than one month. Update master index and remove all
  49091. jobs older than one month. Also if a job tracker has no jobs in last one month
  49092. remove reference to the job tracker.]]>
  49093. </doc>
  49094. </class>
  49095. <!-- end class org.apache.hadoop.mapred.JobHistory.HistoryCleaner -->
  49096. <!-- start class org.apache.hadoop.mapred.JobHistory.JobInfo -->
  49097. <class name="JobHistory.JobInfo" extends="org.apache.hadoop.mapred.JobHistory.KeyValuePair"
  49098. abstract="false"
  49099. static="true" final="false" visibility="public"
  49100. deprecated="not deprecated">
  49101. <constructor name="JobHistory.JobInfo" type="java.lang.String"
  49102. static="false" final="false" visibility="public"
  49103. deprecated="not deprecated">
  49104. <doc>
  49105. <![CDATA[Create new JobInfo]]>
  49106. </doc>
  49107. </constructor>
  49108. <method name="getAllTasks" return="java.util.Map"
  49109. abstract="false" native="false" synchronized="false"
  49110. static="false" final="false" visibility="public"
  49111. deprecated="not deprecated">
  49112. <doc>
  49113. <![CDATA[Returns all map and reduce tasks <taskid-Task>.]]>
  49114. </doc>
  49115. </method>
  49116. <method name="getJobACLs" return="java.util.Map"
  49117. abstract="false" native="false" synchronized="false"
  49118. static="false" final="false" visibility="public"
  49119. deprecated="not deprecated">
  49120. <doc>
  49121. <![CDATA[Get the job acls.
  49122. @return a {@link Map} from {@link JobACL} to {@link AccessControlList}]]>
  49123. </doc>
  49124. </method>
  49125. <method name="handle"
  49126. abstract="false" native="false" synchronized="true"
  49127. static="false" final="false" visibility="public"
  49128. deprecated="not deprecated">
  49129. <param name="values" type="java.util.Map"/>
  49130. </method>
  49131. <method name="getLocalJobFilePath" return="java.lang.String"
  49132. abstract="false" native="false" synchronized="false"
  49133. static="true" final="false" visibility="public"
  49134. deprecated="not deprecated">
  49135. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  49136. <doc>
  49137. <![CDATA[Get the path of the locally stored job file
  49138. @param jobId id of the job
  49139. @return the path of the job file on the local file system]]>
  49140. </doc>
  49141. </method>
  49142. <method name="encodeJobHistoryFilePath" return="java.lang.String"
  49143. abstract="false" native="false" synchronized="false"
  49144. static="true" final="false" visibility="public"
  49145. deprecated="not deprecated">
  49146. <param name="logFile" type="java.lang.String"/>
  49147. <exception name="IOException" type="java.io.IOException"/>
  49148. <doc>
  49149. <![CDATA[Helper function to encode the URL of the path of the job-history
  49150. log file.
  49151. @param logFile path of the job-history file
  49152. @return URL encoded path
  49153. @throws IOException]]>
  49154. </doc>
  49155. </method>
  49156. <method name="encodeJobHistoryFileName" return="java.lang.String"
  49157. abstract="false" native="false" synchronized="false"
  49158. static="true" final="false" visibility="public"
  49159. deprecated="not deprecated">
  49160. <param name="logFileName" type="java.lang.String"/>
  49161. <exception name="IOException" type="java.io.IOException"/>
  49162. <doc>
  49163. <![CDATA[Helper function to encode the URL of the filename of the job-history
  49164. log file.
  49165. @param logFileName file name of the job-history file
  49166. @return URL encoded filename
  49167. @throws IOException]]>
  49168. </doc>
  49169. </method>
  49170. <method name="decodeJobHistoryFileName" return="java.lang.String"
  49171. abstract="false" native="false" synchronized="false"
  49172. static="true" final="false" visibility="public"
  49173. deprecated="not deprecated">
  49174. <param name="logFileName" type="java.lang.String"/>
  49175. <exception name="IOException" type="java.io.IOException"/>
  49176. <doc>
  49177. <![CDATA[Helper function to decode the URL of the filename of the job-history
  49178. log file.
  49179. @param logFileName file name of the job-history file
  49180. @return URL decoded filename
  49181. @throws IOException]]>
  49182. </doc>
  49183. </method>
  49184. <method name="getUserName" return="java.lang.String"
  49185. abstract="false" native="false" synchronized="false"
  49186. static="true" final="false" visibility="public"
  49187. deprecated="not deprecated">
  49188. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  49189. <doc>
  49190. <![CDATA[Get the user name from the job conf]]>
  49191. </doc>
  49192. </method>
  49193. <method name="getJobHistoryLogLocation" return="org.apache.hadoop.fs.Path"
  49194. abstract="false" native="false" synchronized="false"
  49195. static="true" final="false" visibility="public"
  49196. deprecated="not deprecated">
  49197. <param name="logFileName" type="java.lang.String"/>
  49198. <doc>
  49199. <![CDATA[Get the job history file path given the history filename]]>
  49200. </doc>
  49201. </method>
  49202. <method name="getJobHistoryLogLocationForUser" return="org.apache.hadoop.fs.Path"
  49203. abstract="false" native="false" synchronized="false"
  49204. static="true" final="false" visibility="public"
  49205. deprecated="not deprecated">
  49206. <param name="logFileName" type="java.lang.String"/>
  49207. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  49208. <doc>
  49209. <![CDATA[Get the user job history file path]]>
  49210. </doc>
  49211. </method>
  49212. <method name="getJobHistoryFileName" return="java.lang.String"
  49213. abstract="false" native="false" synchronized="true"
  49214. static="true" final="false" visibility="public"
  49215. deprecated="not deprecated">
  49216. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  49217. <param name="id" type="org.apache.hadoop.mapred.JobID"/>
  49218. <exception name="IOException" type="java.io.IOException"/>
  49219. <doc>
  49220. <![CDATA[Recover the job history filename from the history folder.
  49221. Uses the following pattern
  49222. $jt-hostname_[0-9]*_$job-id_$user_$job-name*
  49223. @param jobConf the job conf
  49224. @param id job id]]>
  49225. </doc>
  49226. </method>
  49227. <method name="recoverJobHistoryFile" return="org.apache.hadoop.fs.Path"
  49228. abstract="false" native="false" synchronized="true"
  49229. static="true" final="false" visibility="public"
  49230. deprecated="not deprecated">
  49231. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  49232. <param name="logFilePath" type="org.apache.hadoop.fs.Path"/>
  49233. <exception name="IOException" type="java.io.IOException"/>
  49234. <doc>
  49235. <![CDATA[Selects one of the two files generated as a part of recovery.
  49236. The thumb rule is that always select the oldest file.
  49237. This call makes sure that only one file is left in the end.
  49238. @param conf job conf
  49239. @param logFilePath Path of the log file
  49240. @throws IOException]]>
  49241. </doc>
  49242. </method>
  49243. <method name="logSubmitted"
  49244. abstract="false" native="false" synchronized="false"
  49245. static="true" final="false" visibility="public"
  49246. deprecated="Use
  49247. {@link #logSubmitted(JobID, JobConf, String, long, boolean)} instead.">
  49248. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  49249. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  49250. <param name="jobConfPath" type="java.lang.String"/>
  49251. <param name="submitTime" type="long"/>
  49252. <exception name="IOException" type="java.io.IOException"/>
  49253. <doc>
  49254. <![CDATA[Log job submitted event to history. Creates a new file in history
  49255. for the job. if history file creation fails, it disables history
  49256. for all other events.
  49257. @param jobId job id assigned by job tracker.
  49258. @param jobConf job conf of the job
  49259. @param jobConfPath path to job conf xml file in HDFS.
  49260. @param submitTime time when job tracker received the job
  49261. @throws IOException
  49262. @deprecated Use
  49263. {@link #logSubmitted(JobID, JobConf, String, long, boolean)} instead.]]>
  49264. </doc>
  49265. </method>
  49266. <method name="logSubmitted"
  49267. abstract="false" native="false" synchronized="false"
  49268. static="true" final="false" visibility="public"
  49269. deprecated="not deprecated">
  49270. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  49271. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  49272. <param name="jobConfPath" type="java.lang.String"/>
  49273. <param name="submitTime" type="long"/>
  49274. <param name="restarted" type="boolean"/>
  49275. <exception name="IOException" type="java.io.IOException"/>
  49276. </method>
  49277. <method name="logInited"
  49278. abstract="false" native="false" synchronized="false"
  49279. static="true" final="false" visibility="public"
  49280. deprecated="not deprecated">
  49281. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  49282. <param name="startTime" type="long"/>
  49283. <param name="totalMaps" type="int"/>
  49284. <param name="totalReduces" type="int"/>
  49285. <doc>
  49286. <![CDATA[Logs launch time of job.
  49287. @param jobId job id, assigned by jobtracker.
  49288. @param startTime start time of job.
  49289. @param totalMaps total maps assigned by jobtracker.
  49290. @param totalReduces total reduces.]]>
  49291. </doc>
  49292. </method>
  49293. <method name="logStarted"
  49294. abstract="false" native="false" synchronized="false"
  49295. static="true" final="false" visibility="public"
  49296. deprecated="Use {@link #logInited(JobID, long, int, int)} and
  49297. {@link #logStarted(JobID)}">
  49298. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  49299. <param name="startTime" type="long"/>
  49300. <param name="totalMaps" type="int"/>
  49301. <param name="totalReduces" type="int"/>
  49302. <doc>
  49303. <![CDATA[Logs the job as RUNNING.
  49304. @param jobId job id, assigned by jobtracker.
  49305. @param startTime start time of job.
  49306. @param totalMaps total maps assigned by jobtracker.
  49307. @param totalReduces total reduces.
  49308. @deprecated Use {@link #logInited(JobID, long, int, int)} and
  49309. {@link #logStarted(JobID)}]]>
  49310. </doc>
  49311. </method>
  49312. <method name="logStarted"
  49313. abstract="false" native="false" synchronized="false"
  49314. static="true" final="false" visibility="public"
  49315. deprecated="not deprecated">
  49316. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  49317. <doc>
  49318. <![CDATA[Logs job as running
  49319. @param jobId job id, assigned by jobtracker.]]>
  49320. </doc>
  49321. </method>
  49322. <method name="logFinished"
  49323. abstract="false" native="false" synchronized="false"
  49324. static="true" final="false" visibility="public"
  49325. deprecated="not deprecated">
  49326. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  49327. <param name="finishTime" type="long"/>
  49328. <param name="finishedMaps" type="int"/>
  49329. <param name="finishedReduces" type="int"/>
  49330. <param name="failedMaps" type="int"/>
  49331. <param name="failedReduces" type="int"/>
  49332. <param name="mapCounters" type="org.apache.hadoop.mapred.Counters"/>
  49333. <param name="reduceCounters" type="org.apache.hadoop.mapred.Counters"/>
  49334. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  49335. <doc>
  49336. <![CDATA[Log job finished. closes the job file in history.
  49337. @param jobId job id, assigned by jobtracker.
  49338. @param finishTime finish time of job in ms.
  49339. @param finishedMaps no of maps successfully finished.
  49340. @param finishedReduces no of reduces finished sucessfully.
  49341. @param failedMaps no of failed map tasks.
  49342. @param failedReduces no of failed reduce tasks.
  49343. @param counters the counters from the job]]>
  49344. </doc>
  49345. </method>
  49346. <method name="logFailed"
  49347. abstract="false" native="false" synchronized="false"
  49348. static="true" final="false" visibility="public"
  49349. deprecated="not deprecated">
  49350. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  49351. <param name="timestamp" type="long"/>
  49352. <param name="finishedMaps" type="int"/>
  49353. <param name="finishedReduces" type="int"/>
  49354. <param name="failReason" type="java.lang.String"/>
  49355. <doc>
  49356. <![CDATA[Logs job failed event. Closes the job history log file.
  49357. @param jobid job id
  49358. @param timestamp time when job failure was detected in ms.
  49359. @param finishedMaps no finished map tasks.
  49360. @param finishedReduces no of finished reduce tasks.]]>
  49361. </doc>
  49362. </method>
  49363. <method name="logKilled"
  49364. abstract="false" native="false" synchronized="false"
  49365. static="true" final="false" visibility="public"
  49366. deprecated="not deprecated">
  49367. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  49368. <param name="timestamp" type="long"/>
  49369. <param name="finishedMaps" type="int"/>
  49370. <param name="finishedReduces" type="int"/>
  49371. <doc>
  49372. <![CDATA[Logs job killed event. Closes the job history log file.
  49373. @param jobid
  49374. job id
  49375. @param timestamp
  49376. time when job killed was issued in ms.
  49377. @param finishedMaps
  49378. no finished map tasks.
  49379. @param finishedReduces
  49380. no of finished reduce tasks.]]>
  49381. </doc>
  49382. </method>
  49383. <method name="logJobPriority"
  49384. abstract="false" native="false" synchronized="false"
  49385. static="true" final="false" visibility="public"
  49386. deprecated="not deprecated">
  49387. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  49388. <param name="priority" type="org.apache.hadoop.mapred.JobPriority"/>
  49389. <doc>
  49390. <![CDATA[Log job's priority.
  49391. @param jobid job id
  49392. @param priority Jobs priority]]>
  49393. </doc>
  49394. </method>
  49395. <method name="logJobInfo"
  49396. abstract="false" native="false" synchronized="false"
  49397. static="true" final="false" visibility="public"
  49398. deprecated="Use {@link #logJobInfo(JobID, long, long)} instead.">
  49399. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  49400. <param name="submitTime" type="long"/>
  49401. <param name="launchTime" type="long"/>
  49402. <param name="restartCount" type="int"/>
  49403. <doc>
  49404. <![CDATA[Log job's submit-time/launch-time
  49405. @param jobid job id
  49406. @param submitTime job's submit time
  49407. @param launchTime job's launch time
  49408. @param restartCount number of times the job got restarted
  49409. @deprecated Use {@link #logJobInfo(JobID, long, long)} instead.]]>
  49410. </doc>
  49411. </method>
  49412. <method name="logJobInfo"
  49413. abstract="false" native="false" synchronized="false"
  49414. static="true" final="false" visibility="public"
  49415. deprecated="not deprecated">
  49416. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  49417. <param name="submitTime" type="long"/>
  49418. <param name="launchTime" type="long"/>
  49419. </method>
  49420. <doc>
  49421. <![CDATA[Helper class for logging or reading back events related to job start, finish or failure.]]>
  49422. </doc>
  49423. </class>
  49424. <!-- end class org.apache.hadoop.mapred.JobHistory.JobInfo -->
  49425. <!-- start class org.apache.hadoop.mapred.JobHistory.Keys -->
  49426. <class name="JobHistory.Keys" extends="java.lang.Enum"
  49427. abstract="false"
  49428. static="true" final="true" visibility="public"
  49429. deprecated="not deprecated">
  49430. <method name="values" return="org.apache.hadoop.mapred.JobHistory.Keys[]"
  49431. abstract="false" native="false" synchronized="false"
  49432. static="true" final="false" visibility="public"
  49433. deprecated="not deprecated">
  49434. </method>
  49435. <method name="valueOf" return="org.apache.hadoop.mapred.JobHistory.Keys"
  49436. abstract="false" native="false" synchronized="false"
  49437. static="true" final="false" visibility="public"
  49438. deprecated="not deprecated">
  49439. <param name="name" type="java.lang.String"/>
  49440. </method>
  49441. <field name="JOBTRACKERID" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49442. transient="false" volatile="false"
  49443. static="true" final="true" visibility="public"
  49444. deprecated="not deprecated">
  49445. </field>
  49446. <field name="START_TIME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49447. transient="false" volatile="false"
  49448. static="true" final="true" visibility="public"
  49449. deprecated="not deprecated">
  49450. </field>
  49451. <field name="FINISH_TIME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49452. transient="false" volatile="false"
  49453. static="true" final="true" visibility="public"
  49454. deprecated="not deprecated">
  49455. </field>
  49456. <field name="JOBID" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49457. transient="false" volatile="false"
  49458. static="true" final="true" visibility="public"
  49459. deprecated="not deprecated">
  49460. </field>
  49461. <field name="JOBNAME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49462. transient="false" volatile="false"
  49463. static="true" final="true" visibility="public"
  49464. deprecated="not deprecated">
  49465. </field>
  49466. <field name="USER" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49467. transient="false" volatile="false"
  49468. static="true" final="true" visibility="public"
  49469. deprecated="not deprecated">
  49470. </field>
  49471. <field name="JOBCONF" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49472. transient="false" volatile="false"
  49473. static="true" final="true" visibility="public"
  49474. deprecated="not deprecated">
  49475. </field>
  49476. <field name="SUBMIT_TIME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49477. transient="false" volatile="false"
  49478. static="true" final="true" visibility="public"
  49479. deprecated="not deprecated">
  49480. </field>
  49481. <field name="LAUNCH_TIME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49482. transient="false" volatile="false"
  49483. static="true" final="true" visibility="public"
  49484. deprecated="not deprecated">
  49485. </field>
  49486. <field name="TOTAL_MAPS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49487. transient="false" volatile="false"
  49488. static="true" final="true" visibility="public"
  49489. deprecated="not deprecated">
  49490. </field>
  49491. <field name="TOTAL_REDUCES" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49492. transient="false" volatile="false"
  49493. static="true" final="true" visibility="public"
  49494. deprecated="not deprecated">
  49495. </field>
  49496. <field name="FAILED_MAPS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49497. transient="false" volatile="false"
  49498. static="true" final="true" visibility="public"
  49499. deprecated="not deprecated">
  49500. </field>
  49501. <field name="FAILED_REDUCES" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49502. transient="false" volatile="false"
  49503. static="true" final="true" visibility="public"
  49504. deprecated="not deprecated">
  49505. </field>
  49506. <field name="FINISHED_MAPS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49507. transient="false" volatile="false"
  49508. static="true" final="true" visibility="public"
  49509. deprecated="not deprecated">
  49510. </field>
  49511. <field name="FINISHED_REDUCES" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49512. transient="false" volatile="false"
  49513. static="true" final="true" visibility="public"
  49514. deprecated="not deprecated">
  49515. </field>
  49516. <field name="JOB_STATUS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49517. transient="false" volatile="false"
  49518. static="true" final="true" visibility="public"
  49519. deprecated="not deprecated">
  49520. </field>
  49521. <field name="TASKID" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49522. transient="false" volatile="false"
  49523. static="true" final="true" visibility="public"
  49524. deprecated="not deprecated">
  49525. </field>
  49526. <field name="HOSTNAME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49527. transient="false" volatile="false"
  49528. static="true" final="true" visibility="public"
  49529. deprecated="not deprecated">
  49530. </field>
  49531. <field name="TASK_TYPE" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49532. transient="false" volatile="false"
  49533. static="true" final="true" visibility="public"
  49534. deprecated="not deprecated">
  49535. </field>
  49536. <field name="ERROR" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49537. transient="false" volatile="false"
  49538. static="true" final="true" visibility="public"
  49539. deprecated="not deprecated">
  49540. </field>
  49541. <field name="TASK_ATTEMPT_ID" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49542. transient="false" volatile="false"
  49543. static="true" final="true" visibility="public"
  49544. deprecated="not deprecated">
  49545. </field>
  49546. <field name="TASK_STATUS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49547. transient="false" volatile="false"
  49548. static="true" final="true" visibility="public"
  49549. deprecated="not deprecated">
  49550. </field>
  49551. <field name="COPY_PHASE" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49552. transient="false" volatile="false"
  49553. static="true" final="true" visibility="public"
  49554. deprecated="not deprecated">
  49555. </field>
  49556. <field name="SORT_PHASE" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49557. transient="false" volatile="false"
  49558. static="true" final="true" visibility="public"
  49559. deprecated="not deprecated">
  49560. </field>
  49561. <field name="REDUCE_PHASE" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49562. transient="false" volatile="false"
  49563. static="true" final="true" visibility="public"
  49564. deprecated="not deprecated">
  49565. </field>
  49566. <field name="SHUFFLE_FINISHED" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49567. transient="false" volatile="false"
  49568. static="true" final="true" visibility="public"
  49569. deprecated="not deprecated">
  49570. </field>
  49571. <field name="SORT_FINISHED" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49572. transient="false" volatile="false"
  49573. static="true" final="true" visibility="public"
  49574. deprecated="not deprecated">
  49575. </field>
  49576. <field name="COUNTERS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49577. transient="false" volatile="false"
  49578. static="true" final="true" visibility="public"
  49579. deprecated="not deprecated">
  49580. </field>
  49581. <field name="SPLITS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49582. transient="false" volatile="false"
  49583. static="true" final="true" visibility="public"
  49584. deprecated="not deprecated">
  49585. </field>
  49586. <field name="JOB_PRIORITY" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49587. transient="false" volatile="false"
  49588. static="true" final="true" visibility="public"
  49589. deprecated="not deprecated">
  49590. </field>
  49591. <field name="HTTP_PORT" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49592. transient="false" volatile="false"
  49593. static="true" final="true" visibility="public"
  49594. deprecated="not deprecated">
  49595. </field>
  49596. <field name="TRACKER_NAME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49597. transient="false" volatile="false"
  49598. static="true" final="true" visibility="public"
  49599. deprecated="not deprecated">
  49600. </field>
  49601. <field name="STATE_STRING" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49602. transient="false" volatile="false"
  49603. static="true" final="true" visibility="public"
  49604. deprecated="not deprecated">
  49605. </field>
  49606. <field name="VERSION" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49607. transient="false" volatile="false"
  49608. static="true" final="true" visibility="public"
  49609. deprecated="not deprecated">
  49610. </field>
  49611. <field name="MAP_COUNTERS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49612. transient="false" volatile="false"
  49613. static="true" final="true" visibility="public"
  49614. deprecated="not deprecated">
  49615. </field>
  49616. <field name="REDUCE_COUNTERS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49617. transient="false" volatile="false"
  49618. static="true" final="true" visibility="public"
  49619. deprecated="not deprecated">
  49620. </field>
  49621. <field name="VIEW_JOB" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49622. transient="false" volatile="false"
  49623. static="true" final="true" visibility="public"
  49624. deprecated="not deprecated">
  49625. </field>
  49626. <field name="MODIFY_JOB" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49627. transient="false" volatile="false"
  49628. static="true" final="true" visibility="public"
  49629. deprecated="not deprecated">
  49630. </field>
  49631. <field name="JOB_QUEUE" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49632. transient="false" volatile="false"
  49633. static="true" final="true" visibility="public"
  49634. deprecated="not deprecated">
  49635. </field>
  49636. <field name="FAIL_REASON" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49637. transient="false" volatile="false"
  49638. static="true" final="true" visibility="public"
  49639. deprecated="not deprecated">
  49640. </field>
  49641. <doc>
  49642. <![CDATA[Job history files contain key="value" pairs, where keys belong to this enum.
  49643. It acts as a global namespace for all keys.]]>
  49644. </doc>
  49645. </class>
  49646. <!-- end class org.apache.hadoop.mapred.JobHistory.Keys -->
  49647. <!-- start interface org.apache.hadoop.mapred.JobHistory.Listener -->
  49648. <interface name="JobHistory.Listener" abstract="true"
  49649. static="true" final="false" visibility="public"
  49650. deprecated="not deprecated">
  49651. <method name="handle"
  49652. abstract="false" native="false" synchronized="false"
  49653. static="false" final="false" visibility="public"
  49654. deprecated="not deprecated">
  49655. <param name="recType" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"/>
  49656. <param name="values" type="java.util.Map"/>
  49657. <exception name="IOException" type="java.io.IOException"/>
  49658. <doc>
  49659. <![CDATA[Callback method for history parser.
  49660. @param recType type of record, which is the first entry in the line.
  49661. @param values a map of key-value pairs as thry appear in history.
  49662. @throws IOException]]>
  49663. </doc>
  49664. </method>
  49665. <doc>
  49666. <![CDATA[Callback interface for reading back log events from JobHistory. This interface
  49667. should be implemented and passed to JobHistory.parseHistory()]]>
  49668. </doc>
  49669. </interface>
  49670. <!-- end interface org.apache.hadoop.mapred.JobHistory.Listener -->
  49671. <!-- start class org.apache.hadoop.mapred.JobHistory.MapAttempt -->
  49672. <class name="JobHistory.MapAttempt" extends="org.apache.hadoop.mapred.JobHistory.TaskAttempt"
  49673. abstract="false"
  49674. static="true" final="false" visibility="public"
  49675. deprecated="not deprecated">
  49676. <constructor name="JobHistory.MapAttempt"
  49677. static="false" final="false" visibility="public"
  49678. deprecated="not deprecated">
  49679. </constructor>
  49680. <method name="logStarted"
  49681. abstract="false" native="false" synchronized="false"
  49682. static="true" final="false" visibility="public"
  49683. deprecated="Use
  49684. {@link #logStarted(TaskAttemptID, long, String, int, String)}">
  49685. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  49686. <param name="startTime" type="long"/>
  49687. <param name="hostName" type="java.lang.String"/>
  49688. <doc>
  49689. <![CDATA[Log start time of this map task attempt.
  49690. @param taskAttemptId task attempt id
  49691. @param startTime start time of task attempt as reported by task tracker.
  49692. @param hostName host name of the task attempt.
  49693. @deprecated Use
  49694. {@link #logStarted(TaskAttemptID, long, String, int, String)}]]>
  49695. </doc>
  49696. </method>
  49697. <method name="logStarted"
  49698. abstract="false" native="false" synchronized="false"
  49699. static="true" final="false" visibility="public"
  49700. deprecated="not deprecated">
  49701. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  49702. <param name="startTime" type="long"/>
  49703. <param name="trackerName" type="java.lang.String"/>
  49704. <param name="httpPort" type="int"/>
  49705. <param name="taskType" type="java.lang.String"/>
  49706. <doc>
  49707. <![CDATA[Log start time of this map task attempt.
  49708. @param taskAttemptId task attempt id
  49709. @param startTime start time of task attempt as reported by task tracker.
  49710. @param trackerName name of the tracker executing the task attempt.
  49711. @param httpPort http port of the task tracker executing the task attempt
  49712. @param taskType Whether the attempt is cleanup or setup or map]]>
  49713. </doc>
  49714. </method>
  49715. <method name="logFinished"
  49716. abstract="false" native="false" synchronized="false"
  49717. static="true" final="false" visibility="public"
  49718. deprecated="Use
  49719. {@link #logFinished(TaskAttemptID, long, String, String, String, Counters)}">
  49720. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  49721. <param name="finishTime" type="long"/>
  49722. <param name="hostName" type="java.lang.String"/>
  49723. <doc>
  49724. <![CDATA[Log finish time of map task attempt.
  49725. @param taskAttemptId task attempt id
  49726. @param finishTime finish time
  49727. @param hostName host name
  49728. @deprecated Use
  49729. {@link #logFinished(TaskAttemptID, long, String, String, String, Counters)}]]>
  49730. </doc>
  49731. </method>
  49732. <method name="logFinished"
  49733. abstract="false" native="false" synchronized="false"
  49734. static="true" final="false" visibility="public"
  49735. deprecated="not deprecated">
  49736. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  49737. <param name="finishTime" type="long"/>
  49738. <param name="hostName" type="java.lang.String"/>
  49739. <param name="taskType" type="java.lang.String"/>
  49740. <param name="stateString" type="java.lang.String"/>
  49741. <param name="counter" type="org.apache.hadoop.mapred.Counters"/>
  49742. <doc>
  49743. <![CDATA[Log finish time of map task attempt.
  49744. @param taskAttemptId task attempt id
  49745. @param finishTime finish time
  49746. @param hostName host name
  49747. @param taskType Whether the attempt is cleanup or setup or map
  49748. @param stateString state string of the task attempt
  49749. @param counter counters of the task attempt]]>
  49750. </doc>
  49751. </method>
  49752. <method name="logFailed"
  49753. abstract="false" native="false" synchronized="false"
  49754. static="true" final="false" visibility="public"
  49755. deprecated="Use
  49756. {@link #logFailed(TaskAttemptID, long, String, String, String)}">
  49757. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  49758. <param name="timestamp" type="long"/>
  49759. <param name="hostName" type="java.lang.String"/>
  49760. <param name="error" type="java.lang.String"/>
  49761. <doc>
  49762. <![CDATA[Log task attempt failed event.
  49763. @param taskAttemptId task attempt id
  49764. @param timestamp timestamp
  49765. @param hostName hostname of this task attempt.
  49766. @param error error message if any for this task attempt.
  49767. @deprecated Use
  49768. {@link #logFailed(TaskAttemptID, long, String, String, String)}]]>
  49769. </doc>
  49770. </method>
  49771. <method name="logFailed"
  49772. abstract="false" native="false" synchronized="false"
  49773. static="true" final="false" visibility="public"
  49774. deprecated="not deprecated">
  49775. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  49776. <param name="timestamp" type="long"/>
  49777. <param name="hostName" type="java.lang.String"/>
  49778. <param name="error" type="java.lang.String"/>
  49779. <param name="taskType" type="java.lang.String"/>
  49780. <doc>
  49781. <![CDATA[Log task attempt failed event.
  49782. @param taskAttemptId task attempt id
  49783. @param timestamp timestamp
  49784. @param hostName hostname of this task attempt.
  49785. @param error error message if any for this task attempt.
  49786. @param taskType Whether the attempt is cleanup or setup or map]]>
  49787. </doc>
  49788. </method>
  49789. <method name="logKilled"
  49790. abstract="false" native="false" synchronized="false"
  49791. static="true" final="false" visibility="public"
  49792. deprecated="Use
  49793. {@link #logKilled(TaskAttemptID, long, String, String, String)}">
  49794. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  49795. <param name="timestamp" type="long"/>
  49796. <param name="hostName" type="java.lang.String"/>
  49797. <param name="error" type="java.lang.String"/>
  49798. <doc>
  49799. <![CDATA[Log task attempt killed event.
  49800. @param taskAttemptId task attempt id
  49801. @param timestamp timestamp
  49802. @param hostName hostname of this task attempt.
  49803. @param error error message if any for this task attempt.
  49804. @deprecated Use
  49805. {@link #logKilled(TaskAttemptID, long, String, String, String)}]]>
  49806. </doc>
  49807. </method>
  49808. <method name="logKilled"
  49809. abstract="false" native="false" synchronized="false"
  49810. static="true" final="false" visibility="public"
  49811. deprecated="not deprecated">
  49812. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  49813. <param name="timestamp" type="long"/>
  49814. <param name="hostName" type="java.lang.String"/>
  49815. <param name="error" type="java.lang.String"/>
  49816. <param name="taskType" type="java.lang.String"/>
  49817. <doc>
  49818. <![CDATA[Log task attempt killed event.
  49819. @param taskAttemptId task attempt id
  49820. @param timestamp timestamp
  49821. @param hostName hostname of this task attempt.
  49822. @param error error message if any for this task attempt.
  49823. @param taskType Whether the attempt is cleanup or setup or map]]>
  49824. </doc>
  49825. </method>
  49826. <doc>
  49827. <![CDATA[Helper class for logging or reading back events related to start, finish or failure of
  49828. a Map Attempt on a node.]]>
  49829. </doc>
  49830. </class>
  49831. <!-- end class org.apache.hadoop.mapred.JobHistory.MapAttempt -->
  49832. <!-- start class org.apache.hadoop.mapred.JobHistory.RecordTypes -->
  49833. <class name="JobHistory.RecordTypes" extends="java.lang.Enum"
  49834. abstract="false"
  49835. static="true" final="true" visibility="public"
  49836. deprecated="not deprecated">
  49837. <method name="values" return="org.apache.hadoop.mapred.JobHistory.RecordTypes[]"
  49838. abstract="false" native="false" synchronized="false"
  49839. static="true" final="false" visibility="public"
  49840. deprecated="not deprecated">
  49841. </method>
  49842. <method name="valueOf" return="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  49843. abstract="false" native="false" synchronized="false"
  49844. static="true" final="false" visibility="public"
  49845. deprecated="not deprecated">
  49846. <param name="name" type="java.lang.String"/>
  49847. </method>
  49848. <field name="Jobtracker" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  49849. transient="false" volatile="false"
  49850. static="true" final="true" visibility="public"
  49851. deprecated="not deprecated">
  49852. </field>
  49853. <field name="Job" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  49854. transient="false" volatile="false"
  49855. static="true" final="true" visibility="public"
  49856. deprecated="not deprecated">
  49857. </field>
  49858. <field name="Task" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  49859. transient="false" volatile="false"
  49860. static="true" final="true" visibility="public"
  49861. deprecated="not deprecated">
  49862. </field>
  49863. <field name="MapAttempt" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  49864. transient="false" volatile="false"
  49865. static="true" final="true" visibility="public"
  49866. deprecated="not deprecated">
  49867. </field>
  49868. <field name="ReduceAttempt" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  49869. transient="false" volatile="false"
  49870. static="true" final="true" visibility="public"
  49871. deprecated="not deprecated">
  49872. </field>
  49873. <field name="Meta" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  49874. transient="false" volatile="false"
  49875. static="true" final="true" visibility="public"
  49876. deprecated="not deprecated">
  49877. </field>
  49878. <doc>
  49879. <![CDATA[Record types are identifiers for each line of log in history files.
  49880. A record type appears as the first token in a single line of log.]]>
  49881. </doc>
  49882. </class>
  49883. <!-- end class org.apache.hadoop.mapred.JobHistory.RecordTypes -->
  49884. <!-- start class org.apache.hadoop.mapred.JobHistory.ReduceAttempt -->
  49885. <class name="JobHistory.ReduceAttempt" extends="org.apache.hadoop.mapred.JobHistory.TaskAttempt"
  49886. abstract="false"
  49887. static="true" final="false" visibility="public"
  49888. deprecated="not deprecated">
  49889. <constructor name="JobHistory.ReduceAttempt"
  49890. static="false" final="false" visibility="public"
  49891. deprecated="not deprecated">
  49892. </constructor>
  49893. <method name="logStarted"
  49894. abstract="false" native="false" synchronized="false"
  49895. static="true" final="false" visibility="public"
  49896. deprecated="Use
  49897. {@link #logStarted(TaskAttemptID, long, String, int, String)}">
  49898. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  49899. <param name="startTime" type="long"/>
  49900. <param name="hostName" type="java.lang.String"/>
  49901. <doc>
  49902. <![CDATA[Log start time of Reduce task attempt.
  49903. @param taskAttemptId task attempt id
  49904. @param startTime start time
  49905. @param hostName host name
  49906. @deprecated Use
  49907. {@link #logStarted(TaskAttemptID, long, String, int, String)}]]>
  49908. </doc>
  49909. </method>
  49910. <method name="logStarted"
  49911. abstract="false" native="false" synchronized="false"
  49912. static="true" final="false" visibility="public"
  49913. deprecated="not deprecated">
  49914. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  49915. <param name="startTime" type="long"/>
  49916. <param name="trackerName" type="java.lang.String"/>
  49917. <param name="httpPort" type="int"/>
  49918. <param name="taskType" type="java.lang.String"/>
  49919. <doc>
  49920. <![CDATA[Log start time of Reduce task attempt.
  49921. @param taskAttemptId task attempt id
  49922. @param startTime start time
  49923. @param trackerName tracker name
  49924. @param httpPort the http port of the tracker executing the task attempt
  49925. @param taskType Whether the attempt is cleanup or setup or reduce]]>
  49926. </doc>
  49927. </method>
  49928. <method name="logFinished"
  49929. abstract="false" native="false" synchronized="false"
  49930. static="true" final="false" visibility="public"
  49931. deprecated="Use
  49932. {@link #logFinished(TaskAttemptID, long, long, long, String, String, String, Counters)}">
  49933. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  49934. <param name="shuffleFinished" type="long"/>
  49935. <param name="sortFinished" type="long"/>
  49936. <param name="finishTime" type="long"/>
  49937. <param name="hostName" type="java.lang.String"/>
  49938. <doc>
  49939. <![CDATA[Log finished event of this task.
  49940. @param taskAttemptId task attempt id
  49941. @param shuffleFinished shuffle finish time
  49942. @param sortFinished sort finish time
  49943. @param finishTime finish time of task
  49944. @param hostName host name where task attempt executed
  49945. @deprecated Use
  49946. {@link #logFinished(TaskAttemptID, long, long, long, String, String, String, Counters)}]]>
  49947. </doc>
  49948. </method>
  49949. <method name="logFinished"
  49950. abstract="false" native="false" synchronized="false"
  49951. static="true" final="false" visibility="public"
  49952. deprecated="not deprecated">
  49953. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  49954. <param name="shuffleFinished" type="long"/>
  49955. <param name="sortFinished" type="long"/>
  49956. <param name="finishTime" type="long"/>
  49957. <param name="hostName" type="java.lang.String"/>
  49958. <param name="taskType" type="java.lang.String"/>
  49959. <param name="stateString" type="java.lang.String"/>
  49960. <param name="counter" type="org.apache.hadoop.mapred.Counters"/>
  49961. <doc>
  49962. <![CDATA[Log finished event of this task.
  49963. @param taskAttemptId task attempt id
  49964. @param shuffleFinished shuffle finish time
  49965. @param sortFinished sort finish time
  49966. @param finishTime finish time of task
  49967. @param hostName host name where task attempt executed
  49968. @param taskType Whether the attempt is cleanup or setup or reduce
  49969. @param stateString the state string of the attempt
  49970. @param counter counters of the attempt]]>
  49971. </doc>
  49972. </method>
  49973. <method name="logFailed"
  49974. abstract="false" native="false" synchronized="false"
  49975. static="true" final="false" visibility="public"
  49976. deprecated="Use
  49977. {@link #logFailed(TaskAttemptID, long, String, String, String)}">
  49978. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  49979. <param name="timestamp" type="long"/>
  49980. <param name="hostName" type="java.lang.String"/>
  49981. <param name="error" type="java.lang.String"/>
  49982. <doc>
  49983. <![CDATA[Log failed reduce task attempt.
  49984. @param taskAttemptId task attempt id
  49985. @param timestamp time stamp when task failed
  49986. @param hostName host name of the task attempt.
  49987. @param error error message of the task.
  49988. @deprecated Use
  49989. {@link #logFailed(TaskAttemptID, long, String, String, String)}]]>
  49990. </doc>
  49991. </method>
  49992. <method name="logFailed"
  49993. abstract="false" native="false" synchronized="false"
  49994. static="true" final="false" visibility="public"
  49995. deprecated="not deprecated">
  49996. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  49997. <param name="timestamp" type="long"/>
  49998. <param name="hostName" type="java.lang.String"/>
  49999. <param name="error" type="java.lang.String"/>
  50000. <param name="taskType" type="java.lang.String"/>
  50001. <doc>
  50002. <![CDATA[Log failed reduce task attempt.
  50003. @param taskAttemptId task attempt id
  50004. @param timestamp time stamp when task failed
  50005. @param hostName host name of the task attempt.
  50006. @param error error message of the task.
  50007. @param taskType Whether the attempt is cleanup or setup or reduce]]>
  50008. </doc>
  50009. </method>
  50010. <method name="logKilled"
  50011. abstract="false" native="false" synchronized="false"
  50012. static="true" final="false" visibility="public"
  50013. deprecated="Use
  50014. {@link #logKilled(TaskAttemptID, long, String, String, String)}">
  50015. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  50016. <param name="timestamp" type="long"/>
  50017. <param name="hostName" type="java.lang.String"/>
  50018. <param name="error" type="java.lang.String"/>
  50019. <doc>
  50020. <![CDATA[Log killed reduce task attempt.
  50021. @param taskAttemptId task attempt id
  50022. @param timestamp time stamp when task failed
  50023. @param hostName host name of the task attempt.
  50024. @param error error message of the task.
  50025. @deprecated Use
  50026. {@link #logKilled(TaskAttemptID, long, String, String, String)}]]>
  50027. </doc>
  50028. </method>
  50029. <method name="logKilled"
  50030. abstract="false" native="false" synchronized="false"
  50031. static="true" final="false" visibility="public"
  50032. deprecated="not deprecated">
  50033. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  50034. <param name="timestamp" type="long"/>
  50035. <param name="hostName" type="java.lang.String"/>
  50036. <param name="error" type="java.lang.String"/>
  50037. <param name="taskType" type="java.lang.String"/>
  50038. <doc>
  50039. <![CDATA[Log killed reduce task attempt.
  50040. @param taskAttemptId task attempt id
  50041. @param timestamp time stamp when task failed
  50042. @param hostName host name of the task attempt.
  50043. @param error error message of the task.
  50044. @param taskType Whether the attempt is cleanup or setup or reduce]]>
  50045. </doc>
  50046. </method>
  50047. <doc>
  50048. <![CDATA[Helper class for logging or reading back events related to start, finish or failure of
  50049. a Map Attempt on a node.]]>
  50050. </doc>
  50051. </class>
  50052. <!-- end class org.apache.hadoop.mapred.JobHistory.ReduceAttempt -->
  50053. <!-- start class org.apache.hadoop.mapred.JobHistory.Task -->
  50054. <class name="JobHistory.Task" extends="org.apache.hadoop.mapred.JobHistory.KeyValuePair"
  50055. abstract="false"
  50056. static="true" final="false" visibility="public"
  50057. deprecated="not deprecated">
  50058. <constructor name="JobHistory.Task"
  50059. static="false" final="false" visibility="public"
  50060. deprecated="not deprecated">
  50061. </constructor>
  50062. <method name="logStarted"
  50063. abstract="false" native="false" synchronized="false"
  50064. static="true" final="false" visibility="public"
  50065. deprecated="not deprecated">
  50066. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  50067. <param name="taskType" type="java.lang.String"/>
  50068. <param name="startTime" type="long"/>
  50069. <param name="splitLocations" type="java.lang.String"/>
  50070. <doc>
  50071. <![CDATA[Log start time of task (TIP).
  50072. @param taskId task id
  50073. @param taskType MAP or REDUCE
  50074. @param startTime startTime of tip.]]>
  50075. </doc>
  50076. </method>
  50077. <method name="logFinished"
  50078. abstract="false" native="false" synchronized="false"
  50079. static="true" final="false" visibility="public"
  50080. deprecated="not deprecated">
  50081. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  50082. <param name="taskType" type="java.lang.String"/>
  50083. <param name="finishTime" type="long"/>
  50084. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  50085. <doc>
  50086. <![CDATA[Log finish time of task.
  50087. @param taskId task id
  50088. @param taskType MAP or REDUCE
  50089. @param finishTime finish timeof task in ms]]>
  50090. </doc>
  50091. </method>
  50092. <method name="logUpdates"
  50093. abstract="false" native="false" synchronized="false"
  50094. static="true" final="false" visibility="public"
  50095. deprecated="not deprecated">
  50096. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  50097. <param name="finishTime" type="long"/>
  50098. <doc>
  50099. <![CDATA[Update the finish time of task.
  50100. @param taskId task id
  50101. @param finishTime finish time of task in ms]]>
  50102. </doc>
  50103. </method>
  50104. <method name="logFailed"
  50105. abstract="false" native="false" synchronized="false"
  50106. static="true" final="false" visibility="public"
  50107. deprecated="not deprecated">
  50108. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  50109. <param name="taskType" type="java.lang.String"/>
  50110. <param name="time" type="long"/>
  50111. <param name="error" type="java.lang.String"/>
  50112. <doc>
  50113. <![CDATA[Log job failed event.
  50114. @param taskId task id
  50115. @param taskType MAP or REDUCE.
  50116. @param time timestamp when job failed detected.
  50117. @param error error message for failure.]]>
  50118. </doc>
  50119. </method>
  50120. <method name="logFailed"
  50121. abstract="false" native="false" synchronized="false"
  50122. static="true" final="false" visibility="public"
  50123. deprecated="not deprecated">
  50124. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  50125. <param name="taskType" type="java.lang.String"/>
  50126. <param name="time" type="long"/>
  50127. <param name="error" type="java.lang.String"/>
  50128. <param name="failedDueToAttempt" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  50129. <doc>
  50130. <![CDATA[@param failedDueToAttempt The attempt that caused the failure, if any]]>
  50131. </doc>
  50132. </method>
  50133. <method name="getTaskAttempts" return="java.util.Map"
  50134. abstract="false" native="false" synchronized="false"
  50135. static="false" final="false" visibility="public"
  50136. deprecated="not deprecated">
  50137. <doc>
  50138. <![CDATA[Returns all task attempts for this task. <task attempt id - TaskAttempt>]]>
  50139. </doc>
  50140. </method>
  50141. <doc>
  50142. <![CDATA[Helper class for logging or reading back events related to Task's start, finish or failure.
  50143. All events logged by this class are logged in a separate file per job in
  50144. job tracker history. These events map to TIPs in jobtracker.]]>
  50145. </doc>
  50146. </class>
  50147. <!-- end class org.apache.hadoop.mapred.JobHistory.Task -->
  50148. <!-- start class org.apache.hadoop.mapred.JobHistory.TaskAttempt -->
  50149. <class name="JobHistory.TaskAttempt" extends="org.apache.hadoop.mapred.JobHistory.Task"
  50150. abstract="false"
  50151. static="true" final="false" visibility="public"
  50152. deprecated="not deprecated">
  50153. <constructor name="JobHistory.TaskAttempt"
  50154. static="false" final="false" visibility="public"
  50155. deprecated="not deprecated">
  50156. </constructor>
  50157. <doc>
  50158. <![CDATA[Base class for Map and Reduce TaskAttempts.]]>
  50159. </doc>
  50160. </class>
  50161. <!-- end class org.apache.hadoop.mapred.JobHistory.TaskAttempt -->
  50162. <!-- start class org.apache.hadoop.mapred.JobHistory.Values -->
  50163. <class name="JobHistory.Values" extends="java.lang.Enum"
  50164. abstract="false"
  50165. static="true" final="true" visibility="public"
  50166. deprecated="not deprecated">
  50167. <method name="values" return="org.apache.hadoop.mapred.JobHistory.Values[]"
  50168. abstract="false" native="false" synchronized="false"
  50169. static="true" final="false" visibility="public"
  50170. deprecated="not deprecated">
  50171. </method>
  50172. <method name="valueOf" return="org.apache.hadoop.mapred.JobHistory.Values"
  50173. abstract="false" native="false" synchronized="false"
  50174. static="true" final="false" visibility="public"
  50175. deprecated="not deprecated">
  50176. <param name="name" type="java.lang.String"/>
  50177. </method>
  50178. <field name="SUCCESS" type="org.apache.hadoop.mapred.JobHistory.Values"
  50179. transient="false" volatile="false"
  50180. static="true" final="true" visibility="public"
  50181. deprecated="not deprecated">
  50182. </field>
  50183. <field name="FAILED" type="org.apache.hadoop.mapred.JobHistory.Values"
  50184. transient="false" volatile="false"
  50185. static="true" final="true" visibility="public"
  50186. deprecated="not deprecated">
  50187. </field>
  50188. <field name="KILLED" type="org.apache.hadoop.mapred.JobHistory.Values"
  50189. transient="false" volatile="false"
  50190. static="true" final="true" visibility="public"
  50191. deprecated="not deprecated">
  50192. </field>
  50193. <field name="MAP" type="org.apache.hadoop.mapred.JobHistory.Values"
  50194. transient="false" volatile="false"
  50195. static="true" final="true" visibility="public"
  50196. deprecated="not deprecated">
  50197. </field>
  50198. <field name="REDUCE" type="org.apache.hadoop.mapred.JobHistory.Values"
  50199. transient="false" volatile="false"
  50200. static="true" final="true" visibility="public"
  50201. deprecated="not deprecated">
  50202. </field>
  50203. <field name="CLEANUP" type="org.apache.hadoop.mapred.JobHistory.Values"
  50204. transient="false" volatile="false"
  50205. static="true" final="true" visibility="public"
  50206. deprecated="not deprecated">
  50207. </field>
  50208. <field name="RUNNING" type="org.apache.hadoop.mapred.JobHistory.Values"
  50209. transient="false" volatile="false"
  50210. static="true" final="true" visibility="public"
  50211. deprecated="not deprecated">
  50212. </field>
  50213. <field name="PREP" type="org.apache.hadoop.mapred.JobHistory.Values"
  50214. transient="false" volatile="false"
  50215. static="true" final="true" visibility="public"
  50216. deprecated="not deprecated">
  50217. </field>
  50218. <field name="SETUP" type="org.apache.hadoop.mapred.JobHistory.Values"
  50219. transient="false" volatile="false"
  50220. static="true" final="true" visibility="public"
  50221. deprecated="not deprecated">
  50222. </field>
  50223. <doc>
  50224. <![CDATA[This enum contains some of the values commonly used by history log events.
  50225. since values in history can only be strings - Values.name() is used in
  50226. most places in history file.]]>
  50227. </doc>
  50228. </class>
  50229. <!-- end class org.apache.hadoop.mapred.JobHistory.Values -->
  50230. <!-- start class org.apache.hadoop.mapred.JobHistoryServer -->
  50231. <class name="JobHistoryServer" extends="java.lang.Object"
  50232. abstract="false"
  50233. static="false" final="false" visibility="public"
  50234. deprecated="not deprecated">
  50235. <constructor name="JobHistoryServer" type="org.apache.hadoop.mapred.JobConf"
  50236. static="false" final="false" visibility="public"
  50237. deprecated="not deprecated">
  50238. <exception name="IOException" type="java.io.IOException"/>
  50239. <doc>
  50240. <![CDATA[Starts job history server as a independent process
  50241. * Initializes ACL Manager
  50242. * Starts a webapp to service history requests
  50243. @param conf - Mr Cluster configuration
  50244. @throws IOException - any exception starting history server]]>
  50245. </doc>
  50246. </constructor>
  50247. <constructor name="JobHistoryServer" type="org.apache.hadoop.mapred.JobConf, org.apache.hadoop.mapred.ACLsManager, org.apache.hadoop.http.HttpServer"
  50248. static="false" final="false" visibility="public"
  50249. deprecated="not deprecated">
  50250. <exception name="IOException" type="java.io.IOException"/>
  50251. <doc>
  50252. <![CDATA[Starts job history server as a embedded server within job tracker
  50253. * Starts a webapp to service history requests
  50254. @param conf - MR Cluster configuration
  50255. @param aclsManager - ACLs Manager for user authentication
  50256. @param httpServer - Http Server instance
  50257. @throws IOException - any exception starting history server]]>
  50258. </doc>
  50259. </constructor>
  50260. <method name="start"
  50261. abstract="false" native="false" synchronized="false"
  50262. static="false" final="false" visibility="public"
  50263. deprecated="not deprecated">
  50264. <exception name="IOException" type="java.io.IOException"/>
  50265. </method>
  50266. <method name="join"
  50267. abstract="false" native="false" synchronized="false"
  50268. static="false" final="false" visibility="public"
  50269. deprecated="not deprecated">
  50270. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  50271. </method>
  50272. <method name="shutdown"
  50273. abstract="false" native="false" synchronized="false"
  50274. static="false" final="false" visibility="public"
  50275. deprecated="not deprecated">
  50276. <exception name="Exception" type="java.lang.Exception"/>
  50277. <doc>
  50278. <![CDATA[Shutsdown the history server if already initialized
  50279. @throws Exception - Any exception during shutdown]]>
  50280. </doc>
  50281. </method>
  50282. <method name="main"
  50283. abstract="false" native="false" synchronized="false"
  50284. static="true" final="false" visibility="public"
  50285. deprecated="not deprecated">
  50286. <param name="args" type="java.lang.String[]"/>
  50287. <doc>
  50288. <![CDATA[Start job history server as an independent process
  50289. @param args - Command line arguments]]>
  50290. </doc>
  50291. </method>
  50292. <field name="MAPRED_HISTORY_SERVER_HTTP_ADDRESS" type="java.lang.String"
  50293. transient="false" volatile="false"
  50294. static="true" final="true" visibility="public"
  50295. deprecated="not deprecated">
  50296. </field>
  50297. <field name="MAPRED_HISTORY_SERVER_EMBEDDED" type="java.lang.String"
  50298. transient="false" volatile="false"
  50299. static="true" final="true" visibility="public"
  50300. deprecated="not deprecated">
  50301. </field>
  50302. <doc>
  50303. <![CDATA[{@link JobHistoryServer} is responsible for servicing all job history
  50304. related requests from client.
  50305. History Server can be initialized in one of two modes
  50306. * Emdedded within {@link JobTracker}
  50307. * External daemon, can either be run on the job tracker node or outside
  50308. Two {@link Configuration} entries in mapred-site.xml govern the functioning
  50309. of the history server
  50310. mapred.job.history.server.http.address is address to which history web
  50311. server is bound to. If operating in embedded mode, the hostname on
  50312. history address has to be same as the job tracker host name
  50313. mapred.job.history.server.embedded (default is true) will cause job tracker
  50314. to init history server, else the server need to be started as a
  50315. separate daemon process]]>
  50316. </doc>
  50317. </class>
  50318. <!-- end class org.apache.hadoop.mapred.JobHistoryServer -->
  50319. <!-- start class org.apache.hadoop.mapred.JobID -->
  50320. <class name="JobID" extends="org.apache.hadoop.mapreduce.JobID"
  50321. abstract="false"
  50322. static="false" final="false" visibility="public"
  50323. deprecated="not deprecated">
  50324. <constructor name="JobID" type="java.lang.String, int"
  50325. static="false" final="false" visibility="public"
  50326. deprecated="not deprecated">
  50327. <doc>
  50328. <![CDATA[Constructs a JobID object
  50329. @param jtIdentifier jobTracker identifier
  50330. @param id job number]]>
  50331. </doc>
  50332. </constructor>
  50333. <constructor name="JobID"
  50334. static="false" final="false" visibility="public"
  50335. deprecated="not deprecated">
  50336. </constructor>
  50337. <method name="downgrade" return="org.apache.hadoop.mapred.JobID"
  50338. abstract="false" native="false" synchronized="false"
  50339. static="true" final="false" visibility="public"
  50340. deprecated="not deprecated">
  50341. <param name="old" type="org.apache.hadoop.mapreduce.JobID"/>
  50342. <doc>
  50343. <![CDATA[Downgrade a new JobID to an old one
  50344. @param old a new or old JobID
  50345. @return either old or a new JobID build to match old]]>
  50346. </doc>
  50347. </method>
  50348. <method name="read" return="org.apache.hadoop.mapred.JobID"
  50349. abstract="false" native="false" synchronized="false"
  50350. static="true" final="false" visibility="public"
  50351. deprecated="not deprecated">
  50352. <param name="in" type="java.io.DataInput"/>
  50353. <exception name="IOException" type="java.io.IOException"/>
  50354. </method>
  50355. <method name="forName" return="org.apache.hadoop.mapred.JobID"
  50356. abstract="false" native="false" synchronized="false"
  50357. static="true" final="false" visibility="public"
  50358. deprecated="not deprecated">
  50359. <param name="str" type="java.lang.String"/>
  50360. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  50361. <doc>
  50362. <![CDATA[Construct a JobId object from given string
  50363. @return constructed JobId object or null if the given String is null
  50364. @throws IllegalArgumentException if the given string is malformed]]>
  50365. </doc>
  50366. </method>
  50367. <method name="getJobIDsPattern" return="java.lang.String"
  50368. abstract="false" native="false" synchronized="false"
  50369. static="true" final="false" visibility="public"
  50370. deprecated="not deprecated">
  50371. <param name="jtIdentifier" type="java.lang.String"/>
  50372. <param name="jobId" type="java.lang.Integer"/>
  50373. <doc>
  50374. <![CDATA[Returns a regex pattern which matches task IDs. Arguments can
  50375. be given null, in which case that part of the regex will be generic.
  50376. For example to obtain a regex matching <i>any job</i>
  50377. run on the jobtracker started at <i>200707121733</i>, we would use :
  50378. <pre>
  50379. JobID.getTaskIDsPattern("200707121733", null);
  50380. </pre>
  50381. which will return :
  50382. <pre> "job_200707121733_[0-9]*" </pre>
  50383. @param jtIdentifier jobTracker identifier, or null
  50384. @param jobId job number, or null
  50385. @return a regex pattern matching JobIDs]]>
  50386. </doc>
  50387. </method>
  50388. <doc>
  50389. <![CDATA[JobID represents the immutable and unique identifier for
  50390. the job. JobID consists of two parts. First part
  50391. represents the jobtracker identifier, so that jobID to jobtracker map
  50392. is defined. For cluster setup this string is the jobtracker
  50393. start time, for local setting, it is "local".
  50394. Second part of the JobID is the job number. <br>
  50395. An example JobID is :
  50396. <code>job_200707121733_0003</code> , which represents the third job
  50397. running at the jobtracker started at <code>200707121733</code>.
  50398. <p>
  50399. Applications should never construct or parse JobID strings, but rather
  50400. use appropriate constructors or {@link #forName(String)} method.
  50401. @see TaskID
  50402. @see TaskAttemptID]]>
  50403. </doc>
  50404. </class>
  50405. <!-- end class org.apache.hadoop.mapred.JobID -->
  50406. <!-- start class org.apache.hadoop.mapred.JobInProgress -->
  50407. <class name="JobInProgress" extends="java.lang.Object"
  50408. abstract="false"
  50409. static="false" final="false" visibility="public"
  50410. deprecated="not deprecated">
  50411. <constructor name="JobInProgress" type="org.apache.hadoop.mapred.JobID, org.apache.hadoop.mapred.JobConf, org.apache.hadoop.mapred.JobTracker"
  50412. static="false" final="false" visibility="protected"
  50413. deprecated="not deprecated">
  50414. <exception name="IOException" type="java.io.IOException"/>
  50415. <doc>
  50416. <![CDATA[Create an almost empty JobInProgress, which can be used only for tests]]>
  50417. </doc>
  50418. </constructor>
  50419. <method name="getQueueMetrics" return="org.apache.hadoop.mapred.QueueMetrics"
  50420. abstract="false" native="false" synchronized="false"
  50421. static="false" final="false" visibility="public"
  50422. deprecated="not deprecated">
  50423. <doc>
  50424. <![CDATA[Get the QueueMetrics object associated with this job
  50425. @return QueueMetrics]]>
  50426. </doc>
  50427. </method>
  50428. <method name="cleanUpMetrics"
  50429. abstract="false" native="false" synchronized="false"
  50430. static="false" final="false" visibility="public"
  50431. deprecated="not deprecated">
  50432. <doc>
  50433. <![CDATA[Called when the job is complete]]>
  50434. </doc>
  50435. </method>
  50436. <method name="inited" return="boolean"
  50437. abstract="false" native="false" synchronized="false"
  50438. static="false" final="false" visibility="public"
  50439. deprecated="not deprecated">
  50440. <doc>
  50441. <![CDATA[Check if the job has been initialized.
  50442. @return <code>true</code> if the job has been initialized,
  50443. <code>false</code> otherwise]]>
  50444. </doc>
  50445. </method>
  50446. <method name="getUser" return="java.lang.String"
  50447. abstract="false" native="false" synchronized="false"
  50448. static="false" final="false" visibility="public"
  50449. deprecated="not deprecated">
  50450. <doc>
  50451. <![CDATA[Get the user for the job]]>
  50452. </doc>
  50453. </method>
  50454. <method name="initTasks"
  50455. abstract="false" native="false" synchronized="true"
  50456. static="false" final="false" visibility="public"
  50457. deprecated="not deprecated">
  50458. <exception name="IOException" type="java.io.IOException"/>
  50459. <exception name="JobInProgress.KillInterruptedException" type="org.apache.hadoop.mapred.JobInProgress.KillInterruptedException"/>
  50460. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  50461. <doc>
  50462. <![CDATA[Construct the splits, etc. This is invoked from an async
  50463. thread so that split-computation doesn't block anyone.]]>
  50464. </doc>
  50465. </method>
  50466. <method name="getProfile" return="org.apache.hadoop.mapred.JobProfile"
  50467. abstract="false" native="false" synchronized="false"
  50468. static="false" final="false" visibility="public"
  50469. deprecated="not deprecated">
  50470. </method>
  50471. <method name="getStatus" return="org.apache.hadoop.mapred.JobStatus"
  50472. abstract="false" native="false" synchronized="false"
  50473. static="false" final="false" visibility="public"
  50474. deprecated="not deprecated">
  50475. </method>
  50476. <method name="getLaunchTime" return="long"
  50477. abstract="false" native="false" synchronized="true"
  50478. static="false" final="false" visibility="public"
  50479. deprecated="not deprecated">
  50480. </method>
  50481. <method name="getStartTime" return="long"
  50482. abstract="false" native="false" synchronized="false"
  50483. static="false" final="false" visibility="public"
  50484. deprecated="not deprecated">
  50485. </method>
  50486. <method name="getFinishTime" return="long"
  50487. abstract="false" native="false" synchronized="false"
  50488. static="false" final="false" visibility="public"
  50489. deprecated="not deprecated">
  50490. </method>
  50491. <method name="desiredMaps" return="int"
  50492. abstract="false" native="false" synchronized="false"
  50493. static="false" final="false" visibility="public"
  50494. deprecated="not deprecated">
  50495. </method>
  50496. <method name="finishedMaps" return="int"
  50497. abstract="false" native="false" synchronized="true"
  50498. static="false" final="false" visibility="public"
  50499. deprecated="not deprecated">
  50500. </method>
  50501. <method name="desiredReduces" return="int"
  50502. abstract="false" native="false" synchronized="false"
  50503. static="false" final="false" visibility="public"
  50504. deprecated="not deprecated">
  50505. </method>
  50506. <method name="runningMaps" return="int"
  50507. abstract="false" native="false" synchronized="true"
  50508. static="false" final="false" visibility="public"
  50509. deprecated="not deprecated">
  50510. </method>
  50511. <method name="runningReduces" return="int"
  50512. abstract="false" native="false" synchronized="true"
  50513. static="false" final="false" visibility="public"
  50514. deprecated="not deprecated">
  50515. </method>
  50516. <method name="finishedReduces" return="int"
  50517. abstract="false" native="false" synchronized="true"
  50518. static="false" final="false" visibility="public"
  50519. deprecated="not deprecated">
  50520. </method>
  50521. <method name="pendingMaps" return="int"
  50522. abstract="false" native="false" synchronized="true"
  50523. static="false" final="false" visibility="public"
  50524. deprecated="not deprecated">
  50525. </method>
  50526. <method name="pendingReduces" return="int"
  50527. abstract="false" native="false" synchronized="true"
  50528. static="false" final="false" visibility="public"
  50529. deprecated="not deprecated">
  50530. </method>
  50531. <method name="desiredTasks" return="int"
  50532. abstract="false" native="false" synchronized="false"
  50533. static="false" final="false" visibility="public"
  50534. deprecated="not deprecated">
  50535. <doc>
  50536. <![CDATA[Return total number of map and reduce tasks desired by the job.
  50537. @return total number of map and reduce tasks desired by the job]]>
  50538. </doc>
  50539. </method>
  50540. <method name="getNumSlotsPerTask" return="int"
  50541. abstract="false" native="false" synchronized="false"
  50542. static="false" final="false" visibility="public"
  50543. deprecated="not deprecated">
  50544. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  50545. </method>
  50546. <method name="getPriority" return="org.apache.hadoop.mapred.JobPriority"
  50547. abstract="false" native="false" synchronized="false"
  50548. static="false" final="false" visibility="public"
  50549. deprecated="not deprecated">
  50550. </method>
  50551. <method name="setPriority"
  50552. abstract="false" native="false" synchronized="false"
  50553. static="false" final="false" visibility="public"
  50554. deprecated="not deprecated">
  50555. <param name="priority" type="org.apache.hadoop.mapred.JobPriority"/>
  50556. </method>
  50557. <method name="reportTasksInProgress" return="java.util.Vector"
  50558. abstract="false" native="false" synchronized="true"
  50559. static="false" final="false" visibility="public"
  50560. deprecated="not deprecated">
  50561. <param name="shouldBeMap" type="boolean"/>
  50562. <param name="shouldBeComplete" type="boolean"/>
  50563. <doc>
  50564. <![CDATA[Return a vector of completed TaskInProgress objects]]>
  50565. </doc>
  50566. </method>
  50567. <method name="reportCleanupTIPs" return="java.util.Vector"
  50568. abstract="false" native="false" synchronized="true"
  50569. static="false" final="false" visibility="public"
  50570. deprecated="not deprecated">
  50571. <param name="shouldBeComplete" type="boolean"/>
  50572. <doc>
  50573. <![CDATA[Return a vector of cleanup TaskInProgress objects]]>
  50574. </doc>
  50575. </method>
  50576. <method name="reportSetupTIPs" return="java.util.Vector"
  50577. abstract="false" native="false" synchronized="true"
  50578. static="false" final="false" visibility="public"
  50579. deprecated="not deprecated">
  50580. <param name="shouldBeComplete" type="boolean"/>
  50581. <doc>
  50582. <![CDATA[Return a vector of setup TaskInProgress objects]]>
  50583. </doc>
  50584. </method>
  50585. <method name="updateTaskStatus"
  50586. abstract="false" native="false" synchronized="true"
  50587. static="false" final="false" visibility="public"
  50588. deprecated="not deprecated">
  50589. <param name="tip" type="org.apache.hadoop.mapred.TaskInProgress"/>
  50590. <param name="status" type="org.apache.hadoop.mapred.TaskStatus"/>
  50591. <doc>
  50592. <![CDATA[Assuming {@link JobTracker} is locked on entry.]]>
  50593. </doc>
  50594. </method>
  50595. <method name="getJobCounters" return="org.apache.hadoop.mapred.Counters"
  50596. abstract="false" native="false" synchronized="true"
  50597. static="false" final="false" visibility="public"
  50598. deprecated="not deprecated">
  50599. <doc>
  50600. <![CDATA[Returns the job-level counters.
  50601. @return the job-level counters.]]>
  50602. </doc>
  50603. </method>
  50604. <method name="getMapCounters" return="boolean"
  50605. abstract="false" native="false" synchronized="true"
  50606. static="false" final="false" visibility="public"
  50607. deprecated="not deprecated">
  50608. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  50609. <doc>
  50610. <![CDATA[Returns map phase counters by summing over all map tasks in progress.
  50611. This method returns true if counters are within limit or false.]]>
  50612. </doc>
  50613. </method>
  50614. <method name="getReduceCounters" return="boolean"
  50615. abstract="false" native="false" synchronized="true"
  50616. static="false" final="false" visibility="public"
  50617. deprecated="not deprecated">
  50618. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  50619. <doc>
  50620. <![CDATA[Returns map phase counters by summing over all map tasks in progress.
  50621. This method returns true if counters are within limits and false otherwise.]]>
  50622. </doc>
  50623. </method>
  50624. <method name="getCounters" return="boolean"
  50625. abstract="false" native="false" synchronized="true"
  50626. static="false" final="false" visibility="public"
  50627. deprecated="not deprecated">
  50628. <param name="result" type="org.apache.hadoop.mapred.Counters"/>
  50629. <doc>
  50630. <![CDATA[Returns the total job counters, by adding together the job,
  50631. the map and the reduce counters. This method returns true if
  50632. counters are within limits and false otherwise.]]>
  50633. </doc>
  50634. </method>
  50635. <method name="obtainNewMapTask" return="org.apache.hadoop.mapred.Task"
  50636. abstract="false" native="false" synchronized="true"
  50637. static="false" final="false" visibility="public"
  50638. deprecated="not deprecated">
  50639. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  50640. <param name="clusterSize" type="int"/>
  50641. <param name="numUniqueHosts" type="int"/>
  50642. <exception name="IOException" type="java.io.IOException"/>
  50643. <doc>
  50644. <![CDATA[Return a MapTask, if appropriate, to run on the given tasktracker]]>
  50645. </doc>
  50646. </method>
  50647. <method name="obtainTaskCleanupTask" return="org.apache.hadoop.mapred.Task"
  50648. abstract="false" native="false" synchronized="false"
  50649. static="false" final="false" visibility="public"
  50650. deprecated="not deprecated">
  50651. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  50652. <param name="isMapSlot" type="boolean"/>
  50653. <exception name="IOException" type="java.io.IOException"/>
  50654. </method>
  50655. <method name="obtainNewNodeLocalMapTask" return="org.apache.hadoop.mapred.Task"
  50656. abstract="false" native="false" synchronized="true"
  50657. static="false" final="false" visibility="public"
  50658. deprecated="not deprecated">
  50659. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  50660. <param name="clusterSize" type="int"/>
  50661. <param name="numUniqueHosts" type="int"/>
  50662. <exception name="IOException" type="java.io.IOException"/>
  50663. </method>
  50664. <method name="obtainNewNodeOrRackLocalMapTask" return="org.apache.hadoop.mapred.Task"
  50665. abstract="false" native="false" synchronized="true"
  50666. static="false" final="false" visibility="public"
  50667. deprecated="not deprecated">
  50668. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  50669. <param name="clusterSize" type="int"/>
  50670. <param name="numUniqueHosts" type="int"/>
  50671. <exception name="IOException" type="java.io.IOException"/>
  50672. </method>
  50673. <method name="obtainNewNonLocalMapTask" return="org.apache.hadoop.mapred.Task"
  50674. abstract="false" native="false" synchronized="true"
  50675. static="false" final="false" visibility="public"
  50676. deprecated="not deprecated">
  50677. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  50678. <param name="clusterSize" type="int"/>
  50679. <param name="numUniqueHosts" type="int"/>
  50680. <exception name="IOException" type="java.io.IOException"/>
  50681. </method>
  50682. <method name="schedulingOpportunity"
  50683. abstract="false" native="false" synchronized="false"
  50684. static="false" final="false" visibility="public"
  50685. deprecated="not deprecated">
  50686. </method>
  50687. <method name="resetSchedulingOpportunities"
  50688. abstract="false" native="false" synchronized="false"
  50689. static="false" final="false" visibility="public"
  50690. deprecated="not deprecated">
  50691. </method>
  50692. <method name="getNumSchedulingOpportunities" return="long"
  50693. abstract="false" native="false" synchronized="false"
  50694. static="false" final="false" visibility="public"
  50695. deprecated="not deprecated">
  50696. </method>
  50697. <method name="overrideSchedulingOpportunities"
  50698. abstract="false" native="false" synchronized="false"
  50699. static="false" final="false" visibility="public"
  50700. deprecated="not deprecated">
  50701. </method>
  50702. <method name="scheduleOffSwitch" return="boolean"
  50703. abstract="false" native="false" synchronized="false"
  50704. static="false" final="false" visibility="public"
  50705. deprecated="not deprecated">
  50706. <param name="numTaskTrackers" type="int"/>
  50707. <doc>
  50708. <![CDATA[Check if we can schedule an off-switch task for this job.
  50709. @param numTaskTrackers number of tasktrackers
  50710. @return <code>true</code> if we can schedule off-switch,
  50711. <code>false</code> otherwise
  50712. We check the number of missed opportunities for the job.
  50713. If it has 'waited' long enough we go ahead and schedule.]]>
  50714. </doc>
  50715. </method>
  50716. <method name="obtainJobCleanupTask" return="org.apache.hadoop.mapred.Task"
  50717. abstract="false" native="false" synchronized="false"
  50718. static="false" final="false" visibility="public"
  50719. deprecated="not deprecated">
  50720. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  50721. <param name="clusterSize" type="int"/>
  50722. <param name="numUniqueHosts" type="int"/>
  50723. <param name="isMapSlot" type="boolean"/>
  50724. <exception name="IOException" type="java.io.IOException"/>
  50725. <doc>
  50726. <![CDATA[Return a CleanupTask, if appropriate, to run on the given tasktracker]]>
  50727. </doc>
  50728. </method>
  50729. <method name="obtainJobSetupTask" return="org.apache.hadoop.mapred.Task"
  50730. abstract="false" native="false" synchronized="false"
  50731. static="false" final="false" visibility="public"
  50732. deprecated="not deprecated">
  50733. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  50734. <param name="clusterSize" type="int"/>
  50735. <param name="numUniqueHosts" type="int"/>
  50736. <param name="isMapSlot" type="boolean"/>
  50737. <exception name="IOException" type="java.io.IOException"/>
  50738. <doc>
  50739. <![CDATA[Return a SetupTask, if appropriate, to run on the given tasktracker]]>
  50740. </doc>
  50741. </method>
  50742. <method name="scheduleReduces" return="boolean"
  50743. abstract="false" native="false" synchronized="true"
  50744. static="false" final="false" visibility="public"
  50745. deprecated="not deprecated">
  50746. </method>
  50747. <method name="obtainNewReduceTask" return="org.apache.hadoop.mapred.Task"
  50748. abstract="false" native="false" synchronized="true"
  50749. static="false" final="false" visibility="public"
  50750. deprecated="not deprecated">
  50751. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  50752. <param name="clusterSize" type="int"/>
  50753. <param name="numUniqueHosts" type="int"/>
  50754. <exception name="IOException" type="java.io.IOException"/>
  50755. <doc>
  50756. <![CDATA[Return a ReduceTask, if appropriate, to run on the given tasktracker.
  50757. We don't have cache-sensitivity for reduce tasks, as they
  50758. work on temporary MapRed files.]]>
  50759. </doc>
  50760. </method>
  50761. <method name="reserveTaskTracker"
  50762. abstract="false" native="false" synchronized="true"
  50763. static="false" final="false" visibility="public"
  50764. deprecated="not deprecated">
  50765. <param name="taskTracker" type="org.apache.hadoop.mapreduce.server.jobtracker.TaskTracker"/>
  50766. <param name="type" type="org.apache.hadoop.mapreduce.TaskType"/>
  50767. <param name="numSlots" type="int"/>
  50768. </method>
  50769. <method name="unreserveTaskTracker"
  50770. abstract="false" native="false" synchronized="true"
  50771. static="false" final="false" visibility="public"
  50772. deprecated="not deprecated">
  50773. <param name="taskTracker" type="org.apache.hadoop.mapreduce.server.jobtracker.TaskTracker"/>
  50774. <param name="type" type="org.apache.hadoop.mapreduce.TaskType"/>
  50775. </method>
  50776. <method name="getNumReservedTaskTrackersForMaps" return="int"
  50777. abstract="false" native="false" synchronized="false"
  50778. static="false" final="false" visibility="public"
  50779. deprecated="not deprecated">
  50780. </method>
  50781. <method name="getNumReservedTaskTrackersForReduces" return="int"
  50782. abstract="false" native="false" synchronized="false"
  50783. static="false" final="false" visibility="public"
  50784. deprecated="not deprecated">
  50785. </method>
  50786. <method name="scheduleMap"
  50787. abstract="false" native="false" synchronized="true"
  50788. static="false" final="false" visibility="protected"
  50789. deprecated="not deprecated">
  50790. <param name="tip" type="org.apache.hadoop.mapred.TaskInProgress"/>
  50791. <doc>
  50792. <![CDATA[Adds a map tip to the list of running maps.
  50793. @param tip the tip that needs to be scheduled as running]]>
  50794. </doc>
  50795. </method>
  50796. <method name="scheduleReduce"
  50797. abstract="false" native="false" synchronized="true"
  50798. static="false" final="false" visibility="protected"
  50799. deprecated="not deprecated">
  50800. <param name="tip" type="org.apache.hadoop.mapred.TaskInProgress"/>
  50801. <doc>
  50802. <![CDATA[Adds a reduce tip to the list of running reduces
  50803. @param tip the tip that needs to be scheduled as running]]>
  50804. </doc>
  50805. </method>
  50806. <method name="findSpeculativeTask" return="org.apache.hadoop.mapred.TaskInProgress"
  50807. abstract="false" native="false" synchronized="true"
  50808. static="false" final="false" visibility="protected"
  50809. deprecated="not deprecated">
  50810. <param name="list" type="java.util.Collection"/>
  50811. <param name="ttStatus" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  50812. <param name="avgProgress" type="double"/>
  50813. <param name="currentTime" type="long"/>
  50814. <param name="shouldRemove" type="boolean"/>
  50815. <doc>
  50816. <![CDATA[Find a speculative task
  50817. @param list a list of tips
  50818. @param ttStatus status of the tracker that has requested a tip
  50819. @param avgProgress the average progress for speculation
  50820. @param currentTime current time in milliseconds
  50821. @param shouldRemove whether to remove the tips
  50822. @return a tip that can be speculated on the tracker]]>
  50823. </doc>
  50824. </method>
  50825. <method name="completedTask" return="boolean"
  50826. abstract="false" native="false" synchronized="true"
  50827. static="false" final="false" visibility="public"
  50828. deprecated="not deprecated">
  50829. <param name="tip" type="org.apache.hadoop.mapred.TaskInProgress"/>
  50830. <param name="status" type="org.apache.hadoop.mapred.TaskStatus"/>
  50831. <doc>
  50832. <![CDATA[A taskid assigned to this JobInProgress has reported in successfully.]]>
  50833. </doc>
  50834. </method>
  50835. <method name="kill"
  50836. abstract="false" native="false" synchronized="false"
  50837. static="false" final="false" visibility="public"
  50838. deprecated="not deprecated">
  50839. <doc>
  50840. <![CDATA[Kill the job and all its component tasks. This method should be called from
  50841. jobtracker and should return fast as it locks the jobtracker.]]>
  50842. </doc>
  50843. </method>
  50844. <method name="failedTask"
  50845. abstract="false" native="false" synchronized="false"
  50846. static="false" final="false" visibility="public"
  50847. deprecated="not deprecated">
  50848. <param name="tip" type="org.apache.hadoop.mapred.TaskInProgress"/>
  50849. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  50850. <param name="reason" type="java.lang.String"/>
  50851. <param name="phase" type="org.apache.hadoop.mapred.TaskStatus.Phase"/>
  50852. <param name="state" type="org.apache.hadoop.mapred.TaskStatus.State"/>
  50853. <param name="trackerName" type="java.lang.String"/>
  50854. <doc>
  50855. <![CDATA[Fail a task with a given reason, but without a status object.
  50856. Assuming {@link JobTracker} is locked on entry.
  50857. @param tip The task's tip
  50858. @param taskid The task id
  50859. @param reason The reason that the task failed
  50860. @param trackerName The task tracker the task failed on]]>
  50861. </doc>
  50862. </method>
  50863. <method name="getTaskInProgress" return="org.apache.hadoop.mapred.TaskInProgress"
  50864. abstract="false" native="false" synchronized="true"
  50865. static="false" final="false" visibility="public"
  50866. deprecated="not deprecated">
  50867. <param name="tipid" type="org.apache.hadoop.mapred.TaskID"/>
  50868. <doc>
  50869. <![CDATA[Return the TaskInProgress that matches the tipid.]]>
  50870. </doc>
  50871. </method>
  50872. <method name="findFinishedMap" return="org.apache.hadoop.mapred.TaskStatus"
  50873. abstract="false" native="false" synchronized="true"
  50874. static="false" final="false" visibility="public"
  50875. deprecated="not deprecated">
  50876. <param name="mapId" type="int"/>
  50877. <doc>
  50878. <![CDATA[Find the details of someplace where a map has finished
  50879. @param mapId the id of the map
  50880. @return the task status of the completed task]]>
  50881. </doc>
  50882. </method>
  50883. <method name="getTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  50884. abstract="false" native="false" synchronized="true"
  50885. static="false" final="false" visibility="public"
  50886. deprecated="not deprecated">
  50887. <param name="fromEventId" type="int"/>
  50888. <param name="maxEvents" type="int"/>
  50889. </method>
  50890. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  50891. abstract="false" native="false" synchronized="false"
  50892. static="false" final="false" visibility="public"
  50893. deprecated="not deprecated">
  50894. <doc>
  50895. <![CDATA[@return The JobID of this JobInProgress.]]>
  50896. </doc>
  50897. </method>
  50898. <method name="getJobSubmitHostName" return="java.lang.String"
  50899. abstract="false" native="false" synchronized="false"
  50900. static="false" final="false" visibility="public"
  50901. deprecated="not deprecated">
  50902. <doc>
  50903. <![CDATA[@return submitHostName of this JobInProgress.]]>
  50904. </doc>
  50905. </method>
  50906. <method name="getJobSubmitHostAddress" return="java.lang.String"
  50907. abstract="false" native="false" synchronized="false"
  50908. static="false" final="false" visibility="public"
  50909. deprecated="not deprecated">
  50910. <doc>
  50911. <![CDATA[@return submitHostAddress of this JobInProgress.]]>
  50912. </doc>
  50913. </method>
  50914. <method name="getSchedulingInfo" return="java.lang.Object"
  50915. abstract="false" native="false" synchronized="true"
  50916. static="false" final="false" visibility="public"
  50917. deprecated="not deprecated">
  50918. </method>
  50919. <method name="setSchedulingInfo"
  50920. abstract="false" native="false" synchronized="true"
  50921. static="false" final="false" visibility="public"
  50922. deprecated="not deprecated">
  50923. <param name="schedulingInfo" type="java.lang.Object"/>
  50924. </method>
  50925. <field name="tokenStorage" type="org.apache.hadoop.security.Credentials"
  50926. transient="false" volatile="false"
  50927. static="false" final="false" visibility="protected"
  50928. deprecated="not deprecated">
  50929. </field>
  50930. <doc>
  50931. <![CDATA[JobInProgress maintains all the info for keeping
  50932. a Job on the straight and narrow. It keeps its JobProfile
  50933. and its latest JobStatus, plus a set of tables for
  50934. doing bookkeeping of its Tasks.
  50935. ***********************************************************]]>
  50936. </doc>
  50937. </class>
  50938. <!-- end class org.apache.hadoop.mapred.JobInProgress -->
  50939. <!-- start class org.apache.hadoop.mapred.JobInProgress.Counter -->
  50940. <class name="JobInProgress.Counter" extends="java.lang.Enum"
  50941. abstract="false"
  50942. static="true" final="true" visibility="public"
  50943. deprecated="not deprecated">
  50944. <method name="values" return="org.apache.hadoop.mapred.JobInProgress.Counter[]"
  50945. abstract="false" native="false" synchronized="false"
  50946. static="true" final="false" visibility="public"
  50947. deprecated="not deprecated">
  50948. </method>
  50949. <method name="valueOf" return="org.apache.hadoop.mapred.JobInProgress.Counter"
  50950. abstract="false" native="false" synchronized="false"
  50951. static="true" final="false" visibility="public"
  50952. deprecated="not deprecated">
  50953. <param name="name" type="java.lang.String"/>
  50954. </method>
  50955. <field name="NUM_FAILED_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  50956. transient="false" volatile="false"
  50957. static="true" final="true" visibility="public"
  50958. deprecated="not deprecated">
  50959. </field>
  50960. <field name="NUM_FAILED_REDUCES" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  50961. transient="false" volatile="false"
  50962. static="true" final="true" visibility="public"
  50963. deprecated="not deprecated">
  50964. </field>
  50965. <field name="TOTAL_LAUNCHED_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  50966. transient="false" volatile="false"
  50967. static="true" final="true" visibility="public"
  50968. deprecated="not deprecated">
  50969. </field>
  50970. <field name="TOTAL_LAUNCHED_REDUCES" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  50971. transient="false" volatile="false"
  50972. static="true" final="true" visibility="public"
  50973. deprecated="not deprecated">
  50974. </field>
  50975. <field name="OTHER_LOCAL_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  50976. transient="false" volatile="false"
  50977. static="true" final="true" visibility="public"
  50978. deprecated="not deprecated">
  50979. </field>
  50980. <field name="DATA_LOCAL_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  50981. transient="false" volatile="false"
  50982. static="true" final="true" visibility="public"
  50983. deprecated="not deprecated">
  50984. </field>
  50985. <field name="RACK_LOCAL_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  50986. transient="false" volatile="false"
  50987. static="true" final="true" visibility="public"
  50988. deprecated="not deprecated">
  50989. </field>
  50990. <field name="SLOTS_MILLIS_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  50991. transient="false" volatile="false"
  50992. static="true" final="true" visibility="public"
  50993. deprecated="not deprecated">
  50994. </field>
  50995. <field name="SLOTS_MILLIS_REDUCES" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  50996. transient="false" volatile="false"
  50997. static="true" final="true" visibility="public"
  50998. deprecated="not deprecated">
  50999. </field>
  51000. <field name="FALLOW_SLOTS_MILLIS_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  51001. transient="false" volatile="false"
  51002. static="true" final="true" visibility="public"
  51003. deprecated="not deprecated">
  51004. </field>
  51005. <field name="FALLOW_SLOTS_MILLIS_REDUCES" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  51006. transient="false" volatile="false"
  51007. static="true" final="true" visibility="public"
  51008. deprecated="not deprecated">
  51009. </field>
  51010. </class>
  51011. <!-- end class org.apache.hadoop.mapred.JobInProgress.Counter -->
  51012. <!-- start class org.apache.hadoop.mapred.JobLocalizer -->
  51013. <class name="JobLocalizer" extends="java.lang.Object"
  51014. abstract="false"
  51015. static="false" final="false" visibility="public"
  51016. deprecated="not deprecated">
  51017. <constructor name="JobLocalizer" type="org.apache.hadoop.mapred.JobConf, java.lang.String, java.lang.String"
  51018. static="false" final="false" visibility="public"
  51019. deprecated="not deprecated">
  51020. <exception name="IOException" type="java.io.IOException"/>
  51021. </constructor>
  51022. <constructor name="JobLocalizer" type="org.apache.hadoop.mapred.JobConf, java.lang.String, java.lang.String, java.lang.String[]"
  51023. static="false" final="false" visibility="public"
  51024. deprecated="not deprecated">
  51025. <exception name="IOException" type="java.io.IOException"/>
  51026. </constructor>
  51027. <method name="createLocalDirs"
  51028. abstract="false" native="false" synchronized="false"
  51029. static="false" final="false" visibility="public"
  51030. deprecated="not deprecated">
  51031. <exception name="IOException" type="java.io.IOException"/>
  51032. </method>
  51033. <method name="createUserDirs"
  51034. abstract="false" native="false" synchronized="false"
  51035. static="false" final="false" visibility="public"
  51036. deprecated="not deprecated">
  51037. <exception name="IOException" type="java.io.IOException"/>
  51038. <doc>
  51039. <![CDATA[Initialize the local directories for a particular user on this TT. This
  51040. involves creation and setting permissions of the following directories
  51041. <ul>
  51042. <li>$mapred.local.dir/taskTracker/$user</li>
  51043. <li>$mapred.local.dir/taskTracker/$user/jobcache</li>
  51044. <li>$mapred.local.dir/taskTracker/$user/distcache</li>
  51045. </ul>]]>
  51046. </doc>
  51047. </method>
  51048. <method name="createJobDirs"
  51049. abstract="false" native="false" synchronized="false"
  51050. static="false" final="false" visibility="public"
  51051. deprecated="not deprecated">
  51052. <exception name="IOException" type="java.io.IOException"/>
  51053. <doc>
  51054. <![CDATA[Prepare the job directories for a given job. To be called by the job
  51055. localization code, only if the job is not already localized.
  51056. <br>
  51057. Here, we set 700 permissions on the job directories created on all disks.
  51058. This we do so as to avoid any misuse by other users till the time
  51059. {@link TaskController#initializeJob} is run at a
  51060. later time to set proper private permissions on the job directories. <br>]]>
  51061. </doc>
  51062. </method>
  51063. <method name="initializeJobLogDir"
  51064. abstract="false" native="false" synchronized="false"
  51065. static="false" final="false" visibility="public"
  51066. deprecated="not deprecated">
  51067. <exception name="IOException" type="java.io.IOException"/>
  51068. <doc>
  51069. <![CDATA[Create job log directory and set appropriate permissions for the directory.]]>
  51070. </doc>
  51071. </method>
  51072. <method name="downloadPrivateCache" return="long[]"
  51073. abstract="false" native="false" synchronized="false"
  51074. static="true" final="false" visibility="public"
  51075. deprecated="not deprecated">
  51076. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  51077. <exception name="IOException" type="java.io.IOException"/>
  51078. <doc>
  51079. <![CDATA[Download the parts of the distributed cache that are private.
  51080. @param conf the job's configuration
  51081. @throws IOException
  51082. @return the size of the archive objects]]>
  51083. </doc>
  51084. </method>
  51085. <method name="localizeJobFiles"
  51086. abstract="false" native="false" synchronized="false"
  51087. static="false" final="false" visibility="public"
  51088. deprecated="not deprecated">
  51089. <param name="jobid" type="org.apache.hadoop.mapreduce.JobID"/>
  51090. <param name="jConf" type="org.apache.hadoop.mapred.JobConf"/>
  51091. <param name="localJobTokenFile" type="org.apache.hadoop.fs.Path"/>
  51092. <param name="taskTracker" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  51093. <exception name="IOException" type="java.io.IOException"/>
  51094. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  51095. </method>
  51096. <method name="localizeJobFiles"
  51097. abstract="false" native="false" synchronized="false"
  51098. static="false" final="false" visibility="public"
  51099. deprecated="not deprecated">
  51100. <param name="jobid" type="org.apache.hadoop.mapreduce.JobID"/>
  51101. <param name="jConf" type="org.apache.hadoop.mapred.JobConf"/>
  51102. <param name="localJobFile" type="org.apache.hadoop.fs.Path"/>
  51103. <param name="localJobTokenFile" type="org.apache.hadoop.fs.Path"/>
  51104. <param name="taskTracker" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  51105. <exception name="IOException" type="java.io.IOException"/>
  51106. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  51107. </method>
  51108. <method name="createWorkDir"
  51109. abstract="false" native="false" synchronized="false"
  51110. static="false" final="false" visibility="public"
  51111. deprecated="not deprecated">
  51112. <param name="jConf" type="org.apache.hadoop.mapred.JobConf"/>
  51113. <exception name="IOException" type="java.io.IOException"/>
  51114. </method>
  51115. <method name="findCredentials" return="org.apache.hadoop.fs.Path"
  51116. abstract="false" native="false" synchronized="false"
  51117. static="false" final="false" visibility="public"
  51118. deprecated="not deprecated">
  51119. <exception name="IOException" type="java.io.IOException"/>
  51120. </method>
  51121. <method name="runSetup" return="int"
  51122. abstract="false" native="false" synchronized="false"
  51123. static="false" final="false" visibility="public"
  51124. deprecated="not deprecated">
  51125. <param name="user" type="java.lang.String"/>
  51126. <param name="jobid" type="java.lang.String"/>
  51127. <param name="localJobTokenFile" type="org.apache.hadoop.fs.Path"/>
  51128. <param name="taskTracker" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  51129. <exception name="IOException" type="java.io.IOException"/>
  51130. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  51131. </method>
  51132. <method name="main"
  51133. abstract="false" native="false" synchronized="false"
  51134. static="true" final="false" visibility="public"
  51135. deprecated="not deprecated">
  51136. <param name="argv" type="java.lang.String[]"/>
  51137. <exception name="IOException" type="java.io.IOException"/>
  51138. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  51139. </method>
  51140. <method name="writeLocalJobFile"
  51141. abstract="false" native="false" synchronized="false"
  51142. static="true" final="false" visibility="public"
  51143. deprecated="not deprecated">
  51144. <param name="jobFile" type="org.apache.hadoop.fs.Path"/>
  51145. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  51146. <exception name="IOException" type="java.io.IOException"/>
  51147. <doc>
  51148. <![CDATA[Write the task specific job-configuration file.
  51149. @throws IOException]]>
  51150. </doc>
  51151. </method>
  51152. <doc>
  51153. <![CDATA[Internal class responsible for initializing the job, not intended for users.
  51154. Creates the following hierarchy:
  51155. <li>$mapred.local.dir/taskTracker/$user</li>
  51156. <li>$mapred.local.dir/taskTracker/$user/jobcache</li>
  51157. <li>$mapred.local.dir/taskTracker/$user/jobcache/$jobid/work</li>
  51158. <li>$mapred.local.dir/taskTracker/$user/jobcache/$jobid/jars</li>
  51159. <li>$mapred.local.dir/taskTracker/$user/jobcache/$jobid/jars/job.jar</li>
  51160. <li>$mapred.local.dir/taskTracker/$user/jobcache/$jobid/job.xml</li>
  51161. <li>$mapred.local.dir/taskTracker/$user/jobcache/$jobid/jobToken</li>
  51162. <li>$mapred.local.dir/taskTracker/$user/distcache</li>]]>
  51163. </doc>
  51164. </class>
  51165. <!-- end class org.apache.hadoop.mapred.JobLocalizer -->
  51166. <!-- start class org.apache.hadoop.mapred.JobPriority -->
  51167. <class name="JobPriority" extends="java.lang.Enum"
  51168. abstract="false"
  51169. static="false" final="true" visibility="public"
  51170. deprecated="not deprecated">
  51171. <method name="values" return="org.apache.hadoop.mapred.JobPriority[]"
  51172. abstract="false" native="false" synchronized="false"
  51173. static="true" final="false" visibility="public"
  51174. deprecated="not deprecated">
  51175. </method>
  51176. <method name="valueOf" return="org.apache.hadoop.mapred.JobPriority"
  51177. abstract="false" native="false" synchronized="false"
  51178. static="true" final="false" visibility="public"
  51179. deprecated="not deprecated">
  51180. <param name="name" type="java.lang.String"/>
  51181. </method>
  51182. <field name="VERY_HIGH" type="org.apache.hadoop.mapred.JobPriority"
  51183. transient="false" volatile="false"
  51184. static="true" final="true" visibility="public"
  51185. deprecated="not deprecated">
  51186. </field>
  51187. <field name="HIGH" type="org.apache.hadoop.mapred.JobPriority"
  51188. transient="false" volatile="false"
  51189. static="true" final="true" visibility="public"
  51190. deprecated="not deprecated">
  51191. </field>
  51192. <field name="NORMAL" type="org.apache.hadoop.mapred.JobPriority"
  51193. transient="false" volatile="false"
  51194. static="true" final="true" visibility="public"
  51195. deprecated="not deprecated">
  51196. </field>
  51197. <field name="LOW" type="org.apache.hadoop.mapred.JobPriority"
  51198. transient="false" volatile="false"
  51199. static="true" final="true" visibility="public"
  51200. deprecated="not deprecated">
  51201. </field>
  51202. <field name="VERY_LOW" type="org.apache.hadoop.mapred.JobPriority"
  51203. transient="false" volatile="false"
  51204. static="true" final="true" visibility="public"
  51205. deprecated="not deprecated">
  51206. </field>
  51207. <doc>
  51208. <![CDATA[Used to describe the priority of the running job.]]>
  51209. </doc>
  51210. </class>
  51211. <!-- end class org.apache.hadoop.mapred.JobPriority -->
  51212. <!-- start class org.apache.hadoop.mapred.JobProfile -->
  51213. <class name="JobProfile" extends="java.lang.Object"
  51214. abstract="false"
  51215. static="false" final="false" visibility="public"
  51216. deprecated="not deprecated">
  51217. <implements name="org.apache.hadoop.io.Writable"/>
  51218. <constructor name="JobProfile"
  51219. static="false" final="false" visibility="public"
  51220. deprecated="not deprecated">
  51221. <doc>
  51222. <![CDATA[Construct an empty {@link JobProfile}.]]>
  51223. </doc>
  51224. </constructor>
  51225. <constructor name="JobProfile" type="java.lang.String, org.apache.hadoop.mapreduce.JobID, java.lang.String, java.lang.String, java.lang.String"
  51226. static="false" final="false" visibility="public"
  51227. deprecated="not deprecated">
  51228. <doc>
  51229. <![CDATA[Construct a {@link JobProfile} the userid, jobid,
  51230. job config-file, job-details url and job name.
  51231. @param user userid of the person who submitted the job.
  51232. @param jobid id of the job.
  51233. @param jobFile job configuration file.
  51234. @param url link to the web-ui for details of the job.
  51235. @param name user-specified job name.]]>
  51236. </doc>
  51237. </constructor>
  51238. <constructor name="JobProfile" type="java.lang.String, org.apache.hadoop.mapreduce.JobID, java.lang.String, java.lang.String, java.lang.String, java.lang.String"
  51239. static="false" final="false" visibility="public"
  51240. deprecated="not deprecated">
  51241. <doc>
  51242. <![CDATA[Construct a {@link JobProfile} the userid, jobid,
  51243. job config-file, job-details url and job name.
  51244. @param user userid of the person who submitted the job.
  51245. @param jobid id of the job.
  51246. @param jobFile job configuration file.
  51247. @param url link to the web-ui for details of the job.
  51248. @param name user-specified job name.
  51249. @param queueName name of the queue to which the job is submitted]]>
  51250. </doc>
  51251. </constructor>
  51252. <constructor name="JobProfile" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String"
  51253. static="false" final="false" visibility="public"
  51254. deprecated="use JobProfile(String, JobID, String, String, String) instead">
  51255. <doc>
  51256. <![CDATA[@deprecated use JobProfile(String, JobID, String, String, String) instead]]>
  51257. </doc>
  51258. </constructor>
  51259. <method name="getUser" return="java.lang.String"
  51260. abstract="false" native="false" synchronized="false"
  51261. static="false" final="false" visibility="public"
  51262. deprecated="not deprecated">
  51263. <doc>
  51264. <![CDATA[Get the user id.]]>
  51265. </doc>
  51266. </method>
  51267. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  51268. abstract="false" native="false" synchronized="false"
  51269. static="false" final="false" visibility="public"
  51270. deprecated="not deprecated">
  51271. <doc>
  51272. <![CDATA[Get the job id.]]>
  51273. </doc>
  51274. </method>
  51275. <method name="getJobId" return="java.lang.String"
  51276. abstract="false" native="false" synchronized="false"
  51277. static="false" final="false" visibility="public"
  51278. deprecated="use getJobID() instead">
  51279. <doc>
  51280. <![CDATA[@deprecated use getJobID() instead]]>
  51281. </doc>
  51282. </method>
  51283. <method name="getJobFile" return="java.lang.String"
  51284. abstract="false" native="false" synchronized="false"
  51285. static="false" final="false" visibility="public"
  51286. deprecated="not deprecated">
  51287. <doc>
  51288. <![CDATA[Get the configuration file for the job.]]>
  51289. </doc>
  51290. </method>
  51291. <method name="getURL" return="java.net.URL"
  51292. abstract="false" native="false" synchronized="false"
  51293. static="false" final="false" visibility="public"
  51294. deprecated="not deprecated">
  51295. <doc>
  51296. <![CDATA[Get the link to the web-ui for details of the job.]]>
  51297. </doc>
  51298. </method>
  51299. <method name="getJobName" return="java.lang.String"
  51300. abstract="false" native="false" synchronized="false"
  51301. static="false" final="false" visibility="public"
  51302. deprecated="not deprecated">
  51303. <doc>
  51304. <![CDATA[Get the user-specified job name.]]>
  51305. </doc>
  51306. </method>
  51307. <method name="getQueueName" return="java.lang.String"
  51308. abstract="false" native="false" synchronized="false"
  51309. static="false" final="false" visibility="public"
  51310. deprecated="not deprecated">
  51311. <doc>
  51312. <![CDATA[Get the name of the queue to which the job is submitted.
  51313. @return name of the queue.]]>
  51314. </doc>
  51315. </method>
  51316. <method name="write"
  51317. abstract="false" native="false" synchronized="false"
  51318. static="false" final="false" visibility="public"
  51319. deprecated="not deprecated">
  51320. <param name="out" type="java.io.DataOutput"/>
  51321. <exception name="IOException" type="java.io.IOException"/>
  51322. </method>
  51323. <method name="readFields"
  51324. abstract="false" native="false" synchronized="false"
  51325. static="false" final="false" visibility="public"
  51326. deprecated="not deprecated">
  51327. <param name="in" type="java.io.DataInput"/>
  51328. <exception name="IOException" type="java.io.IOException"/>
  51329. </method>
  51330. <doc>
  51331. <![CDATA[A JobProfile is a MapReduce primitive. Tracks a job,
  51332. whether living or dead.]]>
  51333. </doc>
  51334. </class>
  51335. <!-- end class org.apache.hadoop.mapred.JobProfile -->
  51336. <!-- start class org.apache.hadoop.mapred.JobQueueInfo -->
  51337. <class name="JobQueueInfo" extends="java.lang.Object"
  51338. abstract="false"
  51339. static="false" final="false" visibility="public"
  51340. deprecated="not deprecated">
  51341. <implements name="org.apache.hadoop.io.Writable"/>
  51342. <constructor name="JobQueueInfo"
  51343. static="false" final="false" visibility="public"
  51344. deprecated="not deprecated">
  51345. </constructor>
  51346. <constructor name="JobQueueInfo" type="java.lang.String, java.lang.String"
  51347. static="false" final="false" visibility="public"
  51348. deprecated="not deprecated">
  51349. <doc>
  51350. <![CDATA[Construct a new JobQueueInfo object using the queue name and the
  51351. scheduling information passed.
  51352. @param queueName Name of the job queue
  51353. @param schedulingInfo Scheduling Information associated with the job
  51354. queue]]>
  51355. </doc>
  51356. </constructor>
  51357. <method name="setQueueName"
  51358. abstract="false" native="false" synchronized="false"
  51359. static="false" final="false" visibility="public"
  51360. deprecated="not deprecated">
  51361. <param name="queueName" type="java.lang.String"/>
  51362. <doc>
  51363. <![CDATA[Set the queue name of the JobQueueInfo
  51364. @param queueName Name of the job queue.]]>
  51365. </doc>
  51366. </method>
  51367. <method name="getQueueName" return="java.lang.String"
  51368. abstract="false" native="false" synchronized="false"
  51369. static="false" final="false" visibility="public"
  51370. deprecated="not deprecated">
  51371. <doc>
  51372. <![CDATA[Get the queue name from JobQueueInfo
  51373. @return queue name]]>
  51374. </doc>
  51375. </method>
  51376. <method name="setSchedulingInfo"
  51377. abstract="false" native="false" synchronized="false"
  51378. static="false" final="false" visibility="public"
  51379. deprecated="not deprecated">
  51380. <param name="schedulingInfo" type="java.lang.String"/>
  51381. <doc>
  51382. <![CDATA[Set the scheduling information associated to particular job queue
  51383. @param schedulingInfo]]>
  51384. </doc>
  51385. </method>
  51386. <method name="getSchedulingInfo" return="java.lang.String"
  51387. abstract="false" native="false" synchronized="false"
  51388. static="false" final="false" visibility="public"
  51389. deprecated="not deprecated">
  51390. <doc>
  51391. <![CDATA[Gets the scheduling information associated to particular job queue.
  51392. If nothing is set would return <b>"N/A"</b>
  51393. @return Scheduling information associated to particular Job Queue]]>
  51394. </doc>
  51395. </method>
  51396. <method name="setQueueState"
  51397. abstract="false" native="false" synchronized="false"
  51398. static="false" final="false" visibility="public"
  51399. deprecated="not deprecated">
  51400. <param name="state" type="java.lang.String"/>
  51401. <doc>
  51402. <![CDATA[Set the state of the queue
  51403. @param state state of the queue.]]>
  51404. </doc>
  51405. </method>
  51406. <method name="getQueueState" return="java.lang.String"
  51407. abstract="false" native="false" synchronized="false"
  51408. static="false" final="false" visibility="public"
  51409. deprecated="not deprecated">
  51410. <doc>
  51411. <![CDATA[Return the queue state
  51412. @return the queue state.]]>
  51413. </doc>
  51414. </method>
  51415. <method name="readFields"
  51416. abstract="false" native="false" synchronized="false"
  51417. static="false" final="false" visibility="public"
  51418. deprecated="not deprecated">
  51419. <param name="in" type="java.io.DataInput"/>
  51420. <exception name="IOException" type="java.io.IOException"/>
  51421. </method>
  51422. <method name="write"
  51423. abstract="false" native="false" synchronized="false"
  51424. static="false" final="false" visibility="public"
  51425. deprecated="not deprecated">
  51426. <param name="out" type="java.io.DataOutput"/>
  51427. <exception name="IOException" type="java.io.IOException"/>
  51428. </method>
  51429. <doc>
  51430. <![CDATA[Class that contains the information regarding the Job Queues which are
  51431. maintained by the Hadoop Map/Reduce framework.]]>
  51432. </doc>
  51433. </class>
  51434. <!-- end class org.apache.hadoop.mapred.JobQueueInfo -->
  51435. <!-- start class org.apache.hadoop.mapred.JobStatus -->
  51436. <class name="JobStatus" extends="java.lang.Object"
  51437. abstract="false"
  51438. static="false" final="false" visibility="public"
  51439. deprecated="not deprecated">
  51440. <implements name="org.apache.hadoop.io.Writable"/>
  51441. <implements name="java.lang.Cloneable"/>
  51442. <constructor name="JobStatus"
  51443. static="false" final="false" visibility="public"
  51444. deprecated="not deprecated">
  51445. </constructor>
  51446. <constructor name="JobStatus" type="org.apache.hadoop.mapred.JobID, float, float, float, int"
  51447. static="false" final="false" visibility="public"
  51448. deprecated="not deprecated">
  51449. <doc>
  51450. <![CDATA[Create a job status object for a given jobid.
  51451. @param jobid The jobid of the job
  51452. @param mapProgress The progress made on the maps
  51453. @param reduceProgress The progress made on the reduces
  51454. @param cleanupProgress The progress made on cleanup
  51455. @param runState The current state of the job]]>
  51456. </doc>
  51457. </constructor>
  51458. <constructor name="JobStatus" type="org.apache.hadoop.mapred.JobID, float, float, int"
  51459. static="false" final="false" visibility="public"
  51460. deprecated="not deprecated">
  51461. <doc>
  51462. <![CDATA[Create a job status object for a given jobid.
  51463. @param jobid The jobid of the job
  51464. @param mapProgress The progress made on the maps
  51465. @param reduceProgress The progress made on the reduces
  51466. @param runState The current state of the job]]>
  51467. </doc>
  51468. </constructor>
  51469. <constructor name="JobStatus" type="org.apache.hadoop.mapred.JobID, float, float, float, int, org.apache.hadoop.mapred.JobPriority"
  51470. static="false" final="false" visibility="public"
  51471. deprecated="not deprecated">
  51472. <doc>
  51473. <![CDATA[Create a job status object for a given jobid.
  51474. @param jobid The jobid of the job
  51475. @param mapProgress The progress made on the maps
  51476. @param reduceProgress The progress made on the reduces
  51477. @param runState The current state of the job
  51478. @param jp Priority of the job.]]>
  51479. </doc>
  51480. </constructor>
  51481. <constructor name="JobStatus" type="org.apache.hadoop.mapred.JobID, float, float, float, float, int, org.apache.hadoop.mapred.JobPriority"
  51482. static="false" final="false" visibility="public"
  51483. deprecated="not deprecated">
  51484. <doc>
  51485. <![CDATA[Create a job status object for a given jobid.
  51486. @param jobid The jobid of the job
  51487. @param setupProgress The progress made on the setup
  51488. @param mapProgress The progress made on the maps
  51489. @param reduceProgress The progress made on the reduces
  51490. @param cleanupProgress The progress made on the cleanup
  51491. @param runState The current state of the job
  51492. @param jp Priority of the job.]]>
  51493. </doc>
  51494. </constructor>
  51495. <method name="getJobRunState" return="java.lang.String"
  51496. abstract="false" native="false" synchronized="false"
  51497. static="true" final="false" visibility="public"
  51498. deprecated="not deprecated">
  51499. <param name="state" type="int"/>
  51500. <doc>
  51501. <![CDATA[Helper method to get human-readable state of the job.
  51502. @param state job state
  51503. @return human-readable state of the job]]>
  51504. </doc>
  51505. </method>
  51506. <method name="getJobId" return="java.lang.String"
  51507. abstract="false" native="false" synchronized="false"
  51508. static="false" final="false" visibility="public"
  51509. deprecated="use getJobID instead">
  51510. <doc>
  51511. <![CDATA[@deprecated use getJobID instead]]>
  51512. </doc>
  51513. </method>
  51514. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  51515. abstract="false" native="false" synchronized="false"
  51516. static="false" final="false" visibility="public"
  51517. deprecated="not deprecated">
  51518. <doc>
  51519. <![CDATA[@return The jobid of the Job]]>
  51520. </doc>
  51521. </method>
  51522. <method name="mapProgress" return="float"
  51523. abstract="false" native="false" synchronized="true"
  51524. static="false" final="false" visibility="public"
  51525. deprecated="not deprecated">
  51526. <doc>
  51527. <![CDATA[@return Percentage of progress in maps]]>
  51528. </doc>
  51529. </method>
  51530. <method name="setJobACLs"
  51531. abstract="false" native="false" synchronized="true"
  51532. static="false" final="false" visibility="protected"
  51533. deprecated="not deprecated">
  51534. <param name="acls" type="java.util.Map"/>
  51535. <doc>
  51536. <![CDATA[Set the job acls
  51537. @param acls {@link Map} from {@link JobACL} to {@link AccessControlList}]]>
  51538. </doc>
  51539. </method>
  51540. <method name="cleanupProgress" return="float"
  51541. abstract="false" native="false" synchronized="true"
  51542. static="false" final="false" visibility="public"
  51543. deprecated="not deprecated">
  51544. <doc>
  51545. <![CDATA[@return Percentage of progress in cleanup]]>
  51546. </doc>
  51547. </method>
  51548. <method name="setupProgress" return="float"
  51549. abstract="false" native="false" synchronized="true"
  51550. static="false" final="false" visibility="public"
  51551. deprecated="not deprecated">
  51552. <doc>
  51553. <![CDATA[@return Percentage of progress in setup]]>
  51554. </doc>
  51555. </method>
  51556. <method name="reduceProgress" return="float"
  51557. abstract="false" native="false" synchronized="true"
  51558. static="false" final="false" visibility="public"
  51559. deprecated="not deprecated">
  51560. <doc>
  51561. <![CDATA[@return Percentage of progress in reduce]]>
  51562. </doc>
  51563. </method>
  51564. <method name="getRunState" return="int"
  51565. abstract="false" native="false" synchronized="true"
  51566. static="false" final="false" visibility="public"
  51567. deprecated="not deprecated">
  51568. <doc>
  51569. <![CDATA[@return running state of the job]]>
  51570. </doc>
  51571. </method>
  51572. <method name="setRunState"
  51573. abstract="false" native="false" synchronized="true"
  51574. static="false" final="false" visibility="public"
  51575. deprecated="not deprecated">
  51576. <param name="state" type="int"/>
  51577. <doc>
  51578. <![CDATA[Change the current run state of the job.]]>
  51579. </doc>
  51580. </method>
  51581. <method name="getStartTime" return="long"
  51582. abstract="false" native="false" synchronized="true"
  51583. static="false" final="false" visibility="public"
  51584. deprecated="not deprecated">
  51585. <doc>
  51586. <![CDATA[@return start time of the job]]>
  51587. </doc>
  51588. </method>
  51589. <method name="clone" return="java.lang.Object"
  51590. abstract="false" native="false" synchronized="false"
  51591. static="false" final="false" visibility="public"
  51592. deprecated="not deprecated">
  51593. </method>
  51594. <method name="getUsername" return="java.lang.String"
  51595. abstract="false" native="false" synchronized="true"
  51596. static="false" final="false" visibility="public"
  51597. deprecated="not deprecated">
  51598. <doc>
  51599. <![CDATA[@return the username of the job]]>
  51600. </doc>
  51601. </method>
  51602. <method name="getSchedulingInfo" return="java.lang.String"
  51603. abstract="false" native="false" synchronized="true"
  51604. static="false" final="false" visibility="public"
  51605. deprecated="not deprecated">
  51606. <doc>
  51607. <![CDATA[Gets the Scheduling information associated to a particular Job.
  51608. @return the scheduling information of the job]]>
  51609. </doc>
  51610. </method>
  51611. <method name="getFailureInfo" return="java.lang.String"
  51612. abstract="false" native="false" synchronized="true"
  51613. static="false" final="false" visibility="public"
  51614. deprecated="not deprecated">
  51615. <doc>
  51616. <![CDATA[gets any available info on the reason of failure of the job.
  51617. @return diagnostic information on why a job might have failed.]]>
  51618. </doc>
  51619. </method>
  51620. <method name="setFailureInfo"
  51621. abstract="false" native="false" synchronized="true"
  51622. static="false" final="false" visibility="public"
  51623. deprecated="not deprecated">
  51624. <param name="failureInfo" type="java.lang.String"/>
  51625. <doc>
  51626. <![CDATA[set the reason for failuire of this job
  51627. @param failureInfo the reason for failure of this job.]]>
  51628. </doc>
  51629. </method>
  51630. <method name="setSchedulingInfo"
  51631. abstract="false" native="false" synchronized="true"
  51632. static="false" final="false" visibility="public"
  51633. deprecated="not deprecated">
  51634. <param name="schedulingInfo" type="java.lang.String"/>
  51635. <doc>
  51636. <![CDATA[Used to set the scheduling information associated to a particular Job.
  51637. @param schedulingInfo Scheduling information of the job]]>
  51638. </doc>
  51639. </method>
  51640. <method name="getJobACLs" return="java.util.Map"
  51641. abstract="false" native="false" synchronized="true"
  51642. static="false" final="false" visibility="public"
  51643. deprecated="not deprecated">
  51644. <doc>
  51645. <![CDATA[Get the acls for Job.
  51646. @return a {@link Map} from {@link JobACL} to {@link AccessControlList}]]>
  51647. </doc>
  51648. </method>
  51649. <method name="getJobPriority" return="org.apache.hadoop.mapred.JobPriority"
  51650. abstract="false" native="false" synchronized="true"
  51651. static="false" final="false" visibility="public"
  51652. deprecated="not deprecated">
  51653. <doc>
  51654. <![CDATA[Return the priority of the job
  51655. @return job priority]]>
  51656. </doc>
  51657. </method>
  51658. <method name="setJobPriority"
  51659. abstract="false" native="false" synchronized="true"
  51660. static="false" final="false" visibility="public"
  51661. deprecated="not deprecated">
  51662. <param name="jp" type="org.apache.hadoop.mapred.JobPriority"/>
  51663. <doc>
  51664. <![CDATA[Set the priority of the job, defaulting to NORMAL.
  51665. @param jp new job priority]]>
  51666. </doc>
  51667. </method>
  51668. <method name="isJobComplete" return="boolean"
  51669. abstract="false" native="false" synchronized="true"
  51670. static="false" final="false" visibility="public"
  51671. deprecated="not deprecated">
  51672. <doc>
  51673. <![CDATA[Returns true if the status is for a completed job.]]>
  51674. </doc>
  51675. </method>
  51676. <method name="write"
  51677. abstract="false" native="false" synchronized="true"
  51678. static="false" final="false" visibility="public"
  51679. deprecated="not deprecated">
  51680. <param name="out" type="java.io.DataOutput"/>
  51681. <exception name="IOException" type="java.io.IOException"/>
  51682. </method>
  51683. <method name="readFields"
  51684. abstract="false" native="false" synchronized="true"
  51685. static="false" final="false" visibility="public"
  51686. deprecated="not deprecated">
  51687. <param name="in" type="java.io.DataInput"/>
  51688. <exception name="IOException" type="java.io.IOException"/>
  51689. </method>
  51690. <field name="RUNNING" type="int"
  51691. transient="false" volatile="false"
  51692. static="true" final="true" visibility="public"
  51693. deprecated="not deprecated">
  51694. </field>
  51695. <field name="SUCCEEDED" type="int"
  51696. transient="false" volatile="false"
  51697. static="true" final="true" visibility="public"
  51698. deprecated="not deprecated">
  51699. </field>
  51700. <field name="FAILED" type="int"
  51701. transient="false" volatile="false"
  51702. static="true" final="true" visibility="public"
  51703. deprecated="not deprecated">
  51704. </field>
  51705. <field name="PREP" type="int"
  51706. transient="false" volatile="false"
  51707. static="true" final="true" visibility="public"
  51708. deprecated="not deprecated">
  51709. </field>
  51710. <field name="KILLED" type="int"
  51711. transient="false" volatile="false"
  51712. static="true" final="true" visibility="public"
  51713. deprecated="not deprecated">
  51714. </field>
  51715. <doc>
  51716. <![CDATA[Describes the current status of a job.
  51717. @see JobProfile for some more information.]]>
  51718. </doc>
  51719. </class>
  51720. <!-- end class org.apache.hadoop.mapred.JobStatus -->
  51721. <!-- start class org.apache.hadoop.mapred.JobTracker -->
  51722. <class name="JobTracker" extends="java.lang.Object"
  51723. abstract="false"
  51724. static="false" final="false" visibility="public"
  51725. deprecated="not deprecated">
  51726. <implements name="org.apache.hadoop.mapred.MRConstants"/>
  51727. <implements name="org.apache.hadoop.mapred.InterTrackerProtocol"/>
  51728. <implements name="org.apache.hadoop.mapred.JobSubmissionProtocol"/>
  51729. <implements name="org.apache.hadoop.mapred.TaskTrackerManager"/>
  51730. <implements name="org.apache.hadoop.security.RefreshUserMappingsProtocol"/>
  51731. <implements name="org.apache.hadoop.security.authorize.RefreshAuthorizationPolicyProtocol"/>
  51732. <implements name="org.apache.hadoop.mapred.AdminOperationsProtocol"/>
  51733. <implements name="org.apache.hadoop.mapred.JobTrackerMXBean"/>
  51734. <method name="getClock" return="org.apache.hadoop.mapred.Clock"
  51735. abstract="false" native="false" synchronized="false"
  51736. static="false" final="false" visibility="public"
  51737. deprecated="not deprecated">
  51738. </method>
  51739. <method name="startTracker" return="org.apache.hadoop.mapred.JobTracker"
  51740. abstract="false" native="false" synchronized="false"
  51741. static="true" final="false" visibility="public"
  51742. deprecated="not deprecated">
  51743. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  51744. <exception name="IOException" type="java.io.IOException"/>
  51745. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  51746. <doc>
  51747. <![CDATA[Start the JobTracker with given configuration.
  51748. The conf will be modified to reflect the actual ports on which
  51749. the JobTracker is up and running if the user passes the port as
  51750. <code>zero</code>.
  51751. @param conf configuration for the JobTracker.
  51752. @throws IOException]]>
  51753. </doc>
  51754. </method>
  51755. <method name="startTracker" return="org.apache.hadoop.mapred.JobTracker"
  51756. abstract="false" native="false" synchronized="false"
  51757. static="true" final="false" visibility="public"
  51758. deprecated="not deprecated">
  51759. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  51760. <param name="identifier" type="java.lang.String"/>
  51761. <exception name="IOException" type="java.io.IOException"/>
  51762. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  51763. </method>
  51764. <method name="startTracker" return="org.apache.hadoop.mapred.JobTracker"
  51765. abstract="false" native="false" synchronized="false"
  51766. static="true" final="false" visibility="public"
  51767. deprecated="not deprecated">
  51768. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  51769. <param name="identifier" type="java.lang.String"/>
  51770. <param name="initialize" type="boolean"/>
  51771. <exception name="IOException" type="java.io.IOException"/>
  51772. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  51773. </method>
  51774. <method name="stopTracker"
  51775. abstract="false" native="false" synchronized="false"
  51776. static="false" final="false" visibility="public"
  51777. deprecated="not deprecated">
  51778. <exception name="IOException" type="java.io.IOException"/>
  51779. </method>
  51780. <method name="getProtocolVersion" return="long"
  51781. abstract="false" native="false" synchronized="false"
  51782. static="false" final="false" visibility="public"
  51783. deprecated="not deprecated">
  51784. <param name="protocol" type="java.lang.String"/>
  51785. <param name="clientVersion" type="long"/>
  51786. <exception name="IOException" type="java.io.IOException"/>
  51787. </method>
  51788. <method name="getDelegationTokenSecretManager" return="org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenSecretManager"
  51789. abstract="false" native="false" synchronized="false"
  51790. static="false" final="false" visibility="public"
  51791. deprecated="not deprecated">
  51792. </method>
  51793. <method name="hasRestarted" return="boolean"
  51794. abstract="false" native="false" synchronized="false"
  51795. static="false" final="false" visibility="public"
  51796. deprecated="not deprecated">
  51797. <doc>
  51798. <![CDATA[Whether the JT has restarted]]>
  51799. </doc>
  51800. </method>
  51801. <method name="hasRecovered" return="boolean"
  51802. abstract="false" native="false" synchronized="false"
  51803. static="false" final="false" visibility="public"
  51804. deprecated="not deprecated">
  51805. <doc>
  51806. <![CDATA[Whether the JT has recovered upon restart]]>
  51807. </doc>
  51808. </method>
  51809. <method name="getRecoveryDuration" return="long"
  51810. abstract="false" native="false" synchronized="false"
  51811. static="false" final="false" visibility="public"
  51812. deprecated="not deprecated">
  51813. <doc>
  51814. <![CDATA[How long the jobtracker took to recover from restart.]]>
  51815. </doc>
  51816. </method>
  51817. <method name="getAddress" return="java.net.InetSocketAddress"
  51818. abstract="false" native="false" synchronized="false"
  51819. static="true" final="false" visibility="public"
  51820. deprecated="not deprecated">
  51821. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  51822. </method>
  51823. <method name="offerService"
  51824. abstract="false" native="false" synchronized="false"
  51825. static="false" final="false" visibility="public"
  51826. deprecated="not deprecated">
  51827. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  51828. <exception name="IOException" type="java.io.IOException"/>
  51829. <doc>
  51830. <![CDATA[Run forever]]>
  51831. </doc>
  51832. </method>
  51833. <method name="getTotalSubmissions" return="int"
  51834. abstract="false" native="false" synchronized="false"
  51835. static="false" final="false" visibility="public"
  51836. deprecated="not deprecated">
  51837. </method>
  51838. <method name="getJobTrackerMachine" return="java.lang.String"
  51839. abstract="false" native="false" synchronized="false"
  51840. static="false" final="false" visibility="public"
  51841. deprecated="not deprecated">
  51842. </method>
  51843. <method name="getTrackerIdentifier" return="java.lang.String"
  51844. abstract="false" native="false" synchronized="false"
  51845. static="false" final="false" visibility="public"
  51846. deprecated="not deprecated">
  51847. <doc>
  51848. <![CDATA[Get the unique identifier (ie. timestamp) of this job tracker start.
  51849. @return a string with a unique identifier]]>
  51850. </doc>
  51851. </method>
  51852. <method name="getTrackerPort" return="int"
  51853. abstract="false" native="false" synchronized="false"
  51854. static="false" final="false" visibility="public"
  51855. deprecated="not deprecated">
  51856. </method>
  51857. <method name="getInfoPort" return="int"
  51858. abstract="false" native="false" synchronized="false"
  51859. static="false" final="false" visibility="public"
  51860. deprecated="not deprecated">
  51861. </method>
  51862. <method name="getStartTime" return="long"
  51863. abstract="false" native="false" synchronized="false"
  51864. static="false" final="false" visibility="public"
  51865. deprecated="not deprecated">
  51866. </method>
  51867. <method name="runningJobs" return="java.util.Vector"
  51868. abstract="false" native="false" synchronized="false"
  51869. static="false" final="false" visibility="public"
  51870. deprecated="not deprecated">
  51871. </method>
  51872. <method name="getRunningJobs" return="java.util.List"
  51873. abstract="false" native="false" synchronized="true"
  51874. static="false" final="false" visibility="public"
  51875. deprecated="not deprecated">
  51876. <doc>
  51877. <![CDATA[Version that is called from a timer thread, and therefore needs to be
  51878. careful to synchronize.]]>
  51879. </doc>
  51880. </method>
  51881. <method name="failedJobs" return="java.util.Vector"
  51882. abstract="false" native="false" synchronized="false"
  51883. static="false" final="false" visibility="public"
  51884. deprecated="not deprecated">
  51885. </method>
  51886. <method name="completedJobs" return="java.util.Vector"
  51887. abstract="false" native="false" synchronized="false"
  51888. static="false" final="false" visibility="public"
  51889. deprecated="not deprecated">
  51890. </method>
  51891. <method name="taskTrackers" return="java.util.Collection"
  51892. abstract="false" native="false" synchronized="true"
  51893. static="false" final="false" visibility="public"
  51894. deprecated="not deprecated">
  51895. <doc>
  51896. <![CDATA[Get all the task trackers in the cluster
  51897. @return {@link Collection} of {@link TaskTrackerStatus}]]>
  51898. </doc>
  51899. </method>
  51900. <method name="activeTaskTrackers" return="java.util.Collection"
  51901. abstract="false" native="false" synchronized="true"
  51902. static="false" final="false" visibility="public"
  51903. deprecated="not deprecated">
  51904. <doc>
  51905. <![CDATA[Get the active task tracker statuses in the cluster
  51906. @return {@link Collection} of active {@link TaskTrackerStatus}]]>
  51907. </doc>
  51908. </method>
  51909. <method name="taskTrackerNames" return="java.util.List"
  51910. abstract="false" native="false" synchronized="true"
  51911. static="false" final="false" visibility="public"
  51912. deprecated="not deprecated">
  51913. <doc>
  51914. <![CDATA[Get the active, blacklisted, and graylisted task tracker names in the
  51915. cluster. The first element in the returned list contains the list of
  51916. active tracker names; the second element in the returned list contains
  51917. the list of blacklisted tracker names; and the third contains the list
  51918. of graylisted tracker names. Note that the blacklist is disjoint
  51919. from the active list, but the graylist is not: initially, graylisted
  51920. trackers are still active and therefore will appear in both lists.
  51921. (Graylisted trackers can later be blacklisted, in which case they'll
  51922. be removed from the active list and added to the blacklist, but they
  51923. remain on the graylist in this case. Blacklisting comes about via the
  51924. health-check script, while graylisting is heuristically based on the
  51925. number of per-job blacklistings in a specified time interval.)]]>
  51926. </doc>
  51927. </method>
  51928. <method name="blacklistedTaskTrackers" return="java.util.Collection"
  51929. abstract="false" native="false" synchronized="false"
  51930. static="false" final="false" visibility="public"
  51931. deprecated="not deprecated">
  51932. <doc>
  51933. <![CDATA[Get the statuses of the blacklisted task trackers in the cluster.
  51934. @return {@link Collection} of blacklisted {@link TaskTrackerStatus}]]>
  51935. </doc>
  51936. </method>
  51937. <method name="graylistedTaskTrackers" return="java.util.Collection"
  51938. abstract="false" native="false" synchronized="false"
  51939. static="false" final="false" visibility="public"
  51940. deprecated="not deprecated">
  51941. <doc>
  51942. <![CDATA[Get the statuses of the graylisted task trackers in the cluster.
  51943. @return {@link Collection} of graylisted {@link TaskTrackerStatus}]]>
  51944. </doc>
  51945. </method>
  51946. <method name="isBlacklisted" return="boolean"
  51947. abstract="false" native="false" synchronized="true"
  51948. static="false" final="false" visibility="public"
  51949. deprecated="not deprecated">
  51950. <param name="trackerID" type="java.lang.String"/>
  51951. <doc>
  51952. <![CDATA[Whether the tracker is blacklisted or not
  51953. @param trackerID
  51954. @return true if blacklisted, false otherwise]]>
  51955. </doc>
  51956. </method>
  51957. <method name="isGraylisted" return="boolean"
  51958. abstract="false" native="false" synchronized="true"
  51959. static="false" final="false" visibility="public"
  51960. deprecated="not deprecated">
  51961. <param name="trackerID" type="java.lang.String"/>
  51962. <doc>
  51963. <![CDATA[Whether the tracker is graylisted or not
  51964. @param trackerID
  51965. @return true if graylisted, false otherwise]]>
  51966. </doc>
  51967. </method>
  51968. <method name="getTaskTrackerStatus" return="org.apache.hadoop.mapred.TaskTrackerStatus"
  51969. abstract="false" native="false" synchronized="true"
  51970. static="false" final="false" visibility="public"
  51971. deprecated="not deprecated">
  51972. <param name="trackerID" type="java.lang.String"/>
  51973. </method>
  51974. <method name="getTaskTracker" return="org.apache.hadoop.mapreduce.server.jobtracker.TaskTracker"
  51975. abstract="false" native="false" synchronized="true"
  51976. static="false" final="false" visibility="public"
  51977. deprecated="not deprecated">
  51978. <param name="trackerID" type="java.lang.String"/>
  51979. </method>
  51980. <method name="resolveAndAddToTopology" return="org.apache.hadoop.net.Node"
  51981. abstract="false" native="false" synchronized="false"
  51982. static="false" final="false" visibility="public"
  51983. deprecated="not deprecated">
  51984. <param name="name" type="java.lang.String"/>
  51985. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  51986. </method>
  51987. <method name="getNodesAtMaxLevel" return="java.util.Collection"
  51988. abstract="false" native="false" synchronized="false"
  51989. static="false" final="false" visibility="public"
  51990. deprecated="not deprecated">
  51991. <doc>
  51992. <![CDATA[Returns a collection of nodes at the max level]]>
  51993. </doc>
  51994. </method>
  51995. <method name="getParentNode" return="org.apache.hadoop.net.Node"
  51996. abstract="false" native="false" synchronized="false"
  51997. static="true" final="false" visibility="public"
  51998. deprecated="not deprecated">
  51999. <param name="node" type="org.apache.hadoop.net.Node"/>
  52000. <param name="level" type="int"/>
  52001. </method>
  52002. <method name="getNode" return="org.apache.hadoop.net.Node"
  52003. abstract="false" native="false" synchronized="false"
  52004. static="false" final="false" visibility="public"
  52005. deprecated="not deprecated">
  52006. <param name="name" type="java.lang.String"/>
  52007. <doc>
  52008. <![CDATA[Return the Node in the network topology that corresponds to the hostname]]>
  52009. </doc>
  52010. </method>
  52011. <method name="getNumTaskCacheLevels" return="int"
  52012. abstract="false" native="false" synchronized="false"
  52013. static="false" final="false" visibility="public"
  52014. deprecated="not deprecated">
  52015. </method>
  52016. <method name="getNumResolvedTaskTrackers" return="int"
  52017. abstract="false" native="false" synchronized="false"
  52018. static="false" final="false" visibility="public"
  52019. deprecated="not deprecated">
  52020. </method>
  52021. <method name="getNumberOfUniqueHosts" return="int"
  52022. abstract="false" native="false" synchronized="false"
  52023. static="false" final="false" visibility="public"
  52024. deprecated="not deprecated">
  52025. </method>
  52026. <method name="addJobInProgressListener"
  52027. abstract="false" native="false" synchronized="false"
  52028. static="false" final="false" visibility="public"
  52029. deprecated="not deprecated">
  52030. <param name="listener" type="org.apache.hadoop.mapred.JobInProgressListener"/>
  52031. </method>
  52032. <method name="removeJobInProgressListener"
  52033. abstract="false" native="false" synchronized="false"
  52034. static="false" final="false" visibility="public"
  52035. deprecated="not deprecated">
  52036. <param name="listener" type="org.apache.hadoop.mapred.JobInProgressListener"/>
  52037. </method>
  52038. <method name="getQueueManager" return="org.apache.hadoop.mapred.QueueManager"
  52039. abstract="false" native="false" synchronized="false"
  52040. static="false" final="false" visibility="public"
  52041. deprecated="not deprecated">
  52042. <doc>
  52043. <![CDATA[Return the {@link QueueManager} associated with the JobTracker.]]>
  52044. </doc>
  52045. </method>
  52046. <method name="getVIVersion" return="java.lang.String"
  52047. abstract="false" native="false" synchronized="false"
  52048. static="false" final="false" visibility="public"
  52049. deprecated="not deprecated">
  52050. <exception name="IOException" type="java.io.IOException"/>
  52051. </method>
  52052. <method name="getBuildVersion" return="java.lang.String"
  52053. abstract="false" native="false" synchronized="false"
  52054. static="false" final="false" visibility="public"
  52055. deprecated="not deprecated">
  52056. <exception name="IOException" type="java.io.IOException"/>
  52057. </method>
  52058. <method name="heartbeat" return="org.apache.hadoop.mapred.HeartbeatResponse"
  52059. abstract="false" native="false" synchronized="true"
  52060. static="false" final="false" visibility="public"
  52061. deprecated="not deprecated">
  52062. <param name="status" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  52063. <param name="restarted" type="boolean"/>
  52064. <param name="initialContact" type="boolean"/>
  52065. <param name="acceptNewTasks" type="boolean"/>
  52066. <param name="responseId" type="short"/>
  52067. <exception name="IOException" type="java.io.IOException"/>
  52068. <doc>
  52069. <![CDATA[The periodic heartbeat mechanism between the {@link TaskTracker} and
  52070. the {@link JobTracker}.
  52071. The {@link JobTracker} processes the status information sent by the
  52072. {@link TaskTracker} and responds with instructions to start/stop
  52073. tasks or jobs, and also 'reset' instructions during contingencies.]]>
  52074. </doc>
  52075. </method>
  52076. <method name="getNextHeartbeatInterval" return="int"
  52077. abstract="false" native="false" synchronized="false"
  52078. static="false" final="false" visibility="public"
  52079. deprecated="not deprecated">
  52080. <doc>
  52081. <![CDATA[Calculates next heartbeat interval using cluster size.
  52082. Heartbeat interval is incremented by 1 second for every 100 nodes by default.
  52083. @return next heartbeat interval.]]>
  52084. </doc>
  52085. </method>
  52086. <method name="getFilesystemName" return="java.lang.String"
  52087. abstract="false" native="false" synchronized="true"
  52088. static="false" final="false" visibility="public"
  52089. deprecated="not deprecated">
  52090. <exception name="IOException" type="java.io.IOException"/>
  52091. <doc>
  52092. <![CDATA[Grab the local fs name]]>
  52093. </doc>
  52094. </method>
  52095. <method name="getConf" return="org.apache.hadoop.mapred.JobConf"
  52096. abstract="false" native="false" synchronized="false"
  52097. static="false" final="false" visibility="public"
  52098. deprecated="not deprecated">
  52099. <doc>
  52100. <![CDATA[Returns a handle to the JobTracker's Configuration]]>
  52101. </doc>
  52102. </method>
  52103. <method name="reportTaskTrackerError"
  52104. abstract="false" native="false" synchronized="false"
  52105. static="false" final="false" visibility="public"
  52106. deprecated="not deprecated">
  52107. <param name="taskTracker" type="java.lang.String"/>
  52108. <param name="errorClass" type="java.lang.String"/>
  52109. <param name="errorMessage" type="java.lang.String"/>
  52110. <exception name="IOException" type="java.io.IOException"/>
  52111. </method>
  52112. <method name="getNewJobId" return="org.apache.hadoop.mapred.JobID"
  52113. abstract="false" native="false" synchronized="true"
  52114. static="false" final="false" visibility="public"
  52115. deprecated="not deprecated">
  52116. <exception name="IOException" type="java.io.IOException"/>
  52117. <doc>
  52118. <![CDATA[Allocates a new JobId string.]]>
  52119. </doc>
  52120. </method>
  52121. <method name="submitJob" return="org.apache.hadoop.mapred.JobStatus"
  52122. abstract="false" native="false" synchronized="false"
  52123. static="false" final="false" visibility="public"
  52124. deprecated="not deprecated">
  52125. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  52126. <param name="jobSubmitDir" type="java.lang.String"/>
  52127. <param name="ts" type="org.apache.hadoop.security.Credentials"/>
  52128. <exception name="IOException" type="java.io.IOException"/>
  52129. <doc>
  52130. <![CDATA[JobTracker.submitJob() kicks off a new job.
  52131. Create a 'JobInProgress' object, which contains both JobProfile
  52132. and JobStatus. Those two sub-objects are sometimes shipped outside
  52133. of the JobTracker. But JobInProgress adds info that's useful for
  52134. the JobTracker alone.]]>
  52135. </doc>
  52136. </method>
  52137. <method name="submitJob" return="org.apache.hadoop.mapred.JobStatus"
  52138. abstract="false" native="false" synchronized="false"
  52139. static="false" final="false" visibility="public"
  52140. deprecated="not deprecated">
  52141. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  52142. <param name="jobSubmitDir" type="java.lang.String"/>
  52143. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  52144. <param name="ts" type="org.apache.hadoop.security.Credentials"/>
  52145. <param name="recovered" type="boolean"/>
  52146. <exception name="IOException" type="java.io.IOException"/>
  52147. <doc>
  52148. <![CDATA[JobTracker.submitJob() kicks off a new job.
  52149. Create a 'JobInProgress' object, which contains both JobProfile and
  52150. JobStatus. Those two sub-objects are sometimes shipped outside of the
  52151. JobTracker. But JobInProgress adds info that's useful for the JobTracker
  52152. alone.]]>
  52153. </doc>
  52154. </method>
  52155. <method name="getStagingAreaDir" return="java.lang.String"
  52156. abstract="false" native="false" synchronized="false"
  52157. static="false" final="false" visibility="public"
  52158. deprecated="not deprecated">
  52159. <exception name="IOException" type="java.io.IOException"/>
  52160. <doc>
  52161. <![CDATA[@see org.apache.hadoop.mapred.JobSubmissionProtocol#getStagingAreaDir()]]>
  52162. </doc>
  52163. </method>
  52164. <method name="getClusterStatus" return="org.apache.hadoop.mapred.ClusterStatus"
  52165. abstract="false" native="false" synchronized="true"
  52166. static="false" final="false" visibility="public"
  52167. deprecated="use {@link #getClusterStatus(boolean)}">
  52168. <doc>
  52169. <![CDATA[@deprecated use {@link #getClusterStatus(boolean)}]]>
  52170. </doc>
  52171. </method>
  52172. <method name="getClusterStatus" return="org.apache.hadoop.mapred.ClusterStatus"
  52173. abstract="false" native="false" synchronized="true"
  52174. static="false" final="false" visibility="public"
  52175. deprecated="not deprecated">
  52176. <param name="detailed" type="boolean"/>
  52177. </method>
  52178. <method name="getClusterMetrics" return="org.apache.hadoop.mapreduce.ClusterMetrics"
  52179. abstract="false" native="false" synchronized="true"
  52180. static="false" final="false" visibility="public"
  52181. deprecated="not deprecated">
  52182. </method>
  52183. <method name="killJob"
  52184. abstract="false" native="false" synchronized="true"
  52185. static="false" final="false" visibility="public"
  52186. deprecated="not deprecated">
  52187. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  52188. <exception name="IOException" type="java.io.IOException"/>
  52189. <doc>
  52190. <![CDATA[@see JobSubmissionProtocol#killJob]]>
  52191. </doc>
  52192. </method>
  52193. <method name="cancelDelegationToken"
  52194. abstract="false" native="false" synchronized="false"
  52195. static="false" final="false" visibility="public"
  52196. deprecated="not deprecated">
  52197. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  52198. <exception name="IOException" type="java.io.IOException"/>
  52199. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  52200. <doc>
  52201. <![CDATA[Discard a current delegation token.]]>
  52202. </doc>
  52203. </method>
  52204. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  52205. abstract="false" native="false" synchronized="false"
  52206. static="false" final="false" visibility="public"
  52207. deprecated="not deprecated">
  52208. <param name="renewer" type="org.apache.hadoop.io.Text"/>
  52209. <exception name="IOException" type="java.io.IOException"/>
  52210. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  52211. <doc>
  52212. <![CDATA[Get a new delegation token.]]>
  52213. </doc>
  52214. </method>
  52215. <method name="renewDelegationToken" return="long"
  52216. abstract="false" native="false" synchronized="false"
  52217. static="false" final="false" visibility="public"
  52218. deprecated="not deprecated">
  52219. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  52220. <exception name="IOException" type="java.io.IOException"/>
  52221. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  52222. <doc>
  52223. <![CDATA[Renew a delegation token to extend its lifetime.]]>
  52224. </doc>
  52225. </method>
  52226. <method name="initJob"
  52227. abstract="false" native="false" synchronized="false"
  52228. static="false" final="false" visibility="public"
  52229. deprecated="not deprecated">
  52230. <param name="job" type="org.apache.hadoop.mapred.JobInProgress"/>
  52231. </method>
  52232. <method name="failJob"
  52233. abstract="false" native="false" synchronized="true"
  52234. static="false" final="false" visibility="public"
  52235. deprecated="not deprecated">
  52236. <param name="job" type="org.apache.hadoop.mapred.JobInProgress"/>
  52237. <doc>
  52238. <![CDATA[Fail a job and inform the listeners. Other components in the framework
  52239. should use this to fail a job.]]>
  52240. </doc>
  52241. </method>
  52242. <method name="setJobPriority"
  52243. abstract="false" native="false" synchronized="true"
  52244. static="false" final="false" visibility="public"
  52245. deprecated="not deprecated">
  52246. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  52247. <param name="priority" type="java.lang.String"/>
  52248. <exception name="IOException" type="java.io.IOException"/>
  52249. </method>
  52250. <method name="getJobProfile" return="org.apache.hadoop.mapred.JobProfile"
  52251. abstract="false" native="false" synchronized="false"
  52252. static="false" final="false" visibility="public"
  52253. deprecated="not deprecated">
  52254. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  52255. </method>
  52256. <method name="getJobStatus" return="org.apache.hadoop.mapred.JobStatus"
  52257. abstract="false" native="false" synchronized="false"
  52258. static="false" final="false" visibility="public"
  52259. deprecated="not deprecated">
  52260. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  52261. </method>
  52262. <method name="getJobCounters" return="org.apache.hadoop.mapred.Counters"
  52263. abstract="false" native="false" synchronized="false"
  52264. static="false" final="false" visibility="public"
  52265. deprecated="not deprecated">
  52266. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  52267. <exception name="IOException" type="java.io.IOException"/>
  52268. </method>
  52269. <method name="getMapTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  52270. abstract="false" native="false" synchronized="true"
  52271. static="false" final="false" visibility="public"
  52272. deprecated="not deprecated">
  52273. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  52274. <exception name="IOException" type="java.io.IOException"/>
  52275. </method>
  52276. <method name="getReduceTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  52277. abstract="false" native="false" synchronized="true"
  52278. static="false" final="false" visibility="public"
  52279. deprecated="not deprecated">
  52280. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  52281. <exception name="IOException" type="java.io.IOException"/>
  52282. </method>
  52283. <method name="getCleanupTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  52284. abstract="false" native="false" synchronized="true"
  52285. static="false" final="false" visibility="public"
  52286. deprecated="not deprecated">
  52287. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  52288. <exception name="IOException" type="java.io.IOException"/>
  52289. </method>
  52290. <method name="getSetupTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  52291. abstract="false" native="false" synchronized="true"
  52292. static="false" final="false" visibility="public"
  52293. deprecated="not deprecated">
  52294. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  52295. <exception name="IOException" type="java.io.IOException"/>
  52296. </method>
  52297. <method name="getTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  52298. abstract="false" native="false" synchronized="false"
  52299. static="false" final="false" visibility="public"
  52300. deprecated="not deprecated">
  52301. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  52302. <param name="fromEventId" type="int"/>
  52303. <param name="maxEvents" type="int"/>
  52304. <exception name="IOException" type="java.io.IOException"/>
  52305. </method>
  52306. <method name="getTaskDiagnostics" return="java.lang.String[]"
  52307. abstract="false" native="false" synchronized="true"
  52308. static="false" final="false" visibility="public"
  52309. deprecated="not deprecated">
  52310. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  52311. <exception name="IOException" type="java.io.IOException"/>
  52312. <doc>
  52313. <![CDATA[Get the diagnostics for a given task
  52314. @param taskId the id of the task
  52315. @return an array of the diagnostic messages]]>
  52316. </doc>
  52317. </method>
  52318. <method name="getTip" return="org.apache.hadoop.mapred.TaskInProgress"
  52319. abstract="false" native="false" synchronized="false"
  52320. static="false" final="false" visibility="public"
  52321. deprecated="not deprecated">
  52322. <param name="tipid" type="org.apache.hadoop.mapred.TaskID"/>
  52323. <doc>
  52324. <![CDATA[Returns specified TaskInProgress, or null.]]>
  52325. </doc>
  52326. </method>
  52327. <method name="killTask" return="boolean"
  52328. abstract="false" native="false" synchronized="true"
  52329. static="false" final="false" visibility="public"
  52330. deprecated="not deprecated">
  52331. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  52332. <param name="shouldFail" type="boolean"/>
  52333. <exception name="IOException" type="java.io.IOException"/>
  52334. <doc>
  52335. <![CDATA[@see JobSubmissionProtocol#killTask(TaskAttemptID, boolean)]]>
  52336. </doc>
  52337. </method>
  52338. <method name="getAssignedTracker" return="java.lang.String"
  52339. abstract="false" native="false" synchronized="true"
  52340. static="false" final="false" visibility="public"
  52341. deprecated="not deprecated">
  52342. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  52343. <doc>
  52344. <![CDATA[Get tracker name for a given task id.
  52345. @param taskId the name of the task
  52346. @return The name of the task tracker]]>
  52347. </doc>
  52348. </method>
  52349. <method name="jobsToComplete" return="org.apache.hadoop.mapred.JobStatus[]"
  52350. abstract="false" native="false" synchronized="false"
  52351. static="false" final="false" visibility="public"
  52352. deprecated="not deprecated">
  52353. </method>
  52354. <method name="getAllJobs" return="org.apache.hadoop.mapred.JobStatus[]"
  52355. abstract="false" native="false" synchronized="false"
  52356. static="false" final="false" visibility="public"
  52357. deprecated="not deprecated">
  52358. <doc>
  52359. <![CDATA[@see JobSubmissionProtocol#getAllJobs()]]>
  52360. </doc>
  52361. </method>
  52362. <method name="getSystemDir" return="java.lang.String"
  52363. abstract="false" native="false" synchronized="false"
  52364. static="false" final="false" visibility="public"
  52365. deprecated="not deprecated">
  52366. <doc>
  52367. <![CDATA[@see org.apache.hadoop.mapred.JobSubmissionProtocol#getSystemDir()]]>
  52368. </doc>
  52369. </method>
  52370. <method name="getQueueAdmins" return="org.apache.hadoop.security.authorize.AccessControlList"
  52371. abstract="false" native="false" synchronized="false"
  52372. static="false" final="false" visibility="public"
  52373. deprecated="not deprecated">
  52374. <param name="queueName" type="java.lang.String"/>
  52375. <exception name="IOException" type="java.io.IOException"/>
  52376. <doc>
  52377. <![CDATA[@see org.apache.hadoop.mapred.JobSubmissionProtocol#getQueueAdmins(String)]]>
  52378. </doc>
  52379. </method>
  52380. <method name="getJob" return="org.apache.hadoop.mapred.JobInProgress"
  52381. abstract="false" native="false" synchronized="false"
  52382. static="false" final="false" visibility="public"
  52383. deprecated="not deprecated">
  52384. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  52385. </method>
  52386. <method name="refreshNodes"
  52387. abstract="false" native="false" synchronized="true"
  52388. static="false" final="false" visibility="public"
  52389. deprecated="not deprecated">
  52390. <exception name="IOException" type="java.io.IOException"/>
  52391. <doc>
  52392. <![CDATA[Rereads the config to get hosts and exclude list file names.
  52393. Rereads the files to update the hosts and exclude lists.]]>
  52394. </doc>
  52395. </method>
  52396. <method name="getLocalJobFilePath" return="java.lang.String"
  52397. abstract="false" native="false" synchronized="false"
  52398. static="true" final="false" visibility="public"
  52399. deprecated="not deprecated">
  52400. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  52401. <doc>
  52402. <![CDATA[Get the localized job file path on the job trackers local file system
  52403. @param jobId id of the job
  52404. @return the path of the job conf file on the local file system]]>
  52405. </doc>
  52406. </method>
  52407. <method name="main"
  52408. abstract="false" native="false" synchronized="false"
  52409. static="true" final="false" visibility="public"
  52410. deprecated="not deprecated">
  52411. <param name="argv" type="java.lang.String[]"/>
  52412. <exception name="IOException" type="java.io.IOException"/>
  52413. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  52414. <doc>
  52415. <![CDATA[Start the JobTracker process. This is used only for debugging. As a rule,
  52416. JobTracker should be run as part of the DFS Namenode process.]]>
  52417. </doc>
  52418. </method>
  52419. <method name="getQueues" return="org.apache.hadoop.mapred.JobQueueInfo[]"
  52420. abstract="false" native="false" synchronized="false"
  52421. static="false" final="false" visibility="public"
  52422. deprecated="not deprecated">
  52423. <exception name="IOException" type="java.io.IOException"/>
  52424. </method>
  52425. <method name="getQueueInfo" return="org.apache.hadoop.mapred.JobQueueInfo"
  52426. abstract="false" native="false" synchronized="false"
  52427. static="false" final="false" visibility="public"
  52428. deprecated="not deprecated">
  52429. <param name="queue" type="java.lang.String"/>
  52430. <exception name="IOException" type="java.io.IOException"/>
  52431. </method>
  52432. <method name="getJobsFromQueue" return="org.apache.hadoop.mapred.JobStatus[]"
  52433. abstract="false" native="false" synchronized="false"
  52434. static="false" final="false" visibility="public"
  52435. deprecated="not deprecated">
  52436. <param name="queue" type="java.lang.String"/>
  52437. <exception name="IOException" type="java.io.IOException"/>
  52438. </method>
  52439. <method name="getQueueAclsForCurrentUser" return="org.apache.hadoop.mapred.QueueAclsInfo[]"
  52440. abstract="false" native="false" synchronized="false"
  52441. static="false" final="false" visibility="public"
  52442. deprecated="not deprecated">
  52443. <exception name="IOException" type="java.io.IOException"/>
  52444. </method>
  52445. <method name="refreshServiceAcl"
  52446. abstract="false" native="false" synchronized="false"
  52447. static="false" final="false" visibility="public"
  52448. deprecated="not deprecated">
  52449. <exception name="IOException" type="java.io.IOException"/>
  52450. </method>
  52451. <method name="refreshSuperUserGroupsConfiguration"
  52452. abstract="false" native="false" synchronized="false"
  52453. static="false" final="false" visibility="public"
  52454. deprecated="not deprecated">
  52455. </method>
  52456. <method name="refreshUserToGroupsMappings"
  52457. abstract="false" native="false" synchronized="false"
  52458. static="false" final="false" visibility="public"
  52459. deprecated="not deprecated">
  52460. <exception name="IOException" type="java.io.IOException"/>
  52461. </method>
  52462. <method name="refreshQueues"
  52463. abstract="false" native="false" synchronized="false"
  52464. static="false" final="false" visibility="public"
  52465. deprecated="not deprecated">
  52466. <exception name="IOException" type="java.io.IOException"/>
  52467. </method>
  52468. <method name="getReasonsForBlacklisting" return="java.lang.String"
  52469. abstract="false" native="false" synchronized="false"
  52470. static="false" final="false" visibility="public"
  52471. deprecated="not deprecated">
  52472. <param name="host" type="java.lang.String"/>
  52473. </method>
  52474. <method name="getReasonsForGraylisting" return="java.lang.String"
  52475. abstract="false" native="false" synchronized="false"
  52476. static="false" final="false" visibility="public"
  52477. deprecated="not deprecated">
  52478. <param name="host" type="java.lang.String"/>
  52479. </method>
  52480. <method name="getHostname" return="java.lang.String"
  52481. abstract="false" native="false" synchronized="false"
  52482. static="false" final="false" visibility="public"
  52483. deprecated="not deprecated">
  52484. </method>
  52485. <method name="getVersion" return="java.lang.String"
  52486. abstract="false" native="false" synchronized="false"
  52487. static="false" final="false" visibility="public"
  52488. deprecated="not deprecated">
  52489. </method>
  52490. <method name="getConfigVersion" return="java.lang.String"
  52491. abstract="false" native="false" synchronized="false"
  52492. static="false" final="false" visibility="public"
  52493. deprecated="not deprecated">
  52494. </method>
  52495. <method name="getThreadCount" return="int"
  52496. abstract="false" native="false" synchronized="false"
  52497. static="false" final="false" visibility="public"
  52498. deprecated="not deprecated">
  52499. </method>
  52500. <method name="getSummaryJson" return="java.lang.String"
  52501. abstract="false" native="false" synchronized="false"
  52502. static="false" final="false" visibility="public"
  52503. deprecated="not deprecated">
  52504. </method>
  52505. <method name="getAliveNodesInfoJson" return="java.lang.String"
  52506. abstract="false" native="false" synchronized="false"
  52507. static="false" final="false" visibility="public"
  52508. deprecated="not deprecated">
  52509. </method>
  52510. <method name="getBlacklistedNodesInfoJson" return="java.lang.String"
  52511. abstract="false" native="false" synchronized="false"
  52512. static="false" final="false" visibility="public"
  52513. deprecated="not deprecated">
  52514. </method>
  52515. <method name="getGraylistedNodesInfoJson" return="java.lang.String"
  52516. abstract="false" native="false" synchronized="false"
  52517. static="false" final="false" visibility="public"
  52518. deprecated="not deprecated">
  52519. </method>
  52520. <method name="getQueueInfoJson" return="java.lang.String"
  52521. abstract="false" native="false" synchronized="false"
  52522. static="false" final="false" visibility="public"
  52523. deprecated="not deprecated">
  52524. </method>
  52525. <method name="setSafeMode" return="boolean"
  52526. abstract="false" native="false" synchronized="false"
  52527. static="false" final="false" visibility="public"
  52528. deprecated="not deprecated">
  52529. <param name="safeModeAction" type="org.apache.hadoop.mapred.JobTracker.SafeModeAction"/>
  52530. <exception name="IOException" type="java.io.IOException"/>
  52531. </method>
  52532. <method name="isInSafeMode" return="boolean"
  52533. abstract="false" native="false" synchronized="false"
  52534. static="false" final="false" visibility="public"
  52535. deprecated="not deprecated">
  52536. </method>
  52537. <field name="MAX_USER_JOBCONF_SIZE_KEY" type="java.lang.String"
  52538. transient="false" volatile="false"
  52539. static="true" final="true" visibility="public"
  52540. deprecated="not deprecated">
  52541. <doc>
  52542. <![CDATA[the config key for max user jobconf size]]>
  52543. </doc>
  52544. </field>
  52545. <field name="DELEGATION_KEY_UPDATE_INTERVAL_KEY" type="java.lang.String"
  52546. transient="false" volatile="false"
  52547. static="true" final="true" visibility="public"
  52548. deprecated="not deprecated">
  52549. </field>
  52550. <field name="DELEGATION_KEY_UPDATE_INTERVAL_DEFAULT" type="long"
  52551. transient="false" volatile="false"
  52552. static="true" final="true" visibility="public"
  52553. deprecated="not deprecated">
  52554. </field>
  52555. <field name="DELEGATION_TOKEN_RENEW_INTERVAL_KEY" type="java.lang.String"
  52556. transient="false" volatile="false"
  52557. static="true" final="true" visibility="public"
  52558. deprecated="not deprecated">
  52559. </field>
  52560. <field name="DELEGATION_TOKEN_RENEW_INTERVAL_DEFAULT" type="long"
  52561. transient="false" volatile="false"
  52562. static="true" final="true" visibility="public"
  52563. deprecated="not deprecated">
  52564. </field>
  52565. <field name="DELEGATION_TOKEN_MAX_LIFETIME_KEY" type="java.lang.String"
  52566. transient="false" volatile="false"
  52567. static="true" final="true" visibility="public"
  52568. deprecated="not deprecated">
  52569. </field>
  52570. <field name="DELEGATION_TOKEN_MAX_LIFETIME_DEFAULT" type="long"
  52571. transient="false" volatile="false"
  52572. static="true" final="true" visibility="public"
  52573. deprecated="not deprecated">
  52574. </field>
  52575. <field name="LOG" type="org.apache.commons.logging.Log"
  52576. transient="false" volatile="false"
  52577. static="true" final="true" visibility="public"
  52578. deprecated="not deprecated">
  52579. </field>
  52580. <field name="JT_USER_NAME" type="java.lang.String"
  52581. transient="false" volatile="false"
  52582. static="true" final="true" visibility="public"
  52583. deprecated="not deprecated">
  52584. </field>
  52585. <field name="JT_KEYTAB_FILE" type="java.lang.String"
  52586. transient="false" volatile="false"
  52587. static="true" final="true" visibility="public"
  52588. deprecated="not deprecated">
  52589. </field>
  52590. <field name="MAPRED_CLUSTER_MAP_MEMORY_MB_PROPERTY" type="java.lang.String"
  52591. transient="false" volatile="false"
  52592. static="true" final="true" visibility="public"
  52593. deprecated="not deprecated">
  52594. </field>
  52595. <field name="MAPRED_CLUSTER_REDUCE_MEMORY_MB_PROPERTY" type="java.lang.String"
  52596. transient="false" volatile="false"
  52597. static="true" final="true" visibility="public"
  52598. deprecated="not deprecated">
  52599. </field>
  52600. <field name="MAPRED_CLUSTER_MAX_MAP_MEMORY_MB_PROPERTY" type="java.lang.String"
  52601. transient="false" volatile="false"
  52602. static="true" final="true" visibility="public"
  52603. deprecated="not deprecated">
  52604. </field>
  52605. <field name="MAPRED_CLUSTER_MAX_REDUCE_MEMORY_MB_PROPERTY" type="java.lang.String"
  52606. transient="false" volatile="false"
  52607. static="true" final="true" visibility="public"
  52608. deprecated="not deprecated">
  52609. </field>
  52610. <doc>
  52611. <![CDATA[JobTracker is the central location for submitting and
  52612. tracking MR jobs in a network environment.]]>
  52613. </doc>
  52614. </class>
  52615. <!-- end class org.apache.hadoop.mapred.JobTracker -->
  52616. <!-- start class org.apache.hadoop.mapred.JobTracker.IllegalStateException -->
  52617. <class name="JobTracker.IllegalStateException" extends="java.io.IOException"
  52618. abstract="false"
  52619. static="true" final="false" visibility="public"
  52620. deprecated="not deprecated">
  52621. <constructor name="JobTracker.IllegalStateException" type="java.lang.String"
  52622. static="false" final="false" visibility="public"
  52623. deprecated="not deprecated">
  52624. </constructor>
  52625. <doc>
  52626. <![CDATA[A client tried to submit a job before the Job Tracker was ready.]]>
  52627. </doc>
  52628. </class>
  52629. <!-- end class org.apache.hadoop.mapred.JobTracker.IllegalStateException -->
  52630. <!-- start class org.apache.hadoop.mapred.JobTracker.SafeModeAction -->
  52631. <class name="JobTracker.SafeModeAction" extends="java.lang.Enum"
  52632. abstract="false"
  52633. static="true" final="true" visibility="public"
  52634. deprecated="not deprecated">
  52635. <method name="values" return="org.apache.hadoop.mapred.JobTracker.SafeModeAction[]"
  52636. abstract="false" native="false" synchronized="false"
  52637. static="true" final="false" visibility="public"
  52638. deprecated="not deprecated">
  52639. </method>
  52640. <method name="valueOf" return="org.apache.hadoop.mapred.JobTracker.SafeModeAction"
  52641. abstract="false" native="false" synchronized="false"
  52642. static="true" final="false" visibility="public"
  52643. deprecated="not deprecated">
  52644. <param name="name" type="java.lang.String"/>
  52645. </method>
  52646. <field name="SAFEMODE_LEAVE" type="org.apache.hadoop.mapred.JobTracker.SafeModeAction"
  52647. transient="false" volatile="false"
  52648. static="true" final="true" visibility="public"
  52649. deprecated="not deprecated">
  52650. </field>
  52651. <field name="SAFEMODE_ENTER" type="org.apache.hadoop.mapred.JobTracker.SafeModeAction"
  52652. transient="false" volatile="false"
  52653. static="true" final="true" visibility="public"
  52654. deprecated="not deprecated">
  52655. </field>
  52656. <field name="SAFEMODE_GET" type="org.apache.hadoop.mapred.JobTracker.SafeModeAction"
  52657. transient="false" volatile="false"
  52658. static="true" final="true" visibility="public"
  52659. deprecated="not deprecated">
  52660. </field>
  52661. <doc>
  52662. <![CDATA[JobTracker SafeMode]]>
  52663. </doc>
  52664. </class>
  52665. <!-- end class org.apache.hadoop.mapred.JobTracker.SafeModeAction -->
  52666. <!-- start class org.apache.hadoop.mapred.JobTracker.State -->
  52667. <class name="JobTracker.State" extends="java.lang.Enum"
  52668. abstract="false"
  52669. static="true" final="true" visibility="public"
  52670. deprecated="not deprecated">
  52671. <method name="values" return="org.apache.hadoop.mapred.JobTracker.State[]"
  52672. abstract="false" native="false" synchronized="false"
  52673. static="true" final="false" visibility="public"
  52674. deprecated="not deprecated">
  52675. </method>
  52676. <method name="valueOf" return="org.apache.hadoop.mapred.JobTracker.State"
  52677. abstract="false" native="false" synchronized="false"
  52678. static="true" final="false" visibility="public"
  52679. deprecated="not deprecated">
  52680. <param name="name" type="java.lang.String"/>
  52681. </method>
  52682. <field name="INITIALIZING" type="org.apache.hadoop.mapred.JobTracker.State"
  52683. transient="false" volatile="false"
  52684. static="true" final="true" visibility="public"
  52685. deprecated="not deprecated">
  52686. </field>
  52687. <field name="RUNNING" type="org.apache.hadoop.mapred.JobTracker.State"
  52688. transient="false" volatile="false"
  52689. static="true" final="true" visibility="public"
  52690. deprecated="not deprecated">
  52691. </field>
  52692. </class>
  52693. <!-- end class org.apache.hadoop.mapred.JobTracker.State -->
  52694. <!-- start interface org.apache.hadoop.mapred.JobTrackerMXBean -->
  52695. <interface name="JobTrackerMXBean" abstract="true"
  52696. static="false" final="false" visibility="public"
  52697. deprecated="not deprecated">
  52698. <method name="getHostname" return="java.lang.String"
  52699. abstract="false" native="false" synchronized="false"
  52700. static="false" final="false" visibility="public"
  52701. deprecated="not deprecated">
  52702. <doc>
  52703. <![CDATA[@return hostname of the jobtracker]]>
  52704. </doc>
  52705. </method>
  52706. <method name="getVersion" return="java.lang.String"
  52707. abstract="false" native="false" synchronized="false"
  52708. static="false" final="false" visibility="public"
  52709. deprecated="not deprecated">
  52710. <doc>
  52711. <![CDATA[@return version of the code base]]>
  52712. </doc>
  52713. </method>
  52714. <method name="getConfigVersion" return="java.lang.String"
  52715. abstract="false" native="false" synchronized="false"
  52716. static="false" final="false" visibility="public"
  52717. deprecated="not deprecated">
  52718. <doc>
  52719. <![CDATA[@return the config version (from a config property)]]>
  52720. </doc>
  52721. </method>
  52722. <method name="getThreadCount" return="int"
  52723. abstract="false" native="false" synchronized="false"
  52724. static="false" final="false" visibility="public"
  52725. deprecated="not deprecated">
  52726. <doc>
  52727. <![CDATA[@return number of threads of the jobtracker jvm]]>
  52728. </doc>
  52729. </method>
  52730. <method name="getSummaryJson" return="java.lang.String"
  52731. abstract="false" native="false" synchronized="false"
  52732. static="false" final="false" visibility="public"
  52733. deprecated="not deprecated">
  52734. <doc>
  52735. <![CDATA[@return the summary info in json]]>
  52736. </doc>
  52737. </method>
  52738. <method name="getAliveNodesInfoJson" return="java.lang.String"
  52739. abstract="false" native="false" synchronized="false"
  52740. static="false" final="false" visibility="public"
  52741. deprecated="not deprecated">
  52742. <doc>
  52743. <![CDATA[@return the alive nodes info in json]]>
  52744. </doc>
  52745. </method>
  52746. <method name="getBlacklistedNodesInfoJson" return="java.lang.String"
  52747. abstract="false" native="false" synchronized="false"
  52748. static="false" final="false" visibility="public"
  52749. deprecated="not deprecated">
  52750. <doc>
  52751. <![CDATA[@return the blacklisted nodes info in json]]>
  52752. </doc>
  52753. </method>
  52754. <method name="getGraylistedNodesInfoJson" return="java.lang.String"
  52755. abstract="false" native="false" synchronized="false"
  52756. static="false" final="false" visibility="public"
  52757. deprecated="not deprecated">
  52758. <doc>
  52759. <![CDATA[@return the graylisted nodes info in json]]>
  52760. </doc>
  52761. </method>
  52762. <method name="getQueueInfoJson" return="java.lang.String"
  52763. abstract="false" native="false" synchronized="false"
  52764. static="false" final="false" visibility="public"
  52765. deprecated="not deprecated">
  52766. <doc>
  52767. <![CDATA[@return the queue info json]]>
  52768. </doc>
  52769. </method>
  52770. <doc>
  52771. <![CDATA[The MXBean interface for JobTrackerInfo]]>
  52772. </doc>
  52773. </interface>
  52774. <!-- end interface org.apache.hadoop.mapred.JobTrackerMXBean -->
  52775. <!-- start class org.apache.hadoop.mapred.JvmTask -->
  52776. <class name="JvmTask" extends="java.lang.Object"
  52777. abstract="false"
  52778. static="false" final="false" visibility="public"
  52779. deprecated="not deprecated">
  52780. <implements name="org.apache.hadoop.io.Writable"/>
  52781. <constructor name="JvmTask" type="org.apache.hadoop.mapred.Task, boolean"
  52782. static="false" final="false" visibility="public"
  52783. deprecated="not deprecated">
  52784. </constructor>
  52785. <constructor name="JvmTask"
  52786. static="false" final="false" visibility="public"
  52787. deprecated="not deprecated">
  52788. </constructor>
  52789. <method name="getTask" return="org.apache.hadoop.mapred.Task"
  52790. abstract="false" native="false" synchronized="false"
  52791. static="false" final="false" visibility="public"
  52792. deprecated="not deprecated">
  52793. </method>
  52794. <method name="shouldDie" return="boolean"
  52795. abstract="false" native="false" synchronized="false"
  52796. static="false" final="false" visibility="public"
  52797. deprecated="not deprecated">
  52798. </method>
  52799. <method name="write"
  52800. abstract="false" native="false" synchronized="false"
  52801. static="false" final="false" visibility="public"
  52802. deprecated="not deprecated">
  52803. <param name="out" type="java.io.DataOutput"/>
  52804. <exception name="IOException" type="java.io.IOException"/>
  52805. </method>
  52806. <method name="readFields"
  52807. abstract="false" native="false" synchronized="false"
  52808. static="false" final="false" visibility="public"
  52809. deprecated="not deprecated">
  52810. <param name="in" type="java.io.DataInput"/>
  52811. <exception name="IOException" type="java.io.IOException"/>
  52812. </method>
  52813. </class>
  52814. <!-- end class org.apache.hadoop.mapred.JvmTask -->
  52815. <!-- start class org.apache.hadoop.mapred.KeyValueLineRecordReader -->
  52816. <class name="KeyValueLineRecordReader" extends="java.lang.Object"
  52817. abstract="false"
  52818. static="false" final="false" visibility="public"
  52819. deprecated="not deprecated">
  52820. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  52821. <constructor name="KeyValueLineRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  52822. static="false" final="false" visibility="public"
  52823. deprecated="not deprecated">
  52824. <exception name="IOException" type="java.io.IOException"/>
  52825. </constructor>
  52826. <method name="getKeyClass" return="java.lang.Class"
  52827. abstract="false" native="false" synchronized="false"
  52828. static="false" final="false" visibility="public"
  52829. deprecated="not deprecated">
  52830. </method>
  52831. <method name="createKey" return="org.apache.hadoop.io.Text"
  52832. abstract="false" native="false" synchronized="false"
  52833. static="false" final="false" visibility="public"
  52834. deprecated="not deprecated">
  52835. </method>
  52836. <method name="createValue" return="org.apache.hadoop.io.Text"
  52837. abstract="false" native="false" synchronized="false"
  52838. static="false" final="false" visibility="public"
  52839. deprecated="not deprecated">
  52840. </method>
  52841. <method name="findSeparator" return="int"
  52842. abstract="false" native="false" synchronized="false"
  52843. static="true" final="false" visibility="public"
  52844. deprecated="not deprecated">
  52845. <param name="utf" type="byte[]"/>
  52846. <param name="start" type="int"/>
  52847. <param name="length" type="int"/>
  52848. <param name="sep" type="byte"/>
  52849. </method>
  52850. <method name="next" return="boolean"
  52851. abstract="false" native="false" synchronized="true"
  52852. static="false" final="false" visibility="public"
  52853. deprecated="not deprecated">
  52854. <param name="key" type="org.apache.hadoop.io.Text"/>
  52855. <param name="value" type="org.apache.hadoop.io.Text"/>
  52856. <exception name="IOException" type="java.io.IOException"/>
  52857. <doc>
  52858. <![CDATA[Read key/value pair in a line.]]>
  52859. </doc>
  52860. </method>
  52861. <method name="getProgress" return="float"
  52862. abstract="false" native="false" synchronized="false"
  52863. static="false" final="false" visibility="public"
  52864. deprecated="not deprecated">
  52865. <exception name="IOException" type="java.io.IOException"/>
  52866. </method>
  52867. <method name="getPos" return="long"
  52868. abstract="false" native="false" synchronized="true"
  52869. static="false" final="false" visibility="public"
  52870. deprecated="not deprecated">
  52871. <exception name="IOException" type="java.io.IOException"/>
  52872. </method>
  52873. <method name="close"
  52874. abstract="false" native="false" synchronized="true"
  52875. static="false" final="false" visibility="public"
  52876. deprecated="not deprecated">
  52877. <exception name="IOException" type="java.io.IOException"/>
  52878. </method>
  52879. <doc>
  52880. <![CDATA[This class treats a line in the input as a key/value pair separated by a
  52881. separator character. The separator can be specified in config file
  52882. under the attribute name key.value.separator.in.input.line. The default
  52883. separator is the tab character ('\t').]]>
  52884. </doc>
  52885. </class>
  52886. <!-- end class org.apache.hadoop.mapred.KeyValueLineRecordReader -->
  52887. <!-- start class org.apache.hadoop.mapred.KeyValueTextInputFormat -->
  52888. <class name="KeyValueTextInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  52889. abstract="false"
  52890. static="false" final="false" visibility="public"
  52891. deprecated="not deprecated">
  52892. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  52893. <constructor name="KeyValueTextInputFormat"
  52894. static="false" final="false" visibility="public"
  52895. deprecated="not deprecated">
  52896. </constructor>
  52897. <method name="configure"
  52898. abstract="false" native="false" synchronized="false"
  52899. static="false" final="false" visibility="public"
  52900. deprecated="not deprecated">
  52901. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  52902. </method>
  52903. <method name="isSplitable" return="boolean"
  52904. abstract="false" native="false" synchronized="false"
  52905. static="false" final="false" visibility="protected"
  52906. deprecated="not deprecated">
  52907. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  52908. <param name="file" type="org.apache.hadoop.fs.Path"/>
  52909. </method>
  52910. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  52911. abstract="false" native="false" synchronized="false"
  52912. static="false" final="false" visibility="public"
  52913. deprecated="not deprecated">
  52914. <param name="genericSplit" type="org.apache.hadoop.mapred.InputSplit"/>
  52915. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  52916. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  52917. <exception name="IOException" type="java.io.IOException"/>
  52918. </method>
  52919. <doc>
  52920. <![CDATA[An {@link InputFormat} for plain text files. Files are broken into lines.
  52921. Either linefeed or carriage-return are used to signal end of line. Each line
  52922. is divided into key and value parts by a separator byte. If no such a byte
  52923. exists, the key will be the entire line and value will be empty.]]>
  52924. </doc>
  52925. </class>
  52926. <!-- end class org.apache.hadoop.mapred.KeyValueTextInputFormat -->
  52927. <!-- start class org.apache.hadoop.mapred.LineRecordReader -->
  52928. <class name="LineRecordReader" extends="java.lang.Object"
  52929. abstract="false"
  52930. static="false" final="false" visibility="public"
  52931. deprecated="not deprecated">
  52932. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  52933. <constructor name="LineRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  52934. static="false" final="false" visibility="public"
  52935. deprecated="not deprecated">
  52936. <exception name="IOException" type="java.io.IOException"/>
  52937. </constructor>
  52938. <constructor name="LineRecordReader" type="java.io.InputStream, long, long, int"
  52939. static="false" final="false" visibility="public"
  52940. deprecated="not deprecated">
  52941. </constructor>
  52942. <constructor name="LineRecordReader" type="java.io.InputStream, long, long, org.apache.hadoop.conf.Configuration"
  52943. static="false" final="false" visibility="public"
  52944. deprecated="not deprecated">
  52945. <exception name="IOException" type="java.io.IOException"/>
  52946. </constructor>
  52947. <method name="createKey" return="org.apache.hadoop.io.LongWritable"
  52948. abstract="false" native="false" synchronized="false"
  52949. static="false" final="false" visibility="public"
  52950. deprecated="not deprecated">
  52951. </method>
  52952. <method name="createValue" return="org.apache.hadoop.io.Text"
  52953. abstract="false" native="false" synchronized="false"
  52954. static="false" final="false" visibility="public"
  52955. deprecated="not deprecated">
  52956. </method>
  52957. <method name="next" return="boolean"
  52958. abstract="false" native="false" synchronized="true"
  52959. static="false" final="false" visibility="public"
  52960. deprecated="not deprecated">
  52961. <param name="key" type="org.apache.hadoop.io.LongWritable"/>
  52962. <param name="value" type="org.apache.hadoop.io.Text"/>
  52963. <exception name="IOException" type="java.io.IOException"/>
  52964. <doc>
  52965. <![CDATA[Read a line.]]>
  52966. </doc>
  52967. </method>
  52968. <method name="getProgress" return="float"
  52969. abstract="false" native="false" synchronized="false"
  52970. static="false" final="false" visibility="public"
  52971. deprecated="not deprecated">
  52972. <exception name="IOException" type="java.io.IOException"/>
  52973. <doc>
  52974. <![CDATA[Get the progress within the split]]>
  52975. </doc>
  52976. </method>
  52977. <method name="getPos" return="long"
  52978. abstract="false" native="false" synchronized="true"
  52979. static="false" final="false" visibility="public"
  52980. deprecated="not deprecated">
  52981. <exception name="IOException" type="java.io.IOException"/>
  52982. </method>
  52983. <method name="close"
  52984. abstract="false" native="false" synchronized="true"
  52985. static="false" final="false" visibility="public"
  52986. deprecated="not deprecated">
  52987. <exception name="IOException" type="java.io.IOException"/>
  52988. </method>
  52989. <doc>
  52990. <![CDATA[Treats keys as offset in file and value as line.]]>
  52991. </doc>
  52992. </class>
  52993. <!-- end class org.apache.hadoop.mapred.LineRecordReader -->
  52994. <!-- start class org.apache.hadoop.mapred.LineRecordReader.LineReader -->
  52995. <class name="LineRecordReader.LineReader" extends="org.apache.hadoop.util.LineReader"
  52996. abstract="false"
  52997. static="true" final="false" visibility="public"
  52998. deprecated="Use {@link org.apache.hadoop.util.LineReader} instead.">
  52999. <constructor name="LineRecordReader.LineReader" type="java.io.InputStream, org.apache.hadoop.conf.Configuration"
  53000. static="false" final="false" visibility="public"
  53001. deprecated="not deprecated">
  53002. <exception name="IOException" type="java.io.IOException"/>
  53003. </constructor>
  53004. <doc>
  53005. <![CDATA[A class that provides a line reader from an input stream.
  53006. @deprecated Use {@link org.apache.hadoop.util.LineReader} instead.]]>
  53007. </doc>
  53008. </class>
  53009. <!-- end class org.apache.hadoop.mapred.LineRecordReader.LineReader -->
  53010. <!-- start class org.apache.hadoop.mapred.MapFileOutputFormat -->
  53011. <class name="MapFileOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat"
  53012. abstract="false"
  53013. static="false" final="false" visibility="public"
  53014. deprecated="not deprecated">
  53015. <constructor name="MapFileOutputFormat"
  53016. static="false" final="false" visibility="public"
  53017. deprecated="not deprecated">
  53018. </constructor>
  53019. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  53020. abstract="false" native="false" synchronized="false"
  53021. static="false" final="false" visibility="public"
  53022. deprecated="not deprecated">
  53023. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  53024. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  53025. <param name="name" type="java.lang.String"/>
  53026. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  53027. <exception name="IOException" type="java.io.IOException"/>
  53028. </method>
  53029. <method name="getReaders" return="org.apache.hadoop.io.MapFile.Reader[]"
  53030. abstract="false" native="false" synchronized="false"
  53031. static="true" final="false" visibility="public"
  53032. deprecated="not deprecated">
  53033. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  53034. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  53035. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53036. <exception name="IOException" type="java.io.IOException"/>
  53037. <doc>
  53038. <![CDATA[Open the output generated by this format.]]>
  53039. </doc>
  53040. </method>
  53041. <method name="getEntry" return="org.apache.hadoop.io.Writable"
  53042. abstract="false" native="false" synchronized="false"
  53043. static="true" final="false" visibility="public"
  53044. deprecated="not deprecated">
  53045. <param name="readers" type="org.apache.hadoop.io.MapFile.Reader[]"/>
  53046. <param name="partitioner" type="org.apache.hadoop.mapred.Partitioner"/>
  53047. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  53048. <param name="value" type="org.apache.hadoop.io.Writable"/>
  53049. <exception name="IOException" type="java.io.IOException"/>
  53050. <doc>
  53051. <![CDATA[Get an entry from output generated by this class.]]>
  53052. </doc>
  53053. </method>
  53054. <doc>
  53055. <![CDATA[An {@link OutputFormat} that writes {@link MapFile}s.]]>
  53056. </doc>
  53057. </class>
  53058. <!-- end class org.apache.hadoop.mapred.MapFileOutputFormat -->
  53059. <!-- start interface org.apache.hadoop.mapred.Mapper -->
  53060. <interface name="Mapper" abstract="true"
  53061. static="false" final="false" visibility="public"
  53062. deprecated="not deprecated">
  53063. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  53064. <implements name="org.apache.hadoop.io.Closeable"/>
  53065. <method name="map"
  53066. abstract="false" native="false" synchronized="false"
  53067. static="false" final="false" visibility="public"
  53068. deprecated="not deprecated">
  53069. <param name="key" type="java.lang.Object"/>
  53070. <param name="value" type="java.lang.Object"/>
  53071. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  53072. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  53073. <exception name="IOException" type="java.io.IOException"/>
  53074. <doc>
  53075. <![CDATA[Maps a single input key/value pair into an intermediate key/value pair.
  53076. <p>Output pairs need not be of the same types as input pairs. A given
  53077. input pair may map to zero or many output pairs. Output pairs are
  53078. collected with calls to
  53079. {@link OutputCollector#collect(Object,Object)}.</p>
  53080. <p>Applications can use the {@link Reporter} provided to report progress
  53081. or just indicate that they are alive. In scenarios where the application
  53082. takes an insignificant amount of time to process individual key/value
  53083. pairs, this is crucial since the framework might assume that the task has
  53084. timed-out and kill that task. The other way of avoiding this is to set
  53085. <a href="{@docRoot}/../mapred-default.html#mapred.task.timeout">
  53086. mapred.task.timeout</a> to a high-enough value (or even zero for no
  53087. time-outs).</p>
  53088. @param key the input key.
  53089. @param value the input value.
  53090. @param output collects mapped keys and values.
  53091. @param reporter facility to report progress.]]>
  53092. </doc>
  53093. </method>
  53094. <doc>
  53095. <![CDATA[Maps input key/value pairs to a set of intermediate key/value pairs.
  53096. <p>Maps are the individual tasks which transform input records into a
  53097. intermediate records. The transformed intermediate records need not be of
  53098. the same type as the input records. A given input pair may map to zero or
  53099. many output pairs.</p>
  53100. <p>The Hadoop Map-Reduce framework spawns one map task for each
  53101. {@link InputSplit} generated by the {@link InputFormat} for the job.
  53102. <code>Mapper</code> implementations can access the {@link JobConf} for the
  53103. job via the {@link JobConfigurable#configure(JobConf)} and initialize
  53104. themselves. Similarly they can use the {@link Closeable#close()} method for
  53105. de-initialization.</p>
  53106. <p>The framework then calls
  53107. {@link #map(Object, Object, OutputCollector, Reporter)}
  53108. for each key/value pair in the <code>InputSplit</code> for that task.</p>
  53109. <p>All intermediate values associated with a given output key are
  53110. subsequently grouped by the framework, and passed to a {@link Reducer} to
  53111. determine the final output. Users can control the grouping by specifying
  53112. a <code>Comparator</code> via
  53113. {@link JobConf#setOutputKeyComparatorClass(Class)}.</p>
  53114. <p>The grouped <code>Mapper</code> outputs are partitioned per
  53115. <code>Reducer</code>. Users can control which keys (and hence records) go to
  53116. which <code>Reducer</code> by implementing a custom {@link Partitioner}.
  53117. <p>Users can optionally specify a <code>combiner</code>, via
  53118. {@link JobConf#setCombinerClass(Class)}, to perform local aggregation of the
  53119. intermediate outputs, which helps to cut down the amount of data transferred
  53120. from the <code>Mapper</code> to the <code>Reducer</code>.
  53121. <p>The intermediate, grouped outputs are always stored in
  53122. {@link SequenceFile}s. Applications can specify if and how the intermediate
  53123. outputs are to be compressed and which {@link CompressionCodec}s are to be
  53124. used via the <code>JobConf</code>.</p>
  53125. <p>If the job has
  53126. <a href="{@docRoot}/org/apache/hadoop/mapred/JobConf.html#ReducerNone">zero
  53127. reduces</a> then the output of the <code>Mapper</code> is directly written
  53128. to the {@link FileSystem} without grouping by keys.</p>
  53129. <p>Example:</p>
  53130. <p><blockquote><pre>
  53131. public class MyMapper&lt;K extends WritableComparable, V extends Writable&gt;
  53132. extends MapReduceBase implements Mapper&lt;K, V, K, V&gt; {
  53133. static enum MyCounters { NUM_RECORDS }
  53134. private String mapTaskId;
  53135. private String inputFile;
  53136. private int noRecords = 0;
  53137. public void configure(JobConf job) {
  53138. mapTaskId = job.get("mapred.task.id");
  53139. inputFile = job.get("map.input.file");
  53140. }
  53141. public void map(K key, V val,
  53142. OutputCollector&lt;K, V&gt; output, Reporter reporter)
  53143. throws IOException {
  53144. // Process the &lt;key, value&gt; pair (assume this takes a while)
  53145. // ...
  53146. // ...
  53147. // Let the framework know that we are alive, and kicking!
  53148. // reporter.progress();
  53149. // Process some more
  53150. // ...
  53151. // ...
  53152. // Increment the no. of &lt;key, value&gt; pairs processed
  53153. ++noRecords;
  53154. // Increment counters
  53155. reporter.incrCounter(NUM_RECORDS, 1);
  53156. // Every 100 records update application-level status
  53157. if ((noRecords%100) == 0) {
  53158. reporter.setStatus(mapTaskId + " processed " + noRecords +
  53159. " from input-file: " + inputFile);
  53160. }
  53161. // Output the result
  53162. output.collect(key, val);
  53163. }
  53164. }
  53165. </pre></blockquote></p>
  53166. <p>Applications may write a custom {@link MapRunnable} to exert greater
  53167. control on map processing e.g. multi-threaded <code>Mapper</code>s etc.</p>
  53168. @see JobConf
  53169. @see InputFormat
  53170. @see Partitioner
  53171. @see Reducer
  53172. @see MapReduceBase
  53173. @see MapRunnable
  53174. @see SequenceFile]]>
  53175. </doc>
  53176. </interface>
  53177. <!-- end interface org.apache.hadoop.mapred.Mapper -->
  53178. <!-- start class org.apache.hadoop.mapred.MapReduceBase -->
  53179. <class name="MapReduceBase" extends="java.lang.Object"
  53180. abstract="false"
  53181. static="false" final="false" visibility="public"
  53182. deprecated="not deprecated">
  53183. <implements name="org.apache.hadoop.io.Closeable"/>
  53184. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  53185. <constructor name="MapReduceBase"
  53186. static="false" final="false" visibility="public"
  53187. deprecated="not deprecated">
  53188. </constructor>
  53189. <method name="close"
  53190. abstract="false" native="false" synchronized="false"
  53191. static="false" final="false" visibility="public"
  53192. deprecated="not deprecated">
  53193. <exception name="IOException" type="java.io.IOException"/>
  53194. <doc>
  53195. <![CDATA[Default implementation that does nothing.]]>
  53196. </doc>
  53197. </method>
  53198. <method name="configure"
  53199. abstract="false" native="false" synchronized="false"
  53200. static="false" final="false" visibility="public"
  53201. deprecated="not deprecated">
  53202. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  53203. <doc>
  53204. <![CDATA[Default implementation that does nothing.]]>
  53205. </doc>
  53206. </method>
  53207. <doc>
  53208. <![CDATA[Base class for {@link Mapper} and {@link Reducer} implementations.
  53209. <p>Provides default no-op implementations for a few methods, most non-trivial
  53210. applications need to override some of them.</p>]]>
  53211. </doc>
  53212. </class>
  53213. <!-- end class org.apache.hadoop.mapred.MapReduceBase -->
  53214. <!-- start class org.apache.hadoop.mapred.MapReducePolicyProvider -->
  53215. <class name="MapReducePolicyProvider" extends="org.apache.hadoop.security.authorize.PolicyProvider"
  53216. abstract="false"
  53217. static="false" final="false" visibility="public"
  53218. deprecated="not deprecated">
  53219. <constructor name="MapReducePolicyProvider"
  53220. static="false" final="false" visibility="public"
  53221. deprecated="not deprecated">
  53222. </constructor>
  53223. <method name="getServices" return="org.apache.hadoop.security.authorize.Service[]"
  53224. abstract="false" native="false" synchronized="false"
  53225. static="false" final="false" visibility="public"
  53226. deprecated="not deprecated">
  53227. </method>
  53228. <doc>
  53229. <![CDATA[{@link PolicyProvider} for Map-Reduce protocols.]]>
  53230. </doc>
  53231. </class>
  53232. <!-- end class org.apache.hadoop.mapred.MapReducePolicyProvider -->
  53233. <!-- start interface org.apache.hadoop.mapred.MapRunnable -->
  53234. <interface name="MapRunnable" abstract="true"
  53235. static="false" final="false" visibility="public"
  53236. deprecated="not deprecated">
  53237. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  53238. <method name="run"
  53239. abstract="false" native="false" synchronized="false"
  53240. static="false" final="false" visibility="public"
  53241. deprecated="not deprecated">
  53242. <param name="input" type="org.apache.hadoop.mapred.RecordReader"/>
  53243. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  53244. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  53245. <exception name="IOException" type="java.io.IOException"/>
  53246. <doc>
  53247. <![CDATA[Start mapping input <tt>&lt;key, value&gt;</tt> pairs.
  53248. <p>Mapping of input records to output records is complete when this method
  53249. returns.</p>
  53250. @param input the {@link RecordReader} to read the input records.
  53251. @param output the {@link OutputCollector} to collect the outputrecords.
  53252. @param reporter {@link Reporter} to report progress, status-updates etc.
  53253. @throws IOException]]>
  53254. </doc>
  53255. </method>
  53256. <doc>
  53257. <![CDATA[Expert: Generic interface for {@link Mapper}s.
  53258. <p>Custom implementations of <code>MapRunnable</code> can exert greater
  53259. control on map processing e.g. multi-threaded, asynchronous mappers etc.</p>
  53260. @see Mapper]]>
  53261. </doc>
  53262. </interface>
  53263. <!-- end interface org.apache.hadoop.mapred.MapRunnable -->
  53264. <!-- start class org.apache.hadoop.mapred.MapRunner -->
  53265. <class name="MapRunner" extends="java.lang.Object"
  53266. abstract="false"
  53267. static="false" final="false" visibility="public"
  53268. deprecated="not deprecated">
  53269. <implements name="org.apache.hadoop.mapred.MapRunnable"/>
  53270. <constructor name="MapRunner"
  53271. static="false" final="false" visibility="public"
  53272. deprecated="not deprecated">
  53273. </constructor>
  53274. <method name="configure"
  53275. abstract="false" native="false" synchronized="false"
  53276. static="false" final="false" visibility="public"
  53277. deprecated="not deprecated">
  53278. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  53279. </method>
  53280. <method name="run"
  53281. abstract="false" native="false" synchronized="false"
  53282. static="false" final="false" visibility="public"
  53283. deprecated="not deprecated">
  53284. <param name="input" type="org.apache.hadoop.mapred.RecordReader"/>
  53285. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  53286. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  53287. <exception name="IOException" type="java.io.IOException"/>
  53288. </method>
  53289. <method name="getMapper" return="org.apache.hadoop.mapred.Mapper"
  53290. abstract="false" native="false" synchronized="false"
  53291. static="false" final="false" visibility="protected"
  53292. deprecated="not deprecated">
  53293. </method>
  53294. <doc>
  53295. <![CDATA[Default {@link MapRunnable} implementation.]]>
  53296. </doc>
  53297. </class>
  53298. <!-- end class org.apache.hadoop.mapred.MapRunner -->
  53299. <!-- start class org.apache.hadoop.mapred.MapTaskCompletionEventsUpdate -->
  53300. <class name="MapTaskCompletionEventsUpdate" extends="java.lang.Object"
  53301. abstract="false"
  53302. static="false" final="false" visibility="public"
  53303. deprecated="not deprecated">
  53304. <implements name="org.apache.hadoop.io.Writable"/>
  53305. <constructor name="MapTaskCompletionEventsUpdate"
  53306. static="false" final="false" visibility="public"
  53307. deprecated="not deprecated">
  53308. </constructor>
  53309. <constructor name="MapTaskCompletionEventsUpdate" type="org.apache.hadoop.mapred.TaskCompletionEvent[], boolean"
  53310. static="false" final="false" visibility="public"
  53311. deprecated="not deprecated">
  53312. </constructor>
  53313. <method name="shouldReset" return="boolean"
  53314. abstract="false" native="false" synchronized="false"
  53315. static="false" final="false" visibility="public"
  53316. deprecated="not deprecated">
  53317. </method>
  53318. <method name="getMapTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  53319. abstract="false" native="false" synchronized="false"
  53320. static="false" final="false" visibility="public"
  53321. deprecated="not deprecated">
  53322. </method>
  53323. <method name="write"
  53324. abstract="false" native="false" synchronized="false"
  53325. static="false" final="false" visibility="public"
  53326. deprecated="not deprecated">
  53327. <param name="out" type="java.io.DataOutput"/>
  53328. <exception name="IOException" type="java.io.IOException"/>
  53329. </method>
  53330. <method name="readFields"
  53331. abstract="false" native="false" synchronized="false"
  53332. static="false" final="false" visibility="public"
  53333. deprecated="not deprecated">
  53334. <param name="in" type="java.io.DataInput"/>
  53335. <exception name="IOException" type="java.io.IOException"/>
  53336. </method>
  53337. <doc>
  53338. <![CDATA[A class that represents the communication between the tasktracker and child
  53339. tasks w.r.t the map task completion events. It also indicates whether the
  53340. child task should reset its events index.]]>
  53341. </doc>
  53342. </class>
  53343. <!-- end class org.apache.hadoop.mapred.MapTaskCompletionEventsUpdate -->
  53344. <!-- start class org.apache.hadoop.mapred.MultiFileInputFormat -->
  53345. <class name="MultiFileInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  53346. abstract="true"
  53347. static="false" final="false" visibility="public"
  53348. deprecated="Use {@link org.apache.hadoop.mapred.lib.CombineFileInputFormat} instead">
  53349. <constructor name="MultiFileInputFormat"
  53350. static="false" final="false" visibility="public"
  53351. deprecated="not deprecated">
  53352. </constructor>
  53353. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  53354. abstract="false" native="false" synchronized="false"
  53355. static="false" final="false" visibility="public"
  53356. deprecated="not deprecated">
  53357. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  53358. <param name="numSplits" type="int"/>
  53359. <exception name="IOException" type="java.io.IOException"/>
  53360. </method>
  53361. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  53362. abstract="true" native="false" synchronized="false"
  53363. static="false" final="false" visibility="public"
  53364. deprecated="not deprecated">
  53365. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  53366. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  53367. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  53368. <exception name="IOException" type="java.io.IOException"/>
  53369. </method>
  53370. <doc>
  53371. <![CDATA[An abstract {@link InputFormat} that returns {@link MultiFileSplit}'s
  53372. in {@link #getSplits(JobConf, int)} method. Splits are constructed from
  53373. the files under the input paths. Each split returned contains <i>nearly</i>
  53374. equal content length. <br>
  53375. Subclasses implement {@link #getRecordReader(InputSplit, JobConf, Reporter)}
  53376. to construct <code>RecordReader</code>'s for <code>MultiFileSplit</code>'s.
  53377. @see MultiFileSplit
  53378. @deprecated Use {@link org.apache.hadoop.mapred.lib.CombineFileInputFormat} instead]]>
  53379. </doc>
  53380. </class>
  53381. <!-- end class org.apache.hadoop.mapred.MultiFileInputFormat -->
  53382. <!-- start class org.apache.hadoop.mapred.MultiFileSplit -->
  53383. <class name="MultiFileSplit" extends="org.apache.hadoop.mapred.lib.CombineFileSplit"
  53384. abstract="false"
  53385. static="false" final="false" visibility="public"
  53386. deprecated="Use {@link org.apache.hadoop.mapred.lib.CombineFileSplit} instead">
  53387. <constructor name="MultiFileSplit" type="org.apache.hadoop.mapred.JobConf, org.apache.hadoop.fs.Path[], long[]"
  53388. static="false" final="false" visibility="public"
  53389. deprecated="not deprecated">
  53390. </constructor>
  53391. <method name="getLocations" return="java.lang.String[]"
  53392. abstract="false" native="false" synchronized="false"
  53393. static="false" final="false" visibility="public"
  53394. deprecated="not deprecated">
  53395. <exception name="IOException" type="java.io.IOException"/>
  53396. </method>
  53397. <method name="toString" return="java.lang.String"
  53398. abstract="false" native="false" synchronized="false"
  53399. static="false" final="false" visibility="public"
  53400. deprecated="not deprecated">
  53401. </method>
  53402. <doc>
  53403. <![CDATA[A sub-collection of input files. Unlike {@link FileSplit}, MultiFileSplit
  53404. class does not represent a split of a file, but a split of input files
  53405. into smaller sets. The atomic unit of split is a file. <br>
  53406. MultiFileSplit can be used to implement {@link RecordReader}'s, with
  53407. reading one record per file.
  53408. @see FileSplit
  53409. @see MultiFileInputFormat
  53410. @deprecated Use {@link org.apache.hadoop.mapred.lib.CombineFileSplit} instead]]>
  53411. </doc>
  53412. </class>
  53413. <!-- end class org.apache.hadoop.mapred.MultiFileSplit -->
  53414. <!-- start class org.apache.hadoop.mapred.Operation -->
  53415. <class name="Operation" extends="java.lang.Enum"
  53416. abstract="false"
  53417. static="false" final="true" visibility="public"
  53418. deprecated="not deprecated">
  53419. <method name="values" return="org.apache.hadoop.mapred.Operation[]"
  53420. abstract="false" native="false" synchronized="false"
  53421. static="true" final="false" visibility="public"
  53422. deprecated="not deprecated">
  53423. </method>
  53424. <method name="valueOf" return="org.apache.hadoop.mapred.Operation"
  53425. abstract="false" native="false" synchronized="false"
  53426. static="true" final="false" visibility="public"
  53427. deprecated="not deprecated">
  53428. <param name="name" type="java.lang.String"/>
  53429. </method>
  53430. <field name="VIEW_JOB_COUNTERS" type="org.apache.hadoop.mapred.Operation"
  53431. transient="false" volatile="false"
  53432. static="true" final="true" visibility="public"
  53433. deprecated="not deprecated">
  53434. </field>
  53435. <field name="VIEW_JOB_DETAILS" type="org.apache.hadoop.mapred.Operation"
  53436. transient="false" volatile="false"
  53437. static="true" final="true" visibility="public"
  53438. deprecated="not deprecated">
  53439. </field>
  53440. <field name="VIEW_TASK_LOGS" type="org.apache.hadoop.mapred.Operation"
  53441. transient="false" volatile="false"
  53442. static="true" final="true" visibility="public"
  53443. deprecated="not deprecated">
  53444. </field>
  53445. <field name="KILL_JOB" type="org.apache.hadoop.mapred.Operation"
  53446. transient="false" volatile="false"
  53447. static="true" final="true" visibility="public"
  53448. deprecated="not deprecated">
  53449. </field>
  53450. <field name="FAIL_TASK" type="org.apache.hadoop.mapred.Operation"
  53451. transient="false" volatile="false"
  53452. static="true" final="true" visibility="public"
  53453. deprecated="not deprecated">
  53454. </field>
  53455. <field name="KILL_TASK" type="org.apache.hadoop.mapred.Operation"
  53456. transient="false" volatile="false"
  53457. static="true" final="true" visibility="public"
  53458. deprecated="not deprecated">
  53459. </field>
  53460. <field name="SET_JOB_PRIORITY" type="org.apache.hadoop.mapred.Operation"
  53461. transient="false" volatile="false"
  53462. static="true" final="true" visibility="public"
  53463. deprecated="not deprecated">
  53464. </field>
  53465. <field name="SUBMIT_JOB" type="org.apache.hadoop.mapred.Operation"
  53466. transient="false" volatile="false"
  53467. static="true" final="true" visibility="public"
  53468. deprecated="not deprecated">
  53469. </field>
  53470. <field name="qACLNeeded" type="org.apache.hadoop.mapred.QueueManager.QueueACL"
  53471. transient="false" volatile="false"
  53472. static="false" final="false" visibility="public"
  53473. deprecated="not deprecated">
  53474. </field>
  53475. <field name="jobACLNeeded" type="org.apache.hadoop.mapreduce.JobACL"
  53476. transient="false" volatile="false"
  53477. static="false" final="false" visibility="public"
  53478. deprecated="not deprecated">
  53479. </field>
  53480. <doc>
  53481. <![CDATA[Generic operation that maps to the dependent set of ACLs that drive the
  53482. authorization of the operation.]]>
  53483. </doc>
  53484. </class>
  53485. <!-- end class org.apache.hadoop.mapred.Operation -->
  53486. <!-- start interface org.apache.hadoop.mapred.OutputCollector -->
  53487. <interface name="OutputCollector" abstract="true"
  53488. static="false" final="false" visibility="public"
  53489. deprecated="not deprecated">
  53490. <method name="collect"
  53491. abstract="false" native="false" synchronized="false"
  53492. static="false" final="false" visibility="public"
  53493. deprecated="not deprecated">
  53494. <param name="key" type="java.lang.Object"/>
  53495. <param name="value" type="java.lang.Object"/>
  53496. <exception name="IOException" type="java.io.IOException"/>
  53497. <doc>
  53498. <![CDATA[Adds a key/value pair to the output.
  53499. @param key the key to collect.
  53500. @param value to value to collect.
  53501. @throws IOException]]>
  53502. </doc>
  53503. </method>
  53504. <doc>
  53505. <![CDATA[Collects the <code>&lt;key, value&gt;</code> pairs output by {@link Mapper}s
  53506. and {@link Reducer}s.
  53507. <p><code>OutputCollector</code> is the generalization of the facility
  53508. provided by the Map-Reduce framework to collect data output by either the
  53509. <code>Mapper</code> or the <code>Reducer</code> i.e. intermediate outputs
  53510. or the output of the job.</p>]]>
  53511. </doc>
  53512. </interface>
  53513. <!-- end interface org.apache.hadoop.mapred.OutputCollector -->
  53514. <!-- start class org.apache.hadoop.mapred.OutputCommitter -->
  53515. <class name="OutputCommitter" extends="org.apache.hadoop.mapreduce.OutputCommitter"
  53516. abstract="true"
  53517. static="false" final="false" visibility="public"
  53518. deprecated="not deprecated">
  53519. <constructor name="OutputCommitter"
  53520. static="false" final="false" visibility="public"
  53521. deprecated="not deprecated">
  53522. </constructor>
  53523. <method name="setupJob"
  53524. abstract="true" native="false" synchronized="false"
  53525. static="false" final="false" visibility="public"
  53526. deprecated="not deprecated">
  53527. <param name="jobContext" type="org.apache.hadoop.mapred.JobContext"/>
  53528. <exception name="IOException" type="java.io.IOException"/>
  53529. <doc>
  53530. <![CDATA[For the framework to setup the job output during initialization
  53531. @param jobContext Context of the job whose output is being written.
  53532. @throws IOException if temporary output could not be created]]>
  53533. </doc>
  53534. </method>
  53535. <method name="cleanupJob"
  53536. abstract="false" native="false" synchronized="false"
  53537. static="false" final="false" visibility="public"
  53538. deprecated="use {@link #commitJob(JobContext)} or
  53539. {@link #abortJob(JobContext, int)} instead">
  53540. <param name="jobContext" type="org.apache.hadoop.mapred.JobContext"/>
  53541. <exception name="IOException" type="java.io.IOException"/>
  53542. <doc>
  53543. <![CDATA[For cleaning up the job's output after job completion
  53544. @deprecated use {@link #commitJob(JobContext)} or
  53545. {@link #abortJob(JobContext, int)} instead]]>
  53546. </doc>
  53547. </method>
  53548. <method name="commitJob"
  53549. abstract="false" native="false" synchronized="false"
  53550. static="false" final="false" visibility="public"
  53551. deprecated="not deprecated">
  53552. <param name="jobContext" type="org.apache.hadoop.mapred.JobContext"/>
  53553. <exception name="IOException" type="java.io.IOException"/>
  53554. <doc>
  53555. <![CDATA[For committing job's output after successful job completion. Note that this
  53556. is invoked for jobs with final run state as {@link JobStatus#SUCCEEDED}.
  53557. @param jobContext Context of the job whose output is being written.
  53558. @throws IOException]]>
  53559. </doc>
  53560. </method>
  53561. <method name="abortJob"
  53562. abstract="false" native="false" synchronized="false"
  53563. static="false" final="false" visibility="public"
  53564. deprecated="not deprecated">
  53565. <param name="jobContext" type="org.apache.hadoop.mapred.JobContext"/>
  53566. <param name="status" type="int"/>
  53567. <exception name="IOException" type="java.io.IOException"/>
  53568. <doc>
  53569. <![CDATA[For cleaning up the job's output after job failure.
  53570. @param jobContext Context of the job whose output is being written.
  53571. @param status Final run state of the job, should be
  53572. {@link JobStatus#KILLED} or {@link JobStatus#FAILED}
  53573. @throws IOException]]>
  53574. </doc>
  53575. </method>
  53576. <method name="setupTask"
  53577. abstract="true" native="false" synchronized="false"
  53578. static="false" final="false" visibility="public"
  53579. deprecated="not deprecated">
  53580. <param name="taskContext" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  53581. <exception name="IOException" type="java.io.IOException"/>
  53582. <doc>
  53583. <![CDATA[Sets up output for the task.
  53584. @param taskContext Context of the task whose output is being written.
  53585. @throws IOException]]>
  53586. </doc>
  53587. </method>
  53588. <method name="needsTaskCommit" return="boolean"
  53589. abstract="true" native="false" synchronized="false"
  53590. static="false" final="false" visibility="public"
  53591. deprecated="not deprecated">
  53592. <param name="taskContext" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  53593. <exception name="IOException" type="java.io.IOException"/>
  53594. <doc>
  53595. <![CDATA[Check whether task needs a commit
  53596. @param taskContext
  53597. @return true/false
  53598. @throws IOException]]>
  53599. </doc>
  53600. </method>
  53601. <method name="commitTask"
  53602. abstract="true" native="false" synchronized="false"
  53603. static="false" final="false" visibility="public"
  53604. deprecated="not deprecated">
  53605. <param name="taskContext" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  53606. <exception name="IOException" type="java.io.IOException"/>
  53607. <doc>
  53608. <![CDATA[To promote the task's temporary output to final output location
  53609. The task's output is moved to the job's output directory.
  53610. @param taskContext Context of the task whose output is being written.
  53611. @throws IOException if commit is not]]>
  53612. </doc>
  53613. </method>
  53614. <method name="abortTask"
  53615. abstract="true" native="false" synchronized="false"
  53616. static="false" final="false" visibility="public"
  53617. deprecated="not deprecated">
  53618. <param name="taskContext" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  53619. <exception name="IOException" type="java.io.IOException"/>
  53620. <doc>
  53621. <![CDATA[Discard the task output
  53622. @param taskContext
  53623. @throws IOException]]>
  53624. </doc>
  53625. </method>
  53626. <method name="setupJob"
  53627. abstract="false" native="false" synchronized="false"
  53628. static="false" final="true" visibility="public"
  53629. deprecated="not deprecated">
  53630. <param name="jobContext" type="org.apache.hadoop.mapreduce.JobContext"/>
  53631. <exception name="IOException" type="java.io.IOException"/>
  53632. <doc>
  53633. <![CDATA[This method implements the new interface by calling the old method. Note
  53634. that the input types are different between the new and old apis and this
  53635. is a bridge between the two.]]>
  53636. </doc>
  53637. </method>
  53638. <method name="cleanupJob"
  53639. abstract="false" native="false" synchronized="false"
  53640. static="false" final="true" visibility="public"
  53641. deprecated="not deprecated">
  53642. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  53643. <exception name="IOException" type="java.io.IOException"/>
  53644. <doc>
  53645. <![CDATA[This method implements the new interface by calling the old method. Note
  53646. that the input types are different between the new and old apis and this
  53647. is a bridge between the two.]]>
  53648. </doc>
  53649. </method>
  53650. <method name="commitJob"
  53651. abstract="false" native="false" synchronized="false"
  53652. static="false" final="true" visibility="public"
  53653. deprecated="not deprecated">
  53654. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  53655. <exception name="IOException" type="java.io.IOException"/>
  53656. <doc>
  53657. <![CDATA[This method implements the new interface by calling the old method. Note
  53658. that the input types are different between the new and old apis and this
  53659. is a bridge between the two.]]>
  53660. </doc>
  53661. </method>
  53662. <method name="abortJob"
  53663. abstract="false" native="false" synchronized="false"
  53664. static="false" final="true" visibility="public"
  53665. deprecated="not deprecated">
  53666. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  53667. <param name="runState" type="org.apache.hadoop.mapreduce.JobStatus.State"/>
  53668. <exception name="IOException" type="java.io.IOException"/>
  53669. <doc>
  53670. <![CDATA[This method implements the new interface by calling the old method. Note
  53671. that the input types are different between the new and old apis and this
  53672. is a bridge between the two.]]>
  53673. </doc>
  53674. </method>
  53675. <method name="setupTask"
  53676. abstract="false" native="false" synchronized="false"
  53677. static="false" final="true" visibility="public"
  53678. deprecated="not deprecated">
  53679. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  53680. <exception name="IOException" type="java.io.IOException"/>
  53681. <doc>
  53682. <![CDATA[This method implements the new interface by calling the old method. Note
  53683. that the input types are different between the new and old apis and this
  53684. is a bridge between the two.]]>
  53685. </doc>
  53686. </method>
  53687. <method name="needsTaskCommit" return="boolean"
  53688. abstract="false" native="false" synchronized="false"
  53689. static="false" final="true" visibility="public"
  53690. deprecated="not deprecated">
  53691. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  53692. <exception name="IOException" type="java.io.IOException"/>
  53693. <doc>
  53694. <![CDATA[This method implements the new interface by calling the old method. Note
  53695. that the input types are different between the new and old apis and this
  53696. is a bridge between the two.]]>
  53697. </doc>
  53698. </method>
  53699. <method name="commitTask"
  53700. abstract="false" native="false" synchronized="false"
  53701. static="false" final="true" visibility="public"
  53702. deprecated="not deprecated">
  53703. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  53704. <exception name="IOException" type="java.io.IOException"/>
  53705. <doc>
  53706. <![CDATA[This method implements the new interface by calling the old method. Note
  53707. that the input types are different between the new and old apis and this
  53708. is a bridge between the two.]]>
  53709. </doc>
  53710. </method>
  53711. <method name="abortTask"
  53712. abstract="false" native="false" synchronized="false"
  53713. static="false" final="true" visibility="public"
  53714. deprecated="not deprecated">
  53715. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  53716. <exception name="IOException" type="java.io.IOException"/>
  53717. <doc>
  53718. <![CDATA[This method implements the new interface by calling the old method. Note
  53719. that the input types are different between the new and old apis and this
  53720. is a bridge between the two.]]>
  53721. </doc>
  53722. </method>
  53723. <doc>
  53724. <![CDATA[<code>OutputCommitter</code> describes the commit of task output for a
  53725. Map-Reduce job.
  53726. <p>The Map-Reduce framework relies on the <code>OutputCommitter</code> of
  53727. the job to:<p>
  53728. <ol>
  53729. <li>
  53730. Setup the job during initialization. For example, create the temporary
  53731. output directory for the job during the initialization of the job.
  53732. </li>
  53733. <li>
  53734. Cleanup the job after the job completion. For example, remove the
  53735. temporary output directory after the job completion.
  53736. </li>
  53737. <li>
  53738. Setup the task temporary output.
  53739. </li>
  53740. <li>
  53741. Check whether a task needs a commit. This is to avoid the commit
  53742. procedure if a task does not need commit.
  53743. </li>
  53744. <li>
  53745. Commit of the task output.
  53746. </li>
  53747. <li>
  53748. Discard the task commit.
  53749. </li>
  53750. </ol>
  53751. @see FileOutputCommitter
  53752. @see JobContext
  53753. @see TaskAttemptContext]]>
  53754. </doc>
  53755. </class>
  53756. <!-- end class org.apache.hadoop.mapred.OutputCommitter -->
  53757. <!-- start interface org.apache.hadoop.mapred.OutputFormat -->
  53758. <interface name="OutputFormat" abstract="true"
  53759. static="false" final="false" visibility="public"
  53760. deprecated="not deprecated">
  53761. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  53762. abstract="false" native="false" synchronized="false"
  53763. static="false" final="false" visibility="public"
  53764. deprecated="not deprecated">
  53765. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  53766. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  53767. <param name="name" type="java.lang.String"/>
  53768. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  53769. <exception name="IOException" type="java.io.IOException"/>
  53770. <doc>
  53771. <![CDATA[Get the {@link RecordWriter} for the given job.
  53772. @param ignored
  53773. @param job configuration for the job whose output is being written.
  53774. @param name the unique name for this part of the output.
  53775. @param progress mechanism for reporting progress while writing to file.
  53776. @return a {@link RecordWriter} to write the output for the job.
  53777. @throws IOException]]>
  53778. </doc>
  53779. </method>
  53780. <method name="checkOutputSpecs"
  53781. abstract="false" native="false" synchronized="false"
  53782. static="false" final="false" visibility="public"
  53783. deprecated="not deprecated">
  53784. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  53785. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  53786. <exception name="IOException" type="java.io.IOException"/>
  53787. <doc>
  53788. <![CDATA[Check for validity of the output-specification for the job.
  53789. <p>This is to validate the output specification for the job when it is
  53790. a job is submitted. Typically checks that it does not already exist,
  53791. throwing an exception when it already exists, so that output is not
  53792. overwritten.</p>
  53793. @param ignored
  53794. @param job job configuration.
  53795. @throws IOException when output should not be attempted]]>
  53796. </doc>
  53797. </method>
  53798. <doc>
  53799. <![CDATA[<code>OutputFormat</code> describes the output-specification for a
  53800. Map-Reduce job.
  53801. <p>The Map-Reduce framework relies on the <code>OutputFormat</code> of the
  53802. job to:<p>
  53803. <ol>
  53804. <li>
  53805. Validate the output-specification of the job. For e.g. check that the
  53806. output directory doesn't already exist.
  53807. <li>
  53808. Provide the {@link RecordWriter} implementation to be used to write out
  53809. the output files of the job. Output files are stored in a
  53810. {@link FileSystem}.
  53811. </li>
  53812. </ol>
  53813. @see RecordWriter
  53814. @see JobConf]]>
  53815. </doc>
  53816. </interface>
  53817. <!-- end interface org.apache.hadoop.mapred.OutputFormat -->
  53818. <!-- start class org.apache.hadoop.mapred.OutputLogFilter -->
  53819. <class name="OutputLogFilter" extends="java.lang.Object"
  53820. abstract="false"
  53821. static="false" final="false" visibility="public"
  53822. deprecated="Use
  53823. {@link org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputLogFilter}
  53824. instead.">
  53825. <implements name="org.apache.hadoop.fs.PathFilter"/>
  53826. <constructor name="OutputLogFilter"
  53827. static="false" final="false" visibility="public"
  53828. deprecated="not deprecated">
  53829. </constructor>
  53830. <method name="accept" return="boolean"
  53831. abstract="false" native="false" synchronized="false"
  53832. static="false" final="false" visibility="public"
  53833. deprecated="not deprecated">
  53834. <param name="path" type="org.apache.hadoop.fs.Path"/>
  53835. </method>
  53836. <doc>
  53837. <![CDATA[This class filters log files from directory given
  53838. It doesnt accept paths having _logs.
  53839. This can be used to list paths of output directory as follows:
  53840. Path[] fileList = FileUtil.stat2Paths(fs.listStatus(outDir,
  53841. new OutputLogFilter()));
  53842. @deprecated Use
  53843. {@link org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputLogFilter}
  53844. instead.]]>
  53845. </doc>
  53846. </class>
  53847. <!-- end class org.apache.hadoop.mapred.OutputLogFilter -->
  53848. <!-- start interface org.apache.hadoop.mapred.Partitioner -->
  53849. <interface name="Partitioner" abstract="true"
  53850. static="false" final="false" visibility="public"
  53851. deprecated="not deprecated">
  53852. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  53853. <method name="getPartition" return="int"
  53854. abstract="false" native="false" synchronized="false"
  53855. static="false" final="false" visibility="public"
  53856. deprecated="not deprecated">
  53857. <param name="key" type="java.lang.Object"/>
  53858. <param name="value" type="java.lang.Object"/>
  53859. <param name="numPartitions" type="int"/>
  53860. <doc>
  53861. <![CDATA[Get the paritition number for a given key (hence record) given the total
  53862. number of partitions i.e. number of reduce-tasks for the job.
  53863. <p>Typically a hash function on a all or a subset of the key.</p>
  53864. @param key the key to be paritioned.
  53865. @param value the entry value.
  53866. @param numPartitions the total number of partitions.
  53867. @return the partition number for the <code>key</code>.]]>
  53868. </doc>
  53869. </method>
  53870. <doc>
  53871. <![CDATA[Partitions the key space.
  53872. <p><code>Partitioner</code> controls the partitioning of the keys of the
  53873. intermediate map-outputs. The key (or a subset of the key) is used to derive
  53874. the partition, typically by a hash function. The total number of partitions
  53875. is the same as the number of reduce tasks for the job. Hence this controls
  53876. which of the <code>m</code> reduce tasks the intermediate key (and hence the
  53877. record) is sent for reduction.</p>
  53878. @see Reducer]]>
  53879. </doc>
  53880. </interface>
  53881. <!-- end interface org.apache.hadoop.mapred.Partitioner -->
  53882. <!-- start class org.apache.hadoop.mapred.QueueAclsInfo -->
  53883. <class name="QueueAclsInfo" extends="java.lang.Object"
  53884. abstract="false"
  53885. static="false" final="false" visibility="public"
  53886. deprecated="not deprecated">
  53887. <implements name="org.apache.hadoop.io.Writable"/>
  53888. <constructor name="QueueAclsInfo"
  53889. static="false" final="false" visibility="public"
  53890. deprecated="not deprecated">
  53891. <doc>
  53892. <![CDATA[Default constructor for QueueAclsInfo.]]>
  53893. </doc>
  53894. </constructor>
  53895. <constructor name="QueueAclsInfo" type="java.lang.String, java.lang.String[]"
  53896. static="false" final="false" visibility="public"
  53897. deprecated="not deprecated">
  53898. <doc>
  53899. <![CDATA[Construct a new QueueAclsInfo object using the queue name and the
  53900. queue operations array
  53901. @param queueName Name of the job queue
  53902. @param operations queue operations]]>
  53903. </doc>
  53904. </constructor>
  53905. <method name="getQueueName" return="java.lang.String"
  53906. abstract="false" native="false" synchronized="false"
  53907. static="false" final="false" visibility="public"
  53908. deprecated="not deprecated">
  53909. </method>
  53910. <method name="setQueueName"
  53911. abstract="false" native="false" synchronized="false"
  53912. static="false" final="false" visibility="protected"
  53913. deprecated="not deprecated">
  53914. <param name="queueName" type="java.lang.String"/>
  53915. </method>
  53916. <method name="getOperations" return="java.lang.String[]"
  53917. abstract="false" native="false" synchronized="false"
  53918. static="false" final="false" visibility="public"
  53919. deprecated="not deprecated">
  53920. </method>
  53921. <method name="readFields"
  53922. abstract="false" native="false" synchronized="false"
  53923. static="false" final="false" visibility="public"
  53924. deprecated="not deprecated">
  53925. <param name="in" type="java.io.DataInput"/>
  53926. <exception name="IOException" type="java.io.IOException"/>
  53927. </method>
  53928. <method name="write"
  53929. abstract="false" native="false" synchronized="false"
  53930. static="false" final="false" visibility="public"
  53931. deprecated="not deprecated">
  53932. <param name="out" type="java.io.DataOutput"/>
  53933. <exception name="IOException" type="java.io.IOException"/>
  53934. </method>
  53935. <doc>
  53936. <![CDATA[Class to encapsulate Queue ACLs for a particular
  53937. user.]]>
  53938. </doc>
  53939. </class>
  53940. <!-- end class org.apache.hadoop.mapred.QueueAclsInfo -->
  53941. <!-- start class org.apache.hadoop.mapred.RawHistoryFileServlet -->
  53942. <class name="RawHistoryFileServlet" extends="javax.servlet.http.HttpServlet"
  53943. abstract="false"
  53944. static="false" final="false" visibility="public"
  53945. deprecated="not deprecated">
  53946. <constructor name="RawHistoryFileServlet"
  53947. static="false" final="false" visibility="public"
  53948. deprecated="not deprecated">
  53949. </constructor>
  53950. <method name="init"
  53951. abstract="false" native="false" synchronized="false"
  53952. static="false" final="false" visibility="public"
  53953. deprecated="not deprecated">
  53954. <param name="servletConfig" type="javax.servlet.ServletConfig"/>
  53955. <exception name="ServletException" type="javax.servlet.ServletException"/>
  53956. </method>
  53957. <method name="doGet"
  53958. abstract="false" native="false" synchronized="false"
  53959. static="false" final="false" visibility="protected"
  53960. deprecated="not deprecated">
  53961. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  53962. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  53963. <exception name="ServletException" type="javax.servlet.ServletException"/>
  53964. <exception name="IOException" type="java.io.IOException"/>
  53965. </method>
  53966. </class>
  53967. <!-- end class org.apache.hadoop.mapred.RawHistoryFileServlet -->
  53968. <!-- start interface org.apache.hadoop.mapred.RawKeyValueIterator -->
  53969. <interface name="RawKeyValueIterator" abstract="true"
  53970. static="false" final="false" visibility="public"
  53971. deprecated="not deprecated">
  53972. <method name="getKey" return="org.apache.hadoop.io.DataInputBuffer"
  53973. abstract="false" native="false" synchronized="false"
  53974. static="false" final="false" visibility="public"
  53975. deprecated="not deprecated">
  53976. <exception name="IOException" type="java.io.IOException"/>
  53977. <doc>
  53978. <![CDATA[Gets the current raw key.
  53979. @return Gets the current raw key as a DataInputBuffer
  53980. @throws IOException]]>
  53981. </doc>
  53982. </method>
  53983. <method name="getValue" return="org.apache.hadoop.io.DataInputBuffer"
  53984. abstract="false" native="false" synchronized="false"
  53985. static="false" final="false" visibility="public"
  53986. deprecated="not deprecated">
  53987. <exception name="IOException" type="java.io.IOException"/>
  53988. <doc>
  53989. <![CDATA[Gets the current raw value.
  53990. @return Gets the current raw value as a DataInputBuffer
  53991. @throws IOException]]>
  53992. </doc>
  53993. </method>
  53994. <method name="next" return="boolean"
  53995. abstract="false" native="false" synchronized="false"
  53996. static="false" final="false" visibility="public"
  53997. deprecated="not deprecated">
  53998. <exception name="IOException" type="java.io.IOException"/>
  53999. <doc>
  54000. <![CDATA[Sets up the current key and value (for getKey and getValue).
  54001. @return <code>true</code> if there exists a key/value,
  54002. <code>false</code> otherwise.
  54003. @throws IOException]]>
  54004. </doc>
  54005. </method>
  54006. <method name="close"
  54007. abstract="false" native="false" synchronized="false"
  54008. static="false" final="false" visibility="public"
  54009. deprecated="not deprecated">
  54010. <exception name="IOException" type="java.io.IOException"/>
  54011. <doc>
  54012. <![CDATA[Closes the iterator so that the underlying streams can be closed.
  54013. @throws IOException]]>
  54014. </doc>
  54015. </method>
  54016. <method name="getProgress" return="org.apache.hadoop.util.Progress"
  54017. abstract="false" native="false" synchronized="false"
  54018. static="false" final="false" visibility="public"
  54019. deprecated="not deprecated">
  54020. <doc>
  54021. <![CDATA[Gets the Progress object; this has a float (0.0 - 1.0)
  54022. indicating the bytes processed by the iterator so far]]>
  54023. </doc>
  54024. </method>
  54025. <doc>
  54026. <![CDATA[<code>RawKeyValueIterator</code> is an iterator used to iterate over
  54027. the raw keys and values during sort/merge of intermediate data.]]>
  54028. </doc>
  54029. </interface>
  54030. <!-- end interface org.apache.hadoop.mapred.RawKeyValueIterator -->
  54031. <!-- start interface org.apache.hadoop.mapred.RecordReader -->
  54032. <interface name="RecordReader" abstract="true"
  54033. static="false" final="false" visibility="public"
  54034. deprecated="not deprecated">
  54035. <method name="next" return="boolean"
  54036. abstract="false" native="false" synchronized="false"
  54037. static="false" final="false" visibility="public"
  54038. deprecated="not deprecated">
  54039. <param name="key" type="java.lang.Object"/>
  54040. <param name="value" type="java.lang.Object"/>
  54041. <exception name="IOException" type="java.io.IOException"/>
  54042. <doc>
  54043. <![CDATA[Reads the next key/value pair from the input for processing.
  54044. @param key the key to read data into
  54045. @param value the value to read data into
  54046. @return true iff a key/value was read, false if at EOF]]>
  54047. </doc>
  54048. </method>
  54049. <method name="createKey" return="java.lang.Object"
  54050. abstract="false" native="false" synchronized="false"
  54051. static="false" final="false" visibility="public"
  54052. deprecated="not deprecated">
  54053. <doc>
  54054. <![CDATA[Create an object of the appropriate type to be used as a key.
  54055. @return a new key object.]]>
  54056. </doc>
  54057. </method>
  54058. <method name="createValue" return="java.lang.Object"
  54059. abstract="false" native="false" synchronized="false"
  54060. static="false" final="false" visibility="public"
  54061. deprecated="not deprecated">
  54062. <doc>
  54063. <![CDATA[Create an object of the appropriate type to be used as a value.
  54064. @return a new value object.]]>
  54065. </doc>
  54066. </method>
  54067. <method name="getPos" return="long"
  54068. abstract="false" native="false" synchronized="false"
  54069. static="false" final="false" visibility="public"
  54070. deprecated="not deprecated">
  54071. <exception name="IOException" type="java.io.IOException"/>
  54072. <doc>
  54073. <![CDATA[Returns the current position in the input.
  54074. @return the current position in the input.
  54075. @throws IOException]]>
  54076. </doc>
  54077. </method>
  54078. <method name="close"
  54079. abstract="false" native="false" synchronized="false"
  54080. static="false" final="false" visibility="public"
  54081. deprecated="not deprecated">
  54082. <exception name="IOException" type="java.io.IOException"/>
  54083. <doc>
  54084. <![CDATA[Close this {@link InputSplit} to future operations.
  54085. @throws IOException]]>
  54086. </doc>
  54087. </method>
  54088. <method name="getProgress" return="float"
  54089. abstract="false" native="false" synchronized="false"
  54090. static="false" final="false" visibility="public"
  54091. deprecated="not deprecated">
  54092. <exception name="IOException" type="java.io.IOException"/>
  54093. <doc>
  54094. <![CDATA[How much of the input has the {@link RecordReader} consumed i.e.
  54095. has been processed by?
  54096. @return progress from <code>0.0</code> to <code>1.0</code>.
  54097. @throws IOException]]>
  54098. </doc>
  54099. </method>
  54100. <doc>
  54101. <![CDATA[<code>RecordReader</code> reads &lt;key, value&gt; pairs from an
  54102. {@link InputSplit}.
  54103. <p><code>RecordReader</code>, typically, converts the byte-oriented view of
  54104. the input, provided by the <code>InputSplit</code>, and presents a
  54105. record-oriented view for the {@link Mapper} & {@link Reducer} tasks for
  54106. processing. It thus assumes the responsibility of processing record
  54107. boundaries and presenting the tasks with keys and values.</p>
  54108. @see InputSplit
  54109. @see InputFormat]]>
  54110. </doc>
  54111. </interface>
  54112. <!-- end interface org.apache.hadoop.mapred.RecordReader -->
  54113. <!-- start interface org.apache.hadoop.mapred.RecordWriter -->
  54114. <interface name="RecordWriter" abstract="true"
  54115. static="false" final="false" visibility="public"
  54116. deprecated="not deprecated">
  54117. <method name="write"
  54118. abstract="false" native="false" synchronized="false"
  54119. static="false" final="false" visibility="public"
  54120. deprecated="not deprecated">
  54121. <param name="key" type="java.lang.Object"/>
  54122. <param name="value" type="java.lang.Object"/>
  54123. <exception name="IOException" type="java.io.IOException"/>
  54124. <doc>
  54125. <![CDATA[Writes a key/value pair.
  54126. @param key the key to write.
  54127. @param value the value to write.
  54128. @throws IOException]]>
  54129. </doc>
  54130. </method>
  54131. <method name="close"
  54132. abstract="false" native="false" synchronized="false"
  54133. static="false" final="false" visibility="public"
  54134. deprecated="not deprecated">
  54135. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  54136. <exception name="IOException" type="java.io.IOException"/>
  54137. <doc>
  54138. <![CDATA[Close this <code>RecordWriter</code> to future operations.
  54139. @param reporter facility to report progress.
  54140. @throws IOException]]>
  54141. </doc>
  54142. </method>
  54143. <doc>
  54144. <![CDATA[<code>RecordWriter</code> writes the output &lt;key, value&gt; pairs
  54145. to an output file.
  54146. <p><code>RecordWriter</code> implementations write the job outputs to the
  54147. {@link FileSystem}.
  54148. @see OutputFormat]]>
  54149. </doc>
  54150. </interface>
  54151. <!-- end interface org.apache.hadoop.mapred.RecordWriter -->
  54152. <!-- start interface org.apache.hadoop.mapred.Reducer -->
  54153. <interface name="Reducer" abstract="true"
  54154. static="false" final="false" visibility="public"
  54155. deprecated="not deprecated">
  54156. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  54157. <implements name="org.apache.hadoop.io.Closeable"/>
  54158. <method name="reduce"
  54159. abstract="false" native="false" synchronized="false"
  54160. static="false" final="false" visibility="public"
  54161. deprecated="not deprecated">
  54162. <param name="key" type="java.lang.Object"/>
  54163. <param name="values" type="java.util.Iterator"/>
  54164. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  54165. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  54166. <exception name="IOException" type="java.io.IOException"/>
  54167. <doc>
  54168. <![CDATA[<i>Reduces</i> values for a given key.
  54169. <p>The framework calls this method for each
  54170. <code>&lt;key, (list of values)></code> pair in the grouped inputs.
  54171. Output values must be of the same type as input values. Input keys must
  54172. not be altered. The framework will <b>reuse</b> the key and value objects
  54173. that are passed into the reduce, therefore the application should clone
  54174. the objects they want to keep a copy of. In many cases, all values are
  54175. combined into zero or one value.
  54176. </p>
  54177. <p>Output pairs are collected with calls to
  54178. {@link OutputCollector#collect(Object,Object)}.</p>
  54179. <p>Applications can use the {@link Reporter} provided to report progress
  54180. or just indicate that they are alive. In scenarios where the application
  54181. takes an insignificant amount of time to process individual key/value
  54182. pairs, this is crucial since the framework might assume that the task has
  54183. timed-out and kill that task. The other way of avoiding this is to set
  54184. <a href="{@docRoot}/../mapred-default.html#mapred.task.timeout">
  54185. mapred.task.timeout</a> to a high-enough value (or even zero for no
  54186. time-outs).</p>
  54187. @param key the key.
  54188. @param values the list of values to reduce.
  54189. @param output to collect keys and combined values.
  54190. @param reporter facility to report progress.]]>
  54191. </doc>
  54192. </method>
  54193. <doc>
  54194. <![CDATA[Reduces a set of intermediate values which share a key to a smaller set of
  54195. values.
  54196. <p>The number of <code>Reducer</code>s for the job is set by the user via
  54197. {@link JobConf#setNumReduceTasks(int)}. <code>Reducer</code> implementations
  54198. can access the {@link JobConf} for the job via the
  54199. {@link JobConfigurable#configure(JobConf)} method and initialize themselves.
  54200. Similarly they can use the {@link Closeable#close()} method for
  54201. de-initialization.</p>
  54202. <p><code>Reducer</code> has 3 primary phases:</p>
  54203. <ol>
  54204. <li>
  54205. <h4 id="Shuffle">Shuffle</h4>
  54206. <p><code>Reducer</code> is input the grouped output of a {@link Mapper}.
  54207. In the phase the framework, for each <code>Reducer</code>, fetches the
  54208. relevant partition of the output of all the <code>Mapper</code>s, via HTTP.
  54209. </p>
  54210. </li>
  54211. <li>
  54212. <h4 id="Sort">Sort</h4>
  54213. <p>The framework groups <code>Reducer</code> inputs by <code>key</code>s
  54214. (since different <code>Mapper</code>s may have output the same key) in this
  54215. stage.</p>
  54216. <p>The shuffle and sort phases occur simultaneously i.e. while outputs are
  54217. being fetched they are merged.</p>
  54218. <h5 id="SecondarySort">SecondarySort</h5>
  54219. <p>If equivalence rules for keys while grouping the intermediates are
  54220. different from those for grouping keys before reduction, then one may
  54221. specify a <code>Comparator</code> via
  54222. {@link JobConf#setOutputValueGroupingComparator(Class)}.Since
  54223. {@link JobConf#setOutputKeyComparatorClass(Class)} can be used to
  54224. control how intermediate keys are grouped, these can be used in conjunction
  54225. to simulate <i>secondary sort on values</i>.</p>
  54226. For example, say that you want to find duplicate web pages and tag them
  54227. all with the url of the "best" known example. You would set up the job
  54228. like:
  54229. <ul>
  54230. <li>Map Input Key: url</li>
  54231. <li>Map Input Value: document</li>
  54232. <li>Map Output Key: document checksum, url pagerank</li>
  54233. <li>Map Output Value: url</li>
  54234. <li>Partitioner: by checksum</li>
  54235. <li>OutputKeyComparator: by checksum and then decreasing pagerank</li>
  54236. <li>OutputValueGroupingComparator: by checksum</li>
  54237. </ul>
  54238. </li>
  54239. <li>
  54240. <h4 id="Reduce">Reduce</h4>
  54241. <p>In this phase the
  54242. {@link #reduce(Object, Iterator, OutputCollector, Reporter)}
  54243. method is called for each <code>&lt;key, (list of values)></code> pair in
  54244. the grouped inputs.</p>
  54245. <p>The output of the reduce task is typically written to the
  54246. {@link FileSystem} via
  54247. {@link OutputCollector#collect(Object, Object)}.</p>
  54248. </li>
  54249. </ol>
  54250. <p>The output of the <code>Reducer</code> is <b>not re-sorted</b>.</p>
  54251. <p>Example:</p>
  54252. <p><blockquote><pre>
  54253. public class MyReducer&lt;K extends WritableComparable, V extends Writable&gt;
  54254. extends MapReduceBase implements Reducer&lt;K, V, K, V&gt; {
  54255. static enum MyCounters { NUM_RECORDS }
  54256. private String reduceTaskId;
  54257. private int noKeys = 0;
  54258. public void configure(JobConf job) {
  54259. reduceTaskId = job.get("mapred.task.id");
  54260. }
  54261. public void reduce(K key, Iterator&lt;V&gt; values,
  54262. OutputCollector&lt;K, V&gt; output,
  54263. Reporter reporter)
  54264. throws IOException {
  54265. // Process
  54266. int noValues = 0;
  54267. while (values.hasNext()) {
  54268. V value = values.next();
  54269. // Increment the no. of values for this key
  54270. ++noValues;
  54271. // Process the &lt;key, value&gt; pair (assume this takes a while)
  54272. // ...
  54273. // ...
  54274. // Let the framework know that we are alive, and kicking!
  54275. if ((noValues%10) == 0) {
  54276. reporter.progress();
  54277. }
  54278. // Process some more
  54279. // ...
  54280. // ...
  54281. // Output the &lt;key, value&gt;
  54282. output.collect(key, value);
  54283. }
  54284. // Increment the no. of &lt;key, list of values&gt; pairs processed
  54285. ++noKeys;
  54286. // Increment counters
  54287. reporter.incrCounter(NUM_RECORDS, 1);
  54288. // Every 100 keys update application-level status
  54289. if ((noKeys%100) == 0) {
  54290. reporter.setStatus(reduceTaskId + " processed " + noKeys);
  54291. }
  54292. }
  54293. }
  54294. </pre></blockquote></p>
  54295. @see Mapper
  54296. @see Partitioner
  54297. @see Reporter
  54298. @see MapReduceBase]]>
  54299. </doc>
  54300. </interface>
  54301. <!-- end interface org.apache.hadoop.mapred.Reducer -->
  54302. <!-- start interface org.apache.hadoop.mapred.Reporter -->
  54303. <interface name="Reporter" abstract="true"
  54304. static="false" final="false" visibility="public"
  54305. deprecated="not deprecated">
  54306. <implements name="org.apache.hadoop.util.Progressable"/>
  54307. <method name="setStatus"
  54308. abstract="false" native="false" synchronized="false"
  54309. static="false" final="false" visibility="public"
  54310. deprecated="not deprecated">
  54311. <param name="status" type="java.lang.String"/>
  54312. <doc>
  54313. <![CDATA[Set the status description for the task.
  54314. @param status brief description of the current status.]]>
  54315. </doc>
  54316. </method>
  54317. <method name="getCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  54318. abstract="false" native="false" synchronized="false"
  54319. static="false" final="false" visibility="public"
  54320. deprecated="not deprecated">
  54321. <param name="name" type="java.lang.Enum"/>
  54322. <doc>
  54323. <![CDATA[Get the {@link Counter} of the given group with the given name.
  54324. @param name counter name
  54325. @return the <code>Counter</code> of the given group/name.]]>
  54326. </doc>
  54327. </method>
  54328. <method name="getCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  54329. abstract="false" native="false" synchronized="false"
  54330. static="false" final="false" visibility="public"
  54331. deprecated="not deprecated">
  54332. <param name="group" type="java.lang.String"/>
  54333. <param name="name" type="java.lang.String"/>
  54334. <doc>
  54335. <![CDATA[Get the {@link Counter} of the given group with the given name.
  54336. @param group counter group
  54337. @param name counter name
  54338. @return the <code>Counter</code> of the given group/name.]]>
  54339. </doc>
  54340. </method>
  54341. <method name="incrCounter"
  54342. abstract="false" native="false" synchronized="false"
  54343. static="false" final="false" visibility="public"
  54344. deprecated="not deprecated">
  54345. <param name="key" type="java.lang.Enum"/>
  54346. <param name="amount" type="long"/>
  54347. <doc>
  54348. <![CDATA[Increments the counter identified by the key, which can be of
  54349. any {@link Enum} type, by the specified amount.
  54350. @param key key to identify the counter to be incremented. The key can be
  54351. be any <code>Enum</code>.
  54352. @param amount A non-negative amount by which the counter is to
  54353. be incremented.]]>
  54354. </doc>
  54355. </method>
  54356. <method name="incrCounter"
  54357. abstract="false" native="false" synchronized="false"
  54358. static="false" final="false" visibility="public"
  54359. deprecated="not deprecated">
  54360. <param name="group" type="java.lang.String"/>
  54361. <param name="counter" type="java.lang.String"/>
  54362. <param name="amount" type="long"/>
  54363. <doc>
  54364. <![CDATA[Increments the counter identified by the group and counter name
  54365. by the specified amount.
  54366. @param group name to identify the group of the counter to be incremented.
  54367. @param counter name to identify the counter within the group.
  54368. @param amount A non-negative amount by which the counter is to
  54369. be incremented.]]>
  54370. </doc>
  54371. </method>
  54372. <method name="getInputSplit" return="org.apache.hadoop.mapred.InputSplit"
  54373. abstract="false" native="false" synchronized="false"
  54374. static="false" final="false" visibility="public"
  54375. deprecated="not deprecated">
  54376. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  54377. <doc>
  54378. <![CDATA[Get the {@link InputSplit} object for a map.
  54379. @return the <code>InputSplit</code> that the map is reading from.
  54380. @throws UnsupportedOperationException if called outside a mapper]]>
  54381. </doc>
  54382. </method>
  54383. <method name="getProgress" return="float"
  54384. abstract="false" native="false" synchronized="false"
  54385. static="false" final="false" visibility="public"
  54386. deprecated="not deprecated">
  54387. <doc>
  54388. <![CDATA[Get the progress of the task. Progress is represented as a number between
  54389. 0 and 1 (inclusive).]]>
  54390. </doc>
  54391. </method>
  54392. <field name="NULL" type="org.apache.hadoop.mapred.Reporter"
  54393. transient="false" volatile="false"
  54394. static="true" final="true" visibility="public"
  54395. deprecated="not deprecated">
  54396. <doc>
  54397. <![CDATA[A constant of Reporter type that does nothing.]]>
  54398. </doc>
  54399. </field>
  54400. <doc>
  54401. <![CDATA[A facility for Map-Reduce applications to report progress and update
  54402. counters, status information etc.
  54403. <p>{@link Mapper} and {@link Reducer} can use the <code>Reporter</code>
  54404. provided to report progress or just indicate that they are alive. In
  54405. scenarios where the application takes an insignificant amount of time to
  54406. process individual key/value pairs, this is crucial since the framework
  54407. might assume that the task has timed-out and kill that task.
  54408. <p>Applications can also update {@link Counters} via the provided
  54409. <code>Reporter</code> .</p>
  54410. @see Progressable
  54411. @see Counters]]>
  54412. </doc>
  54413. </interface>
  54414. <!-- end interface org.apache.hadoop.mapred.Reporter -->
  54415. <!-- start interface org.apache.hadoop.mapred.RunningJob -->
  54416. <interface name="RunningJob" abstract="true"
  54417. static="false" final="false" visibility="public"
  54418. deprecated="not deprecated">
  54419. <method name="getID" return="org.apache.hadoop.mapred.JobID"
  54420. abstract="false" native="false" synchronized="false"
  54421. static="false" final="false" visibility="public"
  54422. deprecated="not deprecated">
  54423. <doc>
  54424. <![CDATA[Get the job identifier.
  54425. @return the job identifier.]]>
  54426. </doc>
  54427. </method>
  54428. <method name="getJobID" return="java.lang.String"
  54429. abstract="false" native="false" synchronized="false"
  54430. static="false" final="false" visibility="public"
  54431. deprecated="This method is deprecated and will be removed. Applications should
  54432. rather use {@link #getID()}.">
  54433. <doc>
  54434. <![CDATA[@deprecated This method is deprecated and will be removed. Applications should
  54435. rather use {@link #getID()}.]]>
  54436. </doc>
  54437. </method>
  54438. <method name="getJobName" return="java.lang.String"
  54439. abstract="false" native="false" synchronized="false"
  54440. static="false" final="false" visibility="public"
  54441. deprecated="not deprecated">
  54442. <doc>
  54443. <![CDATA[Get the name of the job.
  54444. @return the name of the job.]]>
  54445. </doc>
  54446. </method>
  54447. <method name="getJobFile" return="java.lang.String"
  54448. abstract="false" native="false" synchronized="false"
  54449. static="false" final="false" visibility="public"
  54450. deprecated="not deprecated">
  54451. <doc>
  54452. <![CDATA[Get the path of the submitted job configuration.
  54453. @return the path of the submitted job configuration.]]>
  54454. </doc>
  54455. </method>
  54456. <method name="getTrackingURL" return="java.lang.String"
  54457. abstract="false" native="false" synchronized="false"
  54458. static="false" final="false" visibility="public"
  54459. deprecated="not deprecated">
  54460. <doc>
  54461. <![CDATA[Get the URL where some job progress information will be displayed.
  54462. @return the URL where some job progress information will be displayed.]]>
  54463. </doc>
  54464. </method>
  54465. <method name="mapProgress" return="float"
  54466. abstract="false" native="false" synchronized="false"
  54467. static="false" final="false" visibility="public"
  54468. deprecated="not deprecated">
  54469. <exception name="IOException" type="java.io.IOException"/>
  54470. <doc>
  54471. <![CDATA[Get the <i>progress</i> of the job's map-tasks, as a float between 0.0
  54472. and 1.0. When all map tasks have completed, the function returns 1.0.
  54473. @return the progress of the job's map-tasks.
  54474. @throws IOException]]>
  54475. </doc>
  54476. </method>
  54477. <method name="reduceProgress" return="float"
  54478. abstract="false" native="false" synchronized="false"
  54479. static="false" final="false" visibility="public"
  54480. deprecated="not deprecated">
  54481. <exception name="IOException" type="java.io.IOException"/>
  54482. <doc>
  54483. <![CDATA[Get the <i>progress</i> of the job's reduce-tasks, as a float between 0.0
  54484. and 1.0. When all reduce tasks have completed, the function returns 1.0.
  54485. @return the progress of the job's reduce-tasks.
  54486. @throws IOException]]>
  54487. </doc>
  54488. </method>
  54489. <method name="cleanupProgress" return="float"
  54490. abstract="false" native="false" synchronized="false"
  54491. static="false" final="false" visibility="public"
  54492. deprecated="not deprecated">
  54493. <exception name="IOException" type="java.io.IOException"/>
  54494. <doc>
  54495. <![CDATA[Get the <i>progress</i> of the job's cleanup-tasks, as a float between 0.0
  54496. and 1.0. When all cleanup tasks have completed, the function returns 1.0.
  54497. @return the progress of the job's cleanup-tasks.
  54498. @throws IOException]]>
  54499. </doc>
  54500. </method>
  54501. <method name="setupProgress" return="float"
  54502. abstract="false" native="false" synchronized="false"
  54503. static="false" final="false" visibility="public"
  54504. deprecated="not deprecated">
  54505. <exception name="IOException" type="java.io.IOException"/>
  54506. <doc>
  54507. <![CDATA[Get the <i>progress</i> of the job's setup-tasks, as a float between 0.0
  54508. and 1.0. When all setup tasks have completed, the function returns 1.0.
  54509. @return the progress of the job's setup-tasks.
  54510. @throws IOException]]>
  54511. </doc>
  54512. </method>
  54513. <method name="isComplete" return="boolean"
  54514. abstract="false" native="false" synchronized="false"
  54515. static="false" final="false" visibility="public"
  54516. deprecated="not deprecated">
  54517. <exception name="IOException" type="java.io.IOException"/>
  54518. <doc>
  54519. <![CDATA[Check if the job is finished or not.
  54520. This is a non-blocking call.
  54521. @return <code>true</code> if the job is complete, else <code>false</code>.
  54522. @throws IOException]]>
  54523. </doc>
  54524. </method>
  54525. <method name="isSuccessful" return="boolean"
  54526. abstract="false" native="false" synchronized="false"
  54527. static="false" final="false" visibility="public"
  54528. deprecated="not deprecated">
  54529. <exception name="IOException" type="java.io.IOException"/>
  54530. <doc>
  54531. <![CDATA[Check if the job completed successfully.
  54532. @return <code>true</code> if the job succeeded, else <code>false</code>.
  54533. @throws IOException]]>
  54534. </doc>
  54535. </method>
  54536. <method name="waitForCompletion"
  54537. abstract="false" native="false" synchronized="false"
  54538. static="false" final="false" visibility="public"
  54539. deprecated="not deprecated">
  54540. <exception name="IOException" type="java.io.IOException"/>
  54541. <doc>
  54542. <![CDATA[Blocks until the job is complete.
  54543. @throws IOException]]>
  54544. </doc>
  54545. </method>
  54546. <method name="getJobState" return="int"
  54547. abstract="false" native="false" synchronized="false"
  54548. static="false" final="false" visibility="public"
  54549. deprecated="not deprecated">
  54550. <exception name="IOException" type="java.io.IOException"/>
  54551. <doc>
  54552. <![CDATA[Returns the current state of the Job.
  54553. {@link JobStatus}
  54554. @throws IOException]]>
  54555. </doc>
  54556. </method>
  54557. <method name="killJob"
  54558. abstract="false" native="false" synchronized="false"
  54559. static="false" final="false" visibility="public"
  54560. deprecated="not deprecated">
  54561. <exception name="IOException" type="java.io.IOException"/>
  54562. <doc>
  54563. <![CDATA[Kill the running job. Blocks until all job tasks have been
  54564. killed as well. If the job is no longer running, it simply returns.
  54565. @throws IOException]]>
  54566. </doc>
  54567. </method>
  54568. <method name="setJobPriority"
  54569. abstract="false" native="false" synchronized="false"
  54570. static="false" final="false" visibility="public"
  54571. deprecated="not deprecated">
  54572. <param name="priority" type="java.lang.String"/>
  54573. <exception name="IOException" type="java.io.IOException"/>
  54574. <doc>
  54575. <![CDATA[Set the priority of a running job.
  54576. @param priority the new priority for the job.
  54577. @throws IOException]]>
  54578. </doc>
  54579. </method>
  54580. <method name="getTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  54581. abstract="false" native="false" synchronized="false"
  54582. static="false" final="false" visibility="public"
  54583. deprecated="not deprecated">
  54584. <param name="startFrom" type="int"/>
  54585. <exception name="IOException" type="java.io.IOException"/>
  54586. <doc>
  54587. <![CDATA[Get events indicating completion (success/failure) of component tasks.
  54588. @param startFrom index to start fetching events from
  54589. @return an array of {@link TaskCompletionEvent}s
  54590. @throws IOException]]>
  54591. </doc>
  54592. </method>
  54593. <method name="killTask"
  54594. abstract="false" native="false" synchronized="false"
  54595. static="false" final="false" visibility="public"
  54596. deprecated="not deprecated">
  54597. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  54598. <param name="shouldFail" type="boolean"/>
  54599. <exception name="IOException" type="java.io.IOException"/>
  54600. <doc>
  54601. <![CDATA[Kill indicated task attempt.
  54602. @param taskId the id of the task to be terminated.
  54603. @param shouldFail if true the task is failed and added to failed tasks
  54604. list, otherwise it is just killed, w/o affecting
  54605. job failure status.
  54606. @throws IOException]]>
  54607. </doc>
  54608. </method>
  54609. <method name="killTask"
  54610. abstract="false" native="false" synchronized="false"
  54611. static="false" final="false" visibility="public"
  54612. deprecated="Applications should rather use {@link #killTask(TaskAttemptID, boolean)}">
  54613. <param name="taskId" type="java.lang.String"/>
  54614. <param name="shouldFail" type="boolean"/>
  54615. <exception name="IOException" type="java.io.IOException"/>
  54616. <doc>
  54617. <![CDATA[@deprecated Applications should rather use {@link #killTask(TaskAttemptID, boolean)}]]>
  54618. </doc>
  54619. </method>
  54620. <method name="getCounters" return="org.apache.hadoop.mapred.Counters"
  54621. abstract="false" native="false" synchronized="false"
  54622. static="false" final="false" visibility="public"
  54623. deprecated="not deprecated">
  54624. <exception name="IOException" type="java.io.IOException"/>
  54625. <doc>
  54626. <![CDATA[Gets the counters for this job.
  54627. @return the counters for this job.
  54628. @throws IOException]]>
  54629. </doc>
  54630. </method>
  54631. <method name="getFailureInfo" return="java.lang.String"
  54632. abstract="false" native="false" synchronized="false"
  54633. static="false" final="false" visibility="public"
  54634. deprecated="not deprecated">
  54635. <exception name="IOException" type="java.io.IOException"/>
  54636. <doc>
  54637. <![CDATA[Get failure info for the job.
  54638. @return the failure info for the job.
  54639. @throws IOException]]>
  54640. </doc>
  54641. </method>
  54642. <method name="getTaskDiagnostics" return="java.lang.String[]"
  54643. abstract="false" native="false" synchronized="false"
  54644. static="false" final="false" visibility="public"
  54645. deprecated="not deprecated">
  54646. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  54647. <exception name="IOException" type="java.io.IOException"/>
  54648. <doc>
  54649. <![CDATA[Gets the diagnostic messages for a given task attempt.
  54650. @param taskid
  54651. @return the list of diagnostic messages for the task
  54652. @throws IOException]]>
  54653. </doc>
  54654. </method>
  54655. <doc>
  54656. <![CDATA[<code>RunningJob</code> is the user-interface to query for details on a
  54657. running Map-Reduce job.
  54658. <p>Clients can get hold of <code>RunningJob</code> via the {@link JobClient}
  54659. and then query the running-job for details such as name, configuration,
  54660. progress etc.</p>
  54661. @see JobClient]]>
  54662. </doc>
  54663. </interface>
  54664. <!-- end interface org.apache.hadoop.mapred.RunningJob -->
  54665. <!-- start class org.apache.hadoop.mapred.SafeModeException -->
  54666. <class name="SafeModeException" extends="java.io.IOException"
  54667. abstract="false"
  54668. static="false" final="false" visibility="public"
  54669. deprecated="not deprecated">
  54670. <constructor name="SafeModeException" type="java.lang.String"
  54671. static="false" final="false" visibility="public"
  54672. deprecated="not deprecated">
  54673. <doc>
  54674. <![CDATA[SafeModeException
  54675. @param adminUser admin who put JobTracker in safe-mode,
  54676. <code>null</code> if it was automatic]]>
  54677. </doc>
  54678. </constructor>
  54679. <doc>
  54680. <![CDATA[This exception is thrown when the JobTracker is in safe mode.]]>
  54681. </doc>
  54682. </class>
  54683. <!-- end class org.apache.hadoop.mapred.SafeModeException -->
  54684. <!-- start class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat -->
  54685. <class name="SequenceFileAsBinaryInputFormat" extends="org.apache.hadoop.mapred.SequenceFileInputFormat"
  54686. abstract="false"
  54687. static="false" final="false" visibility="public"
  54688. deprecated="not deprecated">
  54689. <constructor name="SequenceFileAsBinaryInputFormat"
  54690. static="false" final="false" visibility="public"
  54691. deprecated="not deprecated">
  54692. </constructor>
  54693. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  54694. abstract="false" native="false" synchronized="false"
  54695. static="false" final="false" visibility="public"
  54696. deprecated="not deprecated">
  54697. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  54698. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  54699. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  54700. <exception name="IOException" type="java.io.IOException"/>
  54701. </method>
  54702. <doc>
  54703. <![CDATA[InputFormat reading keys, values from SequenceFiles in binary (raw)
  54704. format.]]>
  54705. </doc>
  54706. </class>
  54707. <!-- end class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat -->
  54708. <!-- start class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader -->
  54709. <class name="SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader" extends="java.lang.Object"
  54710. abstract="false"
  54711. static="true" final="false" visibility="public"
  54712. deprecated="not deprecated">
  54713. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  54714. <constructor name="SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  54715. static="false" final="false" visibility="public"
  54716. deprecated="not deprecated">
  54717. <exception name="IOException" type="java.io.IOException"/>
  54718. </constructor>
  54719. <method name="createKey" return="org.apache.hadoop.io.BytesWritable"
  54720. abstract="false" native="false" synchronized="false"
  54721. static="false" final="false" visibility="public"
  54722. deprecated="not deprecated">
  54723. </method>
  54724. <method name="createValue" return="org.apache.hadoop.io.BytesWritable"
  54725. abstract="false" native="false" synchronized="false"
  54726. static="false" final="false" visibility="public"
  54727. deprecated="not deprecated">
  54728. </method>
  54729. <method name="getKeyClassName" return="java.lang.String"
  54730. abstract="false" native="false" synchronized="false"
  54731. static="false" final="false" visibility="public"
  54732. deprecated="not deprecated">
  54733. <doc>
  54734. <![CDATA[Retrieve the name of the key class for this SequenceFile.
  54735. @see org.apache.hadoop.io.SequenceFile.Reader#getKeyClassName]]>
  54736. </doc>
  54737. </method>
  54738. <method name="getValueClassName" return="java.lang.String"
  54739. abstract="false" native="false" synchronized="false"
  54740. static="false" final="false" visibility="public"
  54741. deprecated="not deprecated">
  54742. <doc>
  54743. <![CDATA[Retrieve the name of the value class for this SequenceFile.
  54744. @see org.apache.hadoop.io.SequenceFile.Reader#getValueClassName]]>
  54745. </doc>
  54746. </method>
  54747. <method name="next" return="boolean"
  54748. abstract="false" native="false" synchronized="true"
  54749. static="false" final="false" visibility="public"
  54750. deprecated="not deprecated">
  54751. <param name="key" type="org.apache.hadoop.io.BytesWritable"/>
  54752. <param name="val" type="org.apache.hadoop.io.BytesWritable"/>
  54753. <exception name="IOException" type="java.io.IOException"/>
  54754. <doc>
  54755. <![CDATA[Read raw bytes from a SequenceFile.]]>
  54756. </doc>
  54757. </method>
  54758. <method name="getPos" return="long"
  54759. abstract="false" native="false" synchronized="false"
  54760. static="false" final="false" visibility="public"
  54761. deprecated="not deprecated">
  54762. <exception name="IOException" type="java.io.IOException"/>
  54763. </method>
  54764. <method name="close"
  54765. abstract="false" native="false" synchronized="false"
  54766. static="false" final="false" visibility="public"
  54767. deprecated="not deprecated">
  54768. <exception name="IOException" type="java.io.IOException"/>
  54769. </method>
  54770. <method name="getProgress" return="float"
  54771. abstract="false" native="false" synchronized="false"
  54772. static="false" final="false" visibility="public"
  54773. deprecated="not deprecated">
  54774. <exception name="IOException" type="java.io.IOException"/>
  54775. <doc>
  54776. <![CDATA[Return the progress within the input split
  54777. @return 0.0 to 1.0 of the input byte range]]>
  54778. </doc>
  54779. </method>
  54780. <doc>
  54781. <![CDATA[Read records from a SequenceFile as binary (raw) bytes.]]>
  54782. </doc>
  54783. </class>
  54784. <!-- end class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader -->
  54785. <!-- start class org.apache.hadoop.mapred.SequenceFileAsBinaryOutputFormat -->
  54786. <class name="SequenceFileAsBinaryOutputFormat" extends="org.apache.hadoop.mapred.SequenceFileOutputFormat"
  54787. abstract="false"
  54788. static="false" final="false" visibility="public"
  54789. deprecated="not deprecated">
  54790. <constructor name="SequenceFileAsBinaryOutputFormat"
  54791. static="false" final="false" visibility="public"
  54792. deprecated="not deprecated">
  54793. </constructor>
  54794. <method name="setSequenceFileOutputKeyClass"
  54795. abstract="false" native="false" synchronized="false"
  54796. static="true" final="false" visibility="public"
  54797. deprecated="not deprecated">
  54798. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  54799. <param name="theClass" type="java.lang.Class"/>
  54800. <doc>
  54801. <![CDATA[Set the key class for the {@link SequenceFile}
  54802. <p>This allows the user to specify the key class to be different
  54803. from the actual class ({@link BytesWritable}) used for writing </p>
  54804. @param conf the {@link JobConf} to modify
  54805. @param theClass the SequenceFile output key class.]]>
  54806. </doc>
  54807. </method>
  54808. <method name="setSequenceFileOutputValueClass"
  54809. abstract="false" native="false" synchronized="false"
  54810. static="true" final="false" visibility="public"
  54811. deprecated="not deprecated">
  54812. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  54813. <param name="theClass" type="java.lang.Class"/>
  54814. <doc>
  54815. <![CDATA[Set the value class for the {@link SequenceFile}
  54816. <p>This allows the user to specify the value class to be different
  54817. from the actual class ({@link BytesWritable}) used for writing </p>
  54818. @param conf the {@link JobConf} to modify
  54819. @param theClass the SequenceFile output key class.]]>
  54820. </doc>
  54821. </method>
  54822. <method name="getSequenceFileOutputKeyClass" return="java.lang.Class"
  54823. abstract="false" native="false" synchronized="false"
  54824. static="true" final="false" visibility="public"
  54825. deprecated="not deprecated">
  54826. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  54827. <doc>
  54828. <![CDATA[Get the key class for the {@link SequenceFile}
  54829. @return the key class of the {@link SequenceFile}]]>
  54830. </doc>
  54831. </method>
  54832. <method name="getSequenceFileOutputValueClass" return="java.lang.Class"
  54833. abstract="false" native="false" synchronized="false"
  54834. static="true" final="false" visibility="public"
  54835. deprecated="not deprecated">
  54836. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  54837. <doc>
  54838. <![CDATA[Get the value class for the {@link SequenceFile}
  54839. @return the value class of the {@link SequenceFile}]]>
  54840. </doc>
  54841. </method>
  54842. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  54843. abstract="false" native="false" synchronized="false"
  54844. static="false" final="false" visibility="public"
  54845. deprecated="not deprecated">
  54846. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  54847. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  54848. <param name="name" type="java.lang.String"/>
  54849. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  54850. <exception name="IOException" type="java.io.IOException"/>
  54851. </method>
  54852. <method name="checkOutputSpecs"
  54853. abstract="false" native="false" synchronized="false"
  54854. static="false" final="false" visibility="public"
  54855. deprecated="not deprecated">
  54856. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  54857. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  54858. <exception name="IOException" type="java.io.IOException"/>
  54859. </method>
  54860. <doc>
  54861. <![CDATA[An {@link OutputFormat} that writes keys, values to
  54862. {@link SequenceFile}s in binary(raw) format]]>
  54863. </doc>
  54864. </class>
  54865. <!-- end class org.apache.hadoop.mapred.SequenceFileAsBinaryOutputFormat -->
  54866. <!-- start class org.apache.hadoop.mapred.SequenceFileAsBinaryOutputFormat.WritableValueBytes -->
  54867. <class name="SequenceFileAsBinaryOutputFormat.WritableValueBytes" extends="java.lang.Object"
  54868. abstract="false"
  54869. static="true" final="false" visibility="protected"
  54870. deprecated="not deprecated">
  54871. <implements name="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  54872. <constructor name="SequenceFileAsBinaryOutputFormat.WritableValueBytes"
  54873. static="false" final="false" visibility="public"
  54874. deprecated="not deprecated">
  54875. </constructor>
  54876. <constructor name="SequenceFileAsBinaryOutputFormat.WritableValueBytes" type="org.apache.hadoop.io.BytesWritable"
  54877. static="false" final="false" visibility="public"
  54878. deprecated="not deprecated">
  54879. </constructor>
  54880. <method name="reset"
  54881. abstract="false" native="false" synchronized="false"
  54882. static="false" final="false" visibility="public"
  54883. deprecated="not deprecated">
  54884. <param name="value" type="org.apache.hadoop.io.BytesWritable"/>
  54885. </method>
  54886. <method name="writeUncompressedBytes"
  54887. abstract="false" native="false" synchronized="false"
  54888. static="false" final="false" visibility="public"
  54889. deprecated="not deprecated">
  54890. <param name="outStream" type="java.io.DataOutputStream"/>
  54891. <exception name="IOException" type="java.io.IOException"/>
  54892. </method>
  54893. <method name="writeCompressedBytes"
  54894. abstract="false" native="false" synchronized="false"
  54895. static="false" final="false" visibility="public"
  54896. deprecated="not deprecated">
  54897. <param name="outStream" type="java.io.DataOutputStream"/>
  54898. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  54899. <exception name="IOException" type="java.io.IOException"/>
  54900. </method>
  54901. <method name="getSize" return="int"
  54902. abstract="false" native="false" synchronized="false"
  54903. static="false" final="false" visibility="public"
  54904. deprecated="not deprecated">
  54905. </method>
  54906. <doc>
  54907. <![CDATA[Inner class used for appendRaw]]>
  54908. </doc>
  54909. </class>
  54910. <!-- end class org.apache.hadoop.mapred.SequenceFileAsBinaryOutputFormat.WritableValueBytes -->
  54911. <!-- start class org.apache.hadoop.mapred.SequenceFileAsTextInputFormat -->
  54912. <class name="SequenceFileAsTextInputFormat" extends="org.apache.hadoop.mapred.SequenceFileInputFormat"
  54913. abstract="false"
  54914. static="false" final="false" visibility="public"
  54915. deprecated="not deprecated">
  54916. <constructor name="SequenceFileAsTextInputFormat"
  54917. static="false" final="false" visibility="public"
  54918. deprecated="not deprecated">
  54919. </constructor>
  54920. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  54921. abstract="false" native="false" synchronized="false"
  54922. static="false" final="false" visibility="public"
  54923. deprecated="not deprecated">
  54924. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  54925. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  54926. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  54927. <exception name="IOException" type="java.io.IOException"/>
  54928. </method>
  54929. <doc>
  54930. <![CDATA[This class is similar to SequenceFileInputFormat, except it generates SequenceFileAsTextRecordReader
  54931. which converts the input keys and values to their String forms by calling toString() method.]]>
  54932. </doc>
  54933. </class>
  54934. <!-- end class org.apache.hadoop.mapred.SequenceFileAsTextInputFormat -->
  54935. <!-- start class org.apache.hadoop.mapred.SequenceFileAsTextRecordReader -->
  54936. <class name="SequenceFileAsTextRecordReader" extends="java.lang.Object"
  54937. abstract="false"
  54938. static="false" final="false" visibility="public"
  54939. deprecated="not deprecated">
  54940. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  54941. <constructor name="SequenceFileAsTextRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  54942. static="false" final="false" visibility="public"
  54943. deprecated="not deprecated">
  54944. <exception name="IOException" type="java.io.IOException"/>
  54945. </constructor>
  54946. <method name="createKey" return="org.apache.hadoop.io.Text"
  54947. abstract="false" native="false" synchronized="false"
  54948. static="false" final="false" visibility="public"
  54949. deprecated="not deprecated">
  54950. </method>
  54951. <method name="createValue" return="org.apache.hadoop.io.Text"
  54952. abstract="false" native="false" synchronized="false"
  54953. static="false" final="false" visibility="public"
  54954. deprecated="not deprecated">
  54955. </method>
  54956. <method name="next" return="boolean"
  54957. abstract="false" native="false" synchronized="true"
  54958. static="false" final="false" visibility="public"
  54959. deprecated="not deprecated">
  54960. <param name="key" type="org.apache.hadoop.io.Text"/>
  54961. <param name="value" type="org.apache.hadoop.io.Text"/>
  54962. <exception name="IOException" type="java.io.IOException"/>
  54963. <doc>
  54964. <![CDATA[Read key/value pair in a line.]]>
  54965. </doc>
  54966. </method>
  54967. <method name="getProgress" return="float"
  54968. abstract="false" native="false" synchronized="false"
  54969. static="false" final="false" visibility="public"
  54970. deprecated="not deprecated">
  54971. <exception name="IOException" type="java.io.IOException"/>
  54972. </method>
  54973. <method name="getPos" return="long"
  54974. abstract="false" native="false" synchronized="true"
  54975. static="false" final="false" visibility="public"
  54976. deprecated="not deprecated">
  54977. <exception name="IOException" type="java.io.IOException"/>
  54978. </method>
  54979. <method name="close"
  54980. abstract="false" native="false" synchronized="true"
  54981. static="false" final="false" visibility="public"
  54982. deprecated="not deprecated">
  54983. <exception name="IOException" type="java.io.IOException"/>
  54984. </method>
  54985. <doc>
  54986. <![CDATA[This class converts the input keys and values to their String forms by calling toString()
  54987. method. This class to SequenceFileAsTextInputFormat class is as LineRecordReader
  54988. class to TextInputFormat class.]]>
  54989. </doc>
  54990. </class>
  54991. <!-- end class org.apache.hadoop.mapred.SequenceFileAsTextRecordReader -->
  54992. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter -->
  54993. <class name="SequenceFileInputFilter" extends="org.apache.hadoop.mapred.SequenceFileInputFormat"
  54994. abstract="false"
  54995. static="false" final="false" visibility="public"
  54996. deprecated="not deprecated">
  54997. <constructor name="SequenceFileInputFilter"
  54998. static="false" final="false" visibility="public"
  54999. deprecated="not deprecated">
  55000. </constructor>
  55001. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  55002. abstract="false" native="false" synchronized="false"
  55003. static="false" final="false" visibility="public"
  55004. deprecated="not deprecated">
  55005. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  55006. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  55007. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  55008. <exception name="IOException" type="java.io.IOException"/>
  55009. <doc>
  55010. <![CDATA[Create a record reader for the given split
  55011. @param split file split
  55012. @param job job configuration
  55013. @param reporter reporter who sends report to task tracker
  55014. @return RecordReader]]>
  55015. </doc>
  55016. </method>
  55017. <method name="setFilterClass"
  55018. abstract="false" native="false" synchronized="false"
  55019. static="true" final="false" visibility="public"
  55020. deprecated="not deprecated">
  55021. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55022. <param name="filterClass" type="java.lang.Class"/>
  55023. <doc>
  55024. <![CDATA[set the filter class
  55025. @param conf application configuration
  55026. @param filterClass filter class]]>
  55027. </doc>
  55028. </method>
  55029. <doc>
  55030. <![CDATA[A class that allows a map/red job to work on a sample of sequence files.
  55031. The sample is decided by the filter class set by the job.]]>
  55032. </doc>
  55033. </class>
  55034. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter -->
  55035. <!-- start interface org.apache.hadoop.mapred.SequenceFileInputFilter.Filter -->
  55036. <interface name="SequenceFileInputFilter.Filter" abstract="true"
  55037. static="true" final="false" visibility="public"
  55038. deprecated="not deprecated">
  55039. <implements name="org.apache.hadoop.conf.Configurable"/>
  55040. <method name="accept" return="boolean"
  55041. abstract="false" native="false" synchronized="false"
  55042. static="false" final="false" visibility="public"
  55043. deprecated="not deprecated">
  55044. <param name="key" type="java.lang.Object"/>
  55045. <doc>
  55046. <![CDATA[filter function
  55047. Decide if a record should be filtered or not
  55048. @param key record key
  55049. @return true if a record is accepted; return false otherwise]]>
  55050. </doc>
  55051. </method>
  55052. <doc>
  55053. <![CDATA[filter interface]]>
  55054. </doc>
  55055. </interface>
  55056. <!-- end interface org.apache.hadoop.mapred.SequenceFileInputFilter.Filter -->
  55057. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase -->
  55058. <class name="SequenceFileInputFilter.FilterBase" extends="java.lang.Object"
  55059. abstract="true"
  55060. static="true" final="false" visibility="public"
  55061. deprecated="not deprecated">
  55062. <implements name="org.apache.hadoop.mapred.SequenceFileInputFilter.Filter"/>
  55063. <constructor name="SequenceFileInputFilter.FilterBase"
  55064. static="false" final="false" visibility="public"
  55065. deprecated="not deprecated">
  55066. </constructor>
  55067. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  55068. abstract="false" native="false" synchronized="false"
  55069. static="false" final="false" visibility="public"
  55070. deprecated="not deprecated">
  55071. </method>
  55072. <doc>
  55073. <![CDATA[base class for Filters]]>
  55074. </doc>
  55075. </class>
  55076. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase -->
  55077. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.MD5Filter -->
  55078. <class name="SequenceFileInputFilter.MD5Filter" extends="org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase"
  55079. abstract="false"
  55080. static="true" final="false" visibility="public"
  55081. deprecated="not deprecated">
  55082. <constructor name="SequenceFileInputFilter.MD5Filter"
  55083. static="false" final="false" visibility="public"
  55084. deprecated="not deprecated">
  55085. </constructor>
  55086. <method name="setFrequency"
  55087. abstract="false" native="false" synchronized="false"
  55088. static="true" final="false" visibility="public"
  55089. deprecated="not deprecated">
  55090. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55091. <param name="frequency" type="int"/>
  55092. <doc>
  55093. <![CDATA[set the filtering frequency in configuration
  55094. @param conf configuration
  55095. @param frequency filtering frequency]]>
  55096. </doc>
  55097. </method>
  55098. <method name="setConf"
  55099. abstract="false" native="false" synchronized="false"
  55100. static="false" final="false" visibility="public"
  55101. deprecated="not deprecated">
  55102. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55103. <doc>
  55104. <![CDATA[configure the filter according to configuration
  55105. @param conf configuration]]>
  55106. </doc>
  55107. </method>
  55108. <method name="accept" return="boolean"
  55109. abstract="false" native="false" synchronized="false"
  55110. static="false" final="false" visibility="public"
  55111. deprecated="not deprecated">
  55112. <param name="key" type="java.lang.Object"/>
  55113. <doc>
  55114. <![CDATA[Filtering method
  55115. If MD5(key) % frequency==0, return true; otherwise return false
  55116. @see org.apache.hadoop.mapred.SequenceFileInputFilter.Filter#accept(Object)]]>
  55117. </doc>
  55118. </method>
  55119. <field name="MD5_LEN" type="int"
  55120. transient="false" volatile="false"
  55121. static="true" final="true" visibility="public"
  55122. deprecated="not deprecated">
  55123. </field>
  55124. <doc>
  55125. <![CDATA[This class returns a set of records by examing the MD5 digest of its
  55126. key against a filtering frequency <i>f</i>. The filtering criteria is
  55127. MD5(key) % f == 0.]]>
  55128. </doc>
  55129. </class>
  55130. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.MD5Filter -->
  55131. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.PercentFilter -->
  55132. <class name="SequenceFileInputFilter.PercentFilter" extends="org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase"
  55133. abstract="false"
  55134. static="true" final="false" visibility="public"
  55135. deprecated="not deprecated">
  55136. <constructor name="SequenceFileInputFilter.PercentFilter"
  55137. static="false" final="false" visibility="public"
  55138. deprecated="not deprecated">
  55139. </constructor>
  55140. <method name="setFrequency"
  55141. abstract="false" native="false" synchronized="false"
  55142. static="true" final="false" visibility="public"
  55143. deprecated="not deprecated">
  55144. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55145. <param name="frequency" type="int"/>
  55146. <doc>
  55147. <![CDATA[set the frequency and stores it in conf
  55148. @param conf configuration
  55149. @param frequency filtering frequencey]]>
  55150. </doc>
  55151. </method>
  55152. <method name="setConf"
  55153. abstract="false" native="false" synchronized="false"
  55154. static="false" final="false" visibility="public"
  55155. deprecated="not deprecated">
  55156. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55157. <doc>
  55158. <![CDATA[configure the filter by checking the configuration
  55159. @param conf configuration]]>
  55160. </doc>
  55161. </method>
  55162. <method name="accept" return="boolean"
  55163. abstract="false" native="false" synchronized="false"
  55164. static="false" final="false" visibility="public"
  55165. deprecated="not deprecated">
  55166. <param name="key" type="java.lang.Object"/>
  55167. <doc>
  55168. <![CDATA[Filtering method
  55169. If record# % frequency==0, return true; otherwise return false
  55170. @see org.apache.hadoop.mapred.SequenceFileInputFilter.Filter#accept(Object)]]>
  55171. </doc>
  55172. </method>
  55173. <doc>
  55174. <![CDATA[This class returns a percentage of records
  55175. The percentage is determined by a filtering frequency <i>f</i> using
  55176. the criteria record# % f == 0.
  55177. For example, if the frequency is 10, one out of 10 records is returned.]]>
  55178. </doc>
  55179. </class>
  55180. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.PercentFilter -->
  55181. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.RegexFilter -->
  55182. <class name="SequenceFileInputFilter.RegexFilter" extends="org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase"
  55183. abstract="false"
  55184. static="true" final="false" visibility="public"
  55185. deprecated="not deprecated">
  55186. <constructor name="SequenceFileInputFilter.RegexFilter"
  55187. static="false" final="false" visibility="public"
  55188. deprecated="not deprecated">
  55189. </constructor>
  55190. <method name="setPattern"
  55191. abstract="false" native="false" synchronized="false"
  55192. static="true" final="false" visibility="public"
  55193. deprecated="not deprecated">
  55194. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55195. <param name="regex" type="java.lang.String"/>
  55196. <exception name="PatternSyntaxException" type="java.util.regex.PatternSyntaxException"/>
  55197. <doc>
  55198. <![CDATA[Define the filtering regex and stores it in conf
  55199. @param conf where the regex is set
  55200. @param regex regex used as a filter]]>
  55201. </doc>
  55202. </method>
  55203. <method name="setConf"
  55204. abstract="false" native="false" synchronized="false"
  55205. static="false" final="false" visibility="public"
  55206. deprecated="not deprecated">
  55207. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55208. <doc>
  55209. <![CDATA[configure the Filter by checking the configuration]]>
  55210. </doc>
  55211. </method>
  55212. <method name="accept" return="boolean"
  55213. abstract="false" native="false" synchronized="false"
  55214. static="false" final="false" visibility="public"
  55215. deprecated="not deprecated">
  55216. <param name="key" type="java.lang.Object"/>
  55217. <doc>
  55218. <![CDATA[Filtering method
  55219. If key matches the regex, return true; otherwise return false
  55220. @see org.apache.hadoop.mapred.SequenceFileInputFilter.Filter#accept(Object)]]>
  55221. </doc>
  55222. </method>
  55223. <doc>
  55224. <![CDATA[Records filter by matching key to regex]]>
  55225. </doc>
  55226. </class>
  55227. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.RegexFilter -->
  55228. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFormat -->
  55229. <class name="SequenceFileInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  55230. abstract="false"
  55231. static="false" final="false" visibility="public"
  55232. deprecated="not deprecated">
  55233. <constructor name="SequenceFileInputFormat"
  55234. static="false" final="false" visibility="public"
  55235. deprecated="not deprecated">
  55236. </constructor>
  55237. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  55238. abstract="false" native="false" synchronized="false"
  55239. static="false" final="false" visibility="protected"
  55240. deprecated="not deprecated">
  55241. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  55242. <exception name="IOException" type="java.io.IOException"/>
  55243. </method>
  55244. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  55245. abstract="false" native="false" synchronized="false"
  55246. static="false" final="false" visibility="public"
  55247. deprecated="not deprecated">
  55248. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  55249. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  55250. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  55251. <exception name="IOException" type="java.io.IOException"/>
  55252. </method>
  55253. <doc>
  55254. <![CDATA[An {@link InputFormat} for {@link SequenceFile}s.]]>
  55255. </doc>
  55256. </class>
  55257. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFormat -->
  55258. <!-- start class org.apache.hadoop.mapred.SequenceFileOutputFormat -->
  55259. <class name="SequenceFileOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat"
  55260. abstract="false"
  55261. static="false" final="false" visibility="public"
  55262. deprecated="not deprecated">
  55263. <constructor name="SequenceFileOutputFormat"
  55264. static="false" final="false" visibility="public"
  55265. deprecated="not deprecated">
  55266. </constructor>
  55267. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  55268. abstract="false" native="false" synchronized="false"
  55269. static="false" final="false" visibility="public"
  55270. deprecated="not deprecated">
  55271. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  55272. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  55273. <param name="name" type="java.lang.String"/>
  55274. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  55275. <exception name="IOException" type="java.io.IOException"/>
  55276. </method>
  55277. <method name="getReaders" return="org.apache.hadoop.io.SequenceFile.Reader[]"
  55278. abstract="false" native="false" synchronized="false"
  55279. static="true" final="false" visibility="public"
  55280. deprecated="not deprecated">
  55281. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55282. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  55283. <exception name="IOException" type="java.io.IOException"/>
  55284. <doc>
  55285. <![CDATA[Open the output generated by this format.]]>
  55286. </doc>
  55287. </method>
  55288. <method name="getOutputCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  55289. abstract="false" native="false" synchronized="false"
  55290. static="true" final="false" visibility="public"
  55291. deprecated="not deprecated">
  55292. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  55293. <doc>
  55294. <![CDATA[Get the {@link CompressionType} for the output {@link SequenceFile}.
  55295. @param conf the {@link JobConf}
  55296. @return the {@link CompressionType} for the output {@link SequenceFile},
  55297. defaulting to {@link CompressionType#RECORD}]]>
  55298. </doc>
  55299. </method>
  55300. <method name="setOutputCompressionType"
  55301. abstract="false" native="false" synchronized="false"
  55302. static="true" final="false" visibility="public"
  55303. deprecated="not deprecated">
  55304. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  55305. <param name="style" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  55306. <doc>
  55307. <![CDATA[Set the {@link CompressionType} for the output {@link SequenceFile}.
  55308. @param conf the {@link JobConf} to modify
  55309. @param style the {@link CompressionType} for the output
  55310. {@link SequenceFile}]]>
  55311. </doc>
  55312. </method>
  55313. <doc>
  55314. <![CDATA[An {@link OutputFormat} that writes {@link SequenceFile}s.]]>
  55315. </doc>
  55316. </class>
  55317. <!-- end class org.apache.hadoop.mapred.SequenceFileOutputFormat -->
  55318. <!-- start class org.apache.hadoop.mapred.SequenceFileRecordReader -->
  55319. <class name="SequenceFileRecordReader" extends="java.lang.Object"
  55320. abstract="false"
  55321. static="false" final="false" visibility="public"
  55322. deprecated="not deprecated">
  55323. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  55324. <constructor name="SequenceFileRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  55325. static="false" final="false" visibility="public"
  55326. deprecated="not deprecated">
  55327. <exception name="IOException" type="java.io.IOException"/>
  55328. </constructor>
  55329. <method name="getKeyClass" return="java.lang.Class"
  55330. abstract="false" native="false" synchronized="false"
  55331. static="false" final="false" visibility="public"
  55332. deprecated="not deprecated">
  55333. <doc>
  55334. <![CDATA[The class of key that must be passed to {@link
  55335. #next(Object, Object)}..]]>
  55336. </doc>
  55337. </method>
  55338. <method name="getValueClass" return="java.lang.Class"
  55339. abstract="false" native="false" synchronized="false"
  55340. static="false" final="false" visibility="public"
  55341. deprecated="not deprecated">
  55342. <doc>
  55343. <![CDATA[The class of value that must be passed to {@link
  55344. #next(Object, Object)}..]]>
  55345. </doc>
  55346. </method>
  55347. <method name="createKey" return="java.lang.Object"
  55348. abstract="false" native="false" synchronized="false"
  55349. static="false" final="false" visibility="public"
  55350. deprecated="not deprecated">
  55351. </method>
  55352. <method name="createValue" return="java.lang.Object"
  55353. abstract="false" native="false" synchronized="false"
  55354. static="false" final="false" visibility="public"
  55355. deprecated="not deprecated">
  55356. </method>
  55357. <method name="next" return="boolean"
  55358. abstract="false" native="false" synchronized="true"
  55359. static="false" final="false" visibility="public"
  55360. deprecated="not deprecated">
  55361. <param name="key" type="java.lang.Object"/>
  55362. <param name="value" type="java.lang.Object"/>
  55363. <exception name="IOException" type="java.io.IOException"/>
  55364. </method>
  55365. <method name="next" return="boolean"
  55366. abstract="false" native="false" synchronized="true"
  55367. static="false" final="false" visibility="protected"
  55368. deprecated="not deprecated">
  55369. <param name="key" type="java.lang.Object"/>
  55370. <exception name="IOException" type="java.io.IOException"/>
  55371. </method>
  55372. <method name="getCurrentValue"
  55373. abstract="false" native="false" synchronized="true"
  55374. static="false" final="false" visibility="protected"
  55375. deprecated="not deprecated">
  55376. <param name="value" type="java.lang.Object"/>
  55377. <exception name="IOException" type="java.io.IOException"/>
  55378. </method>
  55379. <method name="getProgress" return="float"
  55380. abstract="false" native="false" synchronized="false"
  55381. static="false" final="false" visibility="public"
  55382. deprecated="not deprecated">
  55383. <exception name="IOException" type="java.io.IOException"/>
  55384. <doc>
  55385. <![CDATA[Return the progress within the input split
  55386. @return 0.0 to 1.0 of the input byte range]]>
  55387. </doc>
  55388. </method>
  55389. <method name="getPos" return="long"
  55390. abstract="false" native="false" synchronized="true"
  55391. static="false" final="false" visibility="public"
  55392. deprecated="not deprecated">
  55393. <exception name="IOException" type="java.io.IOException"/>
  55394. </method>
  55395. <method name="seek"
  55396. abstract="false" native="false" synchronized="true"
  55397. static="false" final="false" visibility="protected"
  55398. deprecated="not deprecated">
  55399. <param name="pos" type="long"/>
  55400. <exception name="IOException" type="java.io.IOException"/>
  55401. </method>
  55402. <method name="close"
  55403. abstract="false" native="false" synchronized="true"
  55404. static="false" final="false" visibility="public"
  55405. deprecated="not deprecated">
  55406. <exception name="IOException" type="java.io.IOException"/>
  55407. </method>
  55408. <field name="conf" type="org.apache.hadoop.conf.Configuration"
  55409. transient="false" volatile="false"
  55410. static="false" final="false" visibility="protected"
  55411. deprecated="not deprecated">
  55412. </field>
  55413. <doc>
  55414. <![CDATA[An {@link RecordReader} for {@link SequenceFile}s.]]>
  55415. </doc>
  55416. </class>
  55417. <!-- end class org.apache.hadoop.mapred.SequenceFileRecordReader -->
  55418. <!-- start class org.apache.hadoop.mapred.ShuffleExceptionTracker -->
  55419. <class name="ShuffleExceptionTracker" extends="java.lang.Object"
  55420. abstract="false"
  55421. static="false" final="false" visibility="public"
  55422. deprecated="not deprecated">
  55423. <method name="getNumRequests" return="int"
  55424. abstract="false" native="false" synchronized="false"
  55425. static="false" final="false" visibility="public"
  55426. deprecated="not deprecated">
  55427. <doc>
  55428. <![CDATA[Gets the number of requests we are tracking
  55429. @return number of requests]]>
  55430. </doc>
  55431. </method>
  55432. <method name="getPercentExceptions" return="float"
  55433. abstract="false" native="false" synchronized="true"
  55434. static="false" final="false" visibility="public"
  55435. deprecated="not deprecated">
  55436. <doc>
  55437. <![CDATA[Gets the percent of the requests that had exceptions occur.
  55438. @return percent failures as float]]>
  55439. </doc>
  55440. </method>
  55441. <method name="success"
  55442. abstract="false" native="false" synchronized="true"
  55443. static="false" final="false" visibility="public"
  55444. deprecated="not deprecated">
  55445. <doc>
  55446. <![CDATA[Mark the request as success.]]>
  55447. </doc>
  55448. </method>
  55449. <method name="exception"
  55450. abstract="false" native="false" synchronized="true"
  55451. static="false" final="false" visibility="public"
  55452. deprecated="not deprecated">
  55453. <doc>
  55454. <![CDATA[Mark the request as an exception occurred.]]>
  55455. </doc>
  55456. </method>
  55457. <method name="checkException" return="boolean"
  55458. abstract="false" native="false" synchronized="false"
  55459. static="false" final="false" visibility="public"
  55460. deprecated="not deprecated">
  55461. <param name="ie" type="java.io.IOException"/>
  55462. <doc>
  55463. <![CDATA[Parse the exception to see if it matches the regular expression you
  55464. configured. If both msgRegex and StackRegex are set then make sure both
  55465. match, otherwise only one has to match. Abort if the limit is hit.
  55466. @param ie - the shuffle exception that occurred
  55467. @return true if the exception matches, false otherwise]]>
  55468. </doc>
  55469. </method>
  55470. <method name="doAbort"
  55471. abstract="false" native="false" synchronized="false"
  55472. static="false" final="false" visibility="protected"
  55473. deprecated="not deprecated">
  55474. </method>
  55475. <field name="LOG" type="org.apache.commons.logging.Log"
  55476. transient="false" volatile="false"
  55477. static="true" final="true" visibility="public"
  55478. deprecated="not deprecated">
  55479. </field>
  55480. <doc>
  55481. <![CDATA[This class is used to track shuffle exceptions. It contains routines
  55482. to check an exception that occurred while fetching the Map output to see if it
  55483. matches what was configured. It also provides functions to keep track of
  55484. the number of exceptions that occurred and if a limit is set, it will
  55485. abort the TT. The limit is a percent of exceptions of the last X number of
  55486. requests.]]>
  55487. </doc>
  55488. </class>
  55489. <!-- end class org.apache.hadoop.mapred.ShuffleExceptionTracker -->
  55490. <!-- start class org.apache.hadoop.mapred.SkipBadRecords -->
  55491. <class name="SkipBadRecords" extends="java.lang.Object"
  55492. abstract="false"
  55493. static="false" final="false" visibility="public"
  55494. deprecated="not deprecated">
  55495. <constructor name="SkipBadRecords"
  55496. static="false" final="false" visibility="public"
  55497. deprecated="not deprecated">
  55498. </constructor>
  55499. <method name="getAttemptsToStartSkipping" return="int"
  55500. abstract="false" native="false" synchronized="false"
  55501. static="true" final="false" visibility="public"
  55502. deprecated="not deprecated">
  55503. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55504. <doc>
  55505. <![CDATA[Get the number of Task attempts AFTER which skip mode
  55506. will be kicked off. When skip mode is kicked off, the
  55507. tasks reports the range of records which it will process
  55508. next to the TaskTracker. So that on failures, TT knows which
  55509. ones are possibly the bad records. On further executions,
  55510. those are skipped.
  55511. Default value is 2.
  55512. @param conf the configuration
  55513. @return attemptsToStartSkipping no of task attempts]]>
  55514. </doc>
  55515. </method>
  55516. <method name="setAttemptsToStartSkipping"
  55517. abstract="false" native="false" synchronized="false"
  55518. static="true" final="false" visibility="public"
  55519. deprecated="not deprecated">
  55520. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55521. <param name="attemptsToStartSkipping" type="int"/>
  55522. <doc>
  55523. <![CDATA[Set the number of Task attempts AFTER which skip mode
  55524. will be kicked off. When skip mode is kicked off, the
  55525. tasks reports the range of records which it will process
  55526. next to the TaskTracker. So that on failures, TT knows which
  55527. ones are possibly the bad records. On further executions,
  55528. those are skipped.
  55529. Default value is 2.
  55530. @param conf the configuration
  55531. @param attemptsToStartSkipping no of task attempts]]>
  55532. </doc>
  55533. </method>
  55534. <method name="getAutoIncrMapperProcCount" return="boolean"
  55535. abstract="false" native="false" synchronized="false"
  55536. static="true" final="false" visibility="public"
  55537. deprecated="not deprecated">
  55538. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55539. <doc>
  55540. <![CDATA[Get the flag which if set to true,
  55541. {@link SkipBadRecords#COUNTER_MAP_PROCESSED_RECORDS} is incremented
  55542. by MapRunner after invoking the map function. This value must be set to
  55543. false for applications which process the records asynchronously
  55544. or buffer the input records. For example streaming.
  55545. In such cases applications should increment this counter on their own.
  55546. Default value is true.
  55547. @param conf the configuration
  55548. @return <code>true</code> if auto increment
  55549. {@link SkipBadRecords#COUNTER_MAP_PROCESSED_RECORDS}.
  55550. <code>false</code> otherwise.]]>
  55551. </doc>
  55552. </method>
  55553. <method name="setAutoIncrMapperProcCount"
  55554. abstract="false" native="false" synchronized="false"
  55555. static="true" final="false" visibility="public"
  55556. deprecated="not deprecated">
  55557. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55558. <param name="autoIncr" type="boolean"/>
  55559. <doc>
  55560. <![CDATA[Set the flag which if set to true,
  55561. {@link SkipBadRecords#COUNTER_MAP_PROCESSED_RECORDS} is incremented
  55562. by MapRunner after invoking the map function. This value must be set to
  55563. false for applications which process the records asynchronously
  55564. or buffer the input records. For example streaming.
  55565. In such cases applications should increment this counter on their own.
  55566. Default value is true.
  55567. @param conf the configuration
  55568. @param autoIncr whether to auto increment
  55569. {@link SkipBadRecords#COUNTER_MAP_PROCESSED_RECORDS}.]]>
  55570. </doc>
  55571. </method>
  55572. <method name="getAutoIncrReducerProcCount" return="boolean"
  55573. abstract="false" native="false" synchronized="false"
  55574. static="true" final="false" visibility="public"
  55575. deprecated="not deprecated">
  55576. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55577. <doc>
  55578. <![CDATA[Get the flag which if set to true,
  55579. {@link SkipBadRecords#COUNTER_REDUCE_PROCESSED_GROUPS} is incremented
  55580. by framework after invoking the reduce function. This value must be set to
  55581. false for applications which process the records asynchronously
  55582. or buffer the input records. For example streaming.
  55583. In such cases applications should increment this counter on their own.
  55584. Default value is true.
  55585. @param conf the configuration
  55586. @return <code>true</code> if auto increment
  55587. {@link SkipBadRecords#COUNTER_REDUCE_PROCESSED_GROUPS}.
  55588. <code>false</code> otherwise.]]>
  55589. </doc>
  55590. </method>
  55591. <method name="setAutoIncrReducerProcCount"
  55592. abstract="false" native="false" synchronized="false"
  55593. static="true" final="false" visibility="public"
  55594. deprecated="not deprecated">
  55595. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55596. <param name="autoIncr" type="boolean"/>
  55597. <doc>
  55598. <![CDATA[Set the flag which if set to true,
  55599. {@link SkipBadRecords#COUNTER_REDUCE_PROCESSED_GROUPS} is incremented
  55600. by framework after invoking the reduce function. This value must be set to
  55601. false for applications which process the records asynchronously
  55602. or buffer the input records. For example streaming.
  55603. In such cases applications should increment this counter on their own.
  55604. Default value is true.
  55605. @param conf the configuration
  55606. @param autoIncr whether to auto increment
  55607. {@link SkipBadRecords#COUNTER_REDUCE_PROCESSED_GROUPS}.]]>
  55608. </doc>
  55609. </method>
  55610. <method name="getSkipOutputPath" return="org.apache.hadoop.fs.Path"
  55611. abstract="false" native="false" synchronized="false"
  55612. static="true" final="false" visibility="public"
  55613. deprecated="not deprecated">
  55614. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55615. <doc>
  55616. <![CDATA[Get the directory to which skipped records are written. By default it is
  55617. the sub directory of the output _logs directory.
  55618. User can stop writing skipped records by setting the value null.
  55619. @param conf the configuration.
  55620. @return path skip output directory. Null is returned if this is not set
  55621. and output directory is also not set.]]>
  55622. </doc>
  55623. </method>
  55624. <method name="setSkipOutputPath"
  55625. abstract="false" native="false" synchronized="false"
  55626. static="true" final="false" visibility="public"
  55627. deprecated="not deprecated">
  55628. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  55629. <param name="path" type="org.apache.hadoop.fs.Path"/>
  55630. <doc>
  55631. <![CDATA[Set the directory to which skipped records are written. By default it is
  55632. the sub directory of the output _logs directory.
  55633. User can stop writing skipped records by setting the value null.
  55634. @param conf the configuration.
  55635. @param path skip output directory path]]>
  55636. </doc>
  55637. </method>
  55638. <method name="getMapperMaxSkipRecords" return="long"
  55639. abstract="false" native="false" synchronized="false"
  55640. static="true" final="false" visibility="public"
  55641. deprecated="not deprecated">
  55642. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55643. <doc>
  55644. <![CDATA[Get the number of acceptable skip records surrounding the bad record PER
  55645. bad record in mapper. The number includes the bad record as well.
  55646. To turn the feature of detection/skipping of bad records off, set the
  55647. value to 0.
  55648. The framework tries to narrow down the skipped range by retrying
  55649. until this threshold is met OR all attempts get exhausted for this task.
  55650. Set the value to Long.MAX_VALUE to indicate that framework need not try to
  55651. narrow down. Whatever records(depends on application) get skipped are
  55652. acceptable.
  55653. Default value is 0.
  55654. @param conf the configuration
  55655. @return maxSkipRecs acceptable skip records.]]>
  55656. </doc>
  55657. </method>
  55658. <method name="setMapperMaxSkipRecords"
  55659. abstract="false" native="false" synchronized="false"
  55660. static="true" final="false" visibility="public"
  55661. deprecated="not deprecated">
  55662. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55663. <param name="maxSkipRecs" type="long"/>
  55664. <doc>
  55665. <![CDATA[Set the number of acceptable skip records surrounding the bad record PER
  55666. bad record in mapper. The number includes the bad record as well.
  55667. To turn the feature of detection/skipping of bad records off, set the
  55668. value to 0.
  55669. The framework tries to narrow down the skipped range by retrying
  55670. until this threshold is met OR all attempts get exhausted for this task.
  55671. Set the value to Long.MAX_VALUE to indicate that framework need not try to
  55672. narrow down. Whatever records(depends on application) get skipped are
  55673. acceptable.
  55674. Default value is 0.
  55675. @param conf the configuration
  55676. @param maxSkipRecs acceptable skip records.]]>
  55677. </doc>
  55678. </method>
  55679. <method name="getReducerMaxSkipGroups" return="long"
  55680. abstract="false" native="false" synchronized="false"
  55681. static="true" final="false" visibility="public"
  55682. deprecated="not deprecated">
  55683. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55684. <doc>
  55685. <![CDATA[Get the number of acceptable skip groups surrounding the bad group PER
  55686. bad group in reducer. The number includes the bad group as well.
  55687. To turn the feature of detection/skipping of bad groups off, set the
  55688. value to 0.
  55689. The framework tries to narrow down the skipped range by retrying
  55690. until this threshold is met OR all attempts get exhausted for this task.
  55691. Set the value to Long.MAX_VALUE to indicate that framework need not try to
  55692. narrow down. Whatever groups(depends on application) get skipped are
  55693. acceptable.
  55694. Default value is 0.
  55695. @param conf the configuration
  55696. @return maxSkipGrps acceptable skip groups.]]>
  55697. </doc>
  55698. </method>
  55699. <method name="setReducerMaxSkipGroups"
  55700. abstract="false" native="false" synchronized="false"
  55701. static="true" final="false" visibility="public"
  55702. deprecated="not deprecated">
  55703. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55704. <param name="maxSkipGrps" type="long"/>
  55705. <doc>
  55706. <![CDATA[Set the number of acceptable skip groups surrounding the bad group PER
  55707. bad group in reducer. The number includes the bad group as well.
  55708. To turn the feature of detection/skipping of bad groups off, set the
  55709. value to 0.
  55710. The framework tries to narrow down the skipped range by retrying
  55711. until this threshold is met OR all attempts get exhausted for this task.
  55712. Set the value to Long.MAX_VALUE to indicate that framework need not try to
  55713. narrow down. Whatever groups(depends on application) get skipped are
  55714. acceptable.
  55715. Default value is 0.
  55716. @param conf the configuration
  55717. @param maxSkipGrps acceptable skip groups.]]>
  55718. </doc>
  55719. </method>
  55720. <field name="COUNTER_GROUP" type="java.lang.String"
  55721. transient="false" volatile="false"
  55722. static="true" final="true" visibility="public"
  55723. deprecated="not deprecated">
  55724. <doc>
  55725. <![CDATA[Special counters which are written by the application and are
  55726. used by the framework for detecting bad records. For detecting bad records
  55727. these counters must be incremented by the application.]]>
  55728. </doc>
  55729. </field>
  55730. <field name="COUNTER_MAP_PROCESSED_RECORDS" type="java.lang.String"
  55731. transient="false" volatile="false"
  55732. static="true" final="true" visibility="public"
  55733. deprecated="not deprecated">
  55734. <doc>
  55735. <![CDATA[Number of processed map records.
  55736. @see SkipBadRecords#getAutoIncrMapperProcCount(Configuration)]]>
  55737. </doc>
  55738. </field>
  55739. <field name="COUNTER_REDUCE_PROCESSED_GROUPS" type="java.lang.String"
  55740. transient="false" volatile="false"
  55741. static="true" final="true" visibility="public"
  55742. deprecated="not deprecated">
  55743. <doc>
  55744. <![CDATA[Number of processed reduce groups.
  55745. @see SkipBadRecords#getAutoIncrReducerProcCount(Configuration)]]>
  55746. </doc>
  55747. </field>
  55748. <doc>
  55749. <![CDATA[Utility class for skip bad records functionality. It contains various
  55750. settings related to skipping of bad records.
  55751. <p>Hadoop provides an optional mode of execution in which the bad records
  55752. are detected and skipped in further attempts.
  55753. <p>This feature can be used when map/reduce tasks crashes deterministically on
  55754. certain input. This happens due to bugs in the map/reduce function. The usual
  55755. course would be to fix these bugs. But sometimes this is not possible;
  55756. perhaps the bug is in third party libraries for which the source code is
  55757. not available. Due to this, the task never reaches to completion even with
  55758. multiple attempts and complete data for that task is lost.</p>
  55759. <p>With this feature, only a small portion of data is lost surrounding
  55760. the bad record, which may be acceptable for some user applications.
  55761. see {@link SkipBadRecords#setMapperMaxSkipRecords(Configuration, long)}</p>
  55762. <p>The skipping mode gets kicked off after certain no of failures
  55763. see {@link SkipBadRecords#setAttemptsToStartSkipping(Configuration, int)}</p>
  55764. <p>In the skipping mode, the map/reduce task maintains the record range which
  55765. is getting processed at all times. Before giving the input to the
  55766. map/reduce function, it sends this record range to the Task tracker.
  55767. If task crashes, the Task tracker knows which one was the last reported
  55768. range. On further attempts that range get skipped.</p>]]>
  55769. </doc>
  55770. </class>
  55771. <!-- end class org.apache.hadoop.mapred.SkipBadRecords -->
  55772. <!-- start class org.apache.hadoop.mapred.Task -->
  55773. <class name="Task" extends="java.lang.Object"
  55774. abstract="true"
  55775. static="false" final="false" visibility="public"
  55776. deprecated="not deprecated">
  55777. <implements name="org.apache.hadoop.io.Writable"/>
  55778. <implements name="org.apache.hadoop.conf.Configurable"/>
  55779. <constructor name="Task"
  55780. static="false" final="false" visibility="public"
  55781. deprecated="not deprecated">
  55782. </constructor>
  55783. <constructor name="Task" type="java.lang.String, org.apache.hadoop.mapred.TaskAttemptID, int, int"
  55784. static="false" final="false" visibility="public"
  55785. deprecated="not deprecated">
  55786. </constructor>
  55787. <method name="getFileSystemCounterNames" return="java.lang.String[]"
  55788. abstract="false" native="false" synchronized="false"
  55789. static="true" final="false" visibility="protected"
  55790. deprecated="not deprecated">
  55791. <param name="uriScheme" type="java.lang.String"/>
  55792. <doc>
  55793. <![CDATA[Counters to measure the usage of the different file systems.
  55794. Always return the String array with two elements. First one is the name of
  55795. BYTES_READ counter and second one is of the BYTES_WRITTEN counter.]]>
  55796. </doc>
  55797. </method>
  55798. <method name="setJobFile"
  55799. abstract="false" native="false" synchronized="false"
  55800. static="false" final="false" visibility="public"
  55801. deprecated="not deprecated">
  55802. <param name="jobFile" type="java.lang.String"/>
  55803. </method>
  55804. <method name="getJobFile" return="java.lang.String"
  55805. abstract="false" native="false" synchronized="false"
  55806. static="false" final="false" visibility="public"
  55807. deprecated="not deprecated">
  55808. </method>
  55809. <method name="getTaskID" return="org.apache.hadoop.mapred.TaskAttemptID"
  55810. abstract="false" native="false" synchronized="false"
  55811. static="false" final="false" visibility="public"
  55812. deprecated="not deprecated">
  55813. </method>
  55814. <method name="getNumSlotsRequired" return="int"
  55815. abstract="false" native="false" synchronized="false"
  55816. static="false" final="false" visibility="public"
  55817. deprecated="not deprecated">
  55818. </method>
  55819. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  55820. abstract="false" native="false" synchronized="false"
  55821. static="false" final="false" visibility="public"
  55822. deprecated="not deprecated">
  55823. <doc>
  55824. <![CDATA[Get the job name for this task.
  55825. @return the job name]]>
  55826. </doc>
  55827. </method>
  55828. <method name="setJobTokenSecret"
  55829. abstract="false" native="false" synchronized="false"
  55830. static="false" final="false" visibility="public"
  55831. deprecated="not deprecated">
  55832. <param name="tokenSecret" type="javax.crypto.SecretKey"/>
  55833. <doc>
  55834. <![CDATA[Set the job token secret
  55835. @param tokenSecret the secret]]>
  55836. </doc>
  55837. </method>
  55838. <method name="getJobTokenSecret" return="javax.crypto.SecretKey"
  55839. abstract="false" native="false" synchronized="false"
  55840. static="false" final="false" visibility="public"
  55841. deprecated="not deprecated">
  55842. <doc>
  55843. <![CDATA[Get the job token secret
  55844. @return the token secret]]>
  55845. </doc>
  55846. </method>
  55847. <method name="setJvmContext"
  55848. abstract="false" native="false" synchronized="false"
  55849. static="false" final="false" visibility="public"
  55850. deprecated="not deprecated">
  55851. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  55852. <doc>
  55853. <![CDATA[Set the task JvmContext
  55854. @param jvmContext]]>
  55855. </doc>
  55856. </method>
  55857. <method name="getJvmContext" return="org.apache.hadoop.mapred.JvmContext"
  55858. abstract="false" native="false" synchronized="false"
  55859. static="false" final="false" visibility="public"
  55860. deprecated="not deprecated">
  55861. <doc>
  55862. <![CDATA[Gets the task JvmContext
  55863. @return the jvm context]]>
  55864. </doc>
  55865. </method>
  55866. <method name="getPartition" return="int"
  55867. abstract="false" native="false" synchronized="false"
  55868. static="false" final="false" visibility="public"
  55869. deprecated="not deprecated">
  55870. <doc>
  55871. <![CDATA[Get the index of this task within the job.
  55872. @return the integer part of the task id]]>
  55873. </doc>
  55874. </method>
  55875. <method name="getPhase" return="org.apache.hadoop.mapred.TaskStatus.Phase"
  55876. abstract="false" native="false" synchronized="true"
  55877. static="false" final="false" visibility="public"
  55878. deprecated="not deprecated">
  55879. <doc>
  55880. <![CDATA[Return current phase of the task.
  55881. needs to be synchronized as communication thread sends the phase every second
  55882. @return the curent phase of the task]]>
  55883. </doc>
  55884. </method>
  55885. <method name="setPhase"
  55886. abstract="false" native="false" synchronized="true"
  55887. static="false" final="false" visibility="protected"
  55888. deprecated="not deprecated">
  55889. <param name="phase" type="org.apache.hadoop.mapred.TaskStatus.Phase"/>
  55890. <doc>
  55891. <![CDATA[Set current phase of the task.
  55892. @param phase task phase]]>
  55893. </doc>
  55894. </method>
  55895. <method name="toWriteSkipRecs" return="boolean"
  55896. abstract="false" native="false" synchronized="false"
  55897. static="false" final="false" visibility="protected"
  55898. deprecated="not deprecated">
  55899. <doc>
  55900. <![CDATA[Get whether to write skip records.]]>
  55901. </doc>
  55902. </method>
  55903. <method name="setWriteSkipRecs"
  55904. abstract="false" native="false" synchronized="false"
  55905. static="false" final="false" visibility="protected"
  55906. deprecated="not deprecated">
  55907. <param name="writeSkipRecs" type="boolean"/>
  55908. <doc>
  55909. <![CDATA[Set whether to write skip records.]]>
  55910. </doc>
  55911. </method>
  55912. <method name="reportFatalError"
  55913. abstract="false" native="false" synchronized="false"
  55914. static="false" final="false" visibility="protected"
  55915. deprecated="not deprecated">
  55916. <param name="id" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  55917. <param name="throwable" type="java.lang.Throwable"/>
  55918. <param name="logMsg" type="java.lang.String"/>
  55919. <doc>
  55920. <![CDATA[Report a fatal error to the parent (task) tracker.]]>
  55921. </doc>
  55922. </method>
  55923. <method name="getSkipRanges" return="org.apache.hadoop.mapred.SortedRanges"
  55924. abstract="false" native="false" synchronized="false"
  55925. static="false" final="false" visibility="public"
  55926. deprecated="not deprecated">
  55927. <doc>
  55928. <![CDATA[Get skipRanges.]]>
  55929. </doc>
  55930. </method>
  55931. <method name="setSkipRanges"
  55932. abstract="false" native="false" synchronized="false"
  55933. static="false" final="false" visibility="public"
  55934. deprecated="not deprecated">
  55935. <param name="skipRanges" type="org.apache.hadoop.mapred.SortedRanges"/>
  55936. <doc>
  55937. <![CDATA[Set skipRanges.]]>
  55938. </doc>
  55939. </method>
  55940. <method name="isSkipping" return="boolean"
  55941. abstract="false" native="false" synchronized="false"
  55942. static="false" final="false" visibility="public"
  55943. deprecated="not deprecated">
  55944. <doc>
  55945. <![CDATA[Is Task in skipping mode.]]>
  55946. </doc>
  55947. </method>
  55948. <method name="setSkipping"
  55949. abstract="false" native="false" synchronized="false"
  55950. static="false" final="false" visibility="public"
  55951. deprecated="not deprecated">
  55952. <param name="skipping" type="boolean"/>
  55953. <doc>
  55954. <![CDATA[Sets whether to run Task in skipping mode.
  55955. @param skipping]]>
  55956. </doc>
  55957. </method>
  55958. <method name="getUser" return="java.lang.String"
  55959. abstract="false" native="false" synchronized="false"
  55960. static="false" final="false" visibility="public"
  55961. deprecated="not deprecated">
  55962. <doc>
  55963. <![CDATA[Get the name of the user running the job/task. TaskTracker needs task's
  55964. user name even before it's JobConf is localized. So we explicitly serialize
  55965. the user name.
  55966. @return user]]>
  55967. </doc>
  55968. </method>
  55969. <method name="write"
  55970. abstract="false" native="false" synchronized="false"
  55971. static="false" final="false" visibility="public"
  55972. deprecated="not deprecated">
  55973. <param name="out" type="java.io.DataOutput"/>
  55974. <exception name="IOException" type="java.io.IOException"/>
  55975. </method>
  55976. <method name="readFields"
  55977. abstract="false" native="false" synchronized="false"
  55978. static="false" final="false" visibility="public"
  55979. deprecated="not deprecated">
  55980. <param name="in" type="java.io.DataInput"/>
  55981. <exception name="IOException" type="java.io.IOException"/>
  55982. </method>
  55983. <method name="toString" return="java.lang.String"
  55984. abstract="false" native="false" synchronized="false"
  55985. static="false" final="false" visibility="public"
  55986. deprecated="not deprecated">
  55987. </method>
  55988. <method name="localizeConfiguration"
  55989. abstract="false" native="false" synchronized="false"
  55990. static="false" final="false" visibility="public"
  55991. deprecated="not deprecated">
  55992. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  55993. <exception name="IOException" type="java.io.IOException"/>
  55994. <doc>
  55995. <![CDATA[Localize the given JobConf to be specific for this task.]]>
  55996. </doc>
  55997. </method>
  55998. <method name="run"
  55999. abstract="true" native="false" synchronized="false"
  56000. static="false" final="false" visibility="public"
  56001. deprecated="not deprecated">
  56002. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  56003. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  56004. <exception name="IOException" type="java.io.IOException"/>
  56005. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  56006. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  56007. <doc>
  56008. <![CDATA[Run this task as a part of the named job. This method is executed in the
  56009. child process and is what invokes user-supplied map, reduce, etc. methods.
  56010. @param umbilical for progress reports]]>
  56011. </doc>
  56012. </method>
  56013. <method name="createRunner" return="org.apache.hadoop.mapred.TaskRunner"
  56014. abstract="true" native="false" synchronized="false"
  56015. static="false" final="false" visibility="public"
  56016. deprecated="not deprecated">
  56017. <param name="tracker" type="org.apache.hadoop.mapred.TaskTracker"/>
  56018. <param name="tip" type="org.apache.hadoop.mapred.TaskTracker.TaskInProgress"/>
  56019. <param name="rjob" type="org.apache.hadoop.mapred.TaskTracker.RunningJob"/>
  56020. <exception name="IOException" type="java.io.IOException"/>
  56021. <doc>
  56022. <![CDATA[Return an approprate thread runner for this task.
  56023. @param tip TODO]]>
  56024. </doc>
  56025. </method>
  56026. <method name="isMapTask" return="boolean"
  56027. abstract="true" native="false" synchronized="false"
  56028. static="false" final="false" visibility="public"
  56029. deprecated="not deprecated">
  56030. </method>
  56031. <method name="getProgress" return="org.apache.hadoop.util.Progress"
  56032. abstract="false" native="false" synchronized="false"
  56033. static="false" final="false" visibility="public"
  56034. deprecated="not deprecated">
  56035. </method>
  56036. <method name="initialize"
  56037. abstract="false" native="false" synchronized="false"
  56038. static="false" final="false" visibility="public"
  56039. deprecated="not deprecated">
  56040. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  56041. <param name="id" type="org.apache.hadoop.mapred.JobID"/>
  56042. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  56043. <param name="useNewApi" type="boolean"/>
  56044. <exception name="IOException" type="java.io.IOException"/>
  56045. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  56046. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  56047. </method>
  56048. <method name="reportNextRecordRange"
  56049. abstract="false" native="false" synchronized="false"
  56050. static="false" final="false" visibility="protected"
  56051. deprecated="not deprecated">
  56052. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  56053. <param name="nextRecIndex" type="long"/>
  56054. <exception name="IOException" type="java.io.IOException"/>
  56055. <doc>
  56056. <![CDATA[Reports the next executing record range to TaskTracker.
  56057. @param umbilical
  56058. @param nextRecIndex the record index which would be fed next.
  56059. @throws IOException]]>
  56060. </doc>
  56061. </method>
  56062. <method name="done"
  56063. abstract="false" native="false" synchronized="false"
  56064. static="false" final="false" visibility="public"
  56065. deprecated="not deprecated">
  56066. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  56067. <param name="reporter" type="org.apache.hadoop.mapred.Task.TaskReporter"/>
  56068. <exception name="IOException" type="java.io.IOException"/>
  56069. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  56070. </method>
  56071. <method name="statusUpdate"
  56072. abstract="false" native="false" synchronized="false"
  56073. static="false" final="false" visibility="protected"
  56074. deprecated="not deprecated">
  56075. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  56076. <exception name="IOException" type="java.io.IOException"/>
  56077. </method>
  56078. <method name="runTaskCleanupTask"
  56079. abstract="false" native="false" synchronized="false"
  56080. static="false" final="false" visibility="protected"
  56081. deprecated="not deprecated">
  56082. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  56083. <param name="reporter" type="org.apache.hadoop.mapred.Task.TaskReporter"/>
  56084. <exception name="IOException" type="java.io.IOException"/>
  56085. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  56086. </method>
  56087. <method name="runJobCleanupTask"
  56088. abstract="false" native="false" synchronized="false"
  56089. static="false" final="false" visibility="protected"
  56090. deprecated="not deprecated">
  56091. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  56092. <param name="reporter" type="org.apache.hadoop.mapred.Task.TaskReporter"/>
  56093. <exception name="IOException" type="java.io.IOException"/>
  56094. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  56095. </method>
  56096. <method name="supportIsolationRunner" return="boolean"
  56097. abstract="false" native="false" synchronized="false"
  56098. static="false" final="false" visibility="protected"
  56099. deprecated="not deprecated">
  56100. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  56101. </method>
  56102. <method name="runJobSetupTask"
  56103. abstract="false" native="false" synchronized="false"
  56104. static="false" final="false" visibility="protected"
  56105. deprecated="not deprecated">
  56106. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  56107. <param name="reporter" type="org.apache.hadoop.mapred.Task.TaskReporter"/>
  56108. <exception name="IOException" type="java.io.IOException"/>
  56109. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  56110. </method>
  56111. <method name="getFsStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  56112. abstract="false" native="false" synchronized="false"
  56113. static="true" final="false" visibility="protected"
  56114. deprecated="not deprecated">
  56115. <param name="path" type="org.apache.hadoop.fs.Path"/>
  56116. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  56117. <exception name="IOException" type="java.io.IOException"/>
  56118. <doc>
  56119. <![CDATA[Gets a handle to the Statistics instance based on the scheme associated
  56120. with path.
  56121. @param path
  56122. the path.
  56123. @return a Statistics instance, or null if none is found for the scheme.]]>
  56124. </doc>
  56125. </method>
  56126. <method name="setConf"
  56127. abstract="false" native="false" synchronized="false"
  56128. static="false" final="false" visibility="public"
  56129. deprecated="not deprecated">
  56130. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  56131. </method>
  56132. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  56133. abstract="false" native="false" synchronized="false"
  56134. static="false" final="false" visibility="public"
  56135. deprecated="not deprecated">
  56136. </method>
  56137. <method name="createReduceContext" return="org.apache.hadoop.mapreduce.Reducer.Context"
  56138. abstract="false" native="false" synchronized="false"
  56139. static="true" final="false" visibility="protected"
  56140. deprecated="not deprecated">
  56141. <param name="reducer" type="org.apache.hadoop.mapreduce.Reducer"/>
  56142. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  56143. <param name="taskId" type="org.apache.hadoop.mapreduce.TaskAttemptID"/>
  56144. <param name="rIter" type="org.apache.hadoop.mapred.RawKeyValueIterator"/>
  56145. <param name="inputKeyCounter" type="org.apache.hadoop.mapreduce.Counter"/>
  56146. <param name="inputValueCounter" type="org.apache.hadoop.mapreduce.Counter"/>
  56147. <param name="output" type="org.apache.hadoop.mapreduce.RecordWriter"/>
  56148. <param name="committer" type="org.apache.hadoop.mapreduce.OutputCommitter"/>
  56149. <param name="reporter" type="org.apache.hadoop.mapreduce.StatusReporter"/>
  56150. <param name="comparator" type="org.apache.hadoop.io.RawComparator"/>
  56151. <param name="keyClass" type="java.lang.Class"/>
  56152. <param name="valueClass" type="java.lang.Class"/>
  56153. <exception name="IOException" type="java.io.IOException"/>
  56154. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  56155. </method>
  56156. <field name="MR_COMBINE_RECORDS_BEFORE_PROGRESS" type="java.lang.String"
  56157. transient="false" volatile="false"
  56158. static="true" final="true" visibility="public"
  56159. deprecated="not deprecated">
  56160. </field>
  56161. <field name="DEFAULT_MR_COMBINE_RECORDS_BEFORE_PROGRESS" type="long"
  56162. transient="false" volatile="false"
  56163. static="true" final="true" visibility="public"
  56164. deprecated="not deprecated">
  56165. </field>
  56166. <field name="FILESYSTEM_COUNTER_GROUP" type="java.lang.String"
  56167. transient="false" volatile="false"
  56168. static="true" final="true" visibility="protected"
  56169. deprecated="not deprecated">
  56170. <doc>
  56171. <![CDATA[Name of the FileSystem counters' group]]>
  56172. </doc>
  56173. </field>
  56174. <field name="jobRunStateForCleanup" type="org.apache.hadoop.mapreduce.JobStatus.State"
  56175. transient="false" volatile="false"
  56176. static="false" final="false" visibility="protected"
  56177. deprecated="not deprecated">
  56178. </field>
  56179. <field name="jobCleanup" type="boolean"
  56180. transient="false" volatile="false"
  56181. static="false" final="false" visibility="protected"
  56182. deprecated="not deprecated">
  56183. </field>
  56184. <field name="jobSetup" type="boolean"
  56185. transient="false" volatile="false"
  56186. static="false" final="false" visibility="protected"
  56187. deprecated="not deprecated">
  56188. </field>
  56189. <field name="taskCleanup" type="boolean"
  56190. transient="false" volatile="false"
  56191. static="false" final="false" visibility="protected"
  56192. deprecated="not deprecated">
  56193. </field>
  56194. <field name="conf" type="org.apache.hadoop.mapred.JobConf"
  56195. transient="false" volatile="false"
  56196. static="false" final="false" visibility="protected"
  56197. deprecated="not deprecated">
  56198. </field>
  56199. <field name="mapOutputFile" type="org.apache.hadoop.mapred.MapOutputFile"
  56200. transient="false" volatile="false"
  56201. static="false" final="false" visibility="protected"
  56202. deprecated="not deprecated">
  56203. </field>
  56204. <field name="lDirAlloc" type="org.apache.hadoop.fs.LocalDirAllocator"
  56205. transient="false" volatile="false"
  56206. static="false" final="false" visibility="protected"
  56207. deprecated="not deprecated">
  56208. </field>
  56209. <field name="jobContext" type="org.apache.hadoop.mapred.JobContext"
  56210. transient="false" volatile="false"
  56211. static="false" final="false" visibility="protected"
  56212. deprecated="not deprecated">
  56213. </field>
  56214. <field name="taskContext" type="org.apache.hadoop.mapred.TaskAttemptContext"
  56215. transient="false" volatile="false"
  56216. static="false" final="false" visibility="protected"
  56217. deprecated="not deprecated">
  56218. </field>
  56219. <field name="outputFormat" type="org.apache.hadoop.mapreduce.OutputFormat"
  56220. transient="false" volatile="false"
  56221. static="false" final="false" visibility="protected"
  56222. deprecated="not deprecated">
  56223. </field>
  56224. <field name="committer" type="org.apache.hadoop.mapreduce.OutputCommitter"
  56225. transient="false" volatile="false"
  56226. static="false" final="false" visibility="protected"
  56227. deprecated="not deprecated">
  56228. </field>
  56229. <field name="spilledRecordsCounter" type="org.apache.hadoop.mapred.Counters.Counter"
  56230. transient="false" volatile="false"
  56231. static="false" final="true" visibility="protected"
  56232. deprecated="not deprecated">
  56233. </field>
  56234. <field name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"
  56235. transient="false" volatile="false"
  56236. static="false" final="false" visibility="protected"
  56237. deprecated="not deprecated">
  56238. </field>
  56239. <field name="tokenSecret" type="javax.crypto.SecretKey"
  56240. transient="false" volatile="false"
  56241. static="false" final="false" visibility="protected"
  56242. deprecated="not deprecated">
  56243. </field>
  56244. <field name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"
  56245. transient="false" volatile="false"
  56246. static="false" final="false" visibility="protected"
  56247. deprecated="not deprecated">
  56248. </field>
  56249. <field name="PROGRESS_INTERVAL" type="int"
  56250. transient="false" volatile="false"
  56251. static="true" final="true" visibility="public"
  56252. deprecated="not deprecated">
  56253. <doc>
  56254. <![CDATA[The number of milliseconds between progress reports.]]>
  56255. </doc>
  56256. </field>
  56257. <doc>
  56258. <![CDATA[Base class for tasks.
  56259. This is NOT a public interface.]]>
  56260. </doc>
  56261. </class>
  56262. <!-- end class org.apache.hadoop.mapred.Task -->
  56263. <!-- start class org.apache.hadoop.mapred.Task.CombineOutputCollector -->
  56264. <class name="Task.CombineOutputCollector" extends="java.lang.Object"
  56265. abstract="false"
  56266. static="true" final="false" visibility="protected"
  56267. deprecated="not deprecated">
  56268. <implements name="org.apache.hadoop.mapred.OutputCollector"/>
  56269. <constructor name="Task.CombineOutputCollector" type="org.apache.hadoop.mapred.Counters.Counter, org.apache.hadoop.util.Progressable, org.apache.hadoop.conf.Configuration"
  56270. static="false" final="false" visibility="public"
  56271. deprecated="not deprecated">
  56272. </constructor>
  56273. <method name="setWriter"
  56274. abstract="false" native="false" synchronized="true"
  56275. static="false" final="false" visibility="public"
  56276. deprecated="not deprecated">
  56277. <param name="writer" type="org.apache.hadoop.mapred.IFile.Writer"/>
  56278. </method>
  56279. <method name="collect"
  56280. abstract="false" native="false" synchronized="true"
  56281. static="false" final="false" visibility="public"
  56282. deprecated="not deprecated">
  56283. <param name="key" type="java.lang.Object"/>
  56284. <param name="value" type="java.lang.Object"/>
  56285. <exception name="IOException" type="java.io.IOException"/>
  56286. </method>
  56287. <doc>
  56288. <![CDATA[OutputCollector for the combiner.]]>
  56289. </doc>
  56290. </class>
  56291. <!-- end class org.apache.hadoop.mapred.Task.CombineOutputCollector -->
  56292. <!-- start class org.apache.hadoop.mapred.Task.CombinerRunner -->
  56293. <class name="Task.CombinerRunner" extends="java.lang.Object"
  56294. abstract="true"
  56295. static="true" final="false" visibility="protected"
  56296. deprecated="not deprecated">
  56297. <field name="inputCounter" type="org.apache.hadoop.mapred.Counters.Counter"
  56298. transient="false" volatile="false"
  56299. static="false" final="true" visibility="protected"
  56300. deprecated="not deprecated">
  56301. </field>
  56302. <field name="job" type="org.apache.hadoop.mapred.JobConf"
  56303. transient="false" volatile="false"
  56304. static="false" final="true" visibility="protected"
  56305. deprecated="not deprecated">
  56306. </field>
  56307. <field name="reporter" type="org.apache.hadoop.mapred.Task.TaskReporter"
  56308. transient="false" volatile="false"
  56309. static="false" final="true" visibility="protected"
  56310. deprecated="not deprecated">
  56311. </field>
  56312. </class>
  56313. <!-- end class org.apache.hadoop.mapred.Task.CombinerRunner -->
  56314. <!-- start class org.apache.hadoop.mapred.Task.CombineValuesIterator -->
  56315. <class name="Task.CombineValuesIterator" extends="org.apache.hadoop.mapred.Task.ValuesIterator"
  56316. abstract="false"
  56317. static="true" final="false" visibility="protected"
  56318. deprecated="not deprecated">
  56319. <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"
  56320. static="false" final="false" visibility="public"
  56321. deprecated="not deprecated">
  56322. <exception name="IOException" type="java.io.IOException"/>
  56323. </constructor>
  56324. <method name="next" return="java.lang.Object"
  56325. abstract="false" native="false" synchronized="false"
  56326. static="false" final="false" visibility="public"
  56327. deprecated="not deprecated">
  56328. </method>
  56329. </class>
  56330. <!-- end class org.apache.hadoop.mapred.Task.CombineValuesIterator -->
  56331. <!-- start class org.apache.hadoop.mapred.Task.Counter -->
  56332. <class name="Task.Counter" extends="java.lang.Enum"
  56333. abstract="false"
  56334. static="true" final="true" visibility="public"
  56335. deprecated="not deprecated">
  56336. <method name="values" return="org.apache.hadoop.mapred.Task.Counter[]"
  56337. abstract="false" native="false" synchronized="false"
  56338. static="true" final="false" visibility="public"
  56339. deprecated="not deprecated">
  56340. </method>
  56341. <method name="valueOf" return="org.apache.hadoop.mapred.Task.Counter"
  56342. abstract="false" native="false" synchronized="false"
  56343. static="true" final="false" visibility="public"
  56344. deprecated="not deprecated">
  56345. <param name="name" type="java.lang.String"/>
  56346. </method>
  56347. <field name="MAP_INPUT_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  56348. transient="false" volatile="false"
  56349. static="true" final="true" visibility="public"
  56350. deprecated="not deprecated">
  56351. </field>
  56352. <field name="MAP_OUTPUT_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  56353. transient="false" volatile="false"
  56354. static="true" final="true" visibility="public"
  56355. deprecated="not deprecated">
  56356. </field>
  56357. <field name="MAP_SKIPPED_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  56358. transient="false" volatile="false"
  56359. static="true" final="true" visibility="public"
  56360. deprecated="not deprecated">
  56361. </field>
  56362. <field name="MAP_INPUT_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  56363. transient="false" volatile="false"
  56364. static="true" final="true" visibility="public"
  56365. deprecated="not deprecated">
  56366. </field>
  56367. <field name="MAP_OUTPUT_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  56368. transient="false" volatile="false"
  56369. static="true" final="true" visibility="public"
  56370. deprecated="not deprecated">
  56371. </field>
  56372. <field name="MAP_OUTPUT_MATERIALIZED_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  56373. transient="false" volatile="false"
  56374. static="true" final="true" visibility="public"
  56375. deprecated="not deprecated">
  56376. </field>
  56377. <field name="COMBINE_INPUT_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  56378. transient="false" volatile="false"
  56379. static="true" final="true" visibility="public"
  56380. deprecated="not deprecated">
  56381. </field>
  56382. <field name="COMBINE_OUTPUT_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  56383. transient="false" volatile="false"
  56384. static="true" final="true" visibility="public"
  56385. deprecated="not deprecated">
  56386. </field>
  56387. <field name="REDUCE_INPUT_GROUPS" type="org.apache.hadoop.mapred.Task.Counter"
  56388. transient="false" volatile="false"
  56389. static="true" final="true" visibility="public"
  56390. deprecated="not deprecated">
  56391. </field>
  56392. <field name="REDUCE_SHUFFLE_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  56393. transient="false" volatile="false"
  56394. static="true" final="true" visibility="public"
  56395. deprecated="not deprecated">
  56396. </field>
  56397. <field name="REDUCE_INPUT_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  56398. transient="false" volatile="false"
  56399. static="true" final="true" visibility="public"
  56400. deprecated="not deprecated">
  56401. </field>
  56402. <field name="REDUCE_OUTPUT_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  56403. transient="false" volatile="false"
  56404. static="true" final="true" visibility="public"
  56405. deprecated="not deprecated">
  56406. </field>
  56407. <field name="REDUCE_SKIPPED_GROUPS" type="org.apache.hadoop.mapred.Task.Counter"
  56408. transient="false" volatile="false"
  56409. static="true" final="true" visibility="public"
  56410. deprecated="not deprecated">
  56411. </field>
  56412. <field name="REDUCE_SKIPPED_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  56413. transient="false" volatile="false"
  56414. static="true" final="true" visibility="public"
  56415. deprecated="not deprecated">
  56416. </field>
  56417. <field name="SPILLED_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  56418. transient="false" volatile="false"
  56419. static="true" final="true" visibility="public"
  56420. deprecated="not deprecated">
  56421. </field>
  56422. <field name="SPLIT_RAW_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  56423. transient="false" volatile="false"
  56424. static="true" final="true" visibility="public"
  56425. deprecated="not deprecated">
  56426. </field>
  56427. <field name="CPU_MILLISECONDS" type="org.apache.hadoop.mapred.Task.Counter"
  56428. transient="false" volatile="false"
  56429. static="true" final="true" visibility="public"
  56430. deprecated="not deprecated">
  56431. </field>
  56432. <field name="PHYSICAL_MEMORY_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  56433. transient="false" volatile="false"
  56434. static="true" final="true" visibility="public"
  56435. deprecated="not deprecated">
  56436. </field>
  56437. <field name="VIRTUAL_MEMORY_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  56438. transient="false" volatile="false"
  56439. static="true" final="true" visibility="public"
  56440. deprecated="not deprecated">
  56441. </field>
  56442. <field name="COMMITTED_HEAP_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  56443. transient="false" volatile="false"
  56444. static="true" final="true" visibility="public"
  56445. deprecated="not deprecated">
  56446. </field>
  56447. </class>
  56448. <!-- end class org.apache.hadoop.mapred.Task.Counter -->
  56449. <!-- start class org.apache.hadoop.mapred.Task.NewCombinerRunner -->
  56450. <class name="Task.NewCombinerRunner" extends="org.apache.hadoop.mapred.Task.CombinerRunner"
  56451. abstract="false"
  56452. static="true" final="false" visibility="protected"
  56453. deprecated="not deprecated">
  56454. </class>
  56455. <!-- end class org.apache.hadoop.mapred.Task.NewCombinerRunner -->
  56456. <!-- start class org.apache.hadoop.mapred.Task.OldCombinerRunner -->
  56457. <class name="Task.OldCombinerRunner" extends="org.apache.hadoop.mapred.Task.CombinerRunner"
  56458. abstract="false"
  56459. static="true" final="false" visibility="protected"
  56460. deprecated="not deprecated">
  56461. <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"
  56462. static="false" final="false" visibility="protected"
  56463. deprecated="not deprecated">
  56464. </constructor>
  56465. <method name="combine"
  56466. abstract="false" native="false" synchronized="false"
  56467. static="false" final="false" visibility="protected"
  56468. deprecated="not deprecated">
  56469. <param name="kvIter" type="org.apache.hadoop.mapred.RawKeyValueIterator"/>
  56470. <param name="combineCollector" type="org.apache.hadoop.mapred.OutputCollector"/>
  56471. <exception name="IOException" type="java.io.IOException"/>
  56472. </method>
  56473. </class>
  56474. <!-- end class org.apache.hadoop.mapred.Task.OldCombinerRunner -->
  56475. <!-- start class org.apache.hadoop.mapred.Task.TaskReporter -->
  56476. <class name="Task.TaskReporter" extends="org.apache.hadoop.mapreduce.StatusReporter"
  56477. abstract="false"
  56478. static="false" final="false" visibility="protected"
  56479. deprecated="not deprecated">
  56480. <implements name="java.lang.Runnable"/>
  56481. <implements name="org.apache.hadoop.mapred.Reporter"/>
  56482. <method name="setStatus"
  56483. abstract="false" native="false" synchronized="false"
  56484. static="false" final="false" visibility="public"
  56485. deprecated="not deprecated">
  56486. <param name="status" type="java.lang.String"/>
  56487. </method>
  56488. <method name="setProgress"
  56489. abstract="false" native="false" synchronized="false"
  56490. static="false" final="false" visibility="public"
  56491. deprecated="not deprecated">
  56492. <param name="progress" type="float"/>
  56493. </method>
  56494. <method name="getProgress" return="float"
  56495. abstract="false" native="false" synchronized="false"
  56496. static="false" final="false" visibility="public"
  56497. deprecated="not deprecated">
  56498. </method>
  56499. <method name="progress"
  56500. abstract="false" native="false" synchronized="false"
  56501. static="false" final="false" visibility="public"
  56502. deprecated="not deprecated">
  56503. </method>
  56504. <method name="getCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  56505. abstract="false" native="false" synchronized="false"
  56506. static="false" final="false" visibility="public"
  56507. deprecated="not deprecated">
  56508. <param name="group" type="java.lang.String"/>
  56509. <param name="name" type="java.lang.String"/>
  56510. </method>
  56511. <method name="getCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  56512. abstract="false" native="false" synchronized="false"
  56513. static="false" final="false" visibility="public"
  56514. deprecated="not deprecated">
  56515. <param name="name" type="java.lang.Enum"/>
  56516. </method>
  56517. <method name="incrCounter"
  56518. abstract="false" native="false" synchronized="false"
  56519. static="false" final="false" visibility="public"
  56520. deprecated="not deprecated">
  56521. <param name="key" type="java.lang.Enum"/>
  56522. <param name="amount" type="long"/>
  56523. </method>
  56524. <method name="incrCounter"
  56525. abstract="false" native="false" synchronized="false"
  56526. static="false" final="false" visibility="public"
  56527. deprecated="not deprecated">
  56528. <param name="group" type="java.lang.String"/>
  56529. <param name="counter" type="java.lang.String"/>
  56530. <param name="amount" type="long"/>
  56531. </method>
  56532. <method name="setInputSplit"
  56533. abstract="false" native="false" synchronized="false"
  56534. static="false" final="false" visibility="public"
  56535. deprecated="not deprecated">
  56536. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  56537. </method>
  56538. <method name="getInputSplit" return="org.apache.hadoop.mapred.InputSplit"
  56539. abstract="false" native="false" synchronized="false"
  56540. static="false" final="false" visibility="public"
  56541. deprecated="not deprecated">
  56542. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  56543. </method>
  56544. <method name="run"
  56545. abstract="false" native="false" synchronized="false"
  56546. static="false" final="false" visibility="public"
  56547. deprecated="not deprecated">
  56548. <doc>
  56549. <![CDATA[The communication thread handles communication with the parent (Task Tracker).
  56550. It sends progress updates if progress has been made or if the task needs to
  56551. let the parent know that it's alive. It also pings the parent to see if it's alive.]]>
  56552. </doc>
  56553. </method>
  56554. <method name="startCommunicationThread"
  56555. abstract="false" native="false" synchronized="false"
  56556. static="false" final="false" visibility="public"
  56557. deprecated="not deprecated">
  56558. </method>
  56559. <method name="stopCommunicationThread"
  56560. abstract="false" native="false" synchronized="false"
  56561. static="false" final="false" visibility="public"
  56562. deprecated="not deprecated">
  56563. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  56564. </method>
  56565. </class>
  56566. <!-- end class org.apache.hadoop.mapred.Task.TaskReporter -->
  56567. <!-- start class org.apache.hadoop.mapred.TaskAttemptContext -->
  56568. <class name="TaskAttemptContext" extends="org.apache.hadoop.mapreduce.TaskAttemptContext"
  56569. abstract="false"
  56570. static="false" final="false" visibility="public"
  56571. deprecated="not deprecated">
  56572. <method name="getTaskAttemptID" return="org.apache.hadoop.mapred.TaskAttemptID"
  56573. abstract="false" native="false" synchronized="false"
  56574. static="false" final="false" visibility="public"
  56575. deprecated="not deprecated">
  56576. <doc>
  56577. <![CDATA[Get the taskAttemptID.
  56578. @return TaskAttemptID]]>
  56579. </doc>
  56580. </method>
  56581. <method name="getProgressible" return="org.apache.hadoop.util.Progressable"
  56582. abstract="false" native="false" synchronized="false"
  56583. static="false" final="false" visibility="public"
  56584. deprecated="not deprecated">
  56585. </method>
  56586. <method name="getJobConf" return="org.apache.hadoop.mapred.JobConf"
  56587. abstract="false" native="false" synchronized="false"
  56588. static="false" final="false" visibility="public"
  56589. deprecated="not deprecated">
  56590. </method>
  56591. <method name="progress"
  56592. abstract="false" native="false" synchronized="false"
  56593. static="false" final="false" visibility="public"
  56594. deprecated="not deprecated">
  56595. </method>
  56596. </class>
  56597. <!-- end class org.apache.hadoop.mapred.TaskAttemptContext -->
  56598. <!-- start class org.apache.hadoop.mapred.TaskAttemptID -->
  56599. <class name="TaskAttemptID" extends="org.apache.hadoop.mapreduce.TaskAttemptID"
  56600. abstract="false"
  56601. static="false" final="false" visibility="public"
  56602. deprecated="not deprecated">
  56603. <constructor name="TaskAttemptID" type="org.apache.hadoop.mapred.TaskID, int"
  56604. static="false" final="false" visibility="public"
  56605. deprecated="not deprecated">
  56606. <doc>
  56607. <![CDATA[Constructs a TaskAttemptID object from given {@link TaskID}.
  56608. @param taskId TaskID that this task belongs to
  56609. @param id the task attempt number]]>
  56610. </doc>
  56611. </constructor>
  56612. <constructor name="TaskAttemptID" type="java.lang.String, int, boolean, int, int"
  56613. static="false" final="false" visibility="public"
  56614. deprecated="not deprecated">
  56615. <doc>
  56616. <![CDATA[Constructs a TaskId object from given parts.
  56617. @param jtIdentifier jobTracker identifier
  56618. @param jobId job number
  56619. @param isMap whether the tip is a map
  56620. @param taskId taskId number
  56621. @param id the task attempt number]]>
  56622. </doc>
  56623. </constructor>
  56624. <constructor name="TaskAttemptID"
  56625. static="false" final="false" visibility="public"
  56626. deprecated="not deprecated">
  56627. </constructor>
  56628. <method name="downgrade" return="org.apache.hadoop.mapred.TaskAttemptID"
  56629. abstract="false" native="false" synchronized="false"
  56630. static="true" final="false" visibility="public"
  56631. deprecated="not deprecated">
  56632. <param name="old" type="org.apache.hadoop.mapreduce.TaskAttemptID"/>
  56633. <doc>
  56634. <![CDATA[Downgrade a new TaskAttemptID to an old one
  56635. @param old the new id
  56636. @return either old or a new TaskAttemptID constructed to match old]]>
  56637. </doc>
  56638. </method>
  56639. <method name="getTaskID" return="org.apache.hadoop.mapred.TaskID"
  56640. abstract="false" native="false" synchronized="false"
  56641. static="false" final="false" visibility="public"
  56642. deprecated="not deprecated">
  56643. </method>
  56644. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  56645. abstract="false" native="false" synchronized="false"
  56646. static="false" final="false" visibility="public"
  56647. deprecated="not deprecated">
  56648. </method>
  56649. <method name="read" return="org.apache.hadoop.mapred.TaskAttemptID"
  56650. abstract="false" native="false" synchronized="false"
  56651. static="true" final="false" visibility="public"
  56652. deprecated="not deprecated">
  56653. <param name="in" type="java.io.DataInput"/>
  56654. <exception name="IOException" type="java.io.IOException"/>
  56655. </method>
  56656. <method name="forName" return="org.apache.hadoop.mapred.TaskAttemptID"
  56657. abstract="false" native="false" synchronized="false"
  56658. static="true" final="false" visibility="public"
  56659. deprecated="not deprecated">
  56660. <param name="str" type="java.lang.String"/>
  56661. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  56662. <doc>
  56663. <![CDATA[Construct a TaskAttemptID object from given string
  56664. @return constructed TaskAttemptID object or null if the given String is null
  56665. @throws IllegalArgumentException if the given string is malformed]]>
  56666. </doc>
  56667. </method>
  56668. <method name="getTaskAttemptIDsPattern" return="java.lang.String"
  56669. abstract="false" native="false" synchronized="false"
  56670. static="true" final="false" visibility="public"
  56671. deprecated="not deprecated">
  56672. <param name="jtIdentifier" type="java.lang.String"/>
  56673. <param name="jobId" type="java.lang.Integer"/>
  56674. <param name="isMap" type="java.lang.Boolean"/>
  56675. <param name="taskId" type="java.lang.Integer"/>
  56676. <param name="attemptId" type="java.lang.Integer"/>
  56677. <doc>
  56678. <![CDATA[Returns a regex pattern which matches task attempt IDs. Arguments can
  56679. be given null, in which case that part of the regex will be generic.
  56680. For example to obtain a regex matching <i>all task attempt IDs</i>
  56681. of <i>any jobtracker</i>, in <i>any job</i>, of the <i>first
  56682. map task</i>, we would use :
  56683. <pre>
  56684. TaskAttemptID.getTaskAttemptIDsPattern(null, null, true, 1, null);
  56685. </pre>
  56686. which will return :
  56687. <pre> "attempt_[^_]*_[0-9]*_m_000001_[0-9]*" </pre>
  56688. @param jtIdentifier jobTracker identifier, or null
  56689. @param jobId job number, or null
  56690. @param isMap whether the tip is a map, or null
  56691. @param taskId taskId number, or null
  56692. @param attemptId the task attempt number, or null
  56693. @return a regex pattern matching TaskAttemptIDs]]>
  56694. </doc>
  56695. </method>
  56696. <doc>
  56697. <![CDATA[TaskAttemptID represents the immutable and unique identifier for
  56698. a task attempt. Each task attempt is one particular instance of a Map or
  56699. Reduce Task identified by its TaskID.
  56700. TaskAttemptID consists of 2 parts. First part is the
  56701. {@link TaskID}, that this TaskAttemptID belongs to.
  56702. Second part is the task attempt number. <br>
  56703. An example TaskAttemptID is :
  56704. <code>attempt_200707121733_0003_m_000005_0</code> , which represents the
  56705. zeroth task attempt for the fifth map task in the third job
  56706. running at the jobtracker started at <code>200707121733</code>.
  56707. <p>
  56708. Applications should never construct or parse TaskAttemptID strings
  56709. , but rather use appropriate constructors or {@link #forName(String)}
  56710. method.
  56711. @see JobID
  56712. @see TaskID]]>
  56713. </doc>
  56714. </class>
  56715. <!-- end class org.apache.hadoop.mapred.TaskAttemptID -->
  56716. <!-- start class org.apache.hadoop.mapred.TaskCompletionEvent -->
  56717. <class name="TaskCompletionEvent" extends="java.lang.Object"
  56718. abstract="false"
  56719. static="false" final="false" visibility="public"
  56720. deprecated="not deprecated">
  56721. <implements name="org.apache.hadoop.io.Writable"/>
  56722. <constructor name="TaskCompletionEvent"
  56723. static="false" final="false" visibility="public"
  56724. deprecated="not deprecated">
  56725. <doc>
  56726. <![CDATA[Default constructor for Writable.]]>
  56727. </doc>
  56728. </constructor>
  56729. <constructor name="TaskCompletionEvent" type="int, org.apache.hadoop.mapred.TaskAttemptID, int, boolean, org.apache.hadoop.mapred.TaskCompletionEvent.Status, java.lang.String"
  56730. static="false" final="false" visibility="public"
  56731. deprecated="not deprecated">
  56732. <doc>
  56733. <![CDATA[Constructor. eventId should be created externally and incremented
  56734. per event for each job.
  56735. @param eventId event id, event id should be unique and assigned in
  56736. incrementally, starting from 0.
  56737. @param taskId task id
  56738. @param status task's status
  56739. @param taskTrackerHttp task tracker's host:port for http.]]>
  56740. </doc>
  56741. </constructor>
  56742. <method name="getEventId" return="int"
  56743. abstract="false" native="false" synchronized="false"
  56744. static="false" final="false" visibility="public"
  56745. deprecated="not deprecated">
  56746. <doc>
  56747. <![CDATA[Returns event Id.
  56748. @return event id]]>
  56749. </doc>
  56750. </method>
  56751. <method name="getTaskId" return="java.lang.String"
  56752. abstract="false" native="false" synchronized="false"
  56753. static="false" final="false" visibility="public"
  56754. deprecated="use {@link #getTaskAttemptId()} instead.">
  56755. <doc>
  56756. <![CDATA[Returns task id.
  56757. @return task id
  56758. @deprecated use {@link #getTaskAttemptId()} instead.]]>
  56759. </doc>
  56760. </method>
  56761. <method name="getTaskAttemptId" return="org.apache.hadoop.mapred.TaskAttemptID"
  56762. abstract="false" native="false" synchronized="false"
  56763. static="false" final="false" visibility="public"
  56764. deprecated="not deprecated">
  56765. <doc>
  56766. <![CDATA[Returns task id.
  56767. @return task id]]>
  56768. </doc>
  56769. </method>
  56770. <method name="getTaskStatus" return="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  56771. abstract="false" native="false" synchronized="false"
  56772. static="false" final="false" visibility="public"
  56773. deprecated="not deprecated">
  56774. <doc>
  56775. <![CDATA[Returns enum Status.SUCESS or Status.FAILURE.
  56776. @return task tracker status]]>
  56777. </doc>
  56778. </method>
  56779. <method name="getTaskTrackerHttp" return="java.lang.String"
  56780. abstract="false" native="false" synchronized="false"
  56781. static="false" final="false" visibility="public"
  56782. deprecated="not deprecated">
  56783. <doc>
  56784. <![CDATA[http location of the tasktracker where this task ran.
  56785. @return http location of tasktracker user logs]]>
  56786. </doc>
  56787. </method>
  56788. <method name="getTaskRunTime" return="int"
  56789. abstract="false" native="false" synchronized="false"
  56790. static="false" final="false" visibility="public"
  56791. deprecated="not deprecated">
  56792. <doc>
  56793. <![CDATA[Returns time (in millisec) the task took to complete.]]>
  56794. </doc>
  56795. </method>
  56796. <method name="setTaskRunTime"
  56797. abstract="false" native="false" synchronized="false"
  56798. static="false" final="false" visibility="public"
  56799. deprecated="not deprecated">
  56800. <param name="taskCompletionTime" type="int"/>
  56801. <doc>
  56802. <![CDATA[Set the task completion time
  56803. @param taskCompletionTime time (in millisec) the task took to complete]]>
  56804. </doc>
  56805. </method>
  56806. <method name="setEventId"
  56807. abstract="false" native="false" synchronized="false"
  56808. static="false" final="false" visibility="public"
  56809. deprecated="not deprecated">
  56810. <param name="eventId" type="int"/>
  56811. <doc>
  56812. <![CDATA[set event Id. should be assigned incrementally starting from 0.
  56813. @param eventId]]>
  56814. </doc>
  56815. </method>
  56816. <method name="setTaskId"
  56817. abstract="false" native="false" synchronized="false"
  56818. static="false" final="false" visibility="public"
  56819. deprecated="use {@link #setTaskID(TaskAttemptID)} instead.">
  56820. <param name="taskId" type="java.lang.String"/>
  56821. <doc>
  56822. <![CDATA[Sets task id.
  56823. @param taskId
  56824. @deprecated use {@link #setTaskID(TaskAttemptID)} instead.]]>
  56825. </doc>
  56826. </method>
  56827. <method name="setTaskID"
  56828. abstract="false" native="false" synchronized="false"
  56829. static="false" final="false" visibility="public"
  56830. deprecated="not deprecated">
  56831. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56832. <doc>
  56833. <![CDATA[Sets task id.
  56834. @param taskId]]>
  56835. </doc>
  56836. </method>
  56837. <method name="setTaskStatus"
  56838. abstract="false" native="false" synchronized="false"
  56839. static="false" final="false" visibility="public"
  56840. deprecated="not deprecated">
  56841. <param name="status" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"/>
  56842. <doc>
  56843. <![CDATA[Set task status.
  56844. @param status]]>
  56845. </doc>
  56846. </method>
  56847. <method name="setTaskTrackerHttp"
  56848. abstract="false" native="false" synchronized="false"
  56849. static="false" final="false" visibility="public"
  56850. deprecated="not deprecated">
  56851. <param name="taskTrackerHttp" type="java.lang.String"/>
  56852. <doc>
  56853. <![CDATA[Set task tracker http location.
  56854. @param taskTrackerHttp]]>
  56855. </doc>
  56856. </method>
  56857. <method name="toString" return="java.lang.String"
  56858. abstract="false" native="false" synchronized="false"
  56859. static="false" final="false" visibility="public"
  56860. deprecated="not deprecated">
  56861. </method>
  56862. <method name="equals" return="boolean"
  56863. abstract="false" native="false" synchronized="false"
  56864. static="false" final="false" visibility="public"
  56865. deprecated="not deprecated">
  56866. <param name="o" type="java.lang.Object"/>
  56867. </method>
  56868. <method name="hashCode" return="int"
  56869. abstract="false" native="false" synchronized="false"
  56870. static="false" final="false" visibility="public"
  56871. deprecated="not deprecated">
  56872. </method>
  56873. <method name="isMapTask" return="boolean"
  56874. abstract="false" native="false" synchronized="false"
  56875. static="false" final="false" visibility="public"
  56876. deprecated="not deprecated">
  56877. </method>
  56878. <method name="idWithinJob" return="int"
  56879. abstract="false" native="false" synchronized="false"
  56880. static="false" final="false" visibility="public"
  56881. deprecated="not deprecated">
  56882. </method>
  56883. <method name="write"
  56884. abstract="false" native="false" synchronized="false"
  56885. static="false" final="false" visibility="public"
  56886. deprecated="not deprecated">
  56887. <param name="out" type="java.io.DataOutput"/>
  56888. <exception name="IOException" type="java.io.IOException"/>
  56889. </method>
  56890. <method name="readFields"
  56891. abstract="false" native="false" synchronized="false"
  56892. static="false" final="false" visibility="public"
  56893. deprecated="not deprecated">
  56894. <param name="in" type="java.io.DataInput"/>
  56895. <exception name="IOException" type="java.io.IOException"/>
  56896. </method>
  56897. <field name="EMPTY_ARRAY" type="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  56898. transient="false" volatile="false"
  56899. static="true" final="true" visibility="public"
  56900. deprecated="not deprecated">
  56901. </field>
  56902. <doc>
  56903. <![CDATA[This is used to track task completion events on
  56904. job tracker.]]>
  56905. </doc>
  56906. </class>
  56907. <!-- end class org.apache.hadoop.mapred.TaskCompletionEvent -->
  56908. <!-- start class org.apache.hadoop.mapred.TaskCompletionEvent.Status -->
  56909. <class name="TaskCompletionEvent.Status" extends="java.lang.Enum"
  56910. abstract="false"
  56911. static="true" final="true" visibility="public"
  56912. deprecated="not deprecated">
  56913. <method name="values" return="org.apache.hadoop.mapred.TaskCompletionEvent.Status[]"
  56914. abstract="false" native="false" synchronized="false"
  56915. static="true" final="false" visibility="public"
  56916. deprecated="not deprecated">
  56917. </method>
  56918. <method name="valueOf" return="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  56919. abstract="false" native="false" synchronized="false"
  56920. static="true" final="false" visibility="public"
  56921. deprecated="not deprecated">
  56922. <param name="name" type="java.lang.String"/>
  56923. </method>
  56924. <field name="FAILED" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  56925. transient="false" volatile="false"
  56926. static="true" final="true" visibility="public"
  56927. deprecated="not deprecated">
  56928. </field>
  56929. <field name="KILLED" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  56930. transient="false" volatile="false"
  56931. static="true" final="true" visibility="public"
  56932. deprecated="not deprecated">
  56933. </field>
  56934. <field name="SUCCEEDED" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  56935. transient="false" volatile="false"
  56936. static="true" final="true" visibility="public"
  56937. deprecated="not deprecated">
  56938. </field>
  56939. <field name="OBSOLETE" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  56940. transient="false" volatile="false"
  56941. static="true" final="true" visibility="public"
  56942. deprecated="not deprecated">
  56943. </field>
  56944. <field name="TIPFAILED" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  56945. transient="false" volatile="false"
  56946. static="true" final="true" visibility="public"
  56947. deprecated="not deprecated">
  56948. </field>
  56949. </class>
  56950. <!-- end class org.apache.hadoop.mapred.TaskCompletionEvent.Status -->
  56951. <!-- start class org.apache.hadoop.mapred.TaskController -->
  56952. <class name="TaskController" extends="java.lang.Object"
  56953. abstract="true"
  56954. static="false" final="false" visibility="public"
  56955. deprecated="not deprecated">
  56956. <implements name="org.apache.hadoop.conf.Configurable"/>
  56957. <constructor name="TaskController"
  56958. static="false" final="false" visibility="public"
  56959. deprecated="not deprecated">
  56960. </constructor>
  56961. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  56962. abstract="false" native="false" synchronized="false"
  56963. static="false" final="false" visibility="public"
  56964. deprecated="not deprecated">
  56965. </method>
  56966. <method name="getLocalDirs" return="java.lang.String[]"
  56967. abstract="false" native="false" synchronized="false"
  56968. static="false" final="false" visibility="public"
  56969. deprecated="not deprecated">
  56970. </method>
  56971. <method name="setConf"
  56972. abstract="false" native="false" synchronized="false"
  56973. static="false" final="false" visibility="public"
  56974. deprecated="not deprecated">
  56975. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  56976. </method>
  56977. <method name="setup"
  56978. abstract="true" native="false" synchronized="false"
  56979. static="false" final="false" visibility="public"
  56980. deprecated="not deprecated">
  56981. <param name="allocator" type="org.apache.hadoop.fs.LocalDirAllocator"/>
  56982. <param name="localStorage" type="org.apache.hadoop.mapred.TaskTracker.LocalStorage"/>
  56983. <exception name="IOException" type="java.io.IOException"/>
  56984. <doc>
  56985. <![CDATA[Does initialization and setup.
  56986. @param allocator the local dir allocator to use
  56987. @param localStorage local storage to obtain dirs from]]>
  56988. </doc>
  56989. </method>
  56990. <method name="initializeJob"
  56991. abstract="true" native="false" synchronized="false"
  56992. static="false" final="false" visibility="public"
  56993. deprecated="not deprecated">
  56994. <param name="user" type="java.lang.String"/>
  56995. <param name="jobid" type="java.lang.String"/>
  56996. <param name="credentials" type="org.apache.hadoop.fs.Path"/>
  56997. <param name="jobConf" type="org.apache.hadoop.fs.Path"/>
  56998. <param name="taskTracker" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  56999. <param name="ttAddr" type="java.net.InetSocketAddress"/>
  57000. <exception name="IOException" type="java.io.IOException"/>
  57001. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  57002. <doc>
  57003. <![CDATA[Create all of the directories necessary for the job to start and download
  57004. all of the job and private distributed cache files.
  57005. Creates both the user directories and the job log directory.
  57006. @param user the user name
  57007. @param jobid the job
  57008. @param credentials a filename containing the job secrets
  57009. @param jobConf the path to the localized configuration file
  57010. @param taskTracker the connection the task tracker
  57011. @param ttAddr the tasktracker's RPC address
  57012. @throws IOException
  57013. @throws InterruptedException]]>
  57014. </doc>
  57015. </method>
  57016. <method name="launchTask" return="int"
  57017. abstract="true" native="false" synchronized="false"
  57018. static="false" final="false" visibility="public"
  57019. deprecated="not deprecated">
  57020. <param name="user" type="java.lang.String"/>
  57021. <param name="jobId" type="java.lang.String"/>
  57022. <param name="attemptId" type="java.lang.String"/>
  57023. <param name="setup" type="java.util.List"/>
  57024. <param name="jvmArguments" type="java.util.List"/>
  57025. <param name="currentWorkDirectory" type="java.io.File"/>
  57026. <param name="stdout" type="java.lang.String"/>
  57027. <param name="stderr" type="java.lang.String"/>
  57028. <exception name="IOException" type="java.io.IOException"/>
  57029. <doc>
  57030. <![CDATA[Create all of the directories for the task and launches the child jvm.
  57031. @param user the user name
  57032. @param jobId the jobId in question
  57033. @param attemptId the attempt id (cleanup attempts have .cleanup suffix)
  57034. @param setup list of shell commands to execute before the jvm
  57035. @param jvmArguments list of jvm arguments
  57036. @param currentWorkDirectory the full path of the cwd for the task
  57037. @param stdout the file to redirect stdout to
  57038. @param stderr the file to redirect stderr to
  57039. @return the exit code for the task
  57040. @throws IOException]]>
  57041. </doc>
  57042. </method>
  57043. <method name="signalTask"
  57044. abstract="true" native="false" synchronized="false"
  57045. static="false" final="false" visibility="public"
  57046. deprecated="not deprecated">
  57047. <param name="user" type="java.lang.String"/>
  57048. <param name="taskPid" type="int"/>
  57049. <param name="signal" type="org.apache.hadoop.util.ProcessTree.Signal"/>
  57050. <exception name="IOException" type="java.io.IOException"/>
  57051. <doc>
  57052. <![CDATA[Send a signal to a task pid as the user.
  57053. @param user the user name
  57054. @param taskPid the pid of the task
  57055. @param signal the id of the signal to send]]>
  57056. </doc>
  57057. </method>
  57058. <method name="deleteAsUser"
  57059. abstract="true" native="false" synchronized="false"
  57060. static="false" final="false" visibility="public"
  57061. deprecated="not deprecated">
  57062. <param name="user" type="java.lang.String"/>
  57063. <param name="subDir" type="java.lang.String"/>
  57064. <exception name="IOException" type="java.io.IOException"/>
  57065. <doc>
  57066. <![CDATA[Delete the user's files under all of the task tracker root directories.
  57067. @param user the user name
  57068. @param subDir the path relative to the user's subdirectory under
  57069. the task tracker root directories.
  57070. @throws IOException]]>
  57071. </doc>
  57072. </method>
  57073. <method name="createLogDir"
  57074. abstract="true" native="false" synchronized="false"
  57075. static="false" final="false" visibility="public"
  57076. deprecated="not deprecated">
  57077. <param name="taskID" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57078. <param name="isCleanup" type="boolean"/>
  57079. <exception name="IOException" type="java.io.IOException"/>
  57080. <doc>
  57081. <![CDATA[Creates task log dir
  57082. @param taskID ID of the task
  57083. @param isCleanup If the task is cleanup task or not
  57084. @throws IOException]]>
  57085. </doc>
  57086. </method>
  57087. <method name="deleteLogAsUser"
  57088. abstract="true" native="false" synchronized="false"
  57089. static="false" final="false" visibility="public"
  57090. deprecated="not deprecated">
  57091. <param name="user" type="java.lang.String"/>
  57092. <param name="subDir" type="java.lang.String"/>
  57093. <exception name="IOException" type="java.io.IOException"/>
  57094. <doc>
  57095. <![CDATA[Delete the user's files under the userlogs directory.
  57096. @param user the user to work as
  57097. @param subDir the path under the userlogs directory.
  57098. @throws IOException]]>
  57099. </doc>
  57100. </method>
  57101. <method name="truncateLogsAsUser"
  57102. abstract="true" native="false" synchronized="false"
  57103. static="false" final="false" visibility="public"
  57104. deprecated="not deprecated">
  57105. <param name="user" type="java.lang.String"/>
  57106. <param name="allAttempts" type="java.util.List"/>
  57107. <exception name="IOException" type="java.io.IOException"/>
  57108. <doc>
  57109. <![CDATA[Run the passed command as the user
  57110. @param user
  57111. @param allAttempts the list of attempts that the JVM ran
  57112. @throws IOException]]>
  57113. </doc>
  57114. </method>
  57115. <method name="getRunAsUser" return="java.lang.String"
  57116. abstract="false" native="false" synchronized="false"
  57117. static="false" final="false" visibility="public"
  57118. deprecated="not deprecated">
  57119. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  57120. <doc>
  57121. <![CDATA[Returns the local unix user that a given job will run as.]]>
  57122. </doc>
  57123. </method>
  57124. <method name="writeCommand" return="java.lang.String"
  57125. abstract="false" native="false" synchronized="false"
  57126. static="true" final="false" visibility="protected"
  57127. deprecated="not deprecated">
  57128. <param name="cmdLine" type="java.lang.String"/>
  57129. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  57130. <param name="commandFile" type="org.apache.hadoop.fs.Path"/>
  57131. <exception name="IOException" type="java.io.IOException"/>
  57132. </method>
  57133. <method name="logOutput"
  57134. abstract="false" native="false" synchronized="false"
  57135. static="false" final="false" visibility="protected"
  57136. deprecated="not deprecated">
  57137. <param name="output" type="java.lang.String"/>
  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="COMMAND_FILE" type="java.lang.String"
  57145. transient="false" volatile="false"
  57146. static="true" final="true" visibility="protected"
  57147. deprecated="not deprecated">
  57148. </field>
  57149. <field name="allocator" type="org.apache.hadoop.fs.LocalDirAllocator"
  57150. transient="false" volatile="false"
  57151. static="false" final="false" visibility="protected"
  57152. deprecated="not deprecated">
  57153. </field>
  57154. <field name="localStorage" type="org.apache.hadoop.mapred.TaskTracker.LocalStorage"
  57155. transient="false" volatile="false"
  57156. static="false" final="false" visibility="protected"
  57157. deprecated="not deprecated">
  57158. </field>
  57159. <field name="TASK_LAUNCH_SCRIPT_PERMISSION" type="org.apache.hadoop.fs.permission.FsPermission"
  57160. transient="false" volatile="false"
  57161. static="true" final="true" visibility="public"
  57162. deprecated="not deprecated">
  57163. </field>
  57164. <doc>
  57165. <![CDATA[Controls initialization, finalization and clean up of tasks, and
  57166. also the launching and killing of task JVMs.
  57167. This class defines the API for initializing, finalizing and cleaning
  57168. up of tasks, as also the launching and killing task JVMs.
  57169. Subclasses of this class will implement the logic required for
  57170. performing the actual actions.
  57171. <br/>
  57172. NOTE: This class is internal only class and not intended for users!!]]>
  57173. </doc>
  57174. </class>
  57175. <!-- end class org.apache.hadoop.mapred.TaskController -->
  57176. <!-- start class org.apache.hadoop.mapred.TaskGraphServlet -->
  57177. <class name="TaskGraphServlet" extends="javax.servlet.http.HttpServlet"
  57178. abstract="false"
  57179. static="false" final="false" visibility="public"
  57180. deprecated="not deprecated">
  57181. <constructor name="TaskGraphServlet"
  57182. static="false" final="false" visibility="public"
  57183. deprecated="not deprecated">
  57184. </constructor>
  57185. <method name="doGet"
  57186. abstract="false" native="false" synchronized="false"
  57187. static="false" final="false" visibility="public"
  57188. deprecated="not deprecated">
  57189. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  57190. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  57191. <exception name="ServletException" type="javax.servlet.ServletException"/>
  57192. <exception name="IOException" type="java.io.IOException"/>
  57193. </method>
  57194. <field name="width" type="int"
  57195. transient="false" volatile="false"
  57196. static="true" final="true" visibility="public"
  57197. deprecated="not deprecated">
  57198. <doc>
  57199. <![CDATA[height of the graph w/o margins]]>
  57200. </doc>
  57201. </field>
  57202. <field name="height" type="int"
  57203. transient="false" volatile="false"
  57204. static="true" final="true" visibility="public"
  57205. deprecated="not deprecated">
  57206. <doc>
  57207. <![CDATA[height of the graph w/o margins]]>
  57208. </doc>
  57209. </field>
  57210. <field name="ymargin" type="int"
  57211. transient="false" volatile="false"
  57212. static="true" final="true" visibility="public"
  57213. deprecated="not deprecated">
  57214. <doc>
  57215. <![CDATA[margin space on y axis]]>
  57216. </doc>
  57217. </field>
  57218. <field name="xmargin" type="int"
  57219. transient="false" volatile="false"
  57220. static="true" final="true" visibility="public"
  57221. deprecated="not deprecated">
  57222. <doc>
  57223. <![CDATA[margin space on x axis]]>
  57224. </doc>
  57225. </field>
  57226. <doc>
  57227. <![CDATA[The servlet that outputs svg graphics for map / reduce task
  57228. statuses]]>
  57229. </doc>
  57230. </class>
  57231. <!-- end class org.apache.hadoop.mapred.TaskGraphServlet -->
  57232. <!-- start class org.apache.hadoop.mapred.TaskID -->
  57233. <class name="TaskID" extends="org.apache.hadoop.mapreduce.TaskID"
  57234. abstract="false"
  57235. static="false" final="false" visibility="public"
  57236. deprecated="not deprecated">
  57237. <constructor name="TaskID" type="org.apache.hadoop.mapreduce.JobID, boolean, int"
  57238. static="false" final="false" visibility="public"
  57239. deprecated="not deprecated">
  57240. <doc>
  57241. <![CDATA[Constructs a TaskID object from given {@link JobID}.
  57242. @param jobId JobID that this tip belongs to
  57243. @param isMap whether the tip is a map
  57244. @param id the tip number]]>
  57245. </doc>
  57246. </constructor>
  57247. <constructor name="TaskID" type="java.lang.String, int, boolean, int"
  57248. static="false" final="false" visibility="public"
  57249. deprecated="not deprecated">
  57250. <doc>
  57251. <![CDATA[Constructs a TaskInProgressId object from given parts.
  57252. @param jtIdentifier jobTracker identifier
  57253. @param jobId job number
  57254. @param isMap whether the tip is a map
  57255. @param id the tip number]]>
  57256. </doc>
  57257. </constructor>
  57258. <constructor name="TaskID"
  57259. static="false" final="false" visibility="public"
  57260. deprecated="not deprecated">
  57261. </constructor>
  57262. <method name="downgrade" return="org.apache.hadoop.mapred.TaskID"
  57263. abstract="false" native="false" synchronized="false"
  57264. static="true" final="false" visibility="public"
  57265. deprecated="not deprecated">
  57266. <param name="old" type="org.apache.hadoop.mapreduce.TaskID"/>
  57267. <doc>
  57268. <![CDATA[Downgrade a new TaskID to an old one
  57269. @param old a new or old TaskID
  57270. @return either old or a new TaskID build to match old]]>
  57271. </doc>
  57272. </method>
  57273. <method name="read" return="org.apache.hadoop.mapred.TaskID"
  57274. abstract="false" native="false" synchronized="false"
  57275. static="true" final="false" visibility="public"
  57276. deprecated="not deprecated">
  57277. <param name="in" type="java.io.DataInput"/>
  57278. <exception name="IOException" type="java.io.IOException"/>
  57279. </method>
  57280. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  57281. abstract="false" native="false" synchronized="false"
  57282. static="false" final="false" visibility="public"
  57283. deprecated="not deprecated">
  57284. </method>
  57285. <method name="getTaskIDsPattern" return="java.lang.String"
  57286. abstract="false" native="false" synchronized="false"
  57287. static="true" final="false" visibility="public"
  57288. deprecated="not deprecated">
  57289. <param name="jtIdentifier" type="java.lang.String"/>
  57290. <param name="jobId" type="java.lang.Integer"/>
  57291. <param name="isMap" type="java.lang.Boolean"/>
  57292. <param name="taskId" type="java.lang.Integer"/>
  57293. <doc>
  57294. <![CDATA[Returns a regex pattern which matches task IDs. Arguments can
  57295. be given null, in which case that part of the regex will be generic.
  57296. For example to obtain a regex matching <i>the first map task</i>
  57297. of <i>any jobtracker</i>, of <i>any job</i>, we would use :
  57298. <pre>
  57299. TaskID.getTaskIDsPattern(null, null, true, 1);
  57300. </pre>
  57301. which will return :
  57302. <pre> "task_[^_]*_[0-9]*_m_000001*" </pre>
  57303. @param jtIdentifier jobTracker identifier, or null
  57304. @param jobId job number, or null
  57305. @param isMap whether the tip is a map, or null
  57306. @param taskId taskId number, or null
  57307. @return a regex pattern matching TaskIDs]]>
  57308. </doc>
  57309. </method>
  57310. <method name="forName" return="org.apache.hadoop.mapred.TaskID"
  57311. abstract="false" native="false" synchronized="false"
  57312. static="true" final="false" visibility="public"
  57313. deprecated="not deprecated">
  57314. <param name="str" type="java.lang.String"/>
  57315. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  57316. </method>
  57317. <doc>
  57318. <![CDATA[TaskID represents the immutable and unique identifier for
  57319. a Map or Reduce Task. Each TaskID encompasses multiple attempts made to
  57320. execute the Map or Reduce Task, each of which are uniquely indentified by
  57321. their TaskAttemptID.
  57322. TaskID consists of 3 parts. First part is the {@link JobID}, that this
  57323. TaskInProgress belongs to. Second part of the TaskID is either 'm' or 'r'
  57324. representing whether the task is a map task or a reduce task.
  57325. And the third part is the task number. <br>
  57326. An example TaskID is :
  57327. <code>task_200707121733_0003_m_000005</code> , which represents the
  57328. fifth map task in the third job running at the jobtracker
  57329. started at <code>200707121733</code>.
  57330. <p>
  57331. Applications should never construct or parse TaskID strings
  57332. , but rather use appropriate constructors or {@link #forName(String)}
  57333. method.
  57334. @see JobID
  57335. @see TaskAttemptID]]>
  57336. </doc>
  57337. </class>
  57338. <!-- end class org.apache.hadoop.mapred.TaskID -->
  57339. <!-- start class org.apache.hadoop.mapred.TaskLog -->
  57340. <class name="TaskLog" extends="java.lang.Object"
  57341. abstract="false"
  57342. static="false" final="false" visibility="public"
  57343. deprecated="not deprecated">
  57344. <constructor name="TaskLog"
  57345. static="false" final="false" visibility="public"
  57346. deprecated="not deprecated">
  57347. </constructor>
  57348. <method name="createTaskAttemptLogDir"
  57349. abstract="false" native="false" synchronized="false"
  57350. static="true" final="false" visibility="public"
  57351. deprecated="not deprecated">
  57352. <param name="taskID" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57353. <param name="isCleanup" type="boolean"/>
  57354. <param name="localDirs" type="java.lang.String[]"/>
  57355. <exception name="IOException" type="java.io.IOException"/>
  57356. <doc>
  57357. <![CDATA[Create log directory for the given attempt. This involves creating the
  57358. following and setting proper permissions for the new directories
  57359. <br>{hadoop.log.dir}/userlogs/<jobid>
  57360. <br>{hadoop.log.dir}/userlogs/<jobid>/<attempt-id-as-symlink>
  57361. <br>{one of the mapred-local-dirs}/userlogs/<jobid>
  57362. <br>{one of the mapred-local-dirs}/userlogs/<jobid>/<attempt-id>
  57363. @param taskID attempt-id for which log dir is to be created
  57364. @param isCleanup Is this attempt a cleanup attempt ?
  57365. @param localDirs mapred local directories
  57366. @throws IOException]]>
  57367. </doc>
  57368. </method>
  57369. <method name="getTaskAttemptLogDir" return="java.lang.String"
  57370. abstract="false" native="false" synchronized="false"
  57371. static="true" final="false" visibility="public"
  57372. deprecated="not deprecated">
  57373. <param name="taskID" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57374. <param name="cleanupSuffix" type="java.lang.String"/>
  57375. <param name="localDirs" type="java.lang.String[]"/>
  57376. <exception name="IOException" type="java.io.IOException"/>
  57377. <doc>
  57378. <![CDATA[Get attempt log directory path for the given attempt-id under randomly
  57379. selected mapred local directory.
  57380. @param taskID attempt-id for which log dir path is needed
  57381. @param cleanupSuffix ".cleanup" if this attempt is a cleanup attempt
  57382. @param localDirs mapred local directories
  57383. @return target task attempt log directory
  57384. @throws IOException]]>
  57385. </doc>
  57386. </method>
  57387. <method name="getTaskLogFile" return="java.io.File"
  57388. abstract="false" native="false" synchronized="false"
  57389. static="true" final="false" visibility="public"
  57390. deprecated="not deprecated">
  57391. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57392. <param name="isCleanup" type="boolean"/>
  57393. <param name="filter" type="org.apache.hadoop.mapred.TaskLog.LogName"/>
  57394. </method>
  57395. <method name="getBaseLogDir" return="java.lang.String"
  57396. abstract="false" native="false" synchronized="false"
  57397. static="true" final="false" visibility="public"
  57398. deprecated="not deprecated">
  57399. </method>
  57400. <method name="syncLogs"
  57401. abstract="false" native="false" synchronized="true"
  57402. static="true" final="false" visibility="public"
  57403. deprecated="not deprecated">
  57404. <param name="logLocation" type="java.lang.String"/>
  57405. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57406. <param name="isCleanup" type="boolean"/>
  57407. <param name="segmented" type="boolean"/>
  57408. <exception name="IOException" type="java.io.IOException"/>
  57409. </method>
  57410. <method name="getTaskLogLength" return="long"
  57411. abstract="false" native="false" synchronized="false"
  57412. static="true" final="false" visibility="public"
  57413. deprecated="not deprecated">
  57414. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  57415. <doc>
  57416. <![CDATA[Get the desired maximum length of task's logs.
  57417. @param conf the job to look in
  57418. @return the number of bytes to cap the log files at]]>
  57419. </doc>
  57420. </method>
  57421. <method name="captureOutAndError" return="java.util.List"
  57422. abstract="false" native="false" synchronized="false"
  57423. static="true" final="false" visibility="public"
  57424. deprecated="not deprecated">
  57425. <param name="cmd" type="java.util.List"/>
  57426. <param name="stdoutFilename" type="java.io.File"/>
  57427. <param name="stderrFilename" type="java.io.File"/>
  57428. <param name="tailLength" type="long"/>
  57429. <exception name="IOException" type="java.io.IOException"/>
  57430. <doc>
  57431. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  57432. If the tailLength is 0, the entire output will be saved.
  57433. @param cmd The command and the arguments that should be run
  57434. @param stdoutFilename The filename that stdout should be saved to
  57435. @param stderrFilename The filename that stderr should be saved to
  57436. @param tailLength The length of the tail to be saved.
  57437. @return the modified command that should be run]]>
  57438. </doc>
  57439. </method>
  57440. <method name="captureOutAndError" return="java.util.List"
  57441. abstract="false" native="false" synchronized="false"
  57442. static="true" final="false" visibility="public"
  57443. deprecated="not deprecated">
  57444. <param name="setup" type="java.util.List"/>
  57445. <param name="cmd" type="java.util.List"/>
  57446. <param name="stdoutFilename" type="java.io.File"/>
  57447. <param name="stderrFilename" type="java.io.File"/>
  57448. <param name="tailLength" type="long"/>
  57449. <exception name="IOException" type="java.io.IOException"/>
  57450. <doc>
  57451. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  57452. Setup commands such as setting memory limit can be passed which
  57453. will be executed before exec.
  57454. If the tailLength is 0, the entire output will be saved.
  57455. @param setup The setup commands for the execed process.
  57456. @param cmd The command and the arguments that should be run
  57457. @param stdoutFilename The filename that stdout should be saved to
  57458. @param stderrFilename The filename that stderr should be saved to
  57459. @param tailLength The length of the tail to be saved.
  57460. @return the modified command that should be run]]>
  57461. </doc>
  57462. </method>
  57463. <method name="captureOutAndError" return="java.util.List"
  57464. abstract="false" native="false" synchronized="false"
  57465. static="true" final="false" visibility="public"
  57466. deprecated="pidFiles are no more used. Instead pid is exported to
  57467. env variable JVM_PID.">
  57468. <param name="setup" type="java.util.List"/>
  57469. <param name="cmd" type="java.util.List"/>
  57470. <param name="stdoutFilename" type="java.io.File"/>
  57471. <param name="stderrFilename" type="java.io.File"/>
  57472. <param name="tailLength" type="long"/>
  57473. <param name="pidFileName" type="java.lang.String"/>
  57474. <exception name="IOException" type="java.io.IOException"/>
  57475. <doc>
  57476. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  57477. Setup commands such as setting memory limit can be passed which
  57478. will be executed before exec.
  57479. If the tailLength is 0, the entire output will be saved.
  57480. @param setup The setup commands for the execed process.
  57481. @param cmd The command and the arguments that should be run
  57482. @param stdoutFilename The filename that stdout should be saved to
  57483. @param stderrFilename The filename that stderr should be saved to
  57484. @param tailLength The length of the tail to be saved.
  57485. @deprecated pidFiles are no more used. Instead pid is exported to
  57486. env variable JVM_PID.
  57487. @return the modified command that should be run]]>
  57488. </doc>
  57489. </method>
  57490. <method name="captureOutAndError" return="java.util.List"
  57491. abstract="false" native="false" synchronized="false"
  57492. static="true" final="false" visibility="public"
  57493. deprecated="pidFiles are no more used. Instead pid is exported to
  57494. env variable JVM_PID.">
  57495. <param name="setup" type="java.util.List"/>
  57496. <param name="cmd" type="java.util.List"/>
  57497. <param name="stdoutFilename" type="java.io.File"/>
  57498. <param name="stderrFilename" type="java.io.File"/>
  57499. <param name="tailLength" type="long"/>
  57500. <param name="useSetsid" type="boolean"/>
  57501. <param name="pidFileName" type="java.lang.String"/>
  57502. <exception name="IOException" type="java.io.IOException"/>
  57503. <doc>
  57504. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  57505. Setup commands such as setting memory limit can be passed which
  57506. will be executed before exec.
  57507. If the tailLength is 0, the entire output will be saved.
  57508. @param setup The setup commands for the execed process.
  57509. @param cmd The command and the arguments that should be run
  57510. @param stdoutFilename The filename that stdout should be saved to
  57511. @param stderrFilename The filename that stderr should be saved to
  57512. @param tailLength The length of the tail to be saved.
  57513. @param useSetsid Should setsid be used in the command or not.
  57514. @deprecated pidFiles are no more used. Instead pid is exported to
  57515. env variable JVM_PID.
  57516. @return the modified command that should be run]]>
  57517. </doc>
  57518. </method>
  57519. <method name="captureOutAndError" return="java.util.List"
  57520. abstract="false" native="false" synchronized="false"
  57521. static="true" final="false" visibility="public"
  57522. deprecated="not deprecated">
  57523. <param name="setup" type="java.util.List"/>
  57524. <param name="cmd" type="java.util.List"/>
  57525. <param name="stdoutFilename" type="java.io.File"/>
  57526. <param name="stderrFilename" type="java.io.File"/>
  57527. <param name="tailLength" type="long"/>
  57528. <param name="useSetsid" type="boolean"/>
  57529. <exception name="IOException" type="java.io.IOException"/>
  57530. <doc>
  57531. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  57532. Setup commands such as setting memory limit can be passed which
  57533. will be executed before exec.
  57534. If the tailLength is 0, the entire output will be saved.
  57535. @param setup The setup commands for the execed process.
  57536. @param cmd The command and the arguments that should be run
  57537. @param stdoutFilename The filename that stdout should be saved to
  57538. @param stderrFilename The filename that stderr should be saved to
  57539. @param tailLength The length of the tail to be saved.
  57540. @param useSetsid Should setsid be used in the command or not.
  57541. @return the modified command that should be run]]>
  57542. </doc>
  57543. </method>
  57544. <method name="addCommand" return="java.lang.String"
  57545. abstract="false" native="false" synchronized="false"
  57546. static="true" final="false" visibility="public"
  57547. deprecated="not deprecated">
  57548. <param name="cmd" type="java.util.List"/>
  57549. <param name="isExecutable" type="boolean"/>
  57550. <exception name="IOException" type="java.io.IOException"/>
  57551. <doc>
  57552. <![CDATA[Add quotes to each of the command strings and
  57553. return as a single string
  57554. @param cmd The command to be quoted
  57555. @param isExecutable makes shell path if the first
  57556. argument is executable
  57557. @return returns The quoted string.
  57558. @throws IOException]]>
  57559. </doc>
  57560. </method>
  57561. <method name="captureDebugOut" return="java.util.List"
  57562. abstract="false" native="false" synchronized="false"
  57563. static="true" final="false" visibility="public"
  57564. deprecated="not deprecated">
  57565. <param name="cmd" type="java.util.List"/>
  57566. <param name="debugoutFilename" type="java.io.File"/>
  57567. <exception name="IOException" type="java.io.IOException"/>
  57568. <doc>
  57569. <![CDATA[Wrap a command in a shell to capture debug script's
  57570. stdout and stderr to debugout.
  57571. @param cmd The command and the arguments that should be run
  57572. @param debugoutFilename The filename that stdout and stderr
  57573. should be saved to.
  57574. @return the modified command that should be run
  57575. @throws IOException]]>
  57576. </doc>
  57577. </method>
  57578. <method name="getUserLogDir" return="java.io.File"
  57579. abstract="false" native="false" synchronized="false"
  57580. static="true" final="false" visibility="public"
  57581. deprecated="not deprecated">
  57582. </method>
  57583. <method name="getJobDir" return="java.io.File"
  57584. abstract="false" native="false" synchronized="false"
  57585. static="true" final="false" visibility="public"
  57586. deprecated="not deprecated">
  57587. <param name="jobid" type="java.lang.String"/>
  57588. <doc>
  57589. <![CDATA[Get the user log directory for the job jobid.
  57590. @param jobid string representation of the jobid
  57591. @return user log directory for the job]]>
  57592. </doc>
  57593. </method>
  57594. <method name="getJobDir" return="java.io.File"
  57595. abstract="false" native="false" synchronized="false"
  57596. static="true" final="false" visibility="public"
  57597. deprecated="not deprecated">
  57598. <param name="jobid" type="org.apache.hadoop.mapreduce.JobID"/>
  57599. <doc>
  57600. <![CDATA[Get the user log directory for the job jobid.
  57601. @param jobid the jobid object
  57602. @return user log directory for the job]]>
  57603. </doc>
  57604. </method>
  57605. <doc>
  57606. <![CDATA[A simple logger to handle the task-specific user logs.
  57607. This class uses the system property <code>hadoop.log.dir</code>.
  57608. This class is for Map/Reduce internal use only.]]>
  57609. </doc>
  57610. </class>
  57611. <!-- end class org.apache.hadoop.mapred.TaskLog -->
  57612. <!-- start class org.apache.hadoop.mapred.TaskLog.LogName -->
  57613. <class name="TaskLog.LogName" extends="java.lang.Enum"
  57614. abstract="false"
  57615. static="true" final="true" visibility="public"
  57616. deprecated="not deprecated">
  57617. <method name="values" return="org.apache.hadoop.mapred.TaskLog.LogName[]"
  57618. abstract="false" native="false" synchronized="false"
  57619. static="true" final="false" visibility="public"
  57620. deprecated="not deprecated">
  57621. </method>
  57622. <method name="valueOf" return="org.apache.hadoop.mapred.TaskLog.LogName"
  57623. abstract="false" native="false" synchronized="false"
  57624. static="true" final="false" visibility="public"
  57625. deprecated="not deprecated">
  57626. <param name="name" type="java.lang.String"/>
  57627. </method>
  57628. <method name="toString" return="java.lang.String"
  57629. abstract="false" native="false" synchronized="false"
  57630. static="false" final="false" visibility="public"
  57631. deprecated="not deprecated">
  57632. </method>
  57633. <field name="STDOUT" type="org.apache.hadoop.mapred.TaskLog.LogName"
  57634. transient="false" volatile="false"
  57635. static="true" final="true" visibility="public"
  57636. deprecated="not deprecated">
  57637. <doc>
  57638. <![CDATA[Log on the stdout of the task.]]>
  57639. </doc>
  57640. </field>
  57641. <field name="STDERR" type="org.apache.hadoop.mapred.TaskLog.LogName"
  57642. transient="false" volatile="false"
  57643. static="true" final="true" visibility="public"
  57644. deprecated="not deprecated">
  57645. <doc>
  57646. <![CDATA[Log on the stderr of the task.]]>
  57647. </doc>
  57648. </field>
  57649. <field name="SYSLOG" type="org.apache.hadoop.mapred.TaskLog.LogName"
  57650. transient="false" volatile="false"
  57651. static="true" final="true" visibility="public"
  57652. deprecated="not deprecated">
  57653. <doc>
  57654. <![CDATA[Log on the map-reduce system logs of the task.]]>
  57655. </doc>
  57656. </field>
  57657. <field name="PROFILE" type="org.apache.hadoop.mapred.TaskLog.LogName"
  57658. transient="false" volatile="false"
  57659. static="true" final="true" visibility="public"
  57660. deprecated="not deprecated">
  57661. <doc>
  57662. <![CDATA[The java profiler information.]]>
  57663. </doc>
  57664. </field>
  57665. <field name="DEBUGOUT" type="org.apache.hadoop.mapred.TaskLog.LogName"
  57666. transient="false" volatile="false"
  57667. static="true" final="true" visibility="public"
  57668. deprecated="not deprecated">
  57669. <doc>
  57670. <![CDATA[Log the debug script's stdout]]>
  57671. </doc>
  57672. </field>
  57673. <doc>
  57674. <![CDATA[The filter for userlogs.]]>
  57675. </doc>
  57676. </class>
  57677. <!-- end class org.apache.hadoop.mapred.TaskLog.LogName -->
  57678. <!-- start class org.apache.hadoop.mapred.TaskLogAppender -->
  57679. <class name="TaskLogAppender" extends="org.apache.log4j.FileAppender"
  57680. abstract="false"
  57681. static="false" final="false" visibility="public"
  57682. deprecated="not deprecated">
  57683. <constructor name="TaskLogAppender"
  57684. static="false" final="false" visibility="public"
  57685. deprecated="not deprecated">
  57686. </constructor>
  57687. <method name="activateOptions"
  57688. abstract="false" native="false" synchronized="false"
  57689. static="false" final="false" visibility="public"
  57690. deprecated="not deprecated">
  57691. </method>
  57692. <method name="append"
  57693. abstract="false" native="false" synchronized="false"
  57694. static="false" final="false" visibility="public"
  57695. deprecated="not deprecated">
  57696. <param name="event" type="org.apache.log4j.spi.LoggingEvent"/>
  57697. </method>
  57698. <method name="flush"
  57699. abstract="false" native="false" synchronized="false"
  57700. static="false" final="false" visibility="public"
  57701. deprecated="not deprecated">
  57702. </method>
  57703. <method name="close"
  57704. abstract="false" native="false" synchronized="true"
  57705. static="false" final="false" visibility="public"
  57706. deprecated="not deprecated">
  57707. </method>
  57708. <method name="getTaskId" return="java.lang.String"
  57709. abstract="false" native="false" synchronized="false"
  57710. static="false" final="false" visibility="public"
  57711. deprecated="not deprecated">
  57712. <doc>
  57713. <![CDATA[Getter/Setter methods for log4j.]]>
  57714. </doc>
  57715. </method>
  57716. <method name="setTaskId"
  57717. abstract="false" native="false" synchronized="false"
  57718. static="false" final="false" visibility="public"
  57719. deprecated="not deprecated">
  57720. <param name="taskId" type="java.lang.String"/>
  57721. </method>
  57722. <method name="getTotalLogFileSize" return="long"
  57723. abstract="false" native="false" synchronized="false"
  57724. static="false" final="false" visibility="public"
  57725. deprecated="not deprecated">
  57726. </method>
  57727. <method name="setTotalLogFileSize"
  57728. abstract="false" native="false" synchronized="false"
  57729. static="false" final="false" visibility="public"
  57730. deprecated="not deprecated">
  57731. <param name="logSize" type="long"/>
  57732. </method>
  57733. <method name="setIsCleanup"
  57734. abstract="false" native="false" synchronized="false"
  57735. static="false" final="false" visibility="public"
  57736. deprecated="not deprecated">
  57737. <param name="isCleanup" type="boolean"/>
  57738. <doc>
  57739. <![CDATA[Set whether the task is a cleanup attempt or not.
  57740. @param isCleanup
  57741. true if the task is cleanup attempt, false otherwise.]]>
  57742. </doc>
  57743. </method>
  57744. <method name="getIsCleanup" return="boolean"
  57745. abstract="false" native="false" synchronized="false"
  57746. static="false" final="false" visibility="public"
  57747. deprecated="not deprecated">
  57748. <doc>
  57749. <![CDATA[Get whether task is cleanup attempt or not.
  57750. @return true if the task is cleanup attempt, false otherwise.]]>
  57751. </doc>
  57752. </method>
  57753. <doc>
  57754. <![CDATA[A simple log4j-appender for the task child's
  57755. map-reduce system logs.]]>
  57756. </doc>
  57757. </class>
  57758. <!-- end class org.apache.hadoop.mapred.TaskLogAppender -->
  57759. <!-- start class org.apache.hadoop.mapred.TaskLogServlet -->
  57760. <class name="TaskLogServlet" extends="javax.servlet.http.HttpServlet"
  57761. abstract="false"
  57762. static="false" final="false" visibility="public"
  57763. deprecated="not deprecated">
  57764. <constructor name="TaskLogServlet"
  57765. static="false" final="false" visibility="public"
  57766. deprecated="not deprecated">
  57767. </constructor>
  57768. <method name="getTaskLogUrl" return="java.lang.String"
  57769. abstract="false" native="false" synchronized="false"
  57770. static="true" final="false" visibility="public"
  57771. deprecated="not deprecated">
  57772. <param name="taskTrackerHostName" type="java.lang.String"/>
  57773. <param name="httpPort" type="java.lang.String"/>
  57774. <param name="taskAttemptID" type="java.lang.String"/>
  57775. <doc>
  57776. <![CDATA[Construct the taskLogUrl
  57777. @param taskTrackerHostName
  57778. @param httpPort
  57779. @param taskAttemptID
  57780. @return the taskLogUrl]]>
  57781. </doc>
  57782. </method>
  57783. <method name="doGet"
  57784. abstract="false" native="false" synchronized="false"
  57785. static="false" final="false" visibility="public"
  57786. deprecated="not deprecated">
  57787. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  57788. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  57789. <exception name="ServletException" type="javax.servlet.ServletException"/>
  57790. <exception name="IOException" type="java.io.IOException"/>
  57791. <doc>
  57792. <![CDATA[Get the logs via http.]]>
  57793. </doc>
  57794. </method>
  57795. <doc>
  57796. <![CDATA[A servlet that is run by the TaskTrackers to provide the task logs via http.]]>
  57797. </doc>
  57798. </class>
  57799. <!-- end class org.apache.hadoop.mapred.TaskLogServlet -->
  57800. <!-- start class org.apache.hadoop.mapred.TaskLogsTruncater -->
  57801. <class name="TaskLogsTruncater" extends="java.lang.Object"
  57802. abstract="false"
  57803. static="false" final="false" visibility="public"
  57804. deprecated="not deprecated">
  57805. <constructor name="TaskLogsTruncater" type="org.apache.hadoop.conf.Configuration"
  57806. static="false" final="false" visibility="public"
  57807. deprecated="not deprecated">
  57808. </constructor>
  57809. <method name="shouldTruncateLogs" return="boolean"
  57810. abstract="false" native="false" synchronized="false"
  57811. static="false" final="false" visibility="public"
  57812. deprecated="not deprecated">
  57813. <param name="lInfo" type="org.apache.hadoop.mapreduce.server.tasktracker.JVMInfo"/>
  57814. <exception name="IOException" type="java.io.IOException"/>
  57815. <doc>
  57816. <![CDATA[Check the log file sizes generated by the attempts that ran in a
  57817. particular JVM
  57818. @param lInfo
  57819. @return is truncation required?
  57820. @throws IOException]]>
  57821. </doc>
  57822. </method>
  57823. <method name="truncateLogs"
  57824. abstract="false" native="false" synchronized="false"
  57825. static="false" final="false" visibility="public"
  57826. deprecated="not deprecated">
  57827. <param name="lInfo" type="org.apache.hadoop.mapreduce.server.tasktracker.JVMInfo"/>
  57828. <doc>
  57829. <![CDATA[Process the removed task's logs. This involves truncating them to
  57830. retainSize.]]>
  57831. </doc>
  57832. </method>
  57833. <method name="main"
  57834. abstract="false" native="false" synchronized="false"
  57835. static="true" final="false" visibility="public"
  57836. deprecated="not deprecated">
  57837. <param name="args" type="java.lang.String[]"/>
  57838. <exception name="IOException" type="java.io.IOException"/>
  57839. </method>
  57840. <doc>
  57841. <![CDATA[The class for truncating the user logs.
  57842. Should be used only by {@link UserLogManager}.]]>
  57843. </doc>
  57844. </class>
  57845. <!-- end class org.apache.hadoop.mapred.TaskLogsTruncater -->
  57846. <!-- start class org.apache.hadoop.mapred.TaskReport -->
  57847. <class name="TaskReport" extends="java.lang.Object"
  57848. abstract="false"
  57849. static="false" final="false" visibility="public"
  57850. deprecated="not deprecated">
  57851. <implements name="org.apache.hadoop.io.Writable"/>
  57852. <constructor name="TaskReport"
  57853. static="false" final="false" visibility="public"
  57854. deprecated="not deprecated">
  57855. </constructor>
  57856. <method name="getTaskId" return="java.lang.String"
  57857. abstract="false" native="false" synchronized="false"
  57858. static="false" final="false" visibility="public"
  57859. deprecated="use {@link #getTaskID()} instead">
  57860. <doc>
  57861. <![CDATA[@deprecated use {@link #getTaskID()} instead]]>
  57862. </doc>
  57863. </method>
  57864. <method name="getTaskID" return="org.apache.hadoop.mapred.TaskID"
  57865. abstract="false" native="false" synchronized="false"
  57866. static="false" final="false" visibility="public"
  57867. deprecated="not deprecated">
  57868. <doc>
  57869. <![CDATA[The id of the task.]]>
  57870. </doc>
  57871. </method>
  57872. <method name="getProgress" return="float"
  57873. abstract="false" native="false" synchronized="false"
  57874. static="false" final="false" visibility="public"
  57875. deprecated="not deprecated">
  57876. <doc>
  57877. <![CDATA[The amount completed, between zero and one.]]>
  57878. </doc>
  57879. </method>
  57880. <method name="getState" return="java.lang.String"
  57881. abstract="false" native="false" synchronized="false"
  57882. static="false" final="false" visibility="public"
  57883. deprecated="not deprecated">
  57884. <doc>
  57885. <![CDATA[The most recent state, reported by a {@link Reporter}.]]>
  57886. </doc>
  57887. </method>
  57888. <method name="getDiagnostics" return="java.lang.String[]"
  57889. abstract="false" native="false" synchronized="false"
  57890. static="false" final="false" visibility="public"
  57891. deprecated="not deprecated">
  57892. <doc>
  57893. <![CDATA[A list of error messages.]]>
  57894. </doc>
  57895. </method>
  57896. <method name="getCounters" return="org.apache.hadoop.mapred.Counters"
  57897. abstract="false" native="false" synchronized="false"
  57898. static="false" final="false" visibility="public"
  57899. deprecated="not deprecated">
  57900. <doc>
  57901. <![CDATA[A table of counters.]]>
  57902. </doc>
  57903. </method>
  57904. <method name="getCurrentStatus" return="org.apache.hadoop.mapred.TIPStatus"
  57905. abstract="false" native="false" synchronized="false"
  57906. static="false" final="false" visibility="public"
  57907. deprecated="not deprecated">
  57908. <doc>
  57909. <![CDATA[The current status]]>
  57910. </doc>
  57911. </method>
  57912. <method name="getFinishTime" return="long"
  57913. abstract="false" native="false" synchronized="false"
  57914. static="false" final="false" visibility="public"
  57915. deprecated="not deprecated">
  57916. <doc>
  57917. <![CDATA[Get finish time of task.
  57918. @return 0, if finish time was not set else returns finish time.]]>
  57919. </doc>
  57920. </method>
  57921. <method name="getStartTime" return="long"
  57922. abstract="false" native="false" synchronized="false"
  57923. static="false" final="false" visibility="public"
  57924. deprecated="not deprecated">
  57925. <doc>
  57926. <![CDATA[Get start time of task.
  57927. @return 0 if start time was not set, else start time.]]>
  57928. </doc>
  57929. </method>
  57930. <method name="setSuccessfulAttempt"
  57931. abstract="false" native="false" synchronized="false"
  57932. static="false" final="false" visibility="public"
  57933. deprecated="not deprecated">
  57934. <param name="t" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57935. <doc>
  57936. <![CDATA[set successful attempt ID of the task.]]>
  57937. </doc>
  57938. </method>
  57939. <method name="getSuccessfulTaskAttempt" return="org.apache.hadoop.mapred.TaskAttemptID"
  57940. abstract="false" native="false" synchronized="false"
  57941. static="false" final="false" visibility="public"
  57942. deprecated="not deprecated">
  57943. <doc>
  57944. <![CDATA[Get the attempt ID that took this task to completion]]>
  57945. </doc>
  57946. </method>
  57947. <method name="setRunningTaskAttempts"
  57948. abstract="false" native="false" synchronized="false"
  57949. static="false" final="false" visibility="public"
  57950. deprecated="not deprecated">
  57951. <param name="runningAttempts" type="java.util.Collection"/>
  57952. <doc>
  57953. <![CDATA[set running attempt(s) of the task.]]>
  57954. </doc>
  57955. </method>
  57956. <method name="getRunningTaskAttempts" return="java.util.Collection"
  57957. abstract="false" native="false" synchronized="false"
  57958. static="false" final="false" visibility="public"
  57959. deprecated="not deprecated">
  57960. <doc>
  57961. <![CDATA[Get the running task attempt IDs for this task]]>
  57962. </doc>
  57963. </method>
  57964. <method name="equals" return="boolean"
  57965. abstract="false" native="false" synchronized="false"
  57966. static="false" final="false" visibility="public"
  57967. deprecated="not deprecated">
  57968. <param name="o" type="java.lang.Object"/>
  57969. </method>
  57970. <method name="hashCode" return="int"
  57971. abstract="false" native="false" synchronized="false"
  57972. static="false" final="false" visibility="public"
  57973. deprecated="not deprecated">
  57974. </method>
  57975. <method name="write"
  57976. abstract="false" native="false" synchronized="false"
  57977. static="false" final="false" visibility="public"
  57978. deprecated="not deprecated">
  57979. <param name="out" type="java.io.DataOutput"/>
  57980. <exception name="IOException" type="java.io.IOException"/>
  57981. </method>
  57982. <method name="readFields"
  57983. abstract="false" native="false" synchronized="false"
  57984. static="false" final="false" visibility="public"
  57985. deprecated="not deprecated">
  57986. <param name="in" type="java.io.DataInput"/>
  57987. <exception name="IOException" type="java.io.IOException"/>
  57988. </method>
  57989. <doc>
  57990. <![CDATA[A report on the state of a task.]]>
  57991. </doc>
  57992. </class>
  57993. <!-- end class org.apache.hadoop.mapred.TaskReport -->
  57994. <!-- start class org.apache.hadoop.mapred.TaskStatus -->
  57995. <class name="TaskStatus" extends="java.lang.Object"
  57996. abstract="true"
  57997. static="false" final="false" visibility="public"
  57998. deprecated="not deprecated">
  57999. <implements name="org.apache.hadoop.io.Writable"/>
  58000. <implements name="java.lang.Cloneable"/>
  58001. <constructor name="TaskStatus"
  58002. static="false" final="false" visibility="public"
  58003. deprecated="not deprecated">
  58004. </constructor>
  58005. <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"
  58006. static="false" final="false" visibility="public"
  58007. deprecated="not deprecated">
  58008. </constructor>
  58009. <method name="getTaskID" return="org.apache.hadoop.mapred.TaskAttemptID"
  58010. abstract="false" native="false" synchronized="false"
  58011. static="false" final="false" visibility="public"
  58012. deprecated="not deprecated">
  58013. </method>
  58014. <method name="getIsMap" return="boolean"
  58015. abstract="true" native="false" synchronized="false"
  58016. static="false" final="false" visibility="public"
  58017. deprecated="not deprecated">
  58018. </method>
  58019. <method name="getNumSlots" return="int"
  58020. abstract="false" native="false" synchronized="false"
  58021. static="false" final="false" visibility="public"
  58022. deprecated="not deprecated">
  58023. </method>
  58024. <method name="getProgress" return="float"
  58025. abstract="false" native="false" synchronized="false"
  58026. static="false" final="false" visibility="public"
  58027. deprecated="not deprecated">
  58028. </method>
  58029. <method name="setProgress"
  58030. abstract="false" native="false" synchronized="false"
  58031. static="false" final="false" visibility="public"
  58032. deprecated="not deprecated">
  58033. <param name="progress" type="float"/>
  58034. </method>
  58035. <method name="getRunState" return="org.apache.hadoop.mapred.TaskStatus.State"
  58036. abstract="false" native="false" synchronized="false"
  58037. static="false" final="false" visibility="public"
  58038. deprecated="not deprecated">
  58039. </method>
  58040. <method name="getTaskTracker" return="java.lang.String"
  58041. abstract="false" native="false" synchronized="false"
  58042. static="false" final="false" visibility="public"
  58043. deprecated="not deprecated">
  58044. </method>
  58045. <method name="setTaskTracker"
  58046. abstract="false" native="false" synchronized="false"
  58047. static="false" final="false" visibility="public"
  58048. deprecated="not deprecated">
  58049. <param name="tracker" type="java.lang.String"/>
  58050. </method>
  58051. <method name="setRunState"
  58052. abstract="false" native="false" synchronized="false"
  58053. static="false" final="false" visibility="public"
  58054. deprecated="not deprecated">
  58055. <param name="runState" type="org.apache.hadoop.mapred.TaskStatus.State"/>
  58056. </method>
  58057. <method name="getDiagnosticInfo" return="java.lang.String"
  58058. abstract="false" native="false" synchronized="false"
  58059. static="false" final="false" visibility="public"
  58060. deprecated="not deprecated">
  58061. </method>
  58062. <method name="setDiagnosticInfo"
  58063. abstract="false" native="false" synchronized="false"
  58064. static="false" final="false" visibility="public"
  58065. deprecated="not deprecated">
  58066. <param name="info" type="java.lang.String"/>
  58067. </method>
  58068. <method name="getStateString" return="java.lang.String"
  58069. abstract="false" native="false" synchronized="false"
  58070. static="false" final="false" visibility="public"
  58071. deprecated="not deprecated">
  58072. </method>
  58073. <method name="setStateString"
  58074. abstract="false" native="false" synchronized="false"
  58075. static="false" final="false" visibility="public"
  58076. deprecated="not deprecated">
  58077. <param name="stateString" type="java.lang.String"/>
  58078. </method>
  58079. <method name="getNextRecordRange" return="org.apache.hadoop.mapred.SortedRanges.Range"
  58080. abstract="false" native="false" synchronized="false"
  58081. static="false" final="false" visibility="public"
  58082. deprecated="not deprecated">
  58083. <doc>
  58084. <![CDATA[Get the next record range which is going to be processed by Task.
  58085. @return nextRecordRange]]>
  58086. </doc>
  58087. </method>
  58088. <method name="setNextRecordRange"
  58089. abstract="false" native="false" synchronized="false"
  58090. static="false" final="false" visibility="public"
  58091. deprecated="not deprecated">
  58092. <param name="nextRecordRange" type="org.apache.hadoop.mapred.SortedRanges.Range"/>
  58093. <doc>
  58094. <![CDATA[Set the next record range which is going to be processed by Task.
  58095. @param nextRecordRange]]>
  58096. </doc>
  58097. </method>
  58098. <method name="getFinishTime" return="long"
  58099. abstract="false" native="false" synchronized="false"
  58100. static="false" final="false" visibility="public"
  58101. deprecated="not deprecated">
  58102. <doc>
  58103. <![CDATA[Get task finish time. if shuffleFinishTime and sortFinishTime
  58104. are not set before, these are set to finishTime. It takes care of
  58105. the case when shuffle, sort and finish are completed with in the
  58106. heartbeat interval and are not reported separately. if task state is
  58107. TaskStatus.FAILED then finish time represents when the task failed.
  58108. @return finish time of the task.]]>
  58109. </doc>
  58110. </method>
  58111. <method name="getShuffleFinishTime" return="long"
  58112. abstract="false" native="false" synchronized="false"
  58113. static="false" final="false" visibility="public"
  58114. deprecated="not deprecated">
  58115. <doc>
  58116. <![CDATA[Get shuffle finish time for the task. If shuffle finish time was
  58117. not set due to shuffle/sort/finish phases ending within same
  58118. heartbeat interval, it is set to finish time of next phase i.e. sort
  58119. or task finish when these are set.
  58120. @return 0 if shuffleFinishTime, sortFinishTime and finish time are not set. else
  58121. it returns approximate shuffle finish time.]]>
  58122. </doc>
  58123. </method>
  58124. <method name="getSortFinishTime" return="long"
  58125. abstract="false" native="false" synchronized="false"
  58126. static="false" final="false" visibility="public"
  58127. deprecated="not deprecated">
  58128. <doc>
  58129. <![CDATA[Get sort finish time for the task,. If sort finish time was not set
  58130. due to sort and reduce phase finishing in same heartebat interval, it is
  58131. set to finish time, when finish time is set.
  58132. @return 0 if sort finish time and finish time are not set, else returns sort
  58133. finish time if that is set, else it returns finish time.]]>
  58134. </doc>
  58135. </method>
  58136. <method name="getStartTime" return="long"
  58137. abstract="false" native="false" synchronized="false"
  58138. static="false" final="false" visibility="public"
  58139. deprecated="not deprecated">
  58140. <doc>
  58141. <![CDATA[Get start time of the task.
  58142. @return 0 is start time is not set, else returns start time.]]>
  58143. </doc>
  58144. </method>
  58145. <method name="getPhase" return="org.apache.hadoop.mapred.TaskStatus.Phase"
  58146. abstract="false" native="false" synchronized="false"
  58147. static="false" final="false" visibility="public"
  58148. deprecated="not deprecated">
  58149. <doc>
  58150. <![CDATA[Get current phase of this task. Phase.Map in case of map tasks,
  58151. for reduce one of Phase.SHUFFLE, Phase.SORT or Phase.REDUCE.
  58152. @return .]]>
  58153. </doc>
  58154. </method>
  58155. <method name="getIncludeCounters" return="boolean"
  58156. abstract="false" native="false" synchronized="false"
  58157. static="false" final="false" visibility="public"
  58158. deprecated="not deprecated">
  58159. </method>
  58160. <method name="setIncludeCounters"
  58161. abstract="false" native="false" synchronized="false"
  58162. static="false" final="false" visibility="public"
  58163. deprecated="not deprecated">
  58164. <param name="send" type="boolean"/>
  58165. </method>
  58166. <method name="getCounters" return="org.apache.hadoop.mapred.Counters"
  58167. abstract="false" native="false" synchronized="false"
  58168. static="false" final="false" visibility="public"
  58169. deprecated="not deprecated">
  58170. <doc>
  58171. <![CDATA[Get task's counters.]]>
  58172. </doc>
  58173. </method>
  58174. <method name="setCounters"
  58175. abstract="false" native="false" synchronized="false"
  58176. static="false" final="false" visibility="public"
  58177. deprecated="not deprecated">
  58178. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  58179. <doc>
  58180. <![CDATA[Set the task's counters.
  58181. @param counters]]>
  58182. </doc>
  58183. </method>
  58184. <method name="getOutputSize" return="long"
  58185. abstract="false" native="false" synchronized="false"
  58186. static="false" final="false" visibility="public"
  58187. deprecated="not deprecated">
  58188. <doc>
  58189. <![CDATA[Returns the number of bytes of output from this map.]]>
  58190. </doc>
  58191. </method>
  58192. <method name="getFetchFailedMaps" return="java.util.List"
  58193. abstract="false" native="false" synchronized="false"
  58194. static="false" final="false" visibility="public"
  58195. deprecated="not deprecated">
  58196. <doc>
  58197. <![CDATA[Get the list of maps from which output-fetches failed.
  58198. @return the list of maps from which output-fetches failed.]]>
  58199. </doc>
  58200. </method>
  58201. <method name="clone" return="java.lang.Object"
  58202. abstract="false" native="false" synchronized="false"
  58203. static="false" final="false" visibility="public"
  58204. deprecated="not deprecated">
  58205. </method>
  58206. <method name="write"
  58207. abstract="false" native="false" synchronized="false"
  58208. static="false" final="false" visibility="public"
  58209. deprecated="not deprecated">
  58210. <param name="out" type="java.io.DataOutput"/>
  58211. <exception name="IOException" type="java.io.IOException"/>
  58212. </method>
  58213. <method name="readFields"
  58214. abstract="false" native="false" synchronized="false"
  58215. static="false" final="false" visibility="public"
  58216. deprecated="not deprecated">
  58217. <param name="in" type="java.io.DataInput"/>
  58218. <exception name="IOException" type="java.io.IOException"/>
  58219. </method>
  58220. <doc>
  58221. <![CDATA[Describes the current status of a task. This is
  58222. not intended to be a comprehensive piece of data.]]>
  58223. </doc>
  58224. </class>
  58225. <!-- end class org.apache.hadoop.mapred.TaskStatus -->
  58226. <!-- start class org.apache.hadoop.mapred.TaskStatus.Phase -->
  58227. <class name="TaskStatus.Phase" extends="java.lang.Enum"
  58228. abstract="false"
  58229. static="true" final="true" visibility="public"
  58230. deprecated="not deprecated">
  58231. <method name="values" return="org.apache.hadoop.mapred.TaskStatus.Phase[]"
  58232. abstract="false" native="false" synchronized="false"
  58233. static="true" final="false" visibility="public"
  58234. deprecated="not deprecated">
  58235. </method>
  58236. <method name="valueOf" return="org.apache.hadoop.mapred.TaskStatus.Phase"
  58237. abstract="false" native="false" synchronized="false"
  58238. static="true" final="false" visibility="public"
  58239. deprecated="not deprecated">
  58240. <param name="name" type="java.lang.String"/>
  58241. </method>
  58242. <field name="STARTING" type="org.apache.hadoop.mapred.TaskStatus.Phase"
  58243. transient="false" volatile="false"
  58244. static="true" final="true" visibility="public"
  58245. deprecated="not deprecated">
  58246. </field>
  58247. <field name="MAP" type="org.apache.hadoop.mapred.TaskStatus.Phase"
  58248. transient="false" volatile="false"
  58249. static="true" final="true" visibility="public"
  58250. deprecated="not deprecated">
  58251. </field>
  58252. <field name="SHUFFLE" type="org.apache.hadoop.mapred.TaskStatus.Phase"
  58253. transient="false" volatile="false"
  58254. static="true" final="true" visibility="public"
  58255. deprecated="not deprecated">
  58256. </field>
  58257. <field name="SORT" type="org.apache.hadoop.mapred.TaskStatus.Phase"
  58258. transient="false" volatile="false"
  58259. static="true" final="true" visibility="public"
  58260. deprecated="not deprecated">
  58261. </field>
  58262. <field name="REDUCE" type="org.apache.hadoop.mapred.TaskStatus.Phase"
  58263. transient="false" volatile="false"
  58264. static="true" final="true" visibility="public"
  58265. deprecated="not deprecated">
  58266. </field>
  58267. <field name="CLEANUP" type="org.apache.hadoop.mapred.TaskStatus.Phase"
  58268. transient="false" volatile="false"
  58269. static="true" final="true" visibility="public"
  58270. deprecated="not deprecated">
  58271. </field>
  58272. </class>
  58273. <!-- end class org.apache.hadoop.mapred.TaskStatus.Phase -->
  58274. <!-- start class org.apache.hadoop.mapred.TaskStatus.State -->
  58275. <class name="TaskStatus.State" extends="java.lang.Enum"
  58276. abstract="false"
  58277. static="true" final="true" visibility="public"
  58278. deprecated="not deprecated">
  58279. <method name="values" return="org.apache.hadoop.mapred.TaskStatus.State[]"
  58280. abstract="false" native="false" synchronized="false"
  58281. static="true" final="false" visibility="public"
  58282. deprecated="not deprecated">
  58283. </method>
  58284. <method name="valueOf" return="org.apache.hadoop.mapred.TaskStatus.State"
  58285. abstract="false" native="false" synchronized="false"
  58286. static="true" final="false" visibility="public"
  58287. deprecated="not deprecated">
  58288. <param name="name" type="java.lang.String"/>
  58289. </method>
  58290. <field name="RUNNING" type="org.apache.hadoop.mapred.TaskStatus.State"
  58291. transient="false" volatile="false"
  58292. static="true" final="true" visibility="public"
  58293. deprecated="not deprecated">
  58294. </field>
  58295. <field name="SUCCEEDED" type="org.apache.hadoop.mapred.TaskStatus.State"
  58296. transient="false" volatile="false"
  58297. static="true" final="true" visibility="public"
  58298. deprecated="not deprecated">
  58299. </field>
  58300. <field name="FAILED" type="org.apache.hadoop.mapred.TaskStatus.State"
  58301. transient="false" volatile="false"
  58302. static="true" final="true" visibility="public"
  58303. deprecated="not deprecated">
  58304. </field>
  58305. <field name="UNASSIGNED" type="org.apache.hadoop.mapred.TaskStatus.State"
  58306. transient="false" volatile="false"
  58307. static="true" final="true" visibility="public"
  58308. deprecated="not deprecated">
  58309. </field>
  58310. <field name="KILLED" type="org.apache.hadoop.mapred.TaskStatus.State"
  58311. transient="false" volatile="false"
  58312. static="true" final="true" visibility="public"
  58313. deprecated="not deprecated">
  58314. </field>
  58315. <field name="COMMIT_PENDING" type="org.apache.hadoop.mapred.TaskStatus.State"
  58316. transient="false" volatile="false"
  58317. static="true" final="true" visibility="public"
  58318. deprecated="not deprecated">
  58319. </field>
  58320. <field name="FAILED_UNCLEAN" type="org.apache.hadoop.mapred.TaskStatus.State"
  58321. transient="false" volatile="false"
  58322. static="true" final="true" visibility="public"
  58323. deprecated="not deprecated">
  58324. </field>
  58325. <field name="KILLED_UNCLEAN" type="org.apache.hadoop.mapred.TaskStatus.State"
  58326. transient="false" volatile="false"
  58327. static="true" final="true" visibility="public"
  58328. deprecated="not deprecated">
  58329. </field>
  58330. </class>
  58331. <!-- end class org.apache.hadoop.mapred.TaskStatus.State -->
  58332. <!-- start class org.apache.hadoop.mapred.TaskTracker -->
  58333. <class name="TaskTracker" extends="java.lang.Object"
  58334. abstract="false"
  58335. static="false" final="false" visibility="public"
  58336. deprecated="not deprecated">
  58337. <implements name="org.apache.hadoop.mapred.MRConstants"/>
  58338. <implements name="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  58339. <implements name="java.lang.Runnable"/>
  58340. <implements name="org.apache.hadoop.mapred.TaskTrackerMXBean"/>
  58341. <constructor name="TaskTracker" type="org.apache.hadoop.mapred.JobConf"
  58342. static="false" final="false" visibility="public"
  58343. deprecated="not deprecated">
  58344. <exception name="IOException" type="java.io.IOException"/>
  58345. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  58346. <doc>
  58347. <![CDATA[Start with the local machine name, and the default JobTracker]]>
  58348. </doc>
  58349. </constructor>
  58350. <method name="getTaskTrackerInstrumentation" return="org.apache.hadoop.mapred.TaskTrackerInstrumentation"
  58351. abstract="false" native="false" synchronized="false"
  58352. static="false" final="false" visibility="public"
  58353. deprecated="not deprecated">
  58354. </method>
  58355. <method name="getTaskController" return="org.apache.hadoop.mapred.TaskController"
  58356. abstract="false" native="false" synchronized="false"
  58357. static="false" final="false" visibility="public"
  58358. deprecated="not deprecated">
  58359. </method>
  58360. <method name="getUserDir" return="java.lang.String"
  58361. abstract="false" native="false" synchronized="false"
  58362. static="true" final="false" visibility="public"
  58363. deprecated="not deprecated">
  58364. <param name="user" type="java.lang.String"/>
  58365. </method>
  58366. <method name="getPrivateDistributedCacheDir" return="java.lang.String"
  58367. abstract="false" native="false" synchronized="false"
  58368. static="true" final="false" visibility="public"
  58369. deprecated="not deprecated">
  58370. <param name="user" type="java.lang.String"/>
  58371. </method>
  58372. <method name="getPublicDistributedCacheDir" return="java.lang.String"
  58373. abstract="false" native="false" synchronized="false"
  58374. static="true" final="false" visibility="public"
  58375. deprecated="not deprecated">
  58376. </method>
  58377. <method name="getJobCacheSubdir" return="java.lang.String"
  58378. abstract="false" native="false" synchronized="false"
  58379. static="true" final="false" visibility="public"
  58380. deprecated="not deprecated">
  58381. <param name="user" type="java.lang.String"/>
  58382. </method>
  58383. <method name="getLocalJobDir" return="java.lang.String"
  58384. abstract="false" native="false" synchronized="false"
  58385. static="true" final="false" visibility="public"
  58386. deprecated="not deprecated">
  58387. <param name="user" type="java.lang.String"/>
  58388. <param name="jobid" type="java.lang.String"/>
  58389. </method>
  58390. <method name="getJobJarFile" return="java.lang.String"
  58391. abstract="false" native="false" synchronized="false"
  58392. static="true" final="false" visibility="public"
  58393. deprecated="not deprecated">
  58394. <param name="user" type="java.lang.String"/>
  58395. <param name="jobid" type="java.lang.String"/>
  58396. </method>
  58397. <method name="getLocalTaskDir" return="java.lang.String"
  58398. abstract="false" native="false" synchronized="false"
  58399. static="true" final="false" visibility="public"
  58400. deprecated="not deprecated">
  58401. <param name="user" type="java.lang.String"/>
  58402. <param name="jobid" type="java.lang.String"/>
  58403. <param name="taskid" type="java.lang.String"/>
  58404. </method>
  58405. <method name="getLocalTaskDir" return="java.lang.String"
  58406. abstract="false" native="false" synchronized="false"
  58407. static="true" final="false" visibility="public"
  58408. deprecated="not deprecated">
  58409. <param name="user" type="java.lang.String"/>
  58410. <param name="jobid" type="java.lang.String"/>
  58411. <param name="taskid" type="java.lang.String"/>
  58412. <param name="isCleanupAttempt" type="boolean"/>
  58413. </method>
  58414. <method name="getProtocolVersion" return="long"
  58415. abstract="false" native="false" synchronized="false"
  58416. static="false" final="false" visibility="public"
  58417. deprecated="not deprecated">
  58418. <param name="protocol" type="java.lang.String"/>
  58419. <param name="clientVersion" type="long"/>
  58420. <exception name="IOException" type="java.io.IOException"/>
  58421. </method>
  58422. <method name="cleanupStorage"
  58423. abstract="false" native="false" synchronized="false"
  58424. static="false" final="false" visibility="public"
  58425. deprecated="not deprecated">
  58426. <exception name="IOException" type="java.io.IOException"/>
  58427. <doc>
  58428. <![CDATA[Removes all contents of temporary storage. Called upon
  58429. startup, to remove any leftovers from previous run.]]>
  58430. </doc>
  58431. </method>
  58432. <method name="launchTaskForJob"
  58433. abstract="false" native="false" synchronized="false"
  58434. static="false" final="false" visibility="protected"
  58435. deprecated="not deprecated">
  58436. <param name="tip" type="org.apache.hadoop.mapred.TaskTracker.TaskInProgress"/>
  58437. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  58438. <param name="rjob" type="org.apache.hadoop.mapred.TaskTracker.RunningJob"/>
  58439. <exception name="IOException" type="java.io.IOException"/>
  58440. </method>
  58441. <method name="shutdown"
  58442. abstract="false" native="false" synchronized="true"
  58443. static="false" final="false" visibility="public"
  58444. deprecated="not deprecated">
  58445. <exception name="IOException" type="java.io.IOException"/>
  58446. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  58447. </method>
  58448. <method name="close"
  58449. abstract="false" native="false" synchronized="true"
  58450. static="false" final="false" visibility="public"
  58451. deprecated="not deprecated">
  58452. <exception name="IOException" type="java.io.IOException"/>
  58453. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  58454. <doc>
  58455. <![CDATA[Close down the TaskTracker and all its components. We must also shutdown
  58456. any running tasks or threads, and cleanup disk space. A new TaskTracker
  58457. within the same process space might be restarted, so everything must be
  58458. clean.
  58459. @throws InterruptedException]]>
  58460. </doc>
  58461. </method>
  58462. <method name="getJobClient" return="org.apache.hadoop.mapred.InterTrackerProtocol"
  58463. abstract="false" native="false" synchronized="false"
  58464. static="false" final="false" visibility="public"
  58465. deprecated="not deprecated">
  58466. <doc>
  58467. <![CDATA[The connection to the JobTracker, used by the TaskRunner
  58468. for locating remote files.]]>
  58469. </doc>
  58470. </method>
  58471. <method name="getTaskTrackerReportAddress" return="java.net.InetSocketAddress"
  58472. abstract="false" native="false" synchronized="true"
  58473. static="false" final="false" visibility="public"
  58474. deprecated="not deprecated">
  58475. <doc>
  58476. <![CDATA[Return the port at which the tasktracker bound to]]>
  58477. </doc>
  58478. </method>
  58479. <method name="getJvmManagerInstance" return="org.apache.hadoop.mapred.JvmManager"
  58480. abstract="false" native="false" synchronized="false"
  58481. static="false" final="false" visibility="public"
  58482. deprecated="not deprecated">
  58483. </method>
  58484. <method name="run"
  58485. abstract="false" native="false" synchronized="false"
  58486. static="false" final="false" visibility="public"
  58487. deprecated="not deprecated">
  58488. <doc>
  58489. <![CDATA[The server retry loop.
  58490. This while-loop attempts to connect to the JobTracker. It only
  58491. loops when the old TaskTracker has gone bad (its state is
  58492. stale somehow) and we need to reinitialize everything.]]>
  58493. </doc>
  58494. </method>
  58495. <method name="getTask" return="org.apache.hadoop.mapred.JvmTask"
  58496. abstract="false" native="false" synchronized="true"
  58497. static="false" final="false" visibility="public"
  58498. deprecated="not deprecated">
  58499. <param name="context" type="org.apache.hadoop.mapred.JvmContext"/>
  58500. <exception name="IOException" type="java.io.IOException"/>
  58501. <doc>
  58502. <![CDATA[Called upon startup by the child process, to fetch Task data.]]>
  58503. </doc>
  58504. </method>
  58505. <method name="statusUpdate" return="boolean"
  58506. abstract="false" native="false" synchronized="true"
  58507. static="false" final="false" visibility="public"
  58508. deprecated="not deprecated">
  58509. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58510. <param name="taskStatus" type="org.apache.hadoop.mapred.TaskStatus"/>
  58511. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  58512. <exception name="IOException" type="java.io.IOException"/>
  58513. <doc>
  58514. <![CDATA[Called periodically to report Task progress, from 0.0 to 1.0.]]>
  58515. </doc>
  58516. </method>
  58517. <method name="reportDiagnosticInfo"
  58518. abstract="false" native="false" synchronized="true"
  58519. static="false" final="false" visibility="public"
  58520. deprecated="not deprecated">
  58521. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58522. <param name="info" type="java.lang.String"/>
  58523. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  58524. <exception name="IOException" type="java.io.IOException"/>
  58525. <doc>
  58526. <![CDATA[Called when the task dies before completion, and we want to report back
  58527. diagnostic info]]>
  58528. </doc>
  58529. </method>
  58530. <method name="reportNextRecordRange"
  58531. abstract="false" native="false" synchronized="true"
  58532. static="false" final="false" visibility="public"
  58533. deprecated="not deprecated">
  58534. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58535. <param name="range" type="org.apache.hadoop.mapred.SortedRanges.Range"/>
  58536. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  58537. <exception name="IOException" type="java.io.IOException"/>
  58538. </method>
  58539. <method name="ping" return="boolean"
  58540. abstract="false" native="false" synchronized="true"
  58541. static="false" final="false" visibility="public"
  58542. deprecated="not deprecated">
  58543. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58544. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  58545. <exception name="IOException" type="java.io.IOException"/>
  58546. <doc>
  58547. <![CDATA[Child checking to see if we're alive. Normally does nothing.]]>
  58548. </doc>
  58549. </method>
  58550. <method name="commitPending"
  58551. abstract="false" native="false" synchronized="true"
  58552. static="false" final="false" visibility="public"
  58553. deprecated="not deprecated">
  58554. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58555. <param name="taskStatus" type="org.apache.hadoop.mapred.TaskStatus"/>
  58556. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  58557. <exception name="IOException" type="java.io.IOException"/>
  58558. <doc>
  58559. <![CDATA[Task is reporting that it is in commit_pending
  58560. and it is waiting for the commit Response]]>
  58561. </doc>
  58562. </method>
  58563. <method name="canCommit" return="boolean"
  58564. abstract="false" native="false" synchronized="true"
  58565. static="false" final="false" visibility="public"
  58566. deprecated="not deprecated">
  58567. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58568. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  58569. <exception name="IOException" type="java.io.IOException"/>
  58570. <doc>
  58571. <![CDATA[Child checking whether it can commit]]>
  58572. </doc>
  58573. </method>
  58574. <method name="done"
  58575. abstract="false" native="false" synchronized="true"
  58576. static="false" final="false" visibility="public"
  58577. deprecated="not deprecated">
  58578. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58579. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  58580. <exception name="IOException" type="java.io.IOException"/>
  58581. <doc>
  58582. <![CDATA[The task is done.]]>
  58583. </doc>
  58584. </method>
  58585. <method name="shuffleError"
  58586. abstract="false" native="false" synchronized="true"
  58587. static="false" final="false" visibility="public"
  58588. deprecated="not deprecated">
  58589. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58590. <param name="message" type="java.lang.String"/>
  58591. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  58592. <exception name="IOException" type="java.io.IOException"/>
  58593. <doc>
  58594. <![CDATA[A reduce-task failed to shuffle the map-outputs. Kill the task.]]>
  58595. </doc>
  58596. </method>
  58597. <method name="fsError"
  58598. abstract="false" native="false" synchronized="true"
  58599. static="false" final="false" visibility="public"
  58600. deprecated="not deprecated">
  58601. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58602. <param name="message" type="java.lang.String"/>
  58603. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  58604. <exception name="IOException" type="java.io.IOException"/>
  58605. <doc>
  58606. <![CDATA[A child task had a local filesystem error. Kill the task.]]>
  58607. </doc>
  58608. </method>
  58609. <method name="fatalError"
  58610. abstract="false" native="false" synchronized="true"
  58611. static="false" final="false" visibility="public"
  58612. deprecated="not deprecated">
  58613. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58614. <param name="msg" type="java.lang.String"/>
  58615. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  58616. <exception name="IOException" type="java.io.IOException"/>
  58617. <doc>
  58618. <![CDATA[A child task had a fatal error. Kill the task.]]>
  58619. </doc>
  58620. </method>
  58621. <method name="getMapCompletionEvents" return="org.apache.hadoop.mapred.MapTaskCompletionEventsUpdate"
  58622. abstract="false" native="false" synchronized="true"
  58623. static="false" final="false" visibility="public"
  58624. deprecated="not deprecated">
  58625. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  58626. <param name="fromEventId" type="int"/>
  58627. <param name="maxLocs" type="int"/>
  58628. <param name="id" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58629. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  58630. <exception name="IOException" type="java.io.IOException"/>
  58631. </method>
  58632. <method name="mapOutputLost"
  58633. abstract="false" native="false" synchronized="true"
  58634. static="false" final="false" visibility="public"
  58635. deprecated="not deprecated">
  58636. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58637. <param name="errorMsg" type="java.lang.String"/>
  58638. <exception name="IOException" type="java.io.IOException"/>
  58639. <doc>
  58640. <![CDATA[A completed map task's output has been lost.]]>
  58641. </doc>
  58642. </method>
  58643. <method name="isIdle" return="boolean"
  58644. abstract="false" native="false" synchronized="true"
  58645. static="false" final="false" visibility="public"
  58646. deprecated="not deprecated">
  58647. <doc>
  58648. <![CDATA[Is this task tracker idle?
  58649. @return has this task tracker finished all its assigned tasks?]]>
  58650. </doc>
  58651. </method>
  58652. <method name="isIdleAndClean" return="boolean"
  58653. abstract="false" native="false" synchronized="true"
  58654. static="false" final="false" visibility="public"
  58655. deprecated="not deprecated">
  58656. <doc>
  58657. <![CDATA[Is this task tracker idle and clean?
  58658. @return has this task tracker finished and cleaned up all of its tasks?]]>
  58659. </doc>
  58660. </method>
  58661. <method name="main"
  58662. abstract="false" native="false" synchronized="false"
  58663. static="true" final="false" visibility="public"
  58664. deprecated="not deprecated">
  58665. <param name="argv" type="java.lang.String[]"/>
  58666. <exception name="Exception" type="java.lang.Exception"/>
  58667. <doc>
  58668. <![CDATA[Start the TaskTracker, point toward the indicated JobTracker]]>
  58669. </doc>
  58670. </method>
  58671. <method name="isTaskMemoryManagerEnabled" return="boolean"
  58672. abstract="false" native="false" synchronized="false"
  58673. static="false" final="false" visibility="public"
  58674. deprecated="not deprecated">
  58675. <doc>
  58676. <![CDATA[Is the TaskMemoryManager Enabled on this system?
  58677. @return true if enabled, false otherwise.]]>
  58678. </doc>
  58679. </method>
  58680. <method name="getTaskMemoryManager" return="org.apache.hadoop.mapred.TaskMemoryManagerThread"
  58681. abstract="false" native="false" synchronized="false"
  58682. static="false" final="false" visibility="public"
  58683. deprecated="not deprecated">
  58684. </method>
  58685. <method name="getHostname" return="java.lang.String"
  58686. abstract="false" native="false" synchronized="false"
  58687. static="false" final="false" visibility="public"
  58688. deprecated="not deprecated">
  58689. </method>
  58690. <method name="getVersion" return="java.lang.String"
  58691. abstract="false" native="false" synchronized="false"
  58692. static="false" final="false" visibility="public"
  58693. deprecated="not deprecated">
  58694. </method>
  58695. <method name="getConfigVersion" return="java.lang.String"
  58696. abstract="false" native="false" synchronized="false"
  58697. static="false" final="false" visibility="public"
  58698. deprecated="not deprecated">
  58699. </method>
  58700. <method name="getJobTrackerUrl" return="java.lang.String"
  58701. abstract="false" native="false" synchronized="false"
  58702. static="false" final="false" visibility="public"
  58703. deprecated="not deprecated">
  58704. </method>
  58705. <method name="getRpcPort" return="int"
  58706. abstract="false" native="false" synchronized="false"
  58707. static="false" final="false" visibility="public"
  58708. deprecated="not deprecated">
  58709. </method>
  58710. <method name="getHttpPort" return="int"
  58711. abstract="false" native="false" synchronized="false"
  58712. static="false" final="false" visibility="public"
  58713. deprecated="not deprecated">
  58714. </method>
  58715. <method name="isHealthy" return="boolean"
  58716. abstract="false" native="false" synchronized="false"
  58717. static="false" final="false" visibility="public"
  58718. deprecated="not deprecated">
  58719. </method>
  58720. <method name="getTasksInfoJson" return="java.lang.String"
  58721. abstract="false" native="false" synchronized="false"
  58722. static="false" final="false" visibility="public"
  58723. deprecated="not deprecated">
  58724. </method>
  58725. <method name="updatePrivateDistributedCacheSizes"
  58726. abstract="false" native="false" synchronized="false"
  58727. static="false" final="false" visibility="public"
  58728. deprecated="not deprecated">
  58729. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  58730. <param name="sizes" type="long[]"/>
  58731. <exception name="IOException" type="java.io.IOException"/>
  58732. </method>
  58733. <field name="LOG" type="org.apache.commons.logging.Log"
  58734. transient="false" volatile="false"
  58735. static="true" final="true" visibility="public"
  58736. deprecated="not deprecated">
  58737. </field>
  58738. <field name="MR_CLIENTTRACE_FORMAT" type="java.lang.String"
  58739. transient="false" volatile="false"
  58740. static="true" final="true" visibility="public"
  58741. deprecated="not deprecated">
  58742. </field>
  58743. <field name="ClientTraceLog" type="org.apache.commons.logging.Log"
  58744. transient="false" volatile="false"
  58745. static="true" final="true" visibility="public"
  58746. deprecated="not deprecated">
  58747. </field>
  58748. <field name="SUBDIR" type="java.lang.String"
  58749. transient="false" volatile="false"
  58750. static="true" final="true" visibility="public"
  58751. deprecated="not deprecated">
  58752. </field>
  58753. <field name="TT_LOG_TMP_DIR" type="java.lang.String"
  58754. transient="false" volatile="false"
  58755. static="true" final="true" visibility="public"
  58756. deprecated="not deprecated">
  58757. </field>
  58758. <field name="TT_RESOURCE_CALCULATOR_PLUGIN" type="java.lang.String"
  58759. transient="false" volatile="false"
  58760. static="true" final="true" visibility="public"
  58761. deprecated="not deprecated">
  58762. </field>
  58763. <field name="TT_USER_NAME" type="java.lang.String"
  58764. transient="false" volatile="false"
  58765. static="true" final="true" visibility="public"
  58766. deprecated="not deprecated">
  58767. </field>
  58768. <field name="TT_KEYTAB_FILE" type="java.lang.String"
  58769. transient="false" volatile="false"
  58770. static="true" final="true" visibility="public"
  58771. deprecated="not deprecated">
  58772. </field>
  58773. <doc>
  58774. <![CDATA[TaskTracker is a process that starts and tracks MR Tasks
  58775. in a networked environment. It contacts the JobTracker
  58776. for Task assignments and reporting results.]]>
  58777. </doc>
  58778. </class>
  58779. <!-- end class org.apache.hadoop.mapred.TaskTracker -->
  58780. <!-- start class org.apache.hadoop.mapred.TaskTracker.MapOutputServlet -->
  58781. <class name="TaskTracker.MapOutputServlet" extends="javax.servlet.http.HttpServlet"
  58782. abstract="false"
  58783. static="true" final="false" visibility="public"
  58784. deprecated="not deprecated">
  58785. <constructor name="TaskTracker.MapOutputServlet"
  58786. static="false" final="false" visibility="public"
  58787. deprecated="not deprecated">
  58788. </constructor>
  58789. <method name="doGet"
  58790. abstract="false" native="false" synchronized="false"
  58791. static="false" final="false" visibility="public"
  58792. deprecated="not deprecated">
  58793. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  58794. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  58795. <exception name="ServletException" type="javax.servlet.ServletException"/>
  58796. <exception name="IOException" type="java.io.IOException"/>
  58797. </method>
  58798. <doc>
  58799. <![CDATA[This class is used in TaskTracker's Jetty to serve the map outputs
  58800. to other nodes.]]>
  58801. </doc>
  58802. </class>
  58803. <!-- end class org.apache.hadoop.mapred.TaskTracker.MapOutputServlet -->
  58804. <!-- start class org.apache.hadoop.mapred.TaskTrackerMetricsSource -->
  58805. <class name="TaskTrackerMetricsSource" extends="org.apache.hadoop.mapred.TaskTrackerInstrumentation"
  58806. abstract="false"
  58807. static="false" final="false" visibility="public"
  58808. deprecated="not deprecated">
  58809. <implements name="org.apache.hadoop.metrics2.MetricsSource"/>
  58810. <constructor name="TaskTrackerMetricsSource" type="org.apache.hadoop.mapred.TaskTracker"
  58811. static="false" final="false" visibility="public"
  58812. deprecated="not deprecated">
  58813. </constructor>
  58814. <method name="getMetrics"
  58815. abstract="false" native="false" synchronized="false"
  58816. static="false" final="false" visibility="public"
  58817. deprecated="not deprecated">
  58818. <param name="builder" type="org.apache.hadoop.metrics2.MetricsBuilder"/>
  58819. <param name="all" type="boolean"/>
  58820. </method>
  58821. <method name="completeTask"
  58822. abstract="false" native="false" synchronized="false"
  58823. static="false" final="false" visibility="public"
  58824. deprecated="not deprecated">
  58825. <param name="t" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58826. </method>
  58827. <method name="timedoutTask"
  58828. abstract="false" native="false" synchronized="false"
  58829. static="false" final="false" visibility="public"
  58830. deprecated="not deprecated">
  58831. <param name="t" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58832. </method>
  58833. <method name="taskFailedPing"
  58834. abstract="false" native="false" synchronized="false"
  58835. static="false" final="false" visibility="public"
  58836. deprecated="not deprecated">
  58837. <param name="t" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58838. </method>
  58839. <doc>
  58840. <![CDATA[Instrumentation for metrics v2]]>
  58841. </doc>
  58842. </class>
  58843. <!-- end class org.apache.hadoop.mapred.TaskTrackerMetricsSource -->
  58844. <!-- start interface org.apache.hadoop.mapred.TaskTrackerMXBean -->
  58845. <interface name="TaskTrackerMXBean" abstract="true"
  58846. static="false" final="false" visibility="public"
  58847. deprecated="not deprecated">
  58848. <method name="getHostname" return="java.lang.String"
  58849. abstract="false" native="false" synchronized="false"
  58850. static="false" final="false" visibility="public"
  58851. deprecated="not deprecated">
  58852. <doc>
  58853. <![CDATA[@return the hostname of the tasktracker]]>
  58854. </doc>
  58855. </method>
  58856. <method name="getVersion" return="java.lang.String"
  58857. abstract="false" native="false" synchronized="false"
  58858. static="false" final="false" visibility="public"
  58859. deprecated="not deprecated">
  58860. <doc>
  58861. <![CDATA[@return the version of the code base]]>
  58862. </doc>
  58863. </method>
  58864. <method name="getConfigVersion" return="java.lang.String"
  58865. abstract="false" native="false" synchronized="false"
  58866. static="false" final="false" visibility="public"
  58867. deprecated="not deprecated">
  58868. <doc>
  58869. <![CDATA[@return the config version (from a config properties)]]>
  58870. </doc>
  58871. </method>
  58872. <method name="getJobTrackerUrl" return="java.lang.String"
  58873. abstract="false" native="false" synchronized="false"
  58874. static="false" final="false" visibility="public"
  58875. deprecated="not deprecated">
  58876. <doc>
  58877. <![CDATA[@return the URL of the jobtracker]]>
  58878. </doc>
  58879. </method>
  58880. <method name="getRpcPort" return="int"
  58881. abstract="false" native="false" synchronized="false"
  58882. static="false" final="false" visibility="public"
  58883. deprecated="not deprecated">
  58884. <doc>
  58885. <![CDATA[@return the RPC port of the tasktracker]]>
  58886. </doc>
  58887. </method>
  58888. <method name="getHttpPort" return="int"
  58889. abstract="false" native="false" synchronized="false"
  58890. static="false" final="false" visibility="public"
  58891. deprecated="not deprecated">
  58892. <doc>
  58893. <![CDATA[@return the HTTP port of the tasktracker]]>
  58894. </doc>
  58895. </method>
  58896. <method name="isHealthy" return="boolean"
  58897. abstract="false" native="false" synchronized="false"
  58898. static="false" final="false" visibility="public"
  58899. deprecated="not deprecated">
  58900. <doc>
  58901. <![CDATA[@return the health status of the tasktracker]]>
  58902. </doc>
  58903. </method>
  58904. <method name="getTasksInfoJson" return="java.lang.String"
  58905. abstract="false" native="false" synchronized="false"
  58906. static="false" final="false" visibility="public"
  58907. deprecated="not deprecated">
  58908. <doc>
  58909. <![CDATA[@return a json formatted info about tasks of the tasktracker]]>
  58910. </doc>
  58911. </method>
  58912. <doc>
  58913. <![CDATA[MXBean interface for TaskTracker]]>
  58914. </doc>
  58915. </interface>
  58916. <!-- end interface org.apache.hadoop.mapred.TaskTrackerMXBean -->
  58917. <!-- start class org.apache.hadoop.mapred.TaskTrackerStatus -->
  58918. <class name="TaskTrackerStatus" extends="java.lang.Object"
  58919. abstract="false"
  58920. static="false" final="false" visibility="public"
  58921. deprecated="not deprecated">
  58922. <implements name="org.apache.hadoop.io.Writable"/>
  58923. <constructor name="TaskTrackerStatus"
  58924. static="false" final="false" visibility="public"
  58925. deprecated="not deprecated">
  58926. </constructor>
  58927. <constructor name="TaskTrackerStatus" type="java.lang.String, java.lang.String, int, java.util.List, int, int, int, int"
  58928. static="false" final="false" visibility="public"
  58929. deprecated="not deprecated">
  58930. </constructor>
  58931. <method name="getTrackerName" return="java.lang.String"
  58932. abstract="false" native="false" synchronized="false"
  58933. static="false" final="false" visibility="public"
  58934. deprecated="not deprecated">
  58935. </method>
  58936. <method name="getHost" return="java.lang.String"
  58937. abstract="false" native="false" synchronized="false"
  58938. static="false" final="false" visibility="public"
  58939. deprecated="not deprecated">
  58940. </method>
  58941. <method name="getHttpPort" return="int"
  58942. abstract="false" native="false" synchronized="false"
  58943. static="false" final="false" visibility="public"
  58944. deprecated="not deprecated">
  58945. <doc>
  58946. <![CDATA[Get the port that this task tracker is serving http requests on.
  58947. @return the http port]]>
  58948. </doc>
  58949. </method>
  58950. <method name="getTaskFailures" return="int"
  58951. abstract="false" native="false" synchronized="false"
  58952. static="false" final="false" visibility="public"
  58953. deprecated="not deprecated">
  58954. <doc>
  58955. <![CDATA[Get the number of tasks that have failed on this tracker.
  58956. @return The number of failed tasks]]>
  58957. </doc>
  58958. </method>
  58959. <method name="getDirFailures" return="int"
  58960. abstract="false" native="false" synchronized="false"
  58961. static="false" final="false" visibility="public"
  58962. deprecated="not deprecated">
  58963. <doc>
  58964. <![CDATA[Get the number of local directories that have failed on this tracker.
  58965. @return The number of failed local directories]]>
  58966. </doc>
  58967. </method>
  58968. <method name="getTaskReports" return="java.util.List"
  58969. abstract="false" native="false" synchronized="false"
  58970. static="false" final="false" visibility="public"
  58971. deprecated="not deprecated">
  58972. <doc>
  58973. <![CDATA[Get the current tasks at the TaskTracker.
  58974. Tasks are tracked by a {@link TaskStatus} object.
  58975. @return a list of {@link TaskStatus} representing
  58976. the current tasks at the TaskTracker.]]>
  58977. </doc>
  58978. </method>
  58979. <method name="countMapTasks" return="int"
  58980. abstract="false" native="false" synchronized="false"
  58981. static="false" final="false" visibility="public"
  58982. deprecated="not deprecated">
  58983. <doc>
  58984. <![CDATA[Get the number of running map tasks.
  58985. @return the number of running map tasks]]>
  58986. </doc>
  58987. </method>
  58988. <method name="countOccupiedMapSlots" return="int"
  58989. abstract="false" native="false" synchronized="false"
  58990. static="false" final="false" visibility="public"
  58991. deprecated="not deprecated">
  58992. <doc>
  58993. <![CDATA[Get the number of occupied map slots.
  58994. @return the number of occupied map slots]]>
  58995. </doc>
  58996. </method>
  58997. <method name="getAvailableMapSlots" return="int"
  58998. abstract="false" native="false" synchronized="false"
  58999. static="false" final="false" visibility="public"
  59000. deprecated="not deprecated">
  59001. <doc>
  59002. <![CDATA[Get available map slots.
  59003. @return available map slots]]>
  59004. </doc>
  59005. </method>
  59006. <method name="countReduceTasks" return="int"
  59007. abstract="false" native="false" synchronized="false"
  59008. static="false" final="false" visibility="public"
  59009. deprecated="not deprecated">
  59010. <doc>
  59011. <![CDATA[Get the number of running reduce tasks.
  59012. @return the number of running reduce tasks]]>
  59013. </doc>
  59014. </method>
  59015. <method name="countOccupiedReduceSlots" return="int"
  59016. abstract="false" native="false" synchronized="false"
  59017. static="false" final="false" visibility="public"
  59018. deprecated="not deprecated">
  59019. <doc>
  59020. <![CDATA[Get the number of occupied reduce slots.
  59021. @return the number of occupied reduce slots]]>
  59022. </doc>
  59023. </method>
  59024. <method name="getAvailableReduceSlots" return="int"
  59025. abstract="false" native="false" synchronized="false"
  59026. static="false" final="false" visibility="public"
  59027. deprecated="not deprecated">
  59028. <doc>
  59029. <![CDATA[Get available reduce slots.
  59030. @return available reduce slots]]>
  59031. </doc>
  59032. </method>
  59033. <method name="getLastSeen" return="long"
  59034. abstract="false" native="false" synchronized="false"
  59035. static="false" final="false" visibility="public"
  59036. deprecated="not deprecated">
  59037. </method>
  59038. <method name="setLastSeen"
  59039. abstract="false" native="false" synchronized="false"
  59040. static="false" final="false" visibility="public"
  59041. deprecated="not deprecated">
  59042. <param name="lastSeen" type="long"/>
  59043. </method>
  59044. <method name="getMaxMapSlots" return="int"
  59045. abstract="false" native="false" synchronized="false"
  59046. static="false" final="false" visibility="public"
  59047. deprecated="not deprecated">
  59048. <doc>
  59049. <![CDATA[Get the maximum map slots for this node.
  59050. @return the maximum map slots for this node]]>
  59051. </doc>
  59052. </method>
  59053. <method name="getMaxReduceSlots" return="int"
  59054. abstract="false" native="false" synchronized="false"
  59055. static="false" final="false" visibility="public"
  59056. deprecated="not deprecated">
  59057. <doc>
  59058. <![CDATA[Get the maximum reduce slots for this node.
  59059. @return the maximum reduce slots for this node]]>
  59060. </doc>
  59061. </method>
  59062. <method name="getHealthStatus" return="org.apache.hadoop.mapred.TaskTrackerStatus.TaskTrackerHealthStatus"
  59063. abstract="false" native="false" synchronized="false"
  59064. static="false" final="false" visibility="public"
  59065. deprecated="not deprecated">
  59066. <doc>
  59067. <![CDATA[Returns health status of the task tracker.
  59068. @return health status of Task Tracker]]>
  59069. </doc>
  59070. </method>
  59071. <method name="write"
  59072. abstract="false" native="false" synchronized="false"
  59073. static="false" final="false" visibility="public"
  59074. deprecated="not deprecated">
  59075. <param name="out" type="java.io.DataOutput"/>
  59076. <exception name="IOException" type="java.io.IOException"/>
  59077. </method>
  59078. <method name="readFields"
  59079. abstract="false" native="false" synchronized="false"
  59080. static="false" final="false" visibility="public"
  59081. deprecated="not deprecated">
  59082. <param name="in" type="java.io.DataInput"/>
  59083. <exception name="IOException" type="java.io.IOException"/>
  59084. </method>
  59085. <field name="LOG" type="org.apache.commons.logging.Log"
  59086. transient="false" volatile="false"
  59087. static="true" final="true" visibility="public"
  59088. deprecated="not deprecated">
  59089. </field>
  59090. <field name="UNAVAILABLE" type="int"
  59091. transient="false" volatile="false"
  59092. static="true" final="true" visibility="public"
  59093. deprecated="not deprecated">
  59094. </field>
  59095. <doc>
  59096. <![CDATA[A TaskTrackerStatus is a MapReduce primitive. Keeps
  59097. info on a TaskTracker. The JobTracker maintains a set
  59098. of the most recent TaskTrackerStatus objects for each
  59099. unique TaskTracker it knows about.
  59100. This is NOT a public interface!]]>
  59101. </doc>
  59102. </class>
  59103. <!-- end class org.apache.hadoop.mapred.TaskTrackerStatus -->
  59104. <!-- start interface org.apache.hadoop.mapred.TaskUmbilicalProtocol -->
  59105. <interface name="TaskUmbilicalProtocol" abstract="true"
  59106. static="false" final="false" visibility="public"
  59107. deprecated="not deprecated">
  59108. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  59109. <method name="getTask" return="org.apache.hadoop.mapred.JvmTask"
  59110. abstract="false" native="false" synchronized="false"
  59111. static="false" final="false" visibility="public"
  59112. deprecated="not deprecated">
  59113. <param name="context" type="org.apache.hadoop.mapred.JvmContext"/>
  59114. <exception name="IOException" type="java.io.IOException"/>
  59115. <doc>
  59116. <![CDATA[Called when a child task process starts, to get its task.
  59117. @param context the JvmContext of the JVM w.r.t the TaskTracker that
  59118. launched it
  59119. @return Task object
  59120. @throws IOException]]>
  59121. </doc>
  59122. </method>
  59123. <method name="statusUpdate" return="boolean"
  59124. abstract="false" native="false" synchronized="false"
  59125. static="false" final="false" visibility="public"
  59126. deprecated="not deprecated">
  59127. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59128. <param name="taskStatus" type="org.apache.hadoop.mapred.TaskStatus"/>
  59129. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59130. <exception name="IOException" type="java.io.IOException"/>
  59131. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  59132. <doc>
  59133. <![CDATA[Report child's progress to parent.
  59134. @param taskId task-id of the child
  59135. @param taskStatus status of the child
  59136. @param jvmContext context the jvmContext running the task.
  59137. @throws IOException
  59138. @throws InterruptedException
  59139. @return True if the task is known]]>
  59140. </doc>
  59141. </method>
  59142. <method name="reportDiagnosticInfo"
  59143. abstract="false" native="false" synchronized="false"
  59144. static="false" final="false" visibility="public"
  59145. deprecated="not deprecated">
  59146. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59147. <param name="trace" type="java.lang.String"/>
  59148. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59149. <exception name="IOException" type="java.io.IOException"/>
  59150. <doc>
  59151. <![CDATA[Report error messages back to parent. Calls should be sparing, since all
  59152. such messages are held in the job tracker.
  59153. @param taskid the id of the task involved
  59154. @param trace the text to report
  59155. @param jvmContext context the jvmContext running the task.]]>
  59156. </doc>
  59157. </method>
  59158. <method name="reportNextRecordRange"
  59159. abstract="false" native="false" synchronized="false"
  59160. static="false" final="false" visibility="public"
  59161. deprecated="not deprecated">
  59162. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59163. <param name="range" type="org.apache.hadoop.mapred.SortedRanges.Range"/>
  59164. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59165. <exception name="IOException" type="java.io.IOException"/>
  59166. <doc>
  59167. <![CDATA[Report the record range which is going to process next by the Task.
  59168. @param taskid the id of the task involved
  59169. @param range the range of record sequence nos
  59170. @param jvmContext context the jvmContext running the task.
  59171. @throws IOException]]>
  59172. </doc>
  59173. </method>
  59174. <method name="ping" return="boolean"
  59175. abstract="false" native="false" synchronized="false"
  59176. static="false" final="false" visibility="public"
  59177. deprecated="not deprecated">
  59178. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59179. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59180. <exception name="IOException" type="java.io.IOException"/>
  59181. <doc>
  59182. <![CDATA[Periodically called by child to check if parent is still alive.
  59183. @param taskid the id of the task involved
  59184. @param jvmContext context the jvmContext running the task.
  59185. @return True if the task is known]]>
  59186. </doc>
  59187. </method>
  59188. <method name="done"
  59189. abstract="false" native="false" synchronized="false"
  59190. static="false" final="false" visibility="public"
  59191. deprecated="not deprecated">
  59192. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59193. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59194. <exception name="IOException" type="java.io.IOException"/>
  59195. <doc>
  59196. <![CDATA[Report that the task is successfully completed. Failure is assumed if
  59197. the task process exits without calling this.
  59198. @param taskid task's id
  59199. @param jvmContext context the jvmContext running the task.]]>
  59200. </doc>
  59201. </method>
  59202. <method name="commitPending"
  59203. abstract="false" native="false" synchronized="false"
  59204. static="false" final="false" visibility="public"
  59205. deprecated="not deprecated">
  59206. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59207. <param name="taskStatus" type="org.apache.hadoop.mapred.TaskStatus"/>
  59208. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59209. <exception name="IOException" type="java.io.IOException"/>
  59210. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  59211. <doc>
  59212. <![CDATA[Report that the task is complete, but its commit is pending.
  59213. @param taskId task's id
  59214. @param taskStatus status of the child
  59215. @param jvmContext context the jvmContext running the task.
  59216. @throws IOException]]>
  59217. </doc>
  59218. </method>
  59219. <method name="canCommit" return="boolean"
  59220. abstract="false" native="false" synchronized="false"
  59221. static="false" final="false" visibility="public"
  59222. deprecated="not deprecated">
  59223. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59224. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59225. <exception name="IOException" type="java.io.IOException"/>
  59226. <doc>
  59227. <![CDATA[Polling to know whether the task can go-ahead with commit
  59228. @param taskid
  59229. @param jvmContext context the jvmContext running the task.
  59230. @return true/false
  59231. @throws IOException]]>
  59232. </doc>
  59233. </method>
  59234. <method name="shuffleError"
  59235. abstract="false" native="false" synchronized="false"
  59236. static="false" final="false" visibility="public"
  59237. deprecated="not deprecated">
  59238. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59239. <param name="message" type="java.lang.String"/>
  59240. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59241. <exception name="IOException" type="java.io.IOException"/>
  59242. <doc>
  59243. <![CDATA[Report that a reduce-task couldn't shuffle map-outputs.]]>
  59244. </doc>
  59245. </method>
  59246. <method name="fsError"
  59247. abstract="false" native="false" synchronized="false"
  59248. static="false" final="false" visibility="public"
  59249. deprecated="not deprecated">
  59250. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59251. <param name="message" type="java.lang.String"/>
  59252. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59253. <exception name="IOException" type="java.io.IOException"/>
  59254. <doc>
  59255. <![CDATA[Report that the task encounted a local filesystem error.]]>
  59256. </doc>
  59257. </method>
  59258. <method name="fatalError"
  59259. abstract="false" native="false" synchronized="false"
  59260. static="false" final="false" visibility="public"
  59261. deprecated="not deprecated">
  59262. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59263. <param name="message" type="java.lang.String"/>
  59264. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59265. <exception name="IOException" type="java.io.IOException"/>
  59266. <doc>
  59267. <![CDATA[Report that the task encounted a fatal error.]]>
  59268. </doc>
  59269. </method>
  59270. <method name="getMapCompletionEvents" return="org.apache.hadoop.mapred.MapTaskCompletionEventsUpdate"
  59271. abstract="false" native="false" synchronized="false"
  59272. static="false" final="false" visibility="public"
  59273. deprecated="not deprecated">
  59274. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  59275. <param name="fromIndex" type="int"/>
  59276. <param name="maxLocs" type="int"/>
  59277. <param name="id" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59278. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59279. <exception name="IOException" type="java.io.IOException"/>
  59280. <doc>
  59281. <![CDATA[Called by a reduce task to get the map output locations for finished maps.
  59282. Returns an update centered around the map-task-completion-events.
  59283. The update also piggybacks the information whether the events copy at the
  59284. task-tracker has changed or not. This will trigger some action at the
  59285. child-process.
  59286. @param jobId the reducer job id
  59287. @param fromIndex the index starting from which the locations should be
  59288. fetched
  59289. @param maxLocs the max number of locations to fetch
  59290. @param id The attempt id of the task that is trying to communicate
  59291. @return A {@link MapTaskCompletionEventsUpdate}]]>
  59292. </doc>
  59293. </method>
  59294. <method name="updatePrivateDistributedCacheSizes"
  59295. abstract="false" native="false" synchronized="false"
  59296. static="false" final="false" visibility="public"
  59297. deprecated="not deprecated">
  59298. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  59299. <param name="sizes" type="long[]"/>
  59300. <exception name="IOException" type="java.io.IOException"/>
  59301. <doc>
  59302. <![CDATA[The job initializer needs to report the sizes of the archive
  59303. objects and directories in the private distributed cache.
  59304. @param jobId the job to update
  59305. @param sizes the array of sizes that were computed
  59306. @throws IOException]]>
  59307. </doc>
  59308. </method>
  59309. <field name="versionID" type="long"
  59310. transient="false" volatile="false"
  59311. static="true" final="true" visibility="public"
  59312. deprecated="not deprecated">
  59313. <doc>
  59314. <![CDATA[Changed the version to 2, since we have a new method getMapOutputs
  59315. Changed version to 3 to have progress() return a boolean
  59316. Changed the version to 4, since we have replaced
  59317. TaskUmbilicalProtocol.progress(String, float, String,
  59318. org.apache.hadoop.mapred.TaskStatus.Phase, Counters)
  59319. with statusUpdate(String, TaskStatus)
  59320. Version 5 changed counters representation for HADOOP-2248
  59321. Version 6 changes the TaskStatus representation for HADOOP-2208
  59322. Version 7 changes the done api (via HADOOP-3140). It now expects whether
  59323. or not the task's output needs to be promoted.
  59324. Version 8 changes {job|tip|task}id's to use their corresponding
  59325. objects rather than strings.
  59326. Version 9 changes the counter representation for HADOOP-1915
  59327. Version 10 changed the TaskStatus format and added reportNextRecordRange
  59328. for HADOOP-153
  59329. Version 11 Adds RPCs for task commit as part of HADOOP-3150
  59330. Version 12 getMapCompletionEvents() now also indicates if the events are
  59331. stale or not. Hence the return type is a class that
  59332. encapsulates the events and whether to reset events index.
  59333. Version 13 changed the getTask method signature for HADOOP-249
  59334. Version 14 changed the getTask method signature for HADOOP-4232
  59335. Version 15 Adds FAILED_UNCLEAN and KILLED_UNCLEAN states for HADOOP-4759
  59336. Version 16 Added numRequiredSlots to TaskStatus for MAPREDUCE-516
  59337. Version 17 Change in signature of getTask() for HADOOP-5488
  59338. Version 18 Added fatalError for child to communicate fatal errors to TT
  59339. Version 19 Added jvmContext to most method signatures for MAPREDUCE-2429]]>
  59340. </doc>
  59341. </field>
  59342. <doc>
  59343. <![CDATA[Protocol that task child process uses to contact its parent process. The
  59344. parent is a daemon which which polls the central master for a new map or
  59345. reduce task and runs it as a child process. All communication between child
  59346. and parent is via this protocol.]]>
  59347. </doc>
  59348. </interface>
  59349. <!-- end interface org.apache.hadoop.mapred.TaskUmbilicalProtocol -->
  59350. <!-- start class org.apache.hadoop.mapred.TextInputFormat -->
  59351. <class name="TextInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  59352. abstract="false"
  59353. static="false" final="false" visibility="public"
  59354. deprecated="not deprecated">
  59355. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  59356. <constructor name="TextInputFormat"
  59357. static="false" final="false" visibility="public"
  59358. deprecated="not deprecated">
  59359. </constructor>
  59360. <method name="configure"
  59361. abstract="false" native="false" synchronized="false"
  59362. static="false" final="false" visibility="public"
  59363. deprecated="not deprecated">
  59364. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  59365. </method>
  59366. <method name="isSplitable" return="boolean"
  59367. abstract="false" native="false" synchronized="false"
  59368. static="false" final="false" visibility="protected"
  59369. deprecated="not deprecated">
  59370. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  59371. <param name="file" type="org.apache.hadoop.fs.Path"/>
  59372. </method>
  59373. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  59374. abstract="false" native="false" synchronized="false"
  59375. static="false" final="false" visibility="public"
  59376. deprecated="not deprecated">
  59377. <param name="genericSplit" type="org.apache.hadoop.mapred.InputSplit"/>
  59378. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  59379. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  59380. <exception name="IOException" type="java.io.IOException"/>
  59381. </method>
  59382. <doc>
  59383. <![CDATA[An {@link InputFormat} for plain text files. Files are broken into lines.
  59384. Either linefeed or carriage-return are used to signal end of line. Keys are
  59385. the position in the file, and values are the line of text..]]>
  59386. </doc>
  59387. </class>
  59388. <!-- end class org.apache.hadoop.mapred.TextInputFormat -->
  59389. <!-- start class org.apache.hadoop.mapred.TextOutputFormat -->
  59390. <class name="TextOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat"
  59391. abstract="false"
  59392. static="false" final="false" visibility="public"
  59393. deprecated="not deprecated">
  59394. <constructor name="TextOutputFormat"
  59395. static="false" final="false" visibility="public"
  59396. deprecated="not deprecated">
  59397. </constructor>
  59398. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  59399. abstract="false" native="false" synchronized="false"
  59400. static="false" final="false" visibility="public"
  59401. deprecated="not deprecated">
  59402. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  59403. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  59404. <param name="name" type="java.lang.String"/>
  59405. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  59406. <exception name="IOException" type="java.io.IOException"/>
  59407. </method>
  59408. <doc>
  59409. <![CDATA[An {@link OutputFormat} that writes plain text files.]]>
  59410. </doc>
  59411. </class>
  59412. <!-- end class org.apache.hadoop.mapred.TextOutputFormat -->
  59413. <!-- start class org.apache.hadoop.mapred.TextOutputFormat.LineRecordWriter -->
  59414. <class name="TextOutputFormat.LineRecordWriter" extends="java.lang.Object"
  59415. abstract="false"
  59416. static="true" final="false" visibility="protected"
  59417. deprecated="not deprecated">
  59418. <implements name="org.apache.hadoop.mapred.RecordWriter"/>
  59419. <constructor name="TextOutputFormat.LineRecordWriter" type="java.io.DataOutputStream, java.lang.String"
  59420. static="false" final="false" visibility="public"
  59421. deprecated="not deprecated">
  59422. </constructor>
  59423. <constructor name="TextOutputFormat.LineRecordWriter" type="java.io.DataOutputStream"
  59424. static="false" final="false" visibility="public"
  59425. deprecated="not deprecated">
  59426. </constructor>
  59427. <method name="write"
  59428. abstract="false" native="false" synchronized="true"
  59429. static="false" final="false" visibility="public"
  59430. deprecated="not deprecated">
  59431. <param name="key" type="java.lang.Object"/>
  59432. <param name="value" type="java.lang.Object"/>
  59433. <exception name="IOException" type="java.io.IOException"/>
  59434. </method>
  59435. <method name="close"
  59436. abstract="false" native="false" synchronized="true"
  59437. static="false" final="false" visibility="public"
  59438. deprecated="not deprecated">
  59439. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  59440. <exception name="IOException" type="java.io.IOException"/>
  59441. </method>
  59442. <field name="out" type="java.io.DataOutputStream"
  59443. transient="false" volatile="false"
  59444. static="false" final="false" visibility="protected"
  59445. deprecated="not deprecated">
  59446. </field>
  59447. </class>
  59448. <!-- end class org.apache.hadoop.mapred.TextOutputFormat.LineRecordWriter -->
  59449. <!-- start class org.apache.hadoop.mapred.TIPStatus -->
  59450. <class name="TIPStatus" extends="java.lang.Enum"
  59451. abstract="false"
  59452. static="false" final="true" visibility="public"
  59453. deprecated="not deprecated">
  59454. <method name="values" return="org.apache.hadoop.mapred.TIPStatus[]"
  59455. abstract="false" native="false" synchronized="false"
  59456. static="true" final="false" visibility="public"
  59457. deprecated="not deprecated">
  59458. </method>
  59459. <method name="valueOf" return="org.apache.hadoop.mapred.TIPStatus"
  59460. abstract="false" native="false" synchronized="false"
  59461. static="true" final="false" visibility="public"
  59462. deprecated="not deprecated">
  59463. <param name="name" type="java.lang.String"/>
  59464. </method>
  59465. <field name="PENDING" type="org.apache.hadoop.mapred.TIPStatus"
  59466. transient="false" volatile="false"
  59467. static="true" final="true" visibility="public"
  59468. deprecated="not deprecated">
  59469. </field>
  59470. <field name="RUNNING" type="org.apache.hadoop.mapred.TIPStatus"
  59471. transient="false" volatile="false"
  59472. static="true" final="true" visibility="public"
  59473. deprecated="not deprecated">
  59474. </field>
  59475. <field name="COMPLETE" type="org.apache.hadoop.mapred.TIPStatus"
  59476. transient="false" volatile="false"
  59477. static="true" final="true" visibility="public"
  59478. deprecated="not deprecated">
  59479. </field>
  59480. <field name="KILLED" type="org.apache.hadoop.mapred.TIPStatus"
  59481. transient="false" volatile="false"
  59482. static="true" final="true" visibility="public"
  59483. deprecated="not deprecated">
  59484. </field>
  59485. <field name="FAILED" type="org.apache.hadoop.mapred.TIPStatus"
  59486. transient="false" volatile="false"
  59487. static="true" final="true" visibility="public"
  59488. deprecated="not deprecated">
  59489. </field>
  59490. <doc>
  59491. <![CDATA[The states of a {@link TaskInProgress} as seen by the JobTracker.]]>
  59492. </doc>
  59493. </class>
  59494. <!-- end class org.apache.hadoop.mapred.TIPStatus -->
  59495. <!-- start class org.apache.hadoop.mapred.UserLogCleaner -->
  59496. <class name="UserLogCleaner" extends="java.lang.Thread"
  59497. abstract="false"
  59498. static="false" final="false" visibility="public"
  59499. deprecated="not deprecated">
  59500. <constructor name="UserLogCleaner" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogManager, org.apache.hadoop.conf.Configuration"
  59501. static="false" final="false" visibility="public"
  59502. deprecated="not deprecated">
  59503. <exception name="IOException" type="java.io.IOException"/>
  59504. </constructor>
  59505. <method name="run"
  59506. abstract="false" native="false" synchronized="false"
  59507. static="false" final="false" visibility="public"
  59508. deprecated="not deprecated">
  59509. </method>
  59510. <method name="deleteJobLogs"
  59511. abstract="false" native="false" synchronized="false"
  59512. static="false" final="false" visibility="public"
  59513. deprecated="not deprecated">
  59514. <param name="jobid" type="org.apache.hadoop.mapreduce.JobID"/>
  59515. <exception name="IOException" type="java.io.IOException"/>
  59516. </method>
  59517. <method name="addOldUserLogsForDeletion"
  59518. abstract="false" native="false" synchronized="false"
  59519. static="false" final="false" visibility="public"
  59520. deprecated="not deprecated">
  59521. <param name="loc" type="java.io.File"/>
  59522. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  59523. <exception name="IOException" type="java.io.IOException"/>
  59524. <doc>
  59525. <![CDATA[Adds the job log directories for deletion with default retain hours.
  59526. Deletes all other directories, if any.
  59527. @param loc location of log directory
  59528. @param conf
  59529. @throws IOException]]>
  59530. </doc>
  59531. </method>
  59532. <method name="clearOldUserLogs"
  59533. abstract="false" native="false" synchronized="false"
  59534. static="false" final="false" visibility="public"
  59535. deprecated="not deprecated">
  59536. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  59537. <exception name="IOException" type="java.io.IOException"/>
  59538. <doc>
  59539. <![CDATA[Clears all the logs in userlogs directory. This is usually called on
  59540. reinit/restart of the TaskTracker.
  59541. @param conf
  59542. @throws IOException]]>
  59543. </doc>
  59544. </method>
  59545. <method name="markJobLogsForDeletion"
  59546. abstract="false" native="false" synchronized="false"
  59547. static="false" final="false" visibility="public"
  59548. deprecated="not deprecated">
  59549. <param name="jobCompletionTime" type="long"/>
  59550. <param name="retainHours" type="int"/>
  59551. <param name="jobid" type="org.apache.hadoop.mapreduce.JobID"/>
  59552. <doc>
  59553. <![CDATA[Adds job user-log directory to cleanup thread to delete logs after user-log
  59554. retain hours.
  59555. @param jobCompletionTime
  59556. job completion time in millis
  59557. @param retainHours
  59558. the user-log retain hours for the job
  59559. @param jobid
  59560. JobID for which user logs should be deleted]]>
  59561. </doc>
  59562. </method>
  59563. <method name="unmarkJobFromLogDeletion"
  59564. abstract="false" native="false" synchronized="false"
  59565. static="false" final="false" visibility="public"
  59566. deprecated="not deprecated">
  59567. <param name="jobid" type="org.apache.hadoop.mapreduce.JobID"/>
  59568. <doc>
  59569. <![CDATA[Remove job from user log deletion.
  59570. @param jobid]]>
  59571. </doc>
  59572. </method>
  59573. <doc>
  59574. <![CDATA[This is used only in UserLogManager, to manage cleanup of user logs.]]>
  59575. </doc>
  59576. </class>
  59577. <!-- end class org.apache.hadoop.mapred.UserLogCleaner -->
  59578. <!-- start class org.apache.hadoop.mapred.Utils -->
  59579. <class name="Utils" extends="java.lang.Object"
  59580. abstract="false"
  59581. static="false" final="false" visibility="public"
  59582. deprecated="not deprecated">
  59583. <constructor name="Utils"
  59584. static="false" final="false" visibility="public"
  59585. deprecated="not deprecated">
  59586. </constructor>
  59587. <doc>
  59588. <![CDATA[A utility class. It provides
  59589. - file-util
  59590. - A path filter utility to filter out output/part files in the output dir]]>
  59591. </doc>
  59592. </class>
  59593. <!-- end class org.apache.hadoop.mapred.Utils -->
  59594. <!-- start class org.apache.hadoop.mapred.Utils.OutputFileUtils -->
  59595. <class name="Utils.OutputFileUtils" extends="java.lang.Object"
  59596. abstract="false"
  59597. static="true" final="false" visibility="public"
  59598. deprecated="not deprecated">
  59599. <constructor name="Utils.OutputFileUtils"
  59600. static="false" final="false" visibility="public"
  59601. deprecated="not deprecated">
  59602. </constructor>
  59603. </class>
  59604. <!-- end class org.apache.hadoop.mapred.Utils.OutputFileUtils -->
  59605. <!-- start class org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputFilesFilter -->
  59606. <class name="Utils.OutputFileUtils.OutputFilesFilter" extends="org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputLogFilter"
  59607. abstract="false"
  59608. static="true" final="false" visibility="public"
  59609. deprecated="not deprecated">
  59610. <constructor name="Utils.OutputFileUtils.OutputFilesFilter"
  59611. static="false" final="false" visibility="public"
  59612. deprecated="not deprecated">
  59613. </constructor>
  59614. <method name="accept" return="boolean"
  59615. abstract="false" native="false" synchronized="false"
  59616. static="false" final="false" visibility="public"
  59617. deprecated="not deprecated">
  59618. <param name="path" type="org.apache.hadoop.fs.Path"/>
  59619. </method>
  59620. <doc>
  59621. <![CDATA[This class filters output(part) files from the given directory
  59622. It does not accept files with filenames _logs and _SUCCESS.
  59623. This can be used to list paths of output directory as follows:
  59624. Path[] fileList = FileUtil.stat2Paths(fs.listStatus(outDir,
  59625. new OutputFilesFilter()));]]>
  59626. </doc>
  59627. </class>
  59628. <!-- end class org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputFilesFilter -->
  59629. <!-- start class org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputLogFilter -->
  59630. <class name="Utils.OutputFileUtils.OutputLogFilter" extends="java.lang.Object"
  59631. abstract="false"
  59632. static="true" final="false" visibility="public"
  59633. deprecated="not deprecated">
  59634. <implements name="org.apache.hadoop.fs.PathFilter"/>
  59635. <constructor name="Utils.OutputFileUtils.OutputLogFilter"
  59636. static="false" final="false" visibility="public"
  59637. deprecated="not deprecated">
  59638. </constructor>
  59639. <method name="accept" return="boolean"
  59640. abstract="false" native="false" synchronized="false"
  59641. static="false" final="false" visibility="public"
  59642. deprecated="not deprecated">
  59643. <param name="path" type="org.apache.hadoop.fs.Path"/>
  59644. </method>
  59645. <doc>
  59646. <![CDATA[This class filters log files from directory given
  59647. It doesnt accept paths having _logs.
  59648. This can be used to list paths of output directory as follows:
  59649. Path[] fileList = FileUtil.stat2Paths(fs.listStatus(outDir,
  59650. new OutputLogFilter()));]]>
  59651. </doc>
  59652. </class>
  59653. <!-- end class org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputLogFilter -->
  59654. </package>
  59655. <package name="org.apache.hadoop.mapred.jobcontrol">
  59656. <!-- start class org.apache.hadoop.mapred.jobcontrol.Job -->
  59657. <class name="Job" extends="java.lang.Object"
  59658. abstract="false"
  59659. static="false" final="false" visibility="public"
  59660. deprecated="not deprecated">
  59661. <constructor name="Job" type="org.apache.hadoop.mapred.JobConf, java.util.ArrayList"
  59662. static="false" final="false" visibility="public"
  59663. deprecated="not deprecated">
  59664. <exception name="IOException" type="java.io.IOException"/>
  59665. <doc>
  59666. <![CDATA[Construct a job.
  59667. @param jobConf a mapred job configuration representing a job to be executed.
  59668. @param dependingJobs an array of jobs the current job depends on]]>
  59669. </doc>
  59670. </constructor>
  59671. <constructor name="Job" type="org.apache.hadoop.mapred.JobConf"
  59672. static="false" final="false" visibility="public"
  59673. deprecated="not deprecated">
  59674. <exception name="IOException" type="java.io.IOException"/>
  59675. <doc>
  59676. <![CDATA[Construct a job.
  59677. @param jobConf mapred job configuration representing a job to be executed.
  59678. @throws IOException]]>
  59679. </doc>
  59680. </constructor>
  59681. <method name="toString" return="java.lang.String"
  59682. abstract="false" native="false" synchronized="false"
  59683. static="false" final="false" visibility="public"
  59684. deprecated="not deprecated">
  59685. </method>
  59686. <method name="getJobName" return="java.lang.String"
  59687. abstract="false" native="false" synchronized="false"
  59688. static="false" final="false" visibility="public"
  59689. deprecated="not deprecated">
  59690. <doc>
  59691. <![CDATA[@return the job name of this job]]>
  59692. </doc>
  59693. </method>
  59694. <method name="setJobName"
  59695. abstract="false" native="false" synchronized="false"
  59696. static="false" final="false" visibility="public"
  59697. deprecated="not deprecated">
  59698. <param name="jobName" type="java.lang.String"/>
  59699. <doc>
  59700. <![CDATA[Set the job name for this job.
  59701. @param jobName the job name]]>
  59702. </doc>
  59703. </method>
  59704. <method name="getJobID" return="java.lang.String"
  59705. abstract="false" native="false" synchronized="false"
  59706. static="false" final="false" visibility="public"
  59707. deprecated="not deprecated">
  59708. <doc>
  59709. <![CDATA[@return the job ID of this job assigned by JobControl]]>
  59710. </doc>
  59711. </method>
  59712. <method name="setJobID"
  59713. abstract="false" native="false" synchronized="false"
  59714. static="false" final="false" visibility="public"
  59715. deprecated="not deprecated">
  59716. <param name="id" type="java.lang.String"/>
  59717. <doc>
  59718. <![CDATA[Set the job ID for this job.
  59719. @param id the job ID]]>
  59720. </doc>
  59721. </method>
  59722. <method name="getMapredJobID" return="java.lang.String"
  59723. abstract="false" native="false" synchronized="false"
  59724. static="false" final="false" visibility="public"
  59725. deprecated="use {@link #getAssignedJobID()} instead">
  59726. <doc>
  59727. <![CDATA[@return the mapred ID of this job
  59728. @deprecated use {@link #getAssignedJobID()} instead]]>
  59729. </doc>
  59730. </method>
  59731. <method name="setMapredJobID"
  59732. abstract="false" native="false" synchronized="false"
  59733. static="false" final="false" visibility="public"
  59734. deprecated="use {@link #setAssignedJobID(JobID)} instead">
  59735. <param name="mapredJobID" type="java.lang.String"/>
  59736. <doc>
  59737. <![CDATA[Set the mapred ID for this job.
  59738. @param mapredJobID the mapred job ID for this job.
  59739. @deprecated use {@link #setAssignedJobID(JobID)} instead]]>
  59740. </doc>
  59741. </method>
  59742. <method name="getAssignedJobID" return="org.apache.hadoop.mapred.JobID"
  59743. abstract="false" native="false" synchronized="false"
  59744. static="false" final="false" visibility="public"
  59745. deprecated="not deprecated">
  59746. <doc>
  59747. <![CDATA[@return the mapred ID of this job as assigned by the
  59748. mapred framework.]]>
  59749. </doc>
  59750. </method>
  59751. <method name="setAssignedJobID"
  59752. abstract="false" native="false" synchronized="false"
  59753. static="false" final="false" visibility="public"
  59754. deprecated="not deprecated">
  59755. <param name="mapredJobID" type="org.apache.hadoop.mapred.JobID"/>
  59756. <doc>
  59757. <![CDATA[Set the mapred ID for this job as assigned by the
  59758. mapred framework.
  59759. @param mapredJobID the mapred job ID for this job.]]>
  59760. </doc>
  59761. </method>
  59762. <method name="getJobConf" return="org.apache.hadoop.mapred.JobConf"
  59763. abstract="false" native="false" synchronized="false"
  59764. static="false" final="false" visibility="public"
  59765. deprecated="not deprecated">
  59766. <doc>
  59767. <![CDATA[@return the mapred job conf of this job]]>
  59768. </doc>
  59769. </method>
  59770. <method name="setJobConf"
  59771. abstract="false" native="false" synchronized="false"
  59772. static="false" final="false" visibility="public"
  59773. deprecated="not deprecated">
  59774. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  59775. <doc>
  59776. <![CDATA[Set the mapred job conf for this job.
  59777. @param jobConf the mapred job conf for this job.]]>
  59778. </doc>
  59779. </method>
  59780. <method name="getState" return="int"
  59781. abstract="false" native="false" synchronized="true"
  59782. static="false" final="false" visibility="public"
  59783. deprecated="not deprecated">
  59784. <doc>
  59785. <![CDATA[@return the state of this job]]>
  59786. </doc>
  59787. </method>
  59788. <method name="setState"
  59789. abstract="false" native="false" synchronized="true"
  59790. static="false" final="false" visibility="protected"
  59791. deprecated="not deprecated">
  59792. <param name="state" type="int"/>
  59793. <doc>
  59794. <![CDATA[Set the state for this job.
  59795. @param state the new state for this job.]]>
  59796. </doc>
  59797. </method>
  59798. <method name="getMessage" return="java.lang.String"
  59799. abstract="false" native="false" synchronized="false"
  59800. static="false" final="false" visibility="public"
  59801. deprecated="not deprecated">
  59802. <doc>
  59803. <![CDATA[@return the message of this job]]>
  59804. </doc>
  59805. </method>
  59806. <method name="setMessage"
  59807. abstract="false" native="false" synchronized="false"
  59808. static="false" final="false" visibility="public"
  59809. deprecated="not deprecated">
  59810. <param name="message" type="java.lang.String"/>
  59811. <doc>
  59812. <![CDATA[Set the message for this job.
  59813. @param message the message for this job.]]>
  59814. </doc>
  59815. </method>
  59816. <method name="getJobClient" return="org.apache.hadoop.mapred.JobClient"
  59817. abstract="false" native="false" synchronized="false"
  59818. static="false" final="false" visibility="public"
  59819. deprecated="not deprecated">
  59820. <doc>
  59821. <![CDATA[@return the job client of this job]]>
  59822. </doc>
  59823. </method>
  59824. <method name="getDependingJobs" return="java.util.ArrayList"
  59825. abstract="false" native="false" synchronized="false"
  59826. static="false" final="false" visibility="public"
  59827. deprecated="not deprecated">
  59828. <doc>
  59829. <![CDATA[@return the depending jobs of this job]]>
  59830. </doc>
  59831. </method>
  59832. <method name="addDependingJob" return="boolean"
  59833. abstract="false" native="false" synchronized="true"
  59834. static="false" final="false" visibility="public"
  59835. deprecated="not deprecated">
  59836. <param name="dependingJob" type="org.apache.hadoop.mapred.jobcontrol.Job"/>
  59837. <doc>
  59838. <![CDATA[Add a job to this jobs' dependency list. Dependent jobs can only be added while a Job
  59839. is waiting to run, not during or afterwards.
  59840. @param dependingJob Job that this Job depends on.
  59841. @return <tt>true</tt> if the Job was added.]]>
  59842. </doc>
  59843. </method>
  59844. <method name="isCompleted" return="boolean"
  59845. abstract="false" native="false" synchronized="false"
  59846. static="false" final="false" visibility="public"
  59847. deprecated="not deprecated">
  59848. <doc>
  59849. <![CDATA[@return true if this job is in a complete state]]>
  59850. </doc>
  59851. </method>
  59852. <method name="isReady" return="boolean"
  59853. abstract="false" native="false" synchronized="false"
  59854. static="false" final="false" visibility="public"
  59855. deprecated="not deprecated">
  59856. <doc>
  59857. <![CDATA[@return true if this job is in READY state]]>
  59858. </doc>
  59859. </method>
  59860. <method name="submit"
  59861. abstract="false" native="false" synchronized="true"
  59862. static="false" final="false" visibility="protected"
  59863. deprecated="not deprecated">
  59864. <doc>
  59865. <![CDATA[Submit this job to mapred. The state becomes RUNNING if submission
  59866. is successful, FAILED otherwise.]]>
  59867. </doc>
  59868. </method>
  59869. <field name="SUCCESS" type="int"
  59870. transient="false" volatile="false"
  59871. static="true" final="true" visibility="public"
  59872. deprecated="not deprecated">
  59873. </field>
  59874. <field name="WAITING" type="int"
  59875. transient="false" volatile="false"
  59876. static="true" final="true" visibility="public"
  59877. deprecated="not deprecated">
  59878. </field>
  59879. <field name="RUNNING" type="int"
  59880. transient="false" volatile="false"
  59881. static="true" final="true" visibility="public"
  59882. deprecated="not deprecated">
  59883. </field>
  59884. <field name="READY" type="int"
  59885. transient="false" volatile="false"
  59886. static="true" final="true" visibility="public"
  59887. deprecated="not deprecated">
  59888. </field>
  59889. <field name="FAILED" type="int"
  59890. transient="false" volatile="false"
  59891. static="true" final="true" visibility="public"
  59892. deprecated="not deprecated">
  59893. </field>
  59894. <field name="DEPENDENT_FAILED" type="int"
  59895. transient="false" volatile="false"
  59896. static="true" final="true" visibility="public"
  59897. deprecated="not deprecated">
  59898. </field>
  59899. <doc>
  59900. <![CDATA[This class encapsulates a MapReduce job and its dependency. It monitors
  59901. the states of the depending jobs and updates the state of this job.
  59902. A job starts in the WAITING state. If it does not have any depending jobs, or
  59903. all of the depending jobs are in SUCCESS state, then the job state will become
  59904. READY. If any depending jobs fail, the job will fail too.
  59905. When in READY state, the job can be submitted to Hadoop for execution, with
  59906. the state changing into RUNNING state. From RUNNING state, the job can get into
  59907. SUCCESS or FAILED state, depending the status of the job execution.]]>
  59908. </doc>
  59909. </class>
  59910. <!-- end class org.apache.hadoop.mapred.jobcontrol.Job -->
  59911. <!-- start class org.apache.hadoop.mapred.jobcontrol.JobControl -->
  59912. <class name="JobControl" extends="java.lang.Object"
  59913. abstract="false"
  59914. static="false" final="false" visibility="public"
  59915. deprecated="not deprecated">
  59916. <implements name="java.lang.Runnable"/>
  59917. <constructor name="JobControl" type="java.lang.String"
  59918. static="false" final="false" visibility="public"
  59919. deprecated="not deprecated">
  59920. <doc>
  59921. <![CDATA[Construct a job control for a group of jobs.
  59922. @param groupName a name identifying this group]]>
  59923. </doc>
  59924. </constructor>
  59925. <method name="getWaitingJobs" return="java.util.ArrayList"
  59926. abstract="false" native="false" synchronized="false"
  59927. static="false" final="false" visibility="public"
  59928. deprecated="not deprecated">
  59929. <doc>
  59930. <![CDATA[@return the jobs in the waiting state]]>
  59931. </doc>
  59932. </method>
  59933. <method name="getRunningJobs" return="java.util.ArrayList"
  59934. abstract="false" native="false" synchronized="false"
  59935. static="false" final="false" visibility="public"
  59936. deprecated="not deprecated">
  59937. <doc>
  59938. <![CDATA[@return the jobs in the running state]]>
  59939. </doc>
  59940. </method>
  59941. <method name="getReadyJobs" return="java.util.ArrayList"
  59942. abstract="false" native="false" synchronized="false"
  59943. static="false" final="false" visibility="public"
  59944. deprecated="not deprecated">
  59945. <doc>
  59946. <![CDATA[@return the jobs in the ready state]]>
  59947. </doc>
  59948. </method>
  59949. <method name="getSuccessfulJobs" return="java.util.ArrayList"
  59950. abstract="false" native="false" synchronized="false"
  59951. static="false" final="false" visibility="public"
  59952. deprecated="not deprecated">
  59953. <doc>
  59954. <![CDATA[@return the jobs in the success state]]>
  59955. </doc>
  59956. </method>
  59957. <method name="getFailedJobs" return="java.util.ArrayList"
  59958. abstract="false" native="false" synchronized="false"
  59959. static="false" final="false" visibility="public"
  59960. deprecated="not deprecated">
  59961. </method>
  59962. <method name="addJob" return="java.lang.String"
  59963. abstract="false" native="false" synchronized="true"
  59964. static="false" final="false" visibility="public"
  59965. deprecated="not deprecated">
  59966. <param name="aJob" type="org.apache.hadoop.mapred.jobcontrol.Job"/>
  59967. <doc>
  59968. <![CDATA[Add a new job.
  59969. @param aJob the new job]]>
  59970. </doc>
  59971. </method>
  59972. <method name="addJobs"
  59973. abstract="false" native="false" synchronized="false"
  59974. static="false" final="false" visibility="public"
  59975. deprecated="not deprecated">
  59976. <param name="jobs" type="java.util.Collection"/>
  59977. <doc>
  59978. <![CDATA[Add a collection of jobs
  59979. @param jobs]]>
  59980. </doc>
  59981. </method>
  59982. <method name="getState" return="int"
  59983. abstract="false" native="false" synchronized="false"
  59984. static="false" final="false" visibility="public"
  59985. deprecated="not deprecated">
  59986. <doc>
  59987. <![CDATA[@return the thread state]]>
  59988. </doc>
  59989. </method>
  59990. <method name="stop"
  59991. abstract="false" native="false" synchronized="false"
  59992. static="false" final="false" visibility="public"
  59993. deprecated="not deprecated">
  59994. <doc>
  59995. <![CDATA[set the thread state to STOPPING so that the
  59996. thread will stop when it wakes up.]]>
  59997. </doc>
  59998. </method>
  59999. <method name="suspend"
  60000. abstract="false" native="false" synchronized="false"
  60001. static="false" final="false" visibility="public"
  60002. deprecated="not deprecated">
  60003. <doc>
  60004. <![CDATA[suspend the running thread]]>
  60005. </doc>
  60006. </method>
  60007. <method name="resume"
  60008. abstract="false" native="false" synchronized="false"
  60009. static="false" final="false" visibility="public"
  60010. deprecated="not deprecated">
  60011. <doc>
  60012. <![CDATA[resume the suspended thread]]>
  60013. </doc>
  60014. </method>
  60015. <method name="allFinished" return="boolean"
  60016. abstract="false" native="false" synchronized="true"
  60017. static="false" final="false" visibility="public"
  60018. deprecated="not deprecated">
  60019. </method>
  60020. <method name="run"
  60021. abstract="false" native="false" synchronized="false"
  60022. static="false" final="false" visibility="public"
  60023. deprecated="not deprecated">
  60024. <doc>
  60025. <![CDATA[The main loop for the thread.
  60026. The loop does the following:
  60027. Check the states of the running jobs
  60028. Update the states of waiting jobs
  60029. Submit the jobs in ready state]]>
  60030. </doc>
  60031. </method>
  60032. <doc>
  60033. <![CDATA[This class encapsulates a set of MapReduce jobs and its dependency. It tracks
  60034. the states of the jobs by placing them into different tables according to their
  60035. states.
  60036. This class provides APIs for the client app to add a job to the group and to get
  60037. the jobs in the group in different states. When a
  60038. job is added, an ID unique to the group is assigned to the job.
  60039. This class has a thread that submits jobs when they become ready, monitors the
  60040. states of the running jobs, and updates the states of jobs based on the state changes
  60041. of their depending jobs states. The class provides APIs for suspending/resuming
  60042. the thread,and for stopping the thread.]]>
  60043. </doc>
  60044. </class>
  60045. <!-- end class org.apache.hadoop.mapred.jobcontrol.JobControl -->
  60046. </package>
  60047. <package name="org.apache.hadoop.mapred.join">
  60048. <!-- start class org.apache.hadoop.mapred.join.ArrayListBackedIterator -->
  60049. <class name="ArrayListBackedIterator" extends="java.lang.Object"
  60050. abstract="false"
  60051. static="false" final="false" visibility="public"
  60052. deprecated="not deprecated">
  60053. <implements name="org.apache.hadoop.mapred.join.ResetableIterator"/>
  60054. <constructor name="ArrayListBackedIterator"
  60055. static="false" final="false" visibility="public"
  60056. deprecated="not deprecated">
  60057. </constructor>
  60058. <constructor name="ArrayListBackedIterator" type="java.util.ArrayList"
  60059. static="false" final="false" visibility="public"
  60060. deprecated="not deprecated">
  60061. </constructor>
  60062. <method name="hasNext" return="boolean"
  60063. abstract="false" native="false" synchronized="false"
  60064. static="false" final="false" visibility="public"
  60065. deprecated="not deprecated">
  60066. </method>
  60067. <method name="next" return="boolean"
  60068. abstract="false" native="false" synchronized="false"
  60069. static="false" final="false" visibility="public"
  60070. deprecated="not deprecated">
  60071. <param name="val" type="org.apache.hadoop.io.Writable"/>
  60072. <exception name="IOException" type="java.io.IOException"/>
  60073. </method>
  60074. <method name="replay" return="boolean"
  60075. abstract="false" native="false" synchronized="false"
  60076. static="false" final="false" visibility="public"
  60077. deprecated="not deprecated">
  60078. <param name="val" type="org.apache.hadoop.io.Writable"/>
  60079. <exception name="IOException" type="java.io.IOException"/>
  60080. </method>
  60081. <method name="reset"
  60082. abstract="false" native="false" synchronized="false"
  60083. static="false" final="false" visibility="public"
  60084. deprecated="not deprecated">
  60085. </method>
  60086. <method name="add"
  60087. abstract="false" native="false" synchronized="false"
  60088. static="false" final="false" visibility="public"
  60089. deprecated="not deprecated">
  60090. <param name="item" type="org.apache.hadoop.io.Writable"/>
  60091. <exception name="IOException" type="java.io.IOException"/>
  60092. </method>
  60093. <method name="close"
  60094. abstract="false" native="false" synchronized="false"
  60095. static="false" final="false" visibility="public"
  60096. deprecated="not deprecated">
  60097. <exception name="IOException" type="java.io.IOException"/>
  60098. </method>
  60099. <method name="clear"
  60100. abstract="false" native="false" synchronized="false"
  60101. static="false" final="false" visibility="public"
  60102. deprecated="not deprecated">
  60103. </method>
  60104. <doc>
  60105. <![CDATA[This class provides an implementation of ResetableIterator. The
  60106. implementation uses an {@link java.util.ArrayList} to store elements
  60107. added to it, replaying them as requested.
  60108. Prefer {@link StreamBackedIterator}.]]>
  60109. </doc>
  60110. </class>
  60111. <!-- end class org.apache.hadoop.mapred.join.ArrayListBackedIterator -->
  60112. <!-- start interface org.apache.hadoop.mapred.join.ComposableInputFormat -->
  60113. <interface name="ComposableInputFormat" abstract="true"
  60114. static="false" final="false" visibility="public"
  60115. deprecated="not deprecated">
  60116. <implements name="org.apache.hadoop.mapred.InputFormat"/>
  60117. <method name="getRecordReader" return="org.apache.hadoop.mapred.join.ComposableRecordReader"
  60118. abstract="false" native="false" synchronized="false"
  60119. static="false" final="false" visibility="public"
  60120. deprecated="not deprecated">
  60121. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  60122. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60123. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  60124. <exception name="IOException" type="java.io.IOException"/>
  60125. </method>
  60126. <doc>
  60127. <![CDATA[Refinement of InputFormat requiring implementors to provide
  60128. ComposableRecordReader instead of RecordReader.]]>
  60129. </doc>
  60130. </interface>
  60131. <!-- end interface org.apache.hadoop.mapred.join.ComposableInputFormat -->
  60132. <!-- start interface org.apache.hadoop.mapred.join.ComposableRecordReader -->
  60133. <interface name="ComposableRecordReader" abstract="true"
  60134. static="false" final="false" visibility="public"
  60135. deprecated="not deprecated">
  60136. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  60137. <implements name="java.lang.Comparable"/>
  60138. <method name="id" return="int"
  60139. abstract="false" native="false" synchronized="false"
  60140. static="false" final="false" visibility="public"
  60141. deprecated="not deprecated">
  60142. <doc>
  60143. <![CDATA[Return the position in the collector this class occupies.]]>
  60144. </doc>
  60145. </method>
  60146. <method name="key" return="org.apache.hadoop.io.WritableComparable"
  60147. abstract="false" native="false" synchronized="false"
  60148. static="false" final="false" visibility="public"
  60149. deprecated="not deprecated">
  60150. <doc>
  60151. <![CDATA[Return the key this RecordReader would supply on a call to next(K,V)]]>
  60152. </doc>
  60153. </method>
  60154. <method name="key"
  60155. abstract="false" native="false" synchronized="false"
  60156. static="false" final="false" visibility="public"
  60157. deprecated="not deprecated">
  60158. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  60159. <exception name="IOException" type="java.io.IOException"/>
  60160. <doc>
  60161. <![CDATA[Clone the key at the head of this RecordReader into the object provided.]]>
  60162. </doc>
  60163. </method>
  60164. <method name="hasNext" return="boolean"
  60165. abstract="false" native="false" synchronized="false"
  60166. static="false" final="false" visibility="public"
  60167. deprecated="not deprecated">
  60168. <doc>
  60169. <![CDATA[Returns true if the stream is not empty, but provides no guarantee that
  60170. a call to next(K,V) will succeed.]]>
  60171. </doc>
  60172. </method>
  60173. <method name="skip"
  60174. abstract="false" native="false" synchronized="false"
  60175. static="false" final="false" visibility="public"
  60176. deprecated="not deprecated">
  60177. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  60178. <exception name="IOException" type="java.io.IOException"/>
  60179. <doc>
  60180. <![CDATA[Skip key-value pairs with keys less than or equal to the key provided.]]>
  60181. </doc>
  60182. </method>
  60183. <method name="accept"
  60184. abstract="false" native="false" synchronized="false"
  60185. static="false" final="false" visibility="public"
  60186. deprecated="not deprecated">
  60187. <param name="jc" type="org.apache.hadoop.mapred.join.CompositeRecordReader.JoinCollector"/>
  60188. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  60189. <exception name="IOException" type="java.io.IOException"/>
  60190. <doc>
  60191. <![CDATA[While key-value pairs from this RecordReader match the given key, register
  60192. them with the JoinCollector provided.]]>
  60193. </doc>
  60194. </method>
  60195. <doc>
  60196. <![CDATA[Additional operations required of a RecordReader to participate in a join.]]>
  60197. </doc>
  60198. </interface>
  60199. <!-- end interface org.apache.hadoop.mapred.join.ComposableRecordReader -->
  60200. <!-- start class org.apache.hadoop.mapred.join.CompositeInputFormat -->
  60201. <class name="CompositeInputFormat" extends="java.lang.Object"
  60202. abstract="false"
  60203. static="false" final="false" visibility="public"
  60204. deprecated="not deprecated">
  60205. <implements name="org.apache.hadoop.mapred.join.ComposableInputFormat"/>
  60206. <constructor name="CompositeInputFormat"
  60207. static="false" final="false" visibility="public"
  60208. deprecated="not deprecated">
  60209. </constructor>
  60210. <method name="setFormat"
  60211. abstract="false" native="false" synchronized="false"
  60212. static="false" final="false" visibility="public"
  60213. deprecated="not deprecated">
  60214. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60215. <exception name="IOException" type="java.io.IOException"/>
  60216. <doc>
  60217. <![CDATA[Interpret a given string as a composite expression.
  60218. {@code
  60219. func ::= <ident>([<func>,]*<func>)
  60220. func ::= tbl(<class>,"<path>")
  60221. class ::= @see java.lang.Class#forName(java.lang.String)
  60222. path ::= @see org.apache.hadoop.fs.Path#Path(java.lang.String)
  60223. }
  60224. Reads expression from the <tt>mapred.join.expr</tt> property and
  60225. user-supplied join types from <tt>mapred.join.define.&lt;ident&gt;</tt>
  60226. types. Paths supplied to <tt>tbl</tt> are given as input paths to the
  60227. InputFormat class listed.
  60228. @see #compose(java.lang.String, java.lang.Class, java.lang.String...)]]>
  60229. </doc>
  60230. </method>
  60231. <method name="addDefaults"
  60232. abstract="false" native="false" synchronized="false"
  60233. static="false" final="false" visibility="protected"
  60234. deprecated="not deprecated">
  60235. <doc>
  60236. <![CDATA[Adds the default set of identifiers to the parser.]]>
  60237. </doc>
  60238. </method>
  60239. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  60240. abstract="false" native="false" synchronized="false"
  60241. static="false" final="false" visibility="public"
  60242. deprecated="not deprecated">
  60243. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60244. <param name="numSplits" type="int"/>
  60245. <exception name="IOException" type="java.io.IOException"/>
  60246. <doc>
  60247. <![CDATA[Build a CompositeInputSplit from the child InputFormats by assigning the
  60248. ith split from each child to the ith composite split.]]>
  60249. </doc>
  60250. </method>
  60251. <method name="getRecordReader" return="org.apache.hadoop.mapred.join.ComposableRecordReader"
  60252. abstract="false" native="false" synchronized="false"
  60253. static="false" final="false" visibility="public"
  60254. deprecated="not deprecated">
  60255. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  60256. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60257. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  60258. <exception name="IOException" type="java.io.IOException"/>
  60259. <doc>
  60260. <![CDATA[Construct a CompositeRecordReader for the children of this InputFormat
  60261. as defined in the init expression.
  60262. The outermost join need only be composable, not necessarily a composite.
  60263. Mandating TupleWritable isn't strictly correct.]]>
  60264. </doc>
  60265. </method>
  60266. <method name="compose" return="java.lang.String"
  60267. abstract="false" native="false" synchronized="false"
  60268. static="true" final="false" visibility="public"
  60269. deprecated="not deprecated">
  60270. <param name="inf" type="java.lang.Class"/>
  60271. <param name="path" type="java.lang.String"/>
  60272. <doc>
  60273. <![CDATA[Convenience method for constructing composite formats.
  60274. Given InputFormat class (inf), path (p) return:
  60275. {@code tbl(<inf>, <p>) }]]>
  60276. </doc>
  60277. </method>
  60278. <method name="compose" return="java.lang.String"
  60279. abstract="false" native="false" synchronized="false"
  60280. static="true" final="false" visibility="public"
  60281. deprecated="not deprecated">
  60282. <param name="op" type="java.lang.String"/>
  60283. <param name="inf" type="java.lang.Class"/>
  60284. <param name="path" type="java.lang.String[]"/>
  60285. <doc>
  60286. <![CDATA[Convenience method for constructing composite formats.
  60287. Given operation (op), Object class (inf), set of paths (p) return:
  60288. {@code <op>(tbl(<inf>,<p1>),tbl(<inf>,<p2>),...,tbl(<inf>,<pn>)) }]]>
  60289. </doc>
  60290. </method>
  60291. <method name="compose" return="java.lang.String"
  60292. abstract="false" native="false" synchronized="false"
  60293. static="true" final="false" visibility="public"
  60294. deprecated="not deprecated">
  60295. <param name="op" type="java.lang.String"/>
  60296. <param name="inf" type="java.lang.Class"/>
  60297. <param name="path" type="org.apache.hadoop.fs.Path[]"/>
  60298. <doc>
  60299. <![CDATA[Convenience method for constructing composite formats.
  60300. Given operation (op), Object class (inf), set of paths (p) return:
  60301. {@code <op>(tbl(<inf>,<p1>),tbl(<inf>,<p2>),...,tbl(<inf>,<pn>)) }]]>
  60302. </doc>
  60303. </method>
  60304. <doc>
  60305. <![CDATA[An InputFormat capable of performing joins over a set of data sources sorted
  60306. and partitioned the same way.
  60307. @see #setFormat
  60308. A user may define new join types by setting the property
  60309. <tt>mapred.join.define.&lt;ident&gt;</tt> to a classname. In the expression
  60310. <tt>mapred.join.expr</tt>, the identifier will be assumed to be a
  60311. ComposableRecordReader.
  60312. <tt>mapred.join.keycomparator</tt> can be a classname used to compare keys
  60313. in the join.
  60314. @see JoinRecordReader
  60315. @see MultiFilterRecordReader]]>
  60316. </doc>
  60317. </class>
  60318. <!-- end class org.apache.hadoop.mapred.join.CompositeInputFormat -->
  60319. <!-- start class org.apache.hadoop.mapred.join.CompositeInputSplit -->
  60320. <class name="CompositeInputSplit" extends="java.lang.Object"
  60321. abstract="false"
  60322. static="false" final="false" visibility="public"
  60323. deprecated="not deprecated">
  60324. <implements name="org.apache.hadoop.mapred.InputSplit"/>
  60325. <constructor name="CompositeInputSplit"
  60326. static="false" final="false" visibility="public"
  60327. deprecated="not deprecated">
  60328. </constructor>
  60329. <constructor name="CompositeInputSplit" type="int"
  60330. static="false" final="false" visibility="public"
  60331. deprecated="not deprecated">
  60332. </constructor>
  60333. <method name="add"
  60334. abstract="false" native="false" synchronized="false"
  60335. static="false" final="false" visibility="public"
  60336. deprecated="not deprecated">
  60337. <param name="s" type="org.apache.hadoop.mapred.InputSplit"/>
  60338. <exception name="IOException" type="java.io.IOException"/>
  60339. <doc>
  60340. <![CDATA[Add an InputSplit to this collection.
  60341. @throws IOException If capacity was not specified during construction
  60342. or if capacity has been reached.]]>
  60343. </doc>
  60344. </method>
  60345. <method name="get" return="org.apache.hadoop.mapred.InputSplit"
  60346. abstract="false" native="false" synchronized="false"
  60347. static="false" final="false" visibility="public"
  60348. deprecated="not deprecated">
  60349. <param name="i" type="int"/>
  60350. <doc>
  60351. <![CDATA[Get ith child InputSplit.]]>
  60352. </doc>
  60353. </method>
  60354. <method name="getLength" return="long"
  60355. abstract="false" native="false" synchronized="false"
  60356. static="false" final="false" visibility="public"
  60357. deprecated="not deprecated">
  60358. <exception name="IOException" type="java.io.IOException"/>
  60359. <doc>
  60360. <![CDATA[Return the aggregate length of all child InputSplits currently added.]]>
  60361. </doc>
  60362. </method>
  60363. <method name="getLength" return="long"
  60364. abstract="false" native="false" synchronized="false"
  60365. static="false" final="false" visibility="public"
  60366. deprecated="not deprecated">
  60367. <param name="i" type="int"/>
  60368. <exception name="IOException" type="java.io.IOException"/>
  60369. <doc>
  60370. <![CDATA[Get the length of ith child InputSplit.]]>
  60371. </doc>
  60372. </method>
  60373. <method name="getLocations" return="java.lang.String[]"
  60374. abstract="false" native="false" synchronized="false"
  60375. static="false" final="false" visibility="public"
  60376. deprecated="not deprecated">
  60377. <exception name="IOException" type="java.io.IOException"/>
  60378. <doc>
  60379. <![CDATA[Collect a set of hosts from all child InputSplits.]]>
  60380. </doc>
  60381. </method>
  60382. <method name="getLocation" return="java.lang.String[]"
  60383. abstract="false" native="false" synchronized="false"
  60384. static="false" final="false" visibility="public"
  60385. deprecated="not deprecated">
  60386. <param name="i" type="int"/>
  60387. <exception name="IOException" type="java.io.IOException"/>
  60388. <doc>
  60389. <![CDATA[getLocations from ith InputSplit.]]>
  60390. </doc>
  60391. </method>
  60392. <method name="write"
  60393. abstract="false" native="false" synchronized="false"
  60394. static="false" final="false" visibility="public"
  60395. deprecated="not deprecated">
  60396. <param name="out" type="java.io.DataOutput"/>
  60397. <exception name="IOException" type="java.io.IOException"/>
  60398. <doc>
  60399. <![CDATA[Write splits in the following format.
  60400. {@code
  60401. <count><class1><class2>...<classn><split1><split2>...<splitn>
  60402. }]]>
  60403. </doc>
  60404. </method>
  60405. <method name="readFields"
  60406. abstract="false" native="false" synchronized="false"
  60407. static="false" final="false" visibility="public"
  60408. deprecated="not deprecated">
  60409. <param name="in" type="java.io.DataInput"/>
  60410. <exception name="IOException" type="java.io.IOException"/>
  60411. <doc>
  60412. <![CDATA[{@inheritDoc}
  60413. @throws IOException If the child InputSplit cannot be read, typically
  60414. for faliing access checks.]]>
  60415. </doc>
  60416. </method>
  60417. <doc>
  60418. <![CDATA[This InputSplit contains a set of child InputSplits. Any InputSplit inserted
  60419. into this collection must have a public default constructor.]]>
  60420. </doc>
  60421. </class>
  60422. <!-- end class org.apache.hadoop.mapred.join.CompositeInputSplit -->
  60423. <!-- start class org.apache.hadoop.mapred.join.CompositeRecordReader -->
  60424. <class name="CompositeRecordReader" extends="java.lang.Object"
  60425. abstract="true"
  60426. static="false" final="false" visibility="public"
  60427. deprecated="not deprecated">
  60428. <implements name="org.apache.hadoop.conf.Configurable"/>
  60429. <constructor name="CompositeRecordReader" type="int, int, java.lang.Class"
  60430. static="false" final="false" visibility="public"
  60431. deprecated="not deprecated">
  60432. <exception name="IOException" type="java.io.IOException"/>
  60433. <doc>
  60434. <![CDATA[Create a RecordReader with <tt>capacity</tt> children to position
  60435. <tt>id</tt> in the parent reader.
  60436. The id of a root CompositeRecordReader is -1 by convention, but relying
  60437. on this is not recommended.]]>
  60438. </doc>
  60439. </constructor>
  60440. <method name="combine" return="boolean"
  60441. abstract="true" native="false" synchronized="false"
  60442. static="false" final="false" visibility="protected"
  60443. deprecated="not deprecated">
  60444. <param name="srcs" type="java.lang.Object[]"/>
  60445. <param name="value" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  60446. </method>
  60447. <method name="id" return="int"
  60448. abstract="false" native="false" synchronized="false"
  60449. static="false" final="false" visibility="public"
  60450. deprecated="not deprecated">
  60451. <doc>
  60452. <![CDATA[Return the position in the collector this class occupies.]]>
  60453. </doc>
  60454. </method>
  60455. <method name="setConf"
  60456. abstract="false" native="false" synchronized="false"
  60457. static="false" final="false" visibility="public"
  60458. deprecated="not deprecated">
  60459. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  60460. <doc>
  60461. <![CDATA[{@inheritDoc}]]>
  60462. </doc>
  60463. </method>
  60464. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  60465. abstract="false" native="false" synchronized="false"
  60466. static="false" final="false" visibility="public"
  60467. deprecated="not deprecated">
  60468. <doc>
  60469. <![CDATA[{@inheritDoc}]]>
  60470. </doc>
  60471. </method>
  60472. <method name="getRecordReaderQueue" return="java.util.PriorityQueue"
  60473. abstract="false" native="false" synchronized="false"
  60474. static="false" final="false" visibility="protected"
  60475. deprecated="not deprecated">
  60476. <doc>
  60477. <![CDATA[Return sorted list of RecordReaders for this composite.]]>
  60478. </doc>
  60479. </method>
  60480. <method name="getComparator" return="org.apache.hadoop.io.WritableComparator"
  60481. abstract="false" native="false" synchronized="false"
  60482. static="false" final="false" visibility="protected"
  60483. deprecated="not deprecated">
  60484. <doc>
  60485. <![CDATA[Return comparator defining the ordering for RecordReaders in this
  60486. composite.]]>
  60487. </doc>
  60488. </method>
  60489. <method name="add"
  60490. abstract="false" native="false" synchronized="false"
  60491. static="false" final="false" visibility="public"
  60492. deprecated="not deprecated">
  60493. <param name="rr" type="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  60494. <exception name="IOException" type="java.io.IOException"/>
  60495. <doc>
  60496. <![CDATA[Add a RecordReader to this collection.
  60497. The id() of a RecordReader determines where in the Tuple its
  60498. entry will appear. Adding RecordReaders with the same id has
  60499. undefined behavior.]]>
  60500. </doc>
  60501. </method>
  60502. <method name="key" return="org.apache.hadoop.io.WritableComparable"
  60503. abstract="false" native="false" synchronized="false"
  60504. static="false" final="false" visibility="public"
  60505. deprecated="not deprecated">
  60506. <doc>
  60507. <![CDATA[Return the key for the current join or the value at the top of the
  60508. RecordReader heap.]]>
  60509. </doc>
  60510. </method>
  60511. <method name="key"
  60512. abstract="false" native="false" synchronized="false"
  60513. static="false" final="false" visibility="public"
  60514. deprecated="not deprecated">
  60515. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  60516. <exception name="IOException" type="java.io.IOException"/>
  60517. <doc>
  60518. <![CDATA[Clone the key at the top of this RR into the given object.]]>
  60519. </doc>
  60520. </method>
  60521. <method name="hasNext" return="boolean"
  60522. abstract="false" native="false" synchronized="false"
  60523. static="false" final="false" visibility="public"
  60524. deprecated="not deprecated">
  60525. <doc>
  60526. <![CDATA[Return true if it is possible that this could emit more values.]]>
  60527. </doc>
  60528. </method>
  60529. <method name="skip"
  60530. abstract="false" native="false" synchronized="false"
  60531. static="false" final="false" visibility="public"
  60532. deprecated="not deprecated">
  60533. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  60534. <exception name="IOException" type="java.io.IOException"/>
  60535. <doc>
  60536. <![CDATA[Pass skip key to child RRs.]]>
  60537. </doc>
  60538. </method>
  60539. <method name="getDelegate" return="org.apache.hadoop.mapred.join.ResetableIterator"
  60540. abstract="true" native="false" synchronized="false"
  60541. static="false" final="false" visibility="protected"
  60542. deprecated="not deprecated">
  60543. <doc>
  60544. <![CDATA[Obtain an iterator over the child RRs apropos of the value type
  60545. ultimately emitted from this join.]]>
  60546. </doc>
  60547. </method>
  60548. <method name="accept"
  60549. abstract="false" native="false" synchronized="false"
  60550. static="false" final="false" visibility="public"
  60551. deprecated="not deprecated">
  60552. <param name="jc" type="org.apache.hadoop.mapred.join.CompositeRecordReader.JoinCollector"/>
  60553. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  60554. <exception name="IOException" type="java.io.IOException"/>
  60555. <doc>
  60556. <![CDATA[If key provided matches that of this Composite, give JoinCollector
  60557. iterator over values it may emit.]]>
  60558. </doc>
  60559. </method>
  60560. <method name="fillJoinCollector"
  60561. abstract="false" native="false" synchronized="false"
  60562. static="false" final="false" visibility="protected"
  60563. deprecated="not deprecated">
  60564. <param name="iterkey" type="org.apache.hadoop.io.WritableComparable"/>
  60565. <exception name="IOException" type="java.io.IOException"/>
  60566. <doc>
  60567. <![CDATA[For all child RRs offering the key provided, obtain an iterator
  60568. at that position in the JoinCollector.]]>
  60569. </doc>
  60570. </method>
  60571. <method name="compareTo" return="int"
  60572. abstract="false" native="false" synchronized="false"
  60573. static="false" final="false" visibility="public"
  60574. deprecated="not deprecated">
  60575. <param name="other" type="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  60576. <doc>
  60577. <![CDATA[Implement Comparable contract (compare key of join or head of heap
  60578. with that of another).]]>
  60579. </doc>
  60580. </method>
  60581. <method name="createKey" return="org.apache.hadoop.io.WritableComparable"
  60582. abstract="false" native="false" synchronized="false"
  60583. static="false" final="false" visibility="public"
  60584. deprecated="not deprecated">
  60585. <doc>
  60586. <![CDATA[Create a new key value common to all child RRs.
  60587. @throws ClassCastException if key classes differ.]]>
  60588. </doc>
  60589. </method>
  60590. <method name="createInternalValue" return="org.apache.hadoop.mapred.join.TupleWritable"
  60591. abstract="false" native="false" synchronized="false"
  60592. static="false" final="false" visibility="protected"
  60593. deprecated="not deprecated">
  60594. <doc>
  60595. <![CDATA[Create a value to be used internally for joins.]]>
  60596. </doc>
  60597. </method>
  60598. <method name="getPos" return="long"
  60599. abstract="false" native="false" synchronized="false"
  60600. static="false" final="false" visibility="public"
  60601. deprecated="not deprecated">
  60602. <exception name="IOException" type="java.io.IOException"/>
  60603. <doc>
  60604. <![CDATA[Unsupported (returns zero in all cases).]]>
  60605. </doc>
  60606. </method>
  60607. <method name="close"
  60608. abstract="false" native="false" synchronized="false"
  60609. static="false" final="false" visibility="public"
  60610. deprecated="not deprecated">
  60611. <exception name="IOException" type="java.io.IOException"/>
  60612. <doc>
  60613. <![CDATA[Close all child RRs.]]>
  60614. </doc>
  60615. </method>
  60616. <method name="getProgress" return="float"
  60617. abstract="false" native="false" synchronized="false"
  60618. static="false" final="false" visibility="public"
  60619. deprecated="not deprecated">
  60620. <exception name="IOException" type="java.io.IOException"/>
  60621. <doc>
  60622. <![CDATA[Report progress as the minimum of all child RR progress.]]>
  60623. </doc>
  60624. </method>
  60625. <field name="jc" type="org.apache.hadoop.mapred.join.CompositeRecordReader.JoinCollector"
  60626. transient="false" volatile="false"
  60627. static="false" final="true" visibility="protected"
  60628. deprecated="not deprecated">
  60629. </field>
  60630. <field name="kids" type="org.apache.hadoop.mapred.join.ComposableRecordReader[]"
  60631. transient="false" volatile="false"
  60632. static="false" final="true" visibility="protected"
  60633. deprecated="not deprecated">
  60634. </field>
  60635. <doc>
  60636. <![CDATA[A RecordReader that can effect joins of RecordReaders sharing a common key
  60637. type and partitioning.]]>
  60638. </doc>
  60639. </class>
  60640. <!-- end class org.apache.hadoop.mapred.join.CompositeRecordReader -->
  60641. <!-- start class org.apache.hadoop.mapred.join.InnerJoinRecordReader -->
  60642. <class name="InnerJoinRecordReader" extends="org.apache.hadoop.mapred.join.JoinRecordReader"
  60643. abstract="false"
  60644. static="false" final="false" visibility="public"
  60645. deprecated="not deprecated">
  60646. <method name="combine" return="boolean"
  60647. abstract="false" native="false" synchronized="false"
  60648. static="false" final="false" visibility="protected"
  60649. deprecated="not deprecated">
  60650. <param name="srcs" type="java.lang.Object[]"/>
  60651. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  60652. <doc>
  60653. <![CDATA[Return true iff the tuple is full (all data sources contain this key).]]>
  60654. </doc>
  60655. </method>
  60656. <doc>
  60657. <![CDATA[Full inner join.]]>
  60658. </doc>
  60659. </class>
  60660. <!-- end class org.apache.hadoop.mapred.join.InnerJoinRecordReader -->
  60661. <!-- start class org.apache.hadoop.mapred.join.JoinRecordReader -->
  60662. <class name="JoinRecordReader" extends="org.apache.hadoop.mapred.join.CompositeRecordReader"
  60663. abstract="true"
  60664. static="false" final="false" visibility="public"
  60665. deprecated="not deprecated">
  60666. <implements name="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  60667. <constructor name="JoinRecordReader" type="int, org.apache.hadoop.mapred.JobConf, int, java.lang.Class"
  60668. static="false" final="false" visibility="public"
  60669. deprecated="not deprecated">
  60670. <exception name="IOException" type="java.io.IOException"/>
  60671. </constructor>
  60672. <method name="next" return="boolean"
  60673. abstract="false" native="false" synchronized="false"
  60674. static="false" final="false" visibility="public"
  60675. deprecated="not deprecated">
  60676. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  60677. <param name="value" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  60678. <exception name="IOException" type="java.io.IOException"/>
  60679. <doc>
  60680. <![CDATA[Emit the next set of key, value pairs as defined by the child
  60681. RecordReaders and operation associated with this composite RR.]]>
  60682. </doc>
  60683. </method>
  60684. <method name="createValue" return="org.apache.hadoop.mapred.join.TupleWritable"
  60685. abstract="false" native="false" synchronized="false"
  60686. static="false" final="false" visibility="public"
  60687. deprecated="not deprecated">
  60688. <doc>
  60689. <![CDATA[{@inheritDoc}]]>
  60690. </doc>
  60691. </method>
  60692. <method name="getDelegate" return="org.apache.hadoop.mapred.join.ResetableIterator"
  60693. abstract="false" native="false" synchronized="false"
  60694. static="false" final="false" visibility="protected"
  60695. deprecated="not deprecated">
  60696. <doc>
  60697. <![CDATA[Return an iterator wrapping the JoinCollector.]]>
  60698. </doc>
  60699. </method>
  60700. <doc>
  60701. <![CDATA[Base class for Composite joins returning Tuples of arbitrary Writables.]]>
  60702. </doc>
  60703. </class>
  60704. <!-- end class org.apache.hadoop.mapred.join.JoinRecordReader -->
  60705. <!-- start class org.apache.hadoop.mapred.join.JoinRecordReader.JoinDelegationIterator -->
  60706. <class name="JoinRecordReader.JoinDelegationIterator" extends="java.lang.Object"
  60707. abstract="false"
  60708. static="false" final="false" visibility="protected"
  60709. deprecated="not deprecated">
  60710. <implements name="org.apache.hadoop.mapred.join.ResetableIterator"/>
  60711. <constructor name="JoinRecordReader.JoinDelegationIterator"
  60712. static="false" final="false" visibility="protected"
  60713. deprecated="not deprecated">
  60714. </constructor>
  60715. <method name="hasNext" return="boolean"
  60716. abstract="false" native="false" synchronized="false"
  60717. static="false" final="false" visibility="public"
  60718. deprecated="not deprecated">
  60719. </method>
  60720. <method name="next" return="boolean"
  60721. abstract="false" native="false" synchronized="false"
  60722. static="false" final="false" visibility="public"
  60723. deprecated="not deprecated">
  60724. <param name="val" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  60725. <exception name="IOException" type="java.io.IOException"/>
  60726. </method>
  60727. <method name="replay" return="boolean"
  60728. abstract="false" native="false" synchronized="false"
  60729. static="false" final="false" visibility="public"
  60730. deprecated="not deprecated">
  60731. <param name="val" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  60732. <exception name="IOException" type="java.io.IOException"/>
  60733. </method>
  60734. <method name="reset"
  60735. abstract="false" native="false" synchronized="false"
  60736. static="false" final="false" visibility="public"
  60737. deprecated="not deprecated">
  60738. </method>
  60739. <method name="add"
  60740. abstract="false" native="false" synchronized="false"
  60741. static="false" final="false" visibility="public"
  60742. deprecated="not deprecated">
  60743. <param name="item" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  60744. <exception name="IOException" type="java.io.IOException"/>
  60745. </method>
  60746. <method name="close"
  60747. abstract="false" native="false" synchronized="false"
  60748. static="false" final="false" visibility="public"
  60749. deprecated="not deprecated">
  60750. <exception name="IOException" type="java.io.IOException"/>
  60751. </method>
  60752. <method name="clear"
  60753. abstract="false" native="false" synchronized="false"
  60754. static="false" final="false" visibility="public"
  60755. deprecated="not deprecated">
  60756. </method>
  60757. <doc>
  60758. <![CDATA[Since the JoinCollector is effecting our operation, we need only
  60759. provide an iterator proxy wrapping its operation.]]>
  60760. </doc>
  60761. </class>
  60762. <!-- end class org.apache.hadoop.mapred.join.JoinRecordReader.JoinDelegationIterator -->
  60763. <!-- start class org.apache.hadoop.mapred.join.MultiFilterRecordReader -->
  60764. <class name="MultiFilterRecordReader" extends="org.apache.hadoop.mapred.join.CompositeRecordReader"
  60765. abstract="true"
  60766. static="false" final="false" visibility="public"
  60767. deprecated="not deprecated">
  60768. <implements name="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  60769. <constructor name="MultiFilterRecordReader" type="int, org.apache.hadoop.mapred.JobConf, int, java.lang.Class"
  60770. static="false" final="false" visibility="public"
  60771. deprecated="not deprecated">
  60772. <exception name="IOException" type="java.io.IOException"/>
  60773. </constructor>
  60774. <method name="emit" return="org.apache.hadoop.io.Writable"
  60775. abstract="true" native="false" synchronized="false"
  60776. static="false" final="false" visibility="protected"
  60777. deprecated="not deprecated">
  60778. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  60779. <exception name="IOException" type="java.io.IOException"/>
  60780. <doc>
  60781. <![CDATA[For each tuple emitted, return a value (typically one of the values
  60782. in the tuple).
  60783. Modifying the Writables in the tuple is permitted and unlikely to affect
  60784. join behavior in most cases, but it is not recommended. It's safer to
  60785. clone first.]]>
  60786. </doc>
  60787. </method>
  60788. <method name="combine" return="boolean"
  60789. abstract="false" native="false" synchronized="false"
  60790. static="false" final="false" visibility="protected"
  60791. deprecated="not deprecated">
  60792. <param name="srcs" type="java.lang.Object[]"/>
  60793. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  60794. <doc>
  60795. <![CDATA[Default implementation offers {@link #emit} every Tuple from the
  60796. collector (the outer join of child RRs).]]>
  60797. </doc>
  60798. </method>
  60799. <method name="next" return="boolean"
  60800. abstract="false" native="false" synchronized="false"
  60801. static="false" final="false" visibility="public"
  60802. deprecated="not deprecated">
  60803. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  60804. <param name="value" type="org.apache.hadoop.io.Writable"/>
  60805. <exception name="IOException" type="java.io.IOException"/>
  60806. <doc>
  60807. <![CDATA[{@inheritDoc}]]>
  60808. </doc>
  60809. </method>
  60810. <method name="createValue" return="org.apache.hadoop.io.Writable"
  60811. abstract="false" native="false" synchronized="false"
  60812. static="false" final="false" visibility="public"
  60813. deprecated="not deprecated">
  60814. <doc>
  60815. <![CDATA[{@inheritDoc}]]>
  60816. </doc>
  60817. </method>
  60818. <method name="getDelegate" return="org.apache.hadoop.mapred.join.ResetableIterator"
  60819. abstract="false" native="false" synchronized="false"
  60820. static="false" final="false" visibility="protected"
  60821. deprecated="not deprecated">
  60822. <doc>
  60823. <![CDATA[Return an iterator returning a single value from the tuple.
  60824. @see MultiFilterDelegationIterator]]>
  60825. </doc>
  60826. </method>
  60827. <doc>
  60828. <![CDATA[Base class for Composite join returning values derived from multiple
  60829. sources, but generally not tuples.]]>
  60830. </doc>
  60831. </class>
  60832. <!-- end class org.apache.hadoop.mapred.join.MultiFilterRecordReader -->
  60833. <!-- start class org.apache.hadoop.mapred.join.MultiFilterRecordReader.MultiFilterDelegationIterator -->
  60834. <class name="MultiFilterRecordReader.MultiFilterDelegationIterator" extends="java.lang.Object"
  60835. abstract="false"
  60836. static="false" final="false" visibility="protected"
  60837. deprecated="not deprecated">
  60838. <implements name="org.apache.hadoop.mapred.join.ResetableIterator"/>
  60839. <constructor name="MultiFilterRecordReader.MultiFilterDelegationIterator"
  60840. static="false" final="false" visibility="protected"
  60841. deprecated="not deprecated">
  60842. </constructor>
  60843. <method name="hasNext" return="boolean"
  60844. abstract="false" native="false" synchronized="false"
  60845. static="false" final="false" visibility="public"
  60846. deprecated="not deprecated">
  60847. </method>
  60848. <method name="next" return="boolean"
  60849. abstract="false" native="false" synchronized="false"
  60850. static="false" final="false" visibility="public"
  60851. deprecated="not deprecated">
  60852. <param name="val" type="org.apache.hadoop.io.Writable"/>
  60853. <exception name="IOException" type="java.io.IOException"/>
  60854. </method>
  60855. <method name="replay" return="boolean"
  60856. abstract="false" native="false" synchronized="false"
  60857. static="false" final="false" visibility="public"
  60858. deprecated="not deprecated">
  60859. <param name="val" type="org.apache.hadoop.io.Writable"/>
  60860. <exception name="IOException" type="java.io.IOException"/>
  60861. </method>
  60862. <method name="reset"
  60863. abstract="false" native="false" synchronized="false"
  60864. static="false" final="false" visibility="public"
  60865. deprecated="not deprecated">
  60866. </method>
  60867. <method name="add"
  60868. abstract="false" native="false" synchronized="false"
  60869. static="false" final="false" visibility="public"
  60870. deprecated="not deprecated">
  60871. <param name="item" type="org.apache.hadoop.io.Writable"/>
  60872. <exception name="IOException" type="java.io.IOException"/>
  60873. </method>
  60874. <method name="close"
  60875. abstract="false" native="false" synchronized="false"
  60876. static="false" final="false" visibility="public"
  60877. deprecated="not deprecated">
  60878. <exception name="IOException" type="java.io.IOException"/>
  60879. </method>
  60880. <method name="clear"
  60881. abstract="false" native="false" synchronized="false"
  60882. static="false" final="false" visibility="public"
  60883. deprecated="not deprecated">
  60884. </method>
  60885. <doc>
  60886. <![CDATA[Proxy the JoinCollector, but include callback to emit.]]>
  60887. </doc>
  60888. </class>
  60889. <!-- end class org.apache.hadoop.mapred.join.MultiFilterRecordReader.MultiFilterDelegationIterator -->
  60890. <!-- start class org.apache.hadoop.mapred.join.OuterJoinRecordReader -->
  60891. <class name="OuterJoinRecordReader" extends="org.apache.hadoop.mapred.join.JoinRecordReader"
  60892. abstract="false"
  60893. static="false" final="false" visibility="public"
  60894. deprecated="not deprecated">
  60895. <method name="combine" return="boolean"
  60896. abstract="false" native="false" synchronized="false"
  60897. static="false" final="false" visibility="protected"
  60898. deprecated="not deprecated">
  60899. <param name="srcs" type="java.lang.Object[]"/>
  60900. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  60901. <doc>
  60902. <![CDATA[Emit everything from the collector.]]>
  60903. </doc>
  60904. </method>
  60905. <doc>
  60906. <![CDATA[Full outer join.]]>
  60907. </doc>
  60908. </class>
  60909. <!-- end class org.apache.hadoop.mapred.join.OuterJoinRecordReader -->
  60910. <!-- start class org.apache.hadoop.mapred.join.OverrideRecordReader -->
  60911. <class name="OverrideRecordReader" extends="org.apache.hadoop.mapred.join.MultiFilterRecordReader"
  60912. abstract="false"
  60913. static="false" final="false" visibility="public"
  60914. deprecated="not deprecated">
  60915. <method name="emit" return="org.apache.hadoop.io.Writable"
  60916. abstract="false" native="false" synchronized="false"
  60917. static="false" final="false" visibility="protected"
  60918. deprecated="not deprecated">
  60919. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  60920. <doc>
  60921. <![CDATA[Emit the value with the highest position in the tuple.]]>
  60922. </doc>
  60923. </method>
  60924. <method name="fillJoinCollector"
  60925. abstract="false" native="false" synchronized="false"
  60926. static="false" final="false" visibility="protected"
  60927. deprecated="not deprecated">
  60928. <param name="iterkey" type="org.apache.hadoop.io.WritableComparable"/>
  60929. <exception name="IOException" type="java.io.IOException"/>
  60930. <doc>
  60931. <![CDATA[Instead of filling the JoinCollector with iterators from all
  60932. data sources, fill only the rightmost for this key.
  60933. This not only saves space by discarding the other sources, but
  60934. it also emits the number of key-value pairs in the preferred
  60935. RecordReader instead of repeating that stream n times, where
  60936. n is the cardinality of the cross product of the discarded
  60937. streams for the given key.]]>
  60938. </doc>
  60939. </method>
  60940. <doc>
  60941. <![CDATA[Prefer the &quot;rightmost&quot; data source for this key.
  60942. For example, <tt>override(S1,S2,S3)</tt> will prefer values
  60943. from S3 over S2, and values from S2 over S1 for all keys
  60944. emitted from all sources.]]>
  60945. </doc>
  60946. </class>
  60947. <!-- end class org.apache.hadoop.mapred.join.OverrideRecordReader -->
  60948. <!-- start class org.apache.hadoop.mapred.join.Parser -->
  60949. <class name="Parser" extends="java.lang.Object"
  60950. abstract="false"
  60951. static="false" final="false" visibility="public"
  60952. deprecated="not deprecated">
  60953. <constructor name="Parser"
  60954. static="false" final="false" visibility="public"
  60955. deprecated="not deprecated">
  60956. </constructor>
  60957. <doc>
  60958. <![CDATA[Very simple shift-reduce parser for join expressions.
  60959. This should be sufficient for the user extension permitted now, but ought to
  60960. be replaced with a parser generator if more complex grammars are supported.
  60961. In particular, this &quot;shift-reduce&quot; parser has no states. Each set
  60962. of formals requires a different internal node type, which is responsible for
  60963. interpreting the list of tokens it receives. This is sufficient for the
  60964. current grammar, but it has several annoying properties that might inhibit
  60965. extension. In particular, parenthesis are always function calls; an
  60966. algebraic or filter grammar would not only require a node type, but must
  60967. also work around the internals of this parser.
  60968. For most other cases, adding classes to the hierarchy- particularly by
  60969. extending JoinRecordReader and MultiFilterRecordReader- is fairly
  60970. straightforward. One need only override the relevant method(s) (usually only
  60971. {@link CompositeRecordReader#combine}) and include a property to map its
  60972. value to an identifier in the parser.]]>
  60973. </doc>
  60974. </class>
  60975. <!-- end class org.apache.hadoop.mapred.join.Parser -->
  60976. <!-- start class org.apache.hadoop.mapred.join.Parser.Node -->
  60977. <class name="Parser.Node" extends="java.lang.Object"
  60978. abstract="true"
  60979. static="true" final="false" visibility="public"
  60980. deprecated="not deprecated">
  60981. <implements name="org.apache.hadoop.mapred.join.ComposableInputFormat"/>
  60982. <constructor name="Parser.Node" type="java.lang.String"
  60983. static="false" final="false" visibility="protected"
  60984. deprecated="not deprecated">
  60985. </constructor>
  60986. <method name="addIdentifier"
  60987. abstract="false" native="false" synchronized="false"
  60988. static="true" final="false" visibility="protected"
  60989. deprecated="not deprecated">
  60990. <param name="ident" type="java.lang.String"/>
  60991. <param name="mcstrSig" type="java.lang.Class[]"/>
  60992. <param name="nodetype" type="java.lang.Class"/>
  60993. <param name="cl" type="java.lang.Class"/>
  60994. <exception name="NoSuchMethodException" type="java.lang.NoSuchMethodException"/>
  60995. <doc>
  60996. <![CDATA[For a given identifier, add a mapping to the nodetype for the parse
  60997. tree and to the ComposableRecordReader to be created, including the
  60998. formals required to invoke the constructor.
  60999. The nodetype and constructor signature should be filled in from the
  61000. child node.]]>
  61001. </doc>
  61002. </method>
  61003. <method name="setID"
  61004. abstract="false" native="false" synchronized="false"
  61005. static="false" final="false" visibility="protected"
  61006. deprecated="not deprecated">
  61007. <param name="id" type="int"/>
  61008. </method>
  61009. <method name="setKeyComparator"
  61010. abstract="false" native="false" synchronized="false"
  61011. static="false" final="false" visibility="protected"
  61012. deprecated="not deprecated">
  61013. <param name="cmpcl" type="java.lang.Class"/>
  61014. </method>
  61015. <field name="rrCstrMap" type="java.util.Map"
  61016. transient="false" volatile="false"
  61017. static="true" final="true" visibility="protected"
  61018. deprecated="not deprecated">
  61019. </field>
  61020. <field name="id" type="int"
  61021. transient="false" volatile="false"
  61022. static="false" final="false" visibility="protected"
  61023. deprecated="not deprecated">
  61024. </field>
  61025. <field name="ident" type="java.lang.String"
  61026. transient="false" volatile="false"
  61027. static="false" final="false" visibility="protected"
  61028. deprecated="not deprecated">
  61029. </field>
  61030. <field name="cmpcl" type="java.lang.Class"
  61031. transient="false" volatile="false"
  61032. static="false" final="false" visibility="protected"
  61033. deprecated="not deprecated">
  61034. </field>
  61035. </class>
  61036. <!-- end class org.apache.hadoop.mapred.join.Parser.Node -->
  61037. <!-- start class org.apache.hadoop.mapred.join.Parser.NodeToken -->
  61038. <class name="Parser.NodeToken" extends="org.apache.hadoop.mapred.join.Parser.Token"
  61039. abstract="false"
  61040. static="true" final="false" visibility="public"
  61041. deprecated="not deprecated">
  61042. <method name="getNode" return="org.apache.hadoop.mapred.join.Parser.Node"
  61043. abstract="false" native="false" synchronized="false"
  61044. static="false" final="false" visibility="public"
  61045. deprecated="not deprecated">
  61046. </method>
  61047. </class>
  61048. <!-- end class org.apache.hadoop.mapred.join.Parser.NodeToken -->
  61049. <!-- start class org.apache.hadoop.mapred.join.Parser.NumToken -->
  61050. <class name="Parser.NumToken" extends="org.apache.hadoop.mapred.join.Parser.Token"
  61051. abstract="false"
  61052. static="true" final="false" visibility="public"
  61053. deprecated="not deprecated">
  61054. <constructor name="Parser.NumToken" type="double"
  61055. static="false" final="false" visibility="public"
  61056. deprecated="not deprecated">
  61057. </constructor>
  61058. <method name="getNum" return="double"
  61059. abstract="false" native="false" synchronized="false"
  61060. static="false" final="false" visibility="public"
  61061. deprecated="not deprecated">
  61062. </method>
  61063. </class>
  61064. <!-- end class org.apache.hadoop.mapred.join.Parser.NumToken -->
  61065. <!-- start class org.apache.hadoop.mapred.join.Parser.StrToken -->
  61066. <class name="Parser.StrToken" extends="org.apache.hadoop.mapred.join.Parser.Token"
  61067. abstract="false"
  61068. static="true" final="false" visibility="public"
  61069. deprecated="not deprecated">
  61070. <constructor name="Parser.StrToken" type="org.apache.hadoop.mapred.join.Parser.TType, java.lang.String"
  61071. static="false" final="false" visibility="public"
  61072. deprecated="not deprecated">
  61073. </constructor>
  61074. <method name="getStr" return="java.lang.String"
  61075. abstract="false" native="false" synchronized="false"
  61076. static="false" final="false" visibility="public"
  61077. deprecated="not deprecated">
  61078. </method>
  61079. </class>
  61080. <!-- end class org.apache.hadoop.mapred.join.Parser.StrToken -->
  61081. <!-- start class org.apache.hadoop.mapred.join.Parser.Token -->
  61082. <class name="Parser.Token" extends="java.lang.Object"
  61083. abstract="false"
  61084. static="true" final="false" visibility="public"
  61085. deprecated="not deprecated">
  61086. <method name="getType" return="org.apache.hadoop.mapred.join.Parser.TType"
  61087. abstract="false" native="false" synchronized="false"
  61088. static="false" final="false" visibility="public"
  61089. deprecated="not deprecated">
  61090. </method>
  61091. <method name="getNode" return="org.apache.hadoop.mapred.join.Parser.Node"
  61092. abstract="false" native="false" synchronized="false"
  61093. static="false" final="false" visibility="public"
  61094. deprecated="not deprecated">
  61095. <exception name="IOException" type="java.io.IOException"/>
  61096. </method>
  61097. <method name="getNum" return="double"
  61098. abstract="false" native="false" synchronized="false"
  61099. static="false" final="false" visibility="public"
  61100. deprecated="not deprecated">
  61101. <exception name="IOException" type="java.io.IOException"/>
  61102. </method>
  61103. <method name="getStr" return="java.lang.String"
  61104. abstract="false" native="false" synchronized="false"
  61105. static="false" final="false" visibility="public"
  61106. deprecated="not deprecated">
  61107. <exception name="IOException" type="java.io.IOException"/>
  61108. </method>
  61109. <doc>
  61110. <![CDATA[Tagged-union type for tokens from the join expression.
  61111. @see Parser.TType]]>
  61112. </doc>
  61113. </class>
  61114. <!-- end class org.apache.hadoop.mapred.join.Parser.Token -->
  61115. <!-- start class org.apache.hadoop.mapred.join.Parser.TType -->
  61116. <class name="Parser.TType" extends="java.lang.Enum"
  61117. abstract="false"
  61118. static="true" final="true" visibility="public"
  61119. deprecated="not deprecated">
  61120. <method name="values" return="org.apache.hadoop.mapred.join.Parser.TType[]"
  61121. abstract="false" native="false" synchronized="false"
  61122. static="true" final="false" visibility="public"
  61123. deprecated="not deprecated">
  61124. </method>
  61125. <method name="valueOf" return="org.apache.hadoop.mapred.join.Parser.TType"
  61126. abstract="false" native="false" synchronized="false"
  61127. static="true" final="false" visibility="public"
  61128. deprecated="not deprecated">
  61129. <param name="name" type="java.lang.String"/>
  61130. </method>
  61131. <field name="CIF" type="org.apache.hadoop.mapred.join.Parser.TType"
  61132. transient="false" volatile="false"
  61133. static="true" final="true" visibility="public"
  61134. deprecated="not deprecated">
  61135. </field>
  61136. <field name="IDENT" type="org.apache.hadoop.mapred.join.Parser.TType"
  61137. transient="false" volatile="false"
  61138. static="true" final="true" visibility="public"
  61139. deprecated="not deprecated">
  61140. </field>
  61141. <field name="COMMA" type="org.apache.hadoop.mapred.join.Parser.TType"
  61142. transient="false" volatile="false"
  61143. static="true" final="true" visibility="public"
  61144. deprecated="not deprecated">
  61145. </field>
  61146. <field name="LPAREN" type="org.apache.hadoop.mapred.join.Parser.TType"
  61147. transient="false" volatile="false"
  61148. static="true" final="true" visibility="public"
  61149. deprecated="not deprecated">
  61150. </field>
  61151. <field name="RPAREN" type="org.apache.hadoop.mapred.join.Parser.TType"
  61152. transient="false" volatile="false"
  61153. static="true" final="true" visibility="public"
  61154. deprecated="not deprecated">
  61155. </field>
  61156. <field name="QUOT" type="org.apache.hadoop.mapred.join.Parser.TType"
  61157. transient="false" volatile="false"
  61158. static="true" final="true" visibility="public"
  61159. deprecated="not deprecated">
  61160. </field>
  61161. <field name="NUM" type="org.apache.hadoop.mapred.join.Parser.TType"
  61162. transient="false" volatile="false"
  61163. static="true" final="true" visibility="public"
  61164. deprecated="not deprecated">
  61165. </field>
  61166. </class>
  61167. <!-- end class org.apache.hadoop.mapred.join.Parser.TType -->
  61168. <!-- start interface org.apache.hadoop.mapred.join.ResetableIterator -->
  61169. <interface name="ResetableIterator" abstract="true"
  61170. static="false" final="false" visibility="public"
  61171. deprecated="not deprecated">
  61172. <method name="hasNext" return="boolean"
  61173. abstract="false" native="false" synchronized="false"
  61174. static="false" final="false" visibility="public"
  61175. deprecated="not deprecated">
  61176. <doc>
  61177. <![CDATA[True if a call to next may return a value. This is permitted false
  61178. positives, but not false negatives.]]>
  61179. </doc>
  61180. </method>
  61181. <method name="next" return="boolean"
  61182. abstract="false" native="false" synchronized="false"
  61183. static="false" final="false" visibility="public"
  61184. deprecated="not deprecated">
  61185. <param name="val" type="org.apache.hadoop.io.Writable"/>
  61186. <exception name="IOException" type="java.io.IOException"/>
  61187. <doc>
  61188. <![CDATA[Assign next value to actual.
  61189. It is required that elements added to a ResetableIterator be returned in
  61190. the same order after a call to {@link #reset} (FIFO).
  61191. Note that a call to this may fail for nested joins (i.e. more elements
  61192. available, but none satisfying the constraints of the join)]]>
  61193. </doc>
  61194. </method>
  61195. <method name="replay" return="boolean"
  61196. abstract="false" native="false" synchronized="false"
  61197. static="false" final="false" visibility="public"
  61198. deprecated="not deprecated">
  61199. <param name="val" type="org.apache.hadoop.io.Writable"/>
  61200. <exception name="IOException" type="java.io.IOException"/>
  61201. <doc>
  61202. <![CDATA[Assign last value returned to actual.]]>
  61203. </doc>
  61204. </method>
  61205. <method name="reset"
  61206. abstract="false" native="false" synchronized="false"
  61207. static="false" final="false" visibility="public"
  61208. deprecated="not deprecated">
  61209. <doc>
  61210. <![CDATA[Set iterator to return to the start of its range. Must be called after
  61211. calling {@link #add} to avoid a ConcurrentModificationException.]]>
  61212. </doc>
  61213. </method>
  61214. <method name="add"
  61215. abstract="false" native="false" synchronized="false"
  61216. static="false" final="false" visibility="public"
  61217. deprecated="not deprecated">
  61218. <param name="item" type="org.apache.hadoop.io.Writable"/>
  61219. <exception name="IOException" type="java.io.IOException"/>
  61220. <doc>
  61221. <![CDATA[Add an element to the collection of elements to iterate over.]]>
  61222. </doc>
  61223. </method>
  61224. <method name="close"
  61225. abstract="false" native="false" synchronized="false"
  61226. static="false" final="false" visibility="public"
  61227. deprecated="not deprecated">
  61228. <exception name="IOException" type="java.io.IOException"/>
  61229. <doc>
  61230. <![CDATA[Close datasources and release resources. Calling methods on the iterator
  61231. after calling close has undefined behavior.]]>
  61232. </doc>
  61233. </method>
  61234. <method name="clear"
  61235. abstract="false" native="false" synchronized="false"
  61236. static="false" final="false" visibility="public"
  61237. deprecated="not deprecated">
  61238. <doc>
  61239. <![CDATA[Close datasources, but do not release internal resources. Calling this
  61240. method should permit the object to be reused with a different datasource.]]>
  61241. </doc>
  61242. </method>
  61243. <doc>
  61244. <![CDATA[This defines an interface to a stateful Iterator that can replay elements
  61245. added to it directly.
  61246. Note that this does not extend {@link java.util.Iterator}.]]>
  61247. </doc>
  61248. </interface>
  61249. <!-- end interface org.apache.hadoop.mapred.join.ResetableIterator -->
  61250. <!-- start class org.apache.hadoop.mapred.join.ResetableIterator.EMPTY -->
  61251. <class name="ResetableIterator.EMPTY" extends="java.lang.Object"
  61252. abstract="false"
  61253. static="true" final="false" visibility="public"
  61254. deprecated="not deprecated">
  61255. <implements name="org.apache.hadoop.mapred.join.ResetableIterator"/>
  61256. <constructor name="ResetableIterator.EMPTY"
  61257. static="false" final="false" visibility="public"
  61258. deprecated="not deprecated">
  61259. </constructor>
  61260. <method name="hasNext" return="boolean"
  61261. abstract="false" native="false" synchronized="false"
  61262. static="false" final="false" visibility="public"
  61263. deprecated="not deprecated">
  61264. </method>
  61265. <method name="reset"
  61266. abstract="false" native="false" synchronized="false"
  61267. static="false" final="false" visibility="public"
  61268. deprecated="not deprecated">
  61269. </method>
  61270. <method name="close"
  61271. abstract="false" native="false" synchronized="false"
  61272. static="false" final="false" visibility="public"
  61273. deprecated="not deprecated">
  61274. <exception name="IOException" type="java.io.IOException"/>
  61275. </method>
  61276. <method name="clear"
  61277. abstract="false" native="false" synchronized="false"
  61278. static="false" final="false" visibility="public"
  61279. deprecated="not deprecated">
  61280. </method>
  61281. <method name="next" return="boolean"
  61282. abstract="false" native="false" synchronized="false"
  61283. static="false" final="false" visibility="public"
  61284. deprecated="not deprecated">
  61285. <param name="val" type="org.apache.hadoop.io.Writable"/>
  61286. <exception name="IOException" type="java.io.IOException"/>
  61287. </method>
  61288. <method name="replay" return="boolean"
  61289. abstract="false" native="false" synchronized="false"
  61290. static="false" final="false" visibility="public"
  61291. deprecated="not deprecated">
  61292. <param name="val" type="org.apache.hadoop.io.Writable"/>
  61293. <exception name="IOException" type="java.io.IOException"/>
  61294. </method>
  61295. <method name="add"
  61296. abstract="false" native="false" synchronized="false"
  61297. static="false" final="false" visibility="public"
  61298. deprecated="not deprecated">
  61299. <param name="item" type="org.apache.hadoop.io.Writable"/>
  61300. <exception name="IOException" type="java.io.IOException"/>
  61301. </method>
  61302. </class>
  61303. <!-- end class org.apache.hadoop.mapred.join.ResetableIterator.EMPTY -->
  61304. <!-- start class org.apache.hadoop.mapred.join.StreamBackedIterator -->
  61305. <class name="StreamBackedIterator" extends="java.lang.Object"
  61306. abstract="false"
  61307. static="false" final="false" visibility="public"
  61308. deprecated="not deprecated">
  61309. <implements name="org.apache.hadoop.mapred.join.ResetableIterator"/>
  61310. <constructor name="StreamBackedIterator"
  61311. static="false" final="false" visibility="public"
  61312. deprecated="not deprecated">
  61313. </constructor>
  61314. <method name="hasNext" return="boolean"
  61315. abstract="false" native="false" synchronized="false"
  61316. static="false" final="false" visibility="public"
  61317. deprecated="not deprecated">
  61318. </method>
  61319. <method name="next" return="boolean"
  61320. abstract="false" native="false" synchronized="false"
  61321. static="false" final="false" visibility="public"
  61322. deprecated="not deprecated">
  61323. <param name="val" type="org.apache.hadoop.io.Writable"/>
  61324. <exception name="IOException" type="java.io.IOException"/>
  61325. </method>
  61326. <method name="replay" return="boolean"
  61327. abstract="false" native="false" synchronized="false"
  61328. static="false" final="false" visibility="public"
  61329. deprecated="not deprecated">
  61330. <param name="val" type="org.apache.hadoop.io.Writable"/>
  61331. <exception name="IOException" type="java.io.IOException"/>
  61332. </method>
  61333. <method name="reset"
  61334. abstract="false" native="false" synchronized="false"
  61335. static="false" final="false" visibility="public"
  61336. deprecated="not deprecated">
  61337. </method>
  61338. <method name="add"
  61339. abstract="false" native="false" synchronized="false"
  61340. static="false" final="false" visibility="public"
  61341. deprecated="not deprecated">
  61342. <param name="item" type="org.apache.hadoop.io.Writable"/>
  61343. <exception name="IOException" type="java.io.IOException"/>
  61344. </method>
  61345. <method name="close"
  61346. abstract="false" native="false" synchronized="false"
  61347. static="false" final="false" visibility="public"
  61348. deprecated="not deprecated">
  61349. <exception name="IOException" type="java.io.IOException"/>
  61350. </method>
  61351. <method name="clear"
  61352. abstract="false" native="false" synchronized="false"
  61353. static="false" final="false" visibility="public"
  61354. deprecated="not deprecated">
  61355. </method>
  61356. <doc>
  61357. <![CDATA[This class provides an implementation of ResetableIterator. This
  61358. implementation uses a byte array to store elements added to it.]]>
  61359. </doc>
  61360. </class>
  61361. <!-- end class org.apache.hadoop.mapred.join.StreamBackedIterator -->
  61362. <!-- start class org.apache.hadoop.mapred.join.TupleWritable -->
  61363. <class name="TupleWritable" extends="java.lang.Object"
  61364. abstract="false"
  61365. static="false" final="false" visibility="public"
  61366. deprecated="not deprecated">
  61367. <implements name="org.apache.hadoop.io.Writable"/>
  61368. <implements name="java.lang.Iterable"/>
  61369. <constructor name="TupleWritable"
  61370. static="false" final="false" visibility="public"
  61371. deprecated="not deprecated">
  61372. <doc>
  61373. <![CDATA[Create an empty tuple with no allocated storage for writables.]]>
  61374. </doc>
  61375. </constructor>
  61376. <constructor name="TupleWritable" type="org.apache.hadoop.io.Writable[]"
  61377. static="false" final="false" visibility="public"
  61378. deprecated="not deprecated">
  61379. <doc>
  61380. <![CDATA[Initialize tuple with storage; unknown whether any of them contain
  61381. &quot;written&quot; values.]]>
  61382. </doc>
  61383. </constructor>
  61384. <method name="has" return="boolean"
  61385. abstract="false" native="false" synchronized="false"
  61386. static="false" final="false" visibility="public"
  61387. deprecated="not deprecated">
  61388. <param name="i" type="int"/>
  61389. <doc>
  61390. <![CDATA[Return true if tuple has an element at the position provided.]]>
  61391. </doc>
  61392. </method>
  61393. <method name="get" return="org.apache.hadoop.io.Writable"
  61394. abstract="false" native="false" synchronized="false"
  61395. static="false" final="false" visibility="public"
  61396. deprecated="not deprecated">
  61397. <param name="i" type="int"/>
  61398. <doc>
  61399. <![CDATA[Get ith Writable from Tuple.]]>
  61400. </doc>
  61401. </method>
  61402. <method name="size" return="int"
  61403. abstract="false" native="false" synchronized="false"
  61404. static="false" final="false" visibility="public"
  61405. deprecated="not deprecated">
  61406. <doc>
  61407. <![CDATA[The number of children in this Tuple.]]>
  61408. </doc>
  61409. </method>
  61410. <method name="equals" return="boolean"
  61411. abstract="false" native="false" synchronized="false"
  61412. static="false" final="false" visibility="public"
  61413. deprecated="not deprecated">
  61414. <param name="other" type="java.lang.Object"/>
  61415. <doc>
  61416. <![CDATA[{@inheritDoc}]]>
  61417. </doc>
  61418. </method>
  61419. <method name="hashCode" return="int"
  61420. abstract="false" native="false" synchronized="false"
  61421. static="false" final="false" visibility="public"
  61422. deprecated="not deprecated">
  61423. </method>
  61424. <method name="iterator" return="java.util.Iterator"
  61425. abstract="false" native="false" synchronized="false"
  61426. static="false" final="false" visibility="public"
  61427. deprecated="not deprecated">
  61428. <doc>
  61429. <![CDATA[Return an iterator over the elements in this tuple.
  61430. Note that this doesn't flatten the tuple; one may receive tuples
  61431. from this iterator.]]>
  61432. </doc>
  61433. </method>
  61434. <method name="toString" return="java.lang.String"
  61435. abstract="false" native="false" synchronized="false"
  61436. static="false" final="false" visibility="public"
  61437. deprecated="not deprecated">
  61438. <doc>
  61439. <![CDATA[Convert Tuple to String as in the following.
  61440. <tt>[<child1>,<child2>,...,<childn>]</tt>]]>
  61441. </doc>
  61442. </method>
  61443. <method name="write"
  61444. abstract="false" native="false" synchronized="false"
  61445. static="false" final="false" visibility="public"
  61446. deprecated="not deprecated">
  61447. <param name="out" type="java.io.DataOutput"/>
  61448. <exception name="IOException" type="java.io.IOException"/>
  61449. <doc>
  61450. <![CDATA[Writes each Writable to <code>out</code>.
  61451. TupleWritable format:
  61452. {@code
  61453. <count><type1><type2>...<typen><obj1><obj2>...<objn>
  61454. }]]>
  61455. </doc>
  61456. </method>
  61457. <method name="readFields"
  61458. abstract="false" native="false" synchronized="false"
  61459. static="false" final="false" visibility="public"
  61460. deprecated="not deprecated">
  61461. <param name="in" type="java.io.DataInput"/>
  61462. <exception name="IOException" type="java.io.IOException"/>
  61463. <doc>
  61464. <![CDATA[{@inheritDoc}]]>
  61465. </doc>
  61466. </method>
  61467. <doc>
  61468. <![CDATA[Writable type storing multiple {@link org.apache.hadoop.io.Writable}s.
  61469. This is *not* a general-purpose tuple type. In almost all cases, users are
  61470. encouraged to implement their own serializable types, which can perform
  61471. better validation and provide more efficient encodings than this class is
  61472. capable. TupleWritable relies on the join framework for type safety and
  61473. assumes its instances will rarely be persisted, assumptions not only
  61474. incompatible with, but contrary to the general case.
  61475. @see org.apache.hadoop.io.Writable]]>
  61476. </doc>
  61477. </class>
  61478. <!-- end class org.apache.hadoop.mapred.join.TupleWritable -->
  61479. <!-- start class org.apache.hadoop.mapred.join.WrappedRecordReader -->
  61480. <class name="WrappedRecordReader" extends="java.lang.Object"
  61481. abstract="false"
  61482. static="false" final="false" visibility="public"
  61483. deprecated="not deprecated">
  61484. <implements name="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  61485. <method name="id" return="int"
  61486. abstract="false" native="false" synchronized="false"
  61487. static="false" final="false" visibility="public"
  61488. deprecated="not deprecated">
  61489. <doc>
  61490. <![CDATA[{@inheritDoc}]]>
  61491. </doc>
  61492. </method>
  61493. <method name="key" return="org.apache.hadoop.io.WritableComparable"
  61494. abstract="false" native="false" synchronized="false"
  61495. static="false" final="false" visibility="public"
  61496. deprecated="not deprecated">
  61497. <doc>
  61498. <![CDATA[Return the key at the head of this RR.]]>
  61499. </doc>
  61500. </method>
  61501. <method name="key"
  61502. abstract="false" native="false" synchronized="false"
  61503. static="false" final="false" visibility="public"
  61504. deprecated="not deprecated">
  61505. <param name="qkey" type="org.apache.hadoop.io.WritableComparable"/>
  61506. <exception name="IOException" type="java.io.IOException"/>
  61507. <doc>
  61508. <![CDATA[Clone the key at the head of this RR into the object supplied.]]>
  61509. </doc>
  61510. </method>
  61511. <method name="hasNext" return="boolean"
  61512. abstract="false" native="false" synchronized="false"
  61513. static="false" final="false" visibility="public"
  61514. deprecated="not deprecated">
  61515. <doc>
  61516. <![CDATA[Return true if the RR- including the k,v pair stored in this object-
  61517. is exhausted.]]>
  61518. </doc>
  61519. </method>
  61520. <method name="skip"
  61521. abstract="false" native="false" synchronized="false"
  61522. static="false" final="false" visibility="public"
  61523. deprecated="not deprecated">
  61524. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  61525. <exception name="IOException" type="java.io.IOException"/>
  61526. <doc>
  61527. <![CDATA[Skip key-value pairs with keys less than or equal to the key provided.]]>
  61528. </doc>
  61529. </method>
  61530. <method name="next" return="boolean"
  61531. abstract="false" native="false" synchronized="false"
  61532. static="false" final="false" visibility="protected"
  61533. deprecated="not deprecated">
  61534. <exception name="IOException" type="java.io.IOException"/>
  61535. <doc>
  61536. <![CDATA[Read the next k,v pair into the head of this object; return true iff
  61537. the RR and this are exhausted.]]>
  61538. </doc>
  61539. </method>
  61540. <method name="accept"
  61541. abstract="false" native="false" synchronized="false"
  61542. static="false" final="false" visibility="public"
  61543. deprecated="not deprecated">
  61544. <param name="i" type="org.apache.hadoop.mapred.join.CompositeRecordReader.JoinCollector"/>
  61545. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  61546. <exception name="IOException" type="java.io.IOException"/>
  61547. <doc>
  61548. <![CDATA[Add an iterator to the collector at the position occupied by this
  61549. RecordReader over the values in this stream paired with the key
  61550. provided (ie register a stream of values from this source matching K
  61551. with a collector).]]>
  61552. </doc>
  61553. </method>
  61554. <method name="next" return="boolean"
  61555. abstract="false" native="false" synchronized="false"
  61556. static="false" final="false" visibility="public"
  61557. deprecated="not deprecated">
  61558. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  61559. <param name="value" type="org.apache.hadoop.io.Writable"/>
  61560. <exception name="IOException" type="java.io.IOException"/>
  61561. <doc>
  61562. <![CDATA[Write key-value pair at the head of this stream to the objects provided;
  61563. get next key-value pair from proxied RR.]]>
  61564. </doc>
  61565. </method>
  61566. <method name="createKey" return="org.apache.hadoop.io.WritableComparable"
  61567. abstract="false" native="false" synchronized="false"
  61568. static="false" final="false" visibility="public"
  61569. deprecated="not deprecated">
  61570. <doc>
  61571. <![CDATA[Request new key from proxied RR.]]>
  61572. </doc>
  61573. </method>
  61574. <method name="createValue" return="org.apache.hadoop.io.Writable"
  61575. abstract="false" native="false" synchronized="false"
  61576. static="false" final="false" visibility="public"
  61577. deprecated="not deprecated">
  61578. <doc>
  61579. <![CDATA[Request new value from proxied RR.]]>
  61580. </doc>
  61581. </method>
  61582. <method name="getProgress" return="float"
  61583. abstract="false" native="false" synchronized="false"
  61584. static="false" final="false" visibility="public"
  61585. deprecated="not deprecated">
  61586. <exception name="IOException" type="java.io.IOException"/>
  61587. <doc>
  61588. <![CDATA[Request progress from proxied RR.]]>
  61589. </doc>
  61590. </method>
  61591. <method name="getPos" return="long"
  61592. abstract="false" native="false" synchronized="false"
  61593. static="false" final="false" visibility="public"
  61594. deprecated="not deprecated">
  61595. <exception name="IOException" type="java.io.IOException"/>
  61596. <doc>
  61597. <![CDATA[Request position from proxied RR.]]>
  61598. </doc>
  61599. </method>
  61600. <method name="close"
  61601. abstract="false" native="false" synchronized="false"
  61602. static="false" final="false" visibility="public"
  61603. deprecated="not deprecated">
  61604. <exception name="IOException" type="java.io.IOException"/>
  61605. <doc>
  61606. <![CDATA[Forward close request to proxied RR.]]>
  61607. </doc>
  61608. </method>
  61609. <method name="compareTo" return="int"
  61610. abstract="false" native="false" synchronized="false"
  61611. static="false" final="false" visibility="public"
  61612. deprecated="not deprecated">
  61613. <param name="other" type="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  61614. <doc>
  61615. <![CDATA[Implement Comparable contract (compare key at head of proxied RR
  61616. with that of another).]]>
  61617. </doc>
  61618. </method>
  61619. <method name="equals" return="boolean"
  61620. abstract="false" native="false" synchronized="false"
  61621. static="false" final="false" visibility="public"
  61622. deprecated="not deprecated">
  61623. <param name="other" type="java.lang.Object"/>
  61624. <doc>
  61625. <![CDATA[Return true iff compareTo(other) retn true.]]>
  61626. </doc>
  61627. </method>
  61628. <method name="hashCode" return="int"
  61629. abstract="false" native="false" synchronized="false"
  61630. static="false" final="false" visibility="public"
  61631. deprecated="not deprecated">
  61632. </method>
  61633. <doc>
  61634. <![CDATA[Proxy class for a RecordReader participating in the join framework.
  61635. This class keeps track of the &quot;head&quot; key-value pair for the
  61636. provided RecordReader and keeps a store of values matching a key when
  61637. this source is participating in a join.]]>
  61638. </doc>
  61639. </class>
  61640. <!-- end class org.apache.hadoop.mapred.join.WrappedRecordReader -->
  61641. </package>
  61642. <package name="org.apache.hadoop.mapred.lib">
  61643. <!-- start class org.apache.hadoop.mapred.lib.BinaryPartitioner -->
  61644. <class name="BinaryPartitioner" extends="org.apache.hadoop.mapreduce.lib.partition.BinaryPartitioner"
  61645. abstract="false"
  61646. static="false" final="false" visibility="public"
  61647. deprecated="not deprecated">
  61648. <implements name="org.apache.hadoop.mapred.Partitioner"/>
  61649. <constructor name="BinaryPartitioner"
  61650. static="false" final="false" visibility="public"
  61651. deprecated="not deprecated">
  61652. </constructor>
  61653. <method name="configure"
  61654. abstract="false" native="false" synchronized="false"
  61655. static="false" final="false" visibility="public"
  61656. deprecated="not deprecated">
  61657. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61658. </method>
  61659. <doc>
  61660. <![CDATA[Partition {@link BinaryComparable} keys using a configurable part of
  61661. the bytes array returned by {@link BinaryComparable#getBytes()}.
  61662. @see org.apache.hadoop.mapreduce.lib.partition.BinaryPartitioner]]>
  61663. </doc>
  61664. </class>
  61665. <!-- end class org.apache.hadoop.mapred.lib.BinaryPartitioner -->
  61666. <!-- start class org.apache.hadoop.mapred.lib.ChainMapper -->
  61667. <class name="ChainMapper" extends="java.lang.Object"
  61668. abstract="false"
  61669. static="false" final="false" visibility="public"
  61670. deprecated="not deprecated">
  61671. <implements name="org.apache.hadoop.mapred.Mapper"/>
  61672. <constructor name="ChainMapper"
  61673. static="false" final="false" visibility="public"
  61674. deprecated="not deprecated">
  61675. <doc>
  61676. <![CDATA[Constructor.]]>
  61677. </doc>
  61678. </constructor>
  61679. <method name="addMapper"
  61680. abstract="false" native="false" synchronized="false"
  61681. static="true" final="false" visibility="public"
  61682. deprecated="not deprecated">
  61683. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61684. <param name="klass" type="java.lang.Class"/>
  61685. <param name="inputKeyClass" type="java.lang.Class"/>
  61686. <param name="inputValueClass" type="java.lang.Class"/>
  61687. <param name="outputKeyClass" type="java.lang.Class"/>
  61688. <param name="outputValueClass" type="java.lang.Class"/>
  61689. <param name="byValue" type="boolean"/>
  61690. <param name="mapperConf" type="org.apache.hadoop.mapred.JobConf"/>
  61691. <doc>
  61692. <![CDATA[Adds a Mapper class to the chain job's JobConf.
  61693. <p/>
  61694. It has to be specified how key and values are passed from one element of
  61695. the chain to the next, by value or by reference. If a Mapper leverages the
  61696. assumed semantics that the key and values are not modified by the collector
  61697. 'by value' must be used. If the Mapper does not expect this semantics, as
  61698. an optimization to avoid serialization and deserialization 'by reference'
  61699. can be used.
  61700. <p/>
  61701. For the added Mapper the configuration given for it,
  61702. <code>mapperConf</code>, have precedence over the job's JobConf. This
  61703. precedence is in effect when the task is running.
  61704. <p/>
  61705. IMPORTANT: There is no need to specify the output key/value classes for the
  61706. ChainMapper, this is done by the addMapper for the last mapper in the chain
  61707. <p/>
  61708. @param job job's JobConf to add the Mapper class.
  61709. @param klass the Mapper class to add.
  61710. @param inputKeyClass mapper input key class.
  61711. @param inputValueClass mapper input value class.
  61712. @param outputKeyClass mapper output key class.
  61713. @param outputValueClass mapper output value class.
  61714. @param byValue indicates if key/values should be passed by value
  61715. to the next Mapper in the chain, if any.
  61716. @param mapperConf a JobConf with the configuration for the Mapper
  61717. class. It is recommended to use a JobConf without default values using the
  61718. <code>JobConf(boolean loadDefaults)</code> constructor with FALSE.]]>
  61719. </doc>
  61720. </method>
  61721. <method name="configure"
  61722. abstract="false" native="false" synchronized="false"
  61723. static="false" final="false" visibility="public"
  61724. deprecated="not deprecated">
  61725. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61726. <doc>
  61727. <![CDATA[Configures the ChainMapper and all the Mappers in the chain.
  61728. <p/>
  61729. If this method is overriden <code>super.configure(...)</code> should be
  61730. invoked at the beginning of the overwriter method.]]>
  61731. </doc>
  61732. </method>
  61733. <method name="map"
  61734. abstract="false" native="false" synchronized="false"
  61735. static="false" final="false" visibility="public"
  61736. deprecated="not deprecated">
  61737. <param name="key" type="java.lang.Object"/>
  61738. <param name="value" type="java.lang.Object"/>
  61739. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  61740. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  61741. <exception name="IOException" type="java.io.IOException"/>
  61742. <doc>
  61743. <![CDATA[Chains the <code>map(...)</code> methods of the Mappers in the chain.]]>
  61744. </doc>
  61745. </method>
  61746. <method name="close"
  61747. abstract="false" native="false" synchronized="false"
  61748. static="false" final="false" visibility="public"
  61749. deprecated="not deprecated">
  61750. <exception name="IOException" type="java.io.IOException"/>
  61751. <doc>
  61752. <![CDATA[Closes the ChainMapper and all the Mappers in the chain.
  61753. <p/>
  61754. If this method is overriden <code>super.close()</code> should be
  61755. invoked at the end of the overwriter method.]]>
  61756. </doc>
  61757. </method>
  61758. <doc>
  61759. <![CDATA[The ChainMapper class allows to use multiple Mapper classes within a single
  61760. Map task.
  61761. <p/>
  61762. The Mapper classes are invoked in a chained (or piped) fashion, the output of
  61763. the first becomes the input of the second, and so on until the last Mapper,
  61764. the output of the last Mapper will be written to the task's output.
  61765. <p/>
  61766. The key functionality of this feature is that the Mappers in the chain do not
  61767. need to be aware that they are executed in a chain. This enables having
  61768. reusable specialized Mappers that can be combined to perform composite
  61769. operations within a single task.
  61770. <p/>
  61771. Special care has to be taken when creating chains that the key/values output
  61772. by a Mapper are valid for the following Mapper in the chain. It is assumed
  61773. all Mappers and the Reduce in the chain use maching output and input key and
  61774. value classes as no conversion is done by the chaining code.
  61775. <p/>
  61776. Using the ChainMapper and the ChainReducer classes is possible to compose
  61777. Map/Reduce jobs that look like <code>[MAP+ / REDUCE MAP*]</code>. And
  61778. immediate benefit of this pattern is a dramatic reduction in disk IO.
  61779. <p/>
  61780. IMPORTANT: There is no need to specify the output key/value classes for the
  61781. ChainMapper, this is done by the addMapper for the last mapper in the chain.
  61782. <p/>
  61783. ChainMapper usage pattern:
  61784. <p/>
  61785. <pre>
  61786. ...
  61787. conf.setJobName("chain");
  61788. conf.setInputFormat(TextInputFormat.class);
  61789. conf.setOutputFormat(TextOutputFormat.class);
  61790. <p/>
  61791. JobConf mapAConf = new JobConf(false);
  61792. ...
  61793. ChainMapper.addMapper(conf, AMap.class, LongWritable.class, Text.class,
  61794. Text.class, Text.class, true, mapAConf);
  61795. <p/>
  61796. JobConf mapBConf = new JobConf(false);
  61797. ...
  61798. ChainMapper.addMapper(conf, BMap.class, Text.class, Text.class,
  61799. LongWritable.class, Text.class, false, mapBConf);
  61800. <p/>
  61801. JobConf reduceConf = new JobConf(false);
  61802. ...
  61803. ChainReducer.setReducer(conf, XReduce.class, LongWritable.class, Text.class,
  61804. Text.class, Text.class, true, reduceConf);
  61805. <p/>
  61806. ChainReducer.addMapper(conf, CMap.class, Text.class, Text.class,
  61807. LongWritable.class, Text.class, false, null);
  61808. <p/>
  61809. ChainReducer.addMapper(conf, DMap.class, LongWritable.class, Text.class,
  61810. LongWritable.class, LongWritable.class, true, null);
  61811. <p/>
  61812. FileInputFormat.setInputPaths(conf, inDir);
  61813. FileOutputFormat.setOutputPath(conf, outDir);
  61814. ...
  61815. <p/>
  61816. JobClient jc = new JobClient(conf);
  61817. RunningJob job = jc.submitJob(conf);
  61818. ...
  61819. </pre>]]>
  61820. </doc>
  61821. </class>
  61822. <!-- end class org.apache.hadoop.mapred.lib.ChainMapper -->
  61823. <!-- start class org.apache.hadoop.mapred.lib.ChainReducer -->
  61824. <class name="ChainReducer" extends="java.lang.Object"
  61825. abstract="false"
  61826. static="false" final="false" visibility="public"
  61827. deprecated="not deprecated">
  61828. <implements name="org.apache.hadoop.mapred.Reducer"/>
  61829. <constructor name="ChainReducer"
  61830. static="false" final="false" visibility="public"
  61831. deprecated="not deprecated">
  61832. <doc>
  61833. <![CDATA[Constructor.]]>
  61834. </doc>
  61835. </constructor>
  61836. <method name="setReducer"
  61837. abstract="false" native="false" synchronized="false"
  61838. static="true" final="false" visibility="public"
  61839. deprecated="not deprecated">
  61840. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61841. <param name="klass" type="java.lang.Class"/>
  61842. <param name="inputKeyClass" type="java.lang.Class"/>
  61843. <param name="inputValueClass" type="java.lang.Class"/>
  61844. <param name="outputKeyClass" type="java.lang.Class"/>
  61845. <param name="outputValueClass" type="java.lang.Class"/>
  61846. <param name="byValue" type="boolean"/>
  61847. <param name="reducerConf" type="org.apache.hadoop.mapred.JobConf"/>
  61848. <doc>
  61849. <![CDATA[Sets the Reducer class to the chain job's JobConf.
  61850. <p/>
  61851. It has to be specified how key and values are passed from one element of
  61852. the chain to the next, by value or by reference. If a Reducer leverages the
  61853. assumed semantics that the key and values are not modified by the collector
  61854. 'by value' must be used. If the Reducer does not expect this semantics, as
  61855. an optimization to avoid serialization and deserialization 'by reference'
  61856. can be used.
  61857. <p/>
  61858. For the added Reducer the configuration given for it,
  61859. <code>reducerConf</code>, have precedence over the job's JobConf. This
  61860. precedence is in effect when the task is running.
  61861. <p/>
  61862. IMPORTANT: There is no need to specify the output key/value classes for the
  61863. ChainReducer, this is done by the setReducer or the addMapper for the last
  61864. element in the chain.
  61865. @param job job's JobConf to add the Reducer class.
  61866. @param klass the Reducer class to add.
  61867. @param inputKeyClass reducer input key class.
  61868. @param inputValueClass reducer input value class.
  61869. @param outputKeyClass reducer output key class.
  61870. @param outputValueClass reducer output value class.
  61871. @param byValue indicates if key/values should be passed by value
  61872. to the next Mapper in the chain, if any.
  61873. @param reducerConf a JobConf with the configuration for the Reducer
  61874. class. It is recommended to use a JobConf without default values using the
  61875. <code>JobConf(boolean loadDefaults)</code> constructor with FALSE.]]>
  61876. </doc>
  61877. </method>
  61878. <method name="addMapper"
  61879. abstract="false" native="false" synchronized="false"
  61880. static="true" final="false" visibility="public"
  61881. deprecated="not deprecated">
  61882. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61883. <param name="klass" type="java.lang.Class"/>
  61884. <param name="inputKeyClass" type="java.lang.Class"/>
  61885. <param name="inputValueClass" type="java.lang.Class"/>
  61886. <param name="outputKeyClass" type="java.lang.Class"/>
  61887. <param name="outputValueClass" type="java.lang.Class"/>
  61888. <param name="byValue" type="boolean"/>
  61889. <param name="mapperConf" type="org.apache.hadoop.mapred.JobConf"/>
  61890. <doc>
  61891. <![CDATA[Adds a Mapper class to the chain job's JobConf.
  61892. <p/>
  61893. It has to be specified how key and values are passed from one element of
  61894. the chain to the next, by value or by reference. If a Mapper leverages the
  61895. assumed semantics that the key and values are not modified by the collector
  61896. 'by value' must be used. If the Mapper does not expect this semantics, as
  61897. an optimization to avoid serialization and deserialization 'by reference'
  61898. can be used.
  61899. <p/>
  61900. For the added Mapper the configuration given for it,
  61901. <code>mapperConf</code>, have precedence over the job's JobConf. This
  61902. precedence is in effect when the task is running.
  61903. <p/>
  61904. IMPORTANT: There is no need to specify the output key/value classes for the
  61905. ChainMapper, this is done by the addMapper for the last mapper in the chain
  61906. .
  61907. @param job chain job's JobConf to add the Mapper class.
  61908. @param klass the Mapper class to add.
  61909. @param inputKeyClass mapper input key class.
  61910. @param inputValueClass mapper input value class.
  61911. @param outputKeyClass mapper output key class.
  61912. @param outputValueClass mapper output value class.
  61913. @param byValue indicates if key/values should be passed by value
  61914. to the next Mapper in the chain, if any.
  61915. @param mapperConf a JobConf with the configuration for the Mapper
  61916. class. It is recommended to use a JobConf without default values using the
  61917. <code>JobConf(boolean loadDefaults)</code> constructor with FALSE.]]>
  61918. </doc>
  61919. </method>
  61920. <method name="configure"
  61921. abstract="false" native="false" synchronized="false"
  61922. static="false" final="false" visibility="public"
  61923. deprecated="not deprecated">
  61924. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61925. <doc>
  61926. <![CDATA[Configures the ChainReducer, the Reducer and all the Mappers in the chain.
  61927. <p/>
  61928. If this method is overriden <code>super.configure(...)</code> should be
  61929. invoked at the beginning of the overwriter method.]]>
  61930. </doc>
  61931. </method>
  61932. <method name="reduce"
  61933. abstract="false" native="false" synchronized="false"
  61934. static="false" final="false" visibility="public"
  61935. deprecated="not deprecated">
  61936. <param name="key" type="java.lang.Object"/>
  61937. <param name="values" type="java.util.Iterator"/>
  61938. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  61939. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  61940. <exception name="IOException" type="java.io.IOException"/>
  61941. <doc>
  61942. <![CDATA[Chains the <code>reduce(...)</code> method of the Reducer with the
  61943. <code>map(...) </code> methods of the Mappers in the chain.]]>
  61944. </doc>
  61945. </method>
  61946. <method name="close"
  61947. abstract="false" native="false" synchronized="false"
  61948. static="false" final="false" visibility="public"
  61949. deprecated="not deprecated">
  61950. <exception name="IOException" type="java.io.IOException"/>
  61951. <doc>
  61952. <![CDATA[Closes the ChainReducer, the Reducer and all the Mappers in the chain.
  61953. <p/>
  61954. If this method is overriden <code>super.close()</code> should be
  61955. invoked at the end of the overwriter method.]]>
  61956. </doc>
  61957. </method>
  61958. <doc>
  61959. <![CDATA[The ChainReducer class allows to chain multiple Mapper classes after a
  61960. Reducer within the Reducer task.
  61961. <p/>
  61962. For each record output by the Reducer, the Mapper classes are invoked in a
  61963. chained (or piped) fashion, the output of the first becomes the input of the
  61964. second, and so on until the last Mapper, the output of the last Mapper will
  61965. be written to the task's output.
  61966. <p/>
  61967. The key functionality of this feature is that the Mappers in the chain do not
  61968. need to be aware that they are executed after the Reducer or in a chain.
  61969. This enables having reusable specialized Mappers that can be combined to
  61970. perform composite operations within a single task.
  61971. <p/>
  61972. Special care has to be taken when creating chains that the key/values output
  61973. by a Mapper are valid for the following Mapper in the chain. It is assumed
  61974. all Mappers and the Reduce in the chain use maching output and input key and
  61975. value classes as no conversion is done by the chaining code.
  61976. <p/>
  61977. Using the ChainMapper and the ChainReducer classes is possible to compose
  61978. Map/Reduce jobs that look like <code>[MAP+ / REDUCE MAP*]</code>. And
  61979. immediate benefit of this pattern is a dramatic reduction in disk IO.
  61980. <p/>
  61981. IMPORTANT: There is no need to specify the output key/value classes for the
  61982. ChainReducer, this is done by the setReducer or the addMapper for the last
  61983. element in the chain.
  61984. <p/>
  61985. ChainReducer usage pattern:
  61986. <p/>
  61987. <pre>
  61988. ...
  61989. conf.setJobName("chain");
  61990. conf.setInputFormat(TextInputFormat.class);
  61991. conf.setOutputFormat(TextOutputFormat.class);
  61992. <p/>
  61993. JobConf mapAConf = new JobConf(false);
  61994. ...
  61995. ChainMapper.addMapper(conf, AMap.class, LongWritable.class, Text.class,
  61996. Text.class, Text.class, true, mapAConf);
  61997. <p/>
  61998. JobConf mapBConf = new JobConf(false);
  61999. ...
  62000. ChainMapper.addMapper(conf, BMap.class, Text.class, Text.class,
  62001. LongWritable.class, Text.class, false, mapBConf);
  62002. <p/>
  62003. JobConf reduceConf = new JobConf(false);
  62004. ...
  62005. ChainReducer.setReducer(conf, XReduce.class, LongWritable.class, Text.class,
  62006. Text.class, Text.class, true, reduceConf);
  62007. <p/>
  62008. ChainReducer.addMapper(conf, CMap.class, Text.class, Text.class,
  62009. LongWritable.class, Text.class, false, null);
  62010. <p/>
  62011. ChainReducer.addMapper(conf, DMap.class, LongWritable.class, Text.class,
  62012. LongWritable.class, LongWritable.class, true, null);
  62013. <p/>
  62014. FileInputFormat.setInputPaths(conf, inDir);
  62015. FileOutputFormat.setOutputPath(conf, outDir);
  62016. ...
  62017. <p/>
  62018. JobClient jc = new JobClient(conf);
  62019. RunningJob job = jc.submitJob(conf);
  62020. ...
  62021. </pre>]]>
  62022. </doc>
  62023. </class>
  62024. <!-- end class org.apache.hadoop.mapred.lib.ChainReducer -->
  62025. <!-- start class org.apache.hadoop.mapred.lib.CombineFileInputFormat -->
  62026. <class name="CombineFileInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  62027. abstract="true"
  62028. static="false" final="false" visibility="public"
  62029. deprecated="not deprecated">
  62030. <constructor name="CombineFileInputFormat"
  62031. static="false" final="false" visibility="public"
  62032. deprecated="not deprecated">
  62033. <doc>
  62034. <![CDATA[default constructor]]>
  62035. </doc>
  62036. </constructor>
  62037. <method name="setMaxSplitSize"
  62038. abstract="false" native="false" synchronized="false"
  62039. static="false" final="false" visibility="protected"
  62040. deprecated="not deprecated">
  62041. <param name="maxSplitSize" type="long"/>
  62042. <doc>
  62043. <![CDATA[Specify the maximum size (in bytes) of each split. Each split is
  62044. approximately equal to the specified size.]]>
  62045. </doc>
  62046. </method>
  62047. <method name="setMinSplitSizeNode"
  62048. abstract="false" native="false" synchronized="false"
  62049. static="false" final="false" visibility="protected"
  62050. deprecated="not deprecated">
  62051. <param name="minSplitSizeNode" type="long"/>
  62052. <doc>
  62053. <![CDATA[Specify the minimum size (in bytes) of each split per node.
  62054. This applies to data that is left over after combining data on a single
  62055. node into splits that are of maximum size specified by maxSplitSize.
  62056. This leftover data will be combined into its own split if its size
  62057. exceeds minSplitSizeNode.]]>
  62058. </doc>
  62059. </method>
  62060. <method name="setMinSplitSizeRack"
  62061. abstract="false" native="false" synchronized="false"
  62062. static="false" final="false" visibility="protected"
  62063. deprecated="not deprecated">
  62064. <param name="minSplitSizeRack" type="long"/>
  62065. <doc>
  62066. <![CDATA[Specify the minimum size (in bytes) of each split per rack.
  62067. This applies to data that is left over after combining data on a single
  62068. rack into splits that are of maximum size specified by maxSplitSize.
  62069. This leftover data will be combined into its own split if its size
  62070. exceeds minSplitSizeRack.]]>
  62071. </doc>
  62072. </method>
  62073. <method name="createPool"
  62074. abstract="false" native="false" synchronized="false"
  62075. static="false" final="false" visibility="protected"
  62076. deprecated="not deprecated">
  62077. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  62078. <param name="filters" type="java.util.List"/>
  62079. <doc>
  62080. <![CDATA[Create a new pool and add the filters to it.
  62081. A split cannot have files from different pools.]]>
  62082. </doc>
  62083. </method>
  62084. <method name="createPool"
  62085. abstract="false" native="false" synchronized="false"
  62086. static="false" final="false" visibility="protected"
  62087. deprecated="not deprecated">
  62088. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  62089. <param name="filters" type="org.apache.hadoop.fs.PathFilter[]"/>
  62090. <doc>
  62091. <![CDATA[Create a new pool and add the filters to it.
  62092. A pathname can satisfy any one of the specified filters.
  62093. A split cannot have files from different pools.]]>
  62094. </doc>
  62095. </method>
  62096. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  62097. abstract="false" native="false" synchronized="false"
  62098. static="false" final="false" visibility="public"
  62099. deprecated="not deprecated">
  62100. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62101. <param name="numSplits" type="int"/>
  62102. <exception name="IOException" type="java.io.IOException"/>
  62103. </method>
  62104. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  62105. abstract="true" native="false" synchronized="false"
  62106. static="false" final="false" visibility="public"
  62107. deprecated="not deprecated">
  62108. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  62109. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62110. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  62111. <exception name="IOException" type="java.io.IOException"/>
  62112. <doc>
  62113. <![CDATA[This is not implemented yet.]]>
  62114. </doc>
  62115. </method>
  62116. <doc>
  62117. <![CDATA[An abstract {@link org.apache.hadoop.mapred.InputFormat} that returns {@link CombineFileSplit}'s
  62118. in {@link org.apache.hadoop.mapred.InputFormat#getSplits(JobConf, int)} method.
  62119. Splits are constructed from the files under the input paths.
  62120. A split cannot have files from different pools.
  62121. Each split returned may contain blocks from different files.
  62122. If a maxSplitSize is specified, then blocks on the same node are
  62123. combined to form a single split. Blocks that are left over are
  62124. then combined with other blocks in the same rack.
  62125. If maxSplitSize is not specified, then blocks from the same rack
  62126. are combined in a single split; no attempt is made to create
  62127. node-local splits.
  62128. If the maxSplitSize is equal to the block size, then this class
  62129. is similar to the default spliting behaviour in Hadoop: each
  62130. block is a locally processed split.
  62131. Subclasses implement {@link org.apache.hadoop.mapred.InputFormat#getRecordReader(InputSplit, JobConf, Reporter)}
  62132. to construct <code>RecordReader</code>'s for <code>CombineFileSplit</code>'s.
  62133. @see CombineFileSplit]]>
  62134. </doc>
  62135. </class>
  62136. <!-- end class org.apache.hadoop.mapred.lib.CombineFileInputFormat -->
  62137. <!-- start class org.apache.hadoop.mapred.lib.CombineFileRecordReader -->
  62138. <class name="CombineFileRecordReader" extends="java.lang.Object"
  62139. abstract="false"
  62140. static="false" final="false" visibility="public"
  62141. deprecated="not deprecated">
  62142. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  62143. <constructor name="CombineFileRecordReader" type="org.apache.hadoop.mapred.JobConf, org.apache.hadoop.mapred.lib.CombineFileSplit, org.apache.hadoop.mapred.Reporter, java.lang.Class"
  62144. static="false" final="false" visibility="public"
  62145. deprecated="not deprecated">
  62146. <exception name="IOException" type="java.io.IOException"/>
  62147. <doc>
  62148. <![CDATA[A generic RecordReader that can hand out different recordReaders
  62149. for each chunk in the CombineFileSplit.]]>
  62150. </doc>
  62151. </constructor>
  62152. <method name="next" return="boolean"
  62153. abstract="false" native="false" synchronized="false"
  62154. static="false" final="false" visibility="public"
  62155. deprecated="not deprecated">
  62156. <param name="key" type="java.lang.Object"/>
  62157. <param name="value" type="java.lang.Object"/>
  62158. <exception name="IOException" type="java.io.IOException"/>
  62159. </method>
  62160. <method name="createKey" return="java.lang.Object"
  62161. abstract="false" native="false" synchronized="false"
  62162. static="false" final="false" visibility="public"
  62163. deprecated="not deprecated">
  62164. </method>
  62165. <method name="createValue" return="java.lang.Object"
  62166. abstract="false" native="false" synchronized="false"
  62167. static="false" final="false" visibility="public"
  62168. deprecated="not deprecated">
  62169. </method>
  62170. <method name="getPos" return="long"
  62171. abstract="false" native="false" synchronized="false"
  62172. static="false" final="false" visibility="public"
  62173. deprecated="not deprecated">
  62174. <exception name="IOException" type="java.io.IOException"/>
  62175. <doc>
  62176. <![CDATA[return the amount of data processed]]>
  62177. </doc>
  62178. </method>
  62179. <method name="close"
  62180. abstract="false" native="false" synchronized="false"
  62181. static="false" final="false" visibility="public"
  62182. deprecated="not deprecated">
  62183. <exception name="IOException" type="java.io.IOException"/>
  62184. </method>
  62185. <method name="getProgress" return="float"
  62186. abstract="false" native="false" synchronized="false"
  62187. static="false" final="false" visibility="public"
  62188. deprecated="not deprecated">
  62189. <exception name="IOException" type="java.io.IOException"/>
  62190. <doc>
  62191. <![CDATA[return progress based on the amount of data processed so far.]]>
  62192. </doc>
  62193. </method>
  62194. <method name="initNextRecordReader" return="boolean"
  62195. abstract="false" native="false" synchronized="false"
  62196. static="false" final="false" visibility="protected"
  62197. deprecated="not deprecated">
  62198. <exception name="IOException" type="java.io.IOException"/>
  62199. <doc>
  62200. <![CDATA[Get the record reader for the next chunk in this CombineFileSplit.]]>
  62201. </doc>
  62202. </method>
  62203. <field name="split" type="org.apache.hadoop.mapred.lib.CombineFileSplit"
  62204. transient="false" volatile="false"
  62205. static="false" final="false" visibility="protected"
  62206. deprecated="not deprecated">
  62207. </field>
  62208. <field name="jc" type="org.apache.hadoop.mapred.JobConf"
  62209. transient="false" volatile="false"
  62210. static="false" final="false" visibility="protected"
  62211. deprecated="not deprecated">
  62212. </field>
  62213. <field name="reporter" type="org.apache.hadoop.mapred.Reporter"
  62214. transient="false" volatile="false"
  62215. static="false" final="false" visibility="protected"
  62216. deprecated="not deprecated">
  62217. </field>
  62218. <field name="rrClass" type="java.lang.Class"
  62219. transient="false" volatile="false"
  62220. static="false" final="false" visibility="protected"
  62221. deprecated="not deprecated">
  62222. </field>
  62223. <field name="rrConstructor" type="java.lang.reflect.Constructor"
  62224. transient="false" volatile="false"
  62225. static="false" final="false" visibility="protected"
  62226. deprecated="not deprecated">
  62227. </field>
  62228. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  62229. transient="false" volatile="false"
  62230. static="false" final="false" visibility="protected"
  62231. deprecated="not deprecated">
  62232. </field>
  62233. <field name="idx" type="int"
  62234. transient="false" volatile="false"
  62235. static="false" final="false" visibility="protected"
  62236. deprecated="not deprecated">
  62237. </field>
  62238. <field name="progress" type="long"
  62239. transient="false" volatile="false"
  62240. static="false" final="false" visibility="protected"
  62241. deprecated="not deprecated">
  62242. </field>
  62243. <field name="curReader" type="org.apache.hadoop.mapred.RecordReader"
  62244. transient="false" volatile="false"
  62245. static="false" final="false" visibility="protected"
  62246. deprecated="not deprecated">
  62247. </field>
  62248. <doc>
  62249. <![CDATA[A generic RecordReader that can hand out different recordReaders
  62250. for each chunk in a {@link CombineFileSplit}.
  62251. A CombineFileSplit can combine data chunks from multiple files.
  62252. This class allows using different RecordReaders for processing
  62253. these data chunks from different files.
  62254. @see CombineFileSplit]]>
  62255. </doc>
  62256. </class>
  62257. <!-- end class org.apache.hadoop.mapred.lib.CombineFileRecordReader -->
  62258. <!-- start class org.apache.hadoop.mapred.lib.CombineFileSplit -->
  62259. <class name="CombineFileSplit" extends="java.lang.Object"
  62260. abstract="false"
  62261. static="false" final="false" visibility="public"
  62262. deprecated="not deprecated">
  62263. <implements name="org.apache.hadoop.mapred.InputSplit"/>
  62264. <constructor name="CombineFileSplit"
  62265. static="false" final="false" visibility="public"
  62266. deprecated="not deprecated">
  62267. <doc>
  62268. <![CDATA[default constructor]]>
  62269. </doc>
  62270. </constructor>
  62271. <constructor name="CombineFileSplit" type="org.apache.hadoop.mapred.JobConf, org.apache.hadoop.fs.Path[], long[], long[], java.lang.String[]"
  62272. static="false" final="false" visibility="public"
  62273. deprecated="not deprecated">
  62274. </constructor>
  62275. <constructor name="CombineFileSplit" type="org.apache.hadoop.mapred.JobConf, org.apache.hadoop.fs.Path[], long[]"
  62276. static="false" final="false" visibility="public"
  62277. deprecated="not deprecated">
  62278. </constructor>
  62279. <constructor name="CombineFileSplit" type="org.apache.hadoop.mapred.lib.CombineFileSplit"
  62280. static="false" final="false" visibility="public"
  62281. deprecated="not deprecated">
  62282. <exception name="IOException" type="java.io.IOException"/>
  62283. <doc>
  62284. <![CDATA[Copy constructor]]>
  62285. </doc>
  62286. </constructor>
  62287. <method name="getJob" return="org.apache.hadoop.mapred.JobConf"
  62288. abstract="false" native="false" synchronized="false"
  62289. static="false" final="false" visibility="public"
  62290. deprecated="not deprecated">
  62291. </method>
  62292. <method name="getLength" return="long"
  62293. abstract="false" native="false" synchronized="false"
  62294. static="false" final="false" visibility="public"
  62295. deprecated="not deprecated">
  62296. </method>
  62297. <method name="getStartOffsets" return="long[]"
  62298. abstract="false" native="false" synchronized="false"
  62299. static="false" final="false" visibility="public"
  62300. deprecated="not deprecated">
  62301. <doc>
  62302. <![CDATA[Returns an array containing the startoffsets of the files in the split]]>
  62303. </doc>
  62304. </method>
  62305. <method name="getLengths" return="long[]"
  62306. abstract="false" native="false" synchronized="false"
  62307. static="false" final="false" visibility="public"
  62308. deprecated="not deprecated">
  62309. <doc>
  62310. <![CDATA[Returns an array containing the lengths of the files in the split]]>
  62311. </doc>
  62312. </method>
  62313. <method name="getOffset" return="long"
  62314. abstract="false" native="false" synchronized="false"
  62315. static="false" final="false" visibility="public"
  62316. deprecated="not deprecated">
  62317. <param name="i" type="int"/>
  62318. <doc>
  62319. <![CDATA[Returns the start offset of the i<sup>th</sup> Path]]>
  62320. </doc>
  62321. </method>
  62322. <method name="getLength" return="long"
  62323. abstract="false" native="false" synchronized="false"
  62324. static="false" final="false" visibility="public"
  62325. deprecated="not deprecated">
  62326. <param name="i" type="int"/>
  62327. <doc>
  62328. <![CDATA[Returns the length of the i<sup>th</sup> Path]]>
  62329. </doc>
  62330. </method>
  62331. <method name="getNumPaths" return="int"
  62332. abstract="false" native="false" synchronized="false"
  62333. static="false" final="false" visibility="public"
  62334. deprecated="not deprecated">
  62335. <doc>
  62336. <![CDATA[Returns the number of Paths in the split]]>
  62337. </doc>
  62338. </method>
  62339. <method name="getPath" return="org.apache.hadoop.fs.Path"
  62340. abstract="false" native="false" synchronized="false"
  62341. static="false" final="false" visibility="public"
  62342. deprecated="not deprecated">
  62343. <param name="i" type="int"/>
  62344. <doc>
  62345. <![CDATA[Returns the i<sup>th</sup> Path]]>
  62346. </doc>
  62347. </method>
  62348. <method name="getPaths" return="org.apache.hadoop.fs.Path[]"
  62349. abstract="false" native="false" synchronized="false"
  62350. static="false" final="false" visibility="public"
  62351. deprecated="not deprecated">
  62352. <doc>
  62353. <![CDATA[Returns all the Paths in the split]]>
  62354. </doc>
  62355. </method>
  62356. <method name="getLocations" return="java.lang.String[]"
  62357. abstract="false" native="false" synchronized="false"
  62358. static="false" final="false" visibility="public"
  62359. deprecated="not deprecated">
  62360. <exception name="IOException" type="java.io.IOException"/>
  62361. <doc>
  62362. <![CDATA[Returns all the Paths where this input-split resides]]>
  62363. </doc>
  62364. </method>
  62365. <method name="readFields"
  62366. abstract="false" native="false" synchronized="false"
  62367. static="false" final="false" visibility="public"
  62368. deprecated="not deprecated">
  62369. <param name="in" type="java.io.DataInput"/>
  62370. <exception name="IOException" type="java.io.IOException"/>
  62371. </method>
  62372. <method name="write"
  62373. abstract="false" native="false" synchronized="false"
  62374. static="false" final="false" visibility="public"
  62375. deprecated="not deprecated">
  62376. <param name="out" type="java.io.DataOutput"/>
  62377. <exception name="IOException" type="java.io.IOException"/>
  62378. </method>
  62379. <method name="toString" return="java.lang.String"
  62380. abstract="false" native="false" synchronized="false"
  62381. static="false" final="false" visibility="public"
  62382. deprecated="not deprecated">
  62383. </method>
  62384. <doc>
  62385. <![CDATA[A sub-collection of input files. Unlike {@link org.apache.hadoop.mapred.FileSplit},
  62386. CombineFileSplit * class does not represent a split of a file, but a split of input files
  62387. into smaller sets. A split may contain blocks from different file but all
  62388. the blocks in the same split are probably local to some rack <br>
  62389. CombineFileSplit can be used to implement {@link org.apache.hadoop.mapred.RecordReader}'s,
  62390. with reading one record per file.
  62391. @see org.apache.hadoop.mapred.FileSplit
  62392. @see CombineFileInputFormat]]>
  62393. </doc>
  62394. </class>
  62395. <!-- end class org.apache.hadoop.mapred.lib.CombineFileSplit -->
  62396. <!-- start class org.apache.hadoop.mapred.lib.DelegatingInputFormat -->
  62397. <class name="DelegatingInputFormat" extends="java.lang.Object"
  62398. abstract="false"
  62399. static="false" final="false" visibility="public"
  62400. deprecated="not deprecated">
  62401. <implements name="org.apache.hadoop.mapred.InputFormat"/>
  62402. <constructor name="DelegatingInputFormat"
  62403. static="false" final="false" visibility="public"
  62404. deprecated="not deprecated">
  62405. </constructor>
  62406. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  62407. abstract="false" native="false" synchronized="false"
  62408. static="false" final="false" visibility="public"
  62409. deprecated="not deprecated">
  62410. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  62411. <param name="numSplits" type="int"/>
  62412. <exception name="IOException" type="java.io.IOException"/>
  62413. </method>
  62414. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  62415. abstract="false" native="false" synchronized="false"
  62416. static="false" final="false" visibility="public"
  62417. deprecated="not deprecated">
  62418. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  62419. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  62420. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  62421. <exception name="IOException" type="java.io.IOException"/>
  62422. </method>
  62423. <doc>
  62424. <![CDATA[An {@link InputFormat} that delegates behaviour of paths to multiple other
  62425. InputFormats.
  62426. @see MultipleInputs#addInputPath(JobConf, Path, Class, Class)]]>
  62427. </doc>
  62428. </class>
  62429. <!-- end class org.apache.hadoop.mapred.lib.DelegatingInputFormat -->
  62430. <!-- start class org.apache.hadoop.mapred.lib.DelegatingMapper -->
  62431. <class name="DelegatingMapper" extends="java.lang.Object"
  62432. abstract="false"
  62433. static="false" final="false" visibility="public"
  62434. deprecated="not deprecated">
  62435. <implements name="org.apache.hadoop.mapred.Mapper"/>
  62436. <constructor name="DelegatingMapper"
  62437. static="false" final="false" visibility="public"
  62438. deprecated="not deprecated">
  62439. </constructor>
  62440. <method name="map"
  62441. abstract="false" native="false" synchronized="false"
  62442. static="false" final="false" visibility="public"
  62443. deprecated="not deprecated">
  62444. <param name="key" type="java.lang.Object"/>
  62445. <param name="value" type="java.lang.Object"/>
  62446. <param name="outputCollector" type="org.apache.hadoop.mapred.OutputCollector"/>
  62447. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  62448. <exception name="IOException" type="java.io.IOException"/>
  62449. </method>
  62450. <method name="configure"
  62451. abstract="false" native="false" synchronized="false"
  62452. static="false" final="false" visibility="public"
  62453. deprecated="not deprecated">
  62454. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  62455. </method>
  62456. <method name="close"
  62457. abstract="false" native="false" synchronized="false"
  62458. static="false" final="false" visibility="public"
  62459. deprecated="not deprecated">
  62460. <exception name="IOException" type="java.io.IOException"/>
  62461. </method>
  62462. <doc>
  62463. <![CDATA[An {@link Mapper} that delegates behaviour of paths to multiple other
  62464. mappers.
  62465. @see MultipleInputs#addInputPath(JobConf, Path, Class, Class)]]>
  62466. </doc>
  62467. </class>
  62468. <!-- end class org.apache.hadoop.mapred.lib.DelegatingMapper -->
  62469. <!-- start class org.apache.hadoop.mapred.lib.FieldSelectionMapReduce -->
  62470. <class name="FieldSelectionMapReduce" extends="java.lang.Object"
  62471. abstract="false"
  62472. static="false" final="false" visibility="public"
  62473. deprecated="not deprecated">
  62474. <implements name="org.apache.hadoop.mapred.Mapper"/>
  62475. <implements name="org.apache.hadoop.mapred.Reducer"/>
  62476. <constructor name="FieldSelectionMapReduce"
  62477. static="false" final="false" visibility="public"
  62478. deprecated="not deprecated">
  62479. </constructor>
  62480. <method name="map"
  62481. abstract="false" native="false" synchronized="false"
  62482. static="false" final="false" visibility="public"
  62483. deprecated="not deprecated">
  62484. <param name="key" type="java.lang.Object"/>
  62485. <param name="val" type="java.lang.Object"/>
  62486. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  62487. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  62488. <exception name="IOException" type="java.io.IOException"/>
  62489. <doc>
  62490. <![CDATA[The identify function. Input key/value pair is written directly to output.]]>
  62491. </doc>
  62492. </method>
  62493. <method name="configure"
  62494. abstract="false" native="false" synchronized="false"
  62495. static="false" final="false" visibility="public"
  62496. deprecated="not deprecated">
  62497. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62498. </method>
  62499. <method name="close"
  62500. abstract="false" native="false" synchronized="false"
  62501. static="false" final="false" visibility="public"
  62502. deprecated="not deprecated">
  62503. <exception name="IOException" type="java.io.IOException"/>
  62504. </method>
  62505. <method name="reduce"
  62506. abstract="false" native="false" synchronized="false"
  62507. static="false" final="false" visibility="public"
  62508. deprecated="not deprecated">
  62509. <param name="key" type="org.apache.hadoop.io.Text"/>
  62510. <param name="values" type="java.util.Iterator"/>
  62511. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  62512. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  62513. <exception name="IOException" type="java.io.IOException"/>
  62514. </method>
  62515. <field name="LOG" type="org.apache.commons.logging.Log"
  62516. transient="false" volatile="false"
  62517. static="true" final="true" visibility="public"
  62518. deprecated="not deprecated">
  62519. </field>
  62520. <doc>
  62521. <![CDATA[This class implements a mapper/reducer class that can be used to perform
  62522. field selections in a manner similar to unix cut. The input data is treated
  62523. as fields separated by a user specified separator (the default value is
  62524. "\t"). The user can specify a list of fields that form the map output keys,
  62525. and a list of fields that form the map output values. If the inputformat is
  62526. TextInputFormat, the mapper will ignore the key to the map function. and the
  62527. fields are from the value only. Otherwise, the fields are the union of those
  62528. from the key and those from the value.
  62529. The field separator is under attribute "mapred.data.field.separator"
  62530. The map output field list spec is under attribute "map.output.key.value.fields.spec".
  62531. The value is expected to be like "keyFieldsSpec:valueFieldsSpec"
  62532. key/valueFieldsSpec are comma (,) separated field spec: fieldSpec,fieldSpec,fieldSpec ...
  62533. Each field spec can be a simple number (e.g. 5) specifying a specific field, or a range
  62534. (like 2-5) to specify a range of fields, or an open range (like 3-) specifying all
  62535. the fields starting from field 3. The open range field spec applies value fields only.
  62536. They have no effect on the key fields.
  62537. 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,
  62538. and use fields 6,5,1,2,3,7 and above for values.
  62539. The reduce output field list spec is under attribute "reduce.output.key.value.fields.spec".
  62540. The reducer extracts output key/value pairs in a similar manner, except that
  62541. the key is never ignored.]]>
  62542. </doc>
  62543. </class>
  62544. <!-- end class org.apache.hadoop.mapred.lib.FieldSelectionMapReduce -->
  62545. <!-- start class org.apache.hadoop.mapred.lib.HashPartitioner -->
  62546. <class name="HashPartitioner" extends="java.lang.Object"
  62547. abstract="false"
  62548. static="false" final="false" visibility="public"
  62549. deprecated="not deprecated">
  62550. <implements name="org.apache.hadoop.mapred.Partitioner"/>
  62551. <constructor name="HashPartitioner"
  62552. static="false" final="false" visibility="public"
  62553. deprecated="not deprecated">
  62554. </constructor>
  62555. <method name="configure"
  62556. abstract="false" native="false" synchronized="false"
  62557. static="false" final="false" visibility="public"
  62558. deprecated="not deprecated">
  62559. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62560. </method>
  62561. <method name="getPartition" return="int"
  62562. abstract="false" native="false" synchronized="false"
  62563. static="false" final="false" visibility="public"
  62564. deprecated="not deprecated">
  62565. <param name="key" type="java.lang.Object"/>
  62566. <param name="value" type="java.lang.Object"/>
  62567. <param name="numReduceTasks" type="int"/>
  62568. <doc>
  62569. <![CDATA[Use {@link Object#hashCode()} to partition.]]>
  62570. </doc>
  62571. </method>
  62572. <doc>
  62573. <![CDATA[Partition keys by their {@link Object#hashCode()}.]]>
  62574. </doc>
  62575. </class>
  62576. <!-- end class org.apache.hadoop.mapred.lib.HashPartitioner -->
  62577. <!-- start class org.apache.hadoop.mapred.lib.IdentityMapper -->
  62578. <class name="IdentityMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  62579. abstract="false"
  62580. static="false" final="false" visibility="public"
  62581. deprecated="not deprecated">
  62582. <implements name="org.apache.hadoop.mapred.Mapper"/>
  62583. <constructor name="IdentityMapper"
  62584. static="false" final="false" visibility="public"
  62585. deprecated="not deprecated">
  62586. </constructor>
  62587. <method name="map"
  62588. abstract="false" native="false" synchronized="false"
  62589. static="false" final="false" visibility="public"
  62590. deprecated="not deprecated">
  62591. <param name="key" type="java.lang.Object"/>
  62592. <param name="val" type="java.lang.Object"/>
  62593. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  62594. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  62595. <exception name="IOException" type="java.io.IOException"/>
  62596. <doc>
  62597. <![CDATA[The identify function. Input key/value pair is written directly to
  62598. output.]]>
  62599. </doc>
  62600. </method>
  62601. <doc>
  62602. <![CDATA[Implements the identity function, mapping inputs directly to outputs.]]>
  62603. </doc>
  62604. </class>
  62605. <!-- end class org.apache.hadoop.mapred.lib.IdentityMapper -->
  62606. <!-- start class org.apache.hadoop.mapred.lib.IdentityReducer -->
  62607. <class name="IdentityReducer" extends="org.apache.hadoop.mapred.MapReduceBase"
  62608. abstract="false"
  62609. static="false" final="false" visibility="public"
  62610. deprecated="not deprecated">
  62611. <implements name="org.apache.hadoop.mapred.Reducer"/>
  62612. <constructor name="IdentityReducer"
  62613. static="false" final="false" visibility="public"
  62614. deprecated="not deprecated">
  62615. </constructor>
  62616. <method name="reduce"
  62617. abstract="false" native="false" synchronized="false"
  62618. static="false" final="false" visibility="public"
  62619. deprecated="not deprecated">
  62620. <param name="key" type="java.lang.Object"/>
  62621. <param name="values" type="java.util.Iterator"/>
  62622. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  62623. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  62624. <exception name="IOException" type="java.io.IOException"/>
  62625. <doc>
  62626. <![CDATA[Writes all keys and values directly to output.]]>
  62627. </doc>
  62628. </method>
  62629. <doc>
  62630. <![CDATA[Performs no reduction, writing all input values directly to the output.]]>
  62631. </doc>
  62632. </class>
  62633. <!-- end class org.apache.hadoop.mapred.lib.IdentityReducer -->
  62634. <!-- start class org.apache.hadoop.mapred.lib.InputSampler -->
  62635. <class name="InputSampler" extends="java.lang.Object"
  62636. abstract="false"
  62637. static="false" final="false" visibility="public"
  62638. deprecated="not deprecated">
  62639. <implements name="org.apache.hadoop.util.Tool"/>
  62640. <constructor name="InputSampler" type="org.apache.hadoop.mapred.JobConf"
  62641. static="false" final="false" visibility="public"
  62642. deprecated="not deprecated">
  62643. </constructor>
  62644. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  62645. abstract="false" native="false" synchronized="false"
  62646. static="false" final="false" visibility="public"
  62647. deprecated="not deprecated">
  62648. </method>
  62649. <method name="setConf"
  62650. abstract="false" native="false" synchronized="false"
  62651. static="false" final="false" visibility="public"
  62652. deprecated="not deprecated">
  62653. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  62654. </method>
  62655. <method name="writePartitionFile"
  62656. abstract="false" native="false" synchronized="false"
  62657. static="true" final="false" visibility="public"
  62658. deprecated="not deprecated">
  62659. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62660. <param name="sampler" type="org.apache.hadoop.mapred.lib.InputSampler.Sampler"/>
  62661. <exception name="IOException" type="java.io.IOException"/>
  62662. <doc>
  62663. <![CDATA[Write a partition file for the given job, using the Sampler provided.
  62664. Queries the sampler for a sample keyset, sorts by the output key
  62665. comparator, selects the keys for each rank, and writes to the destination
  62666. returned from {@link
  62667. org.apache.hadoop.mapred.lib.TotalOrderPartitioner#getPartitionFile}.]]>
  62668. </doc>
  62669. </method>
  62670. <method name="run" return="int"
  62671. abstract="false" native="false" synchronized="false"
  62672. static="false" final="false" visibility="public"
  62673. deprecated="not deprecated">
  62674. <param name="args" type="java.lang.String[]"/>
  62675. <exception name="Exception" type="java.lang.Exception"/>
  62676. <doc>
  62677. <![CDATA[Driver for InputSampler from the command line.
  62678. Configures a JobConf instance and calls {@link #writePartitionFile}.]]>
  62679. </doc>
  62680. </method>
  62681. <method name="main"
  62682. abstract="false" native="false" synchronized="false"
  62683. static="true" final="false" visibility="public"
  62684. deprecated="not deprecated">
  62685. <param name="args" type="java.lang.String[]"/>
  62686. <exception name="Exception" type="java.lang.Exception"/>
  62687. </method>
  62688. <doc>
  62689. <![CDATA[Utility for collecting samples and writing a partition file for
  62690. {@link org.apache.hadoop.mapred.lib.TotalOrderPartitioner}.]]>
  62691. </doc>
  62692. </class>
  62693. <!-- end class org.apache.hadoop.mapred.lib.InputSampler -->
  62694. <!-- start class org.apache.hadoop.mapred.lib.InputSampler.IntervalSampler -->
  62695. <class name="InputSampler.IntervalSampler" extends="java.lang.Object"
  62696. abstract="false"
  62697. static="true" final="false" visibility="public"
  62698. deprecated="not deprecated">
  62699. <implements name="org.apache.hadoop.mapred.lib.InputSampler.Sampler"/>
  62700. <constructor name="InputSampler.IntervalSampler" type="double"
  62701. static="false" final="false" visibility="public"
  62702. deprecated="not deprecated">
  62703. <doc>
  62704. <![CDATA[Create a new IntervalSampler sampling <em>all</em> splits.
  62705. @param freq The frequency with which records will be emitted.]]>
  62706. </doc>
  62707. </constructor>
  62708. <constructor name="InputSampler.IntervalSampler" type="double, int"
  62709. static="false" final="false" visibility="public"
  62710. deprecated="not deprecated">
  62711. <doc>
  62712. <![CDATA[Create a new IntervalSampler.
  62713. @param freq The frequency with which records will be emitted.
  62714. @param maxSplitsSampled The maximum number of splits to examine.
  62715. @see #getSample]]>
  62716. </doc>
  62717. </constructor>
  62718. <method name="getSample" return="java.lang.Object[]"
  62719. abstract="false" native="false" synchronized="false"
  62720. static="false" final="false" visibility="public"
  62721. deprecated="not deprecated">
  62722. <param name="inf" type="org.apache.hadoop.mapred.InputFormat"/>
  62723. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62724. <exception name="IOException" type="java.io.IOException"/>
  62725. <doc>
  62726. <![CDATA[For each split sampled, emit when the ratio of the number of records
  62727. retained to the total record count is less than the specified
  62728. frequency.]]>
  62729. </doc>
  62730. </method>
  62731. <doc>
  62732. <![CDATA[Sample from s splits at regular intervals.
  62733. Useful for sorted data.]]>
  62734. </doc>
  62735. </class>
  62736. <!-- end class org.apache.hadoop.mapred.lib.InputSampler.IntervalSampler -->
  62737. <!-- start class org.apache.hadoop.mapred.lib.InputSampler.RandomSampler -->
  62738. <class name="InputSampler.RandomSampler" extends="java.lang.Object"
  62739. abstract="false"
  62740. static="true" final="false" visibility="public"
  62741. deprecated="not deprecated">
  62742. <implements name="org.apache.hadoop.mapred.lib.InputSampler.Sampler"/>
  62743. <constructor name="InputSampler.RandomSampler" type="double, int"
  62744. static="false" final="false" visibility="public"
  62745. deprecated="not deprecated">
  62746. <doc>
  62747. <![CDATA[Create a new RandomSampler sampling <em>all</em> splits.
  62748. This will read every split at the client, which is very expensive.
  62749. @param freq Probability with which a key will be chosen.
  62750. @param numSamples Total number of samples to obtain from all selected
  62751. splits.]]>
  62752. </doc>
  62753. </constructor>
  62754. <constructor name="InputSampler.RandomSampler" type="double, int, int"
  62755. static="false" final="false" visibility="public"
  62756. deprecated="not deprecated">
  62757. <doc>
  62758. <![CDATA[Create a new RandomSampler.
  62759. @param freq Probability with which a key will be chosen.
  62760. @param numSamples Total number of samples to obtain from all selected
  62761. splits.
  62762. @param maxSplitsSampled The maximum number of splits to examine.]]>
  62763. </doc>
  62764. </constructor>
  62765. <method name="getSample" return="java.lang.Object[]"
  62766. abstract="false" native="false" synchronized="false"
  62767. static="false" final="false" visibility="public"
  62768. deprecated="not deprecated">
  62769. <param name="inf" type="org.apache.hadoop.mapred.InputFormat"/>
  62770. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62771. <exception name="IOException" type="java.io.IOException"/>
  62772. <doc>
  62773. <![CDATA[Randomize the split order, then take the specified number of keys from
  62774. each split sampled, where each key is selected with the specified
  62775. probability and possibly replaced by a subsequently selected key when
  62776. the quota of keys from that split is satisfied.]]>
  62777. </doc>
  62778. </method>
  62779. <doc>
  62780. <![CDATA[Sample from random points in the input.
  62781. General-purpose sampler. Takes numSamples / maxSplitsSampled inputs from
  62782. each split.]]>
  62783. </doc>
  62784. </class>
  62785. <!-- end class org.apache.hadoop.mapred.lib.InputSampler.RandomSampler -->
  62786. <!-- start interface org.apache.hadoop.mapred.lib.InputSampler.Sampler -->
  62787. <interface name="InputSampler.Sampler" abstract="true"
  62788. static="true" final="false" visibility="public"
  62789. deprecated="not deprecated">
  62790. <method name="getSample" return="java.lang.Object[]"
  62791. abstract="false" native="false" synchronized="false"
  62792. static="false" final="false" visibility="public"
  62793. deprecated="not deprecated">
  62794. <param name="inf" type="org.apache.hadoop.mapred.InputFormat"/>
  62795. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62796. <exception name="IOException" type="java.io.IOException"/>
  62797. <doc>
  62798. <![CDATA[For a given job, collect and return a subset of the keys from the
  62799. input data.]]>
  62800. </doc>
  62801. </method>
  62802. <doc>
  62803. <![CDATA[Interface to sample using an {@link org.apache.hadoop.mapred.InputFormat}.]]>
  62804. </doc>
  62805. </interface>
  62806. <!-- end interface org.apache.hadoop.mapred.lib.InputSampler.Sampler -->
  62807. <!-- start class org.apache.hadoop.mapred.lib.InputSampler.SplitSampler -->
  62808. <class name="InputSampler.SplitSampler" extends="java.lang.Object"
  62809. abstract="false"
  62810. static="true" final="false" visibility="public"
  62811. deprecated="not deprecated">
  62812. <implements name="org.apache.hadoop.mapred.lib.InputSampler.Sampler"/>
  62813. <constructor name="InputSampler.SplitSampler" type="int"
  62814. static="false" final="false" visibility="public"
  62815. deprecated="not deprecated">
  62816. <doc>
  62817. <![CDATA[Create a SplitSampler sampling <em>all</em> splits.
  62818. Takes the first numSamples / numSplits records from each split.
  62819. @param numSamples Total number of samples to obtain from all selected
  62820. splits.]]>
  62821. </doc>
  62822. </constructor>
  62823. <constructor name="InputSampler.SplitSampler" type="int, int"
  62824. static="false" final="false" visibility="public"
  62825. deprecated="not deprecated">
  62826. <doc>
  62827. <![CDATA[Create a new SplitSampler.
  62828. @param numSamples Total number of samples to obtain from all selected
  62829. splits.
  62830. @param maxSplitsSampled The maximum number of splits to examine.]]>
  62831. </doc>
  62832. </constructor>
  62833. <method name="getSample" return="java.lang.Object[]"
  62834. abstract="false" native="false" synchronized="false"
  62835. static="false" final="false" visibility="public"
  62836. deprecated="not deprecated">
  62837. <param name="inf" type="org.apache.hadoop.mapred.InputFormat"/>
  62838. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62839. <exception name="IOException" type="java.io.IOException"/>
  62840. <doc>
  62841. <![CDATA[From each split sampled, take the first numSamples / numSplits records.]]>
  62842. </doc>
  62843. </method>
  62844. <doc>
  62845. <![CDATA[Samples the first n records from s splits.
  62846. Inexpensive way to sample random data.]]>
  62847. </doc>
  62848. </class>
  62849. <!-- end class org.apache.hadoop.mapred.lib.InputSampler.SplitSampler -->
  62850. <!-- start class org.apache.hadoop.mapred.lib.InverseMapper -->
  62851. <class name="InverseMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  62852. abstract="false"
  62853. static="false" final="false" visibility="public"
  62854. deprecated="not deprecated">
  62855. <implements name="org.apache.hadoop.mapred.Mapper"/>
  62856. <constructor name="InverseMapper"
  62857. static="false" final="false" visibility="public"
  62858. deprecated="not deprecated">
  62859. </constructor>
  62860. <method name="map"
  62861. abstract="false" native="false" synchronized="false"
  62862. static="false" final="false" visibility="public"
  62863. deprecated="not deprecated">
  62864. <param name="key" type="java.lang.Object"/>
  62865. <param name="value" type="java.lang.Object"/>
  62866. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  62867. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  62868. <exception name="IOException" type="java.io.IOException"/>
  62869. <doc>
  62870. <![CDATA[The inverse function. Input keys and values are swapped.]]>
  62871. </doc>
  62872. </method>
  62873. <doc>
  62874. <![CDATA[A {@link Mapper} that swaps keys and values.]]>
  62875. </doc>
  62876. </class>
  62877. <!-- end class org.apache.hadoop.mapred.lib.InverseMapper -->
  62878. <!-- start class org.apache.hadoop.mapred.lib.KeyFieldBasedComparator -->
  62879. <class name="KeyFieldBasedComparator" extends="org.apache.hadoop.io.WritableComparator"
  62880. abstract="false"
  62881. static="false" final="false" visibility="public"
  62882. deprecated="not deprecated">
  62883. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  62884. <constructor name="KeyFieldBasedComparator"
  62885. static="false" final="false" visibility="public"
  62886. deprecated="not deprecated">
  62887. </constructor>
  62888. <method name="configure"
  62889. abstract="false" native="false" synchronized="false"
  62890. static="false" final="false" visibility="public"
  62891. deprecated="not deprecated">
  62892. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62893. </method>
  62894. <method name="compare" return="int"
  62895. abstract="false" native="false" synchronized="false"
  62896. static="false" final="false" visibility="public"
  62897. deprecated="not deprecated">
  62898. <param name="b1" type="byte[]"/>
  62899. <param name="s1" type="int"/>
  62900. <param name="l1" type="int"/>
  62901. <param name="b2" type="byte[]"/>
  62902. <param name="s2" type="int"/>
  62903. <param name="l2" type="int"/>
  62904. </method>
  62905. <doc>
  62906. <![CDATA[This comparator implementation provides a subset of the features provided
  62907. by the Unix/GNU Sort. In particular, the supported features are:
  62908. -n, (Sort numerically)
  62909. -r, (Reverse the result of comparison)
  62910. -k pos1[,pos2], where pos is of the form f[.c][opts], where f is the number
  62911. of the field to use, and c is the number of the first character from the
  62912. beginning of the field. Fields and character posns are numbered starting
  62913. with 1; a character position of zero in pos2 indicates the field's last
  62914. character. If '.c' is omitted from pos1, it defaults to 1 (the beginning
  62915. of the field); if omitted from pos2, it defaults to 0 (the end of the
  62916. field). opts are ordering options (any of 'nr' as described above).
  62917. We assume that the fields in the key are separated by
  62918. map.output.key.field.separator.]]>
  62919. </doc>
  62920. </class>
  62921. <!-- end class org.apache.hadoop.mapred.lib.KeyFieldBasedComparator -->
  62922. <!-- start class org.apache.hadoop.mapred.lib.KeyFieldBasedPartitioner -->
  62923. <class name="KeyFieldBasedPartitioner" extends="java.lang.Object"
  62924. abstract="false"
  62925. static="false" final="false" visibility="public"
  62926. deprecated="not deprecated">
  62927. <implements name="org.apache.hadoop.mapred.Partitioner"/>
  62928. <constructor name="KeyFieldBasedPartitioner"
  62929. static="false" final="false" visibility="public"
  62930. deprecated="not deprecated">
  62931. </constructor>
  62932. <method name="configure"
  62933. abstract="false" native="false" synchronized="false"
  62934. static="false" final="false" visibility="public"
  62935. deprecated="not deprecated">
  62936. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62937. </method>
  62938. <method name="getPartition" return="int"
  62939. abstract="false" native="false" synchronized="false"
  62940. static="false" final="false" visibility="public"
  62941. deprecated="not deprecated">
  62942. <param name="key" type="java.lang.Object"/>
  62943. <param name="value" type="java.lang.Object"/>
  62944. <param name="numReduceTasks" type="int"/>
  62945. </method>
  62946. <method name="hashCode" return="int"
  62947. abstract="false" native="false" synchronized="false"
  62948. static="false" final="false" visibility="protected"
  62949. deprecated="not deprecated">
  62950. <param name="b" type="byte[]"/>
  62951. <param name="start" type="int"/>
  62952. <param name="end" type="int"/>
  62953. <param name="currentHash" type="int"/>
  62954. </method>
  62955. <method name="getPartition" return="int"
  62956. abstract="false" native="false" synchronized="false"
  62957. static="false" final="false" visibility="protected"
  62958. deprecated="not deprecated">
  62959. <param name="hash" type="int"/>
  62960. <param name="numReduceTasks" type="int"/>
  62961. </method>
  62962. <doc>
  62963. <![CDATA[Defines a way to partition keys based on certain key fields (also see
  62964. {@link KeyFieldBasedComparator}.
  62965. The key specification supported is of the form -k pos1[,pos2], where,
  62966. pos is of the form f[.c][opts], where f is the number
  62967. of the key field to use, and c is the number of the first character from
  62968. the beginning of the field. Fields and character posns are numbered
  62969. starting with 1; a character position of zero in pos2 indicates the
  62970. field's last character. If '.c' is omitted from pos1, it defaults to 1
  62971. (the beginning of the field); if omitted from pos2, it defaults to 0
  62972. (the end of the field).]]>
  62973. </doc>
  62974. </class>
  62975. <!-- end class org.apache.hadoop.mapred.lib.KeyFieldBasedPartitioner -->
  62976. <!-- start class org.apache.hadoop.mapred.lib.LongSumReducer -->
  62977. <class name="LongSumReducer" extends="org.apache.hadoop.mapred.MapReduceBase"
  62978. abstract="false"
  62979. static="false" final="false" visibility="public"
  62980. deprecated="not deprecated">
  62981. <implements name="org.apache.hadoop.mapred.Reducer"/>
  62982. <constructor name="LongSumReducer"
  62983. static="false" final="false" visibility="public"
  62984. deprecated="not deprecated">
  62985. </constructor>
  62986. <method name="reduce"
  62987. abstract="false" native="false" synchronized="false"
  62988. static="false" final="false" visibility="public"
  62989. deprecated="not deprecated">
  62990. <param name="key" type="java.lang.Object"/>
  62991. <param name="values" type="java.util.Iterator"/>
  62992. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  62993. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  62994. <exception name="IOException" type="java.io.IOException"/>
  62995. </method>
  62996. <doc>
  62997. <![CDATA[A {@link Reducer} that sums long values.]]>
  62998. </doc>
  62999. </class>
  63000. <!-- end class org.apache.hadoop.mapred.lib.LongSumReducer -->
  63001. <!-- start class org.apache.hadoop.mapred.lib.MultipleInputs -->
  63002. <class name="MultipleInputs" extends="java.lang.Object"
  63003. abstract="false"
  63004. static="false" final="false" visibility="public"
  63005. deprecated="not deprecated">
  63006. <constructor name="MultipleInputs"
  63007. static="false" final="false" visibility="public"
  63008. deprecated="not deprecated">
  63009. </constructor>
  63010. <method name="addInputPath"
  63011. abstract="false" native="false" synchronized="false"
  63012. static="true" final="false" visibility="public"
  63013. deprecated="not deprecated">
  63014. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63015. <param name="path" type="org.apache.hadoop.fs.Path"/>
  63016. <param name="inputFormatClass" type="java.lang.Class"/>
  63017. <doc>
  63018. <![CDATA[Add a {@link Path} with a custom {@link InputFormat} to the list of
  63019. inputs for the map-reduce job.
  63020. @param conf The configuration of the job
  63021. @param path {@link Path} to be added to the list of inputs for the job
  63022. @param inputFormatClass {@link InputFormat} class to use for this path]]>
  63023. </doc>
  63024. </method>
  63025. <method name="addInputPath"
  63026. abstract="false" native="false" synchronized="false"
  63027. static="true" final="false" visibility="public"
  63028. deprecated="not deprecated">
  63029. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63030. <param name="path" type="org.apache.hadoop.fs.Path"/>
  63031. <param name="inputFormatClass" type="java.lang.Class"/>
  63032. <param name="mapperClass" type="java.lang.Class"/>
  63033. <doc>
  63034. <![CDATA[Add a {@link Path} with a custom {@link InputFormat} and
  63035. {@link Mapper} to the list of inputs for the map-reduce job.
  63036. @param conf The configuration of the job
  63037. @param path {@link Path} to be added to the list of inputs for the job
  63038. @param inputFormatClass {@link InputFormat} class to use for this path
  63039. @param mapperClass {@link Mapper} class to use for this path]]>
  63040. </doc>
  63041. </method>
  63042. <doc>
  63043. <![CDATA[This class supports MapReduce jobs that have multiple input paths with
  63044. a different {@link InputFormat} and {@link Mapper} for each path]]>
  63045. </doc>
  63046. </class>
  63047. <!-- end class org.apache.hadoop.mapred.lib.MultipleInputs -->
  63048. <!-- start class org.apache.hadoop.mapred.lib.MultipleOutputFormat -->
  63049. <class name="MultipleOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat"
  63050. abstract="true"
  63051. static="false" final="false" visibility="public"
  63052. deprecated="not deprecated">
  63053. <constructor name="MultipleOutputFormat"
  63054. static="false" final="false" visibility="public"
  63055. deprecated="not deprecated">
  63056. </constructor>
  63057. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  63058. abstract="false" native="false" synchronized="false"
  63059. static="false" final="false" visibility="public"
  63060. deprecated="not deprecated">
  63061. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  63062. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63063. <param name="name" type="java.lang.String"/>
  63064. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  63065. <exception name="IOException" type="java.io.IOException"/>
  63066. <doc>
  63067. <![CDATA[Create a composite record writer that can write key/value data to different
  63068. output files
  63069. @param fs
  63070. the file system to use
  63071. @param job
  63072. the job conf for the job
  63073. @param name
  63074. the leaf file name for the output file (such as part-00000")
  63075. @param arg3
  63076. a progressable for reporting progress.
  63077. @return a composite record writer
  63078. @throws IOException]]>
  63079. </doc>
  63080. </method>
  63081. <method name="generateLeafFileName" return="java.lang.String"
  63082. abstract="false" native="false" synchronized="false"
  63083. static="false" final="false" visibility="protected"
  63084. deprecated="not deprecated">
  63085. <param name="name" type="java.lang.String"/>
  63086. <doc>
  63087. <![CDATA[Generate the leaf name for the output file name. The default behavior does
  63088. not change the leaf file name (such as part-00000)
  63089. @param name
  63090. the leaf file name for the output file
  63091. @return the given leaf file name]]>
  63092. </doc>
  63093. </method>
  63094. <method name="generateFileNameForKeyValue" return="java.lang.String"
  63095. abstract="false" native="false" synchronized="false"
  63096. static="false" final="false" visibility="protected"
  63097. deprecated="not deprecated">
  63098. <param name="key" type="java.lang.Object"/>
  63099. <param name="value" type="java.lang.Object"/>
  63100. <param name="name" type="java.lang.String"/>
  63101. <doc>
  63102. <![CDATA[Generate the file output file name based on the given key and the leaf file
  63103. name. The default behavior is that the file name does not depend on the
  63104. key.
  63105. @param key
  63106. the key of the output data
  63107. @param name
  63108. the leaf file name
  63109. @return generated file name]]>
  63110. </doc>
  63111. </method>
  63112. <method name="generateActualKey" return="java.lang.Object"
  63113. abstract="false" native="false" synchronized="false"
  63114. static="false" final="false" visibility="protected"
  63115. deprecated="not deprecated">
  63116. <param name="key" type="java.lang.Object"/>
  63117. <param name="value" type="java.lang.Object"/>
  63118. <doc>
  63119. <![CDATA[Generate the actual key from the given key/value. The default behavior is that
  63120. the actual key is equal to the given key
  63121. @param key
  63122. the key of the output data
  63123. @param value
  63124. the value of the output data
  63125. @return the actual key derived from the given key/value]]>
  63126. </doc>
  63127. </method>
  63128. <method name="generateActualValue" return="java.lang.Object"
  63129. abstract="false" native="false" synchronized="false"
  63130. static="false" final="false" visibility="protected"
  63131. deprecated="not deprecated">
  63132. <param name="key" type="java.lang.Object"/>
  63133. <param name="value" type="java.lang.Object"/>
  63134. <doc>
  63135. <![CDATA[Generate the actual value from the given key and value. The default behavior is that
  63136. the actual value is equal to the given value
  63137. @param key
  63138. the key of the output data
  63139. @param value
  63140. the value of the output data
  63141. @return the actual value derived from the given key/value]]>
  63142. </doc>
  63143. </method>
  63144. <method name="getInputFileBasedOutputFileName" return="java.lang.String"
  63145. abstract="false" native="false" synchronized="false"
  63146. static="false" final="false" visibility="protected"
  63147. deprecated="not deprecated">
  63148. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63149. <param name="name" type="java.lang.String"/>
  63150. <doc>
  63151. <![CDATA[Generate the outfile name based on a given anme and the input file name. If
  63152. the map input file does not exists (i.e. this is not for a map only job),
  63153. the given name is returned unchanged. If the config value for
  63154. "num.of.trailing.legs.to.use" is not set, or set 0 or negative, the given
  63155. name is returned unchanged. Otherwise, return a file name consisting of the
  63156. N trailing legs of the input file name where N is the config value for
  63157. "num.of.trailing.legs.to.use".
  63158. @param job
  63159. the job config
  63160. @param name
  63161. the output file name
  63162. @return the outfile name based on a given anme and the input file name.]]>
  63163. </doc>
  63164. </method>
  63165. <method name="getBaseRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  63166. abstract="true" native="false" synchronized="false"
  63167. static="false" final="false" visibility="protected"
  63168. deprecated="not deprecated">
  63169. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  63170. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63171. <param name="name" type="java.lang.String"/>
  63172. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  63173. <exception name="IOException" type="java.io.IOException"/>
  63174. <doc>
  63175. <![CDATA[@param fs
  63176. the file system to use
  63177. @param job
  63178. a job conf object
  63179. @param name
  63180. the name of the file over which a record writer object will be
  63181. constructed
  63182. @param arg3
  63183. a progressable object
  63184. @return A RecordWriter object over the given file
  63185. @throws IOException]]>
  63186. </doc>
  63187. </method>
  63188. <doc>
  63189. <![CDATA[This abstract class extends the FileOutputFormat, allowing to write the
  63190. output data to different output files. There are three basic use cases for
  63191. this class.
  63192. Case one: This class is used for a map reduce job with at least one reducer.
  63193. The reducer wants to write data to different files depending on the actual
  63194. keys. It is assumed that a key (or value) encodes the actual key (value)
  63195. and the desired location for the actual key (value).
  63196. Case two: This class is used for a map only job. The job wants to use an
  63197. output file name that is either a part of the input file name of the input
  63198. data, or some derivation of it.
  63199. Case three: This class is used for a map only job. The job wants to use an
  63200. output file name that depends on both the keys and the input file name,]]>
  63201. </doc>
  63202. </class>
  63203. <!-- end class org.apache.hadoop.mapred.lib.MultipleOutputFormat -->
  63204. <!-- start class org.apache.hadoop.mapred.lib.MultipleOutputs -->
  63205. <class name="MultipleOutputs" extends="java.lang.Object"
  63206. abstract="false"
  63207. static="false" final="false" visibility="public"
  63208. deprecated="not deprecated">
  63209. <constructor name="MultipleOutputs" type="org.apache.hadoop.mapred.JobConf"
  63210. static="false" final="false" visibility="public"
  63211. deprecated="not deprecated">
  63212. <doc>
  63213. <![CDATA[Creates and initializes multiple named outputs support, it should be
  63214. instantiated in the Mapper/Reducer configure method.
  63215. @param job the job configuration object]]>
  63216. </doc>
  63217. </constructor>
  63218. <method name="getNamedOutputsList" return="java.util.List"
  63219. abstract="false" native="false" synchronized="false"
  63220. static="true" final="false" visibility="public"
  63221. deprecated="not deprecated">
  63222. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63223. <doc>
  63224. <![CDATA[Returns list of channel names.
  63225. @param conf job conf
  63226. @return List of channel Names]]>
  63227. </doc>
  63228. </method>
  63229. <method name="isMultiNamedOutput" return="boolean"
  63230. abstract="false" native="false" synchronized="false"
  63231. static="true" final="false" visibility="public"
  63232. deprecated="not deprecated">
  63233. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63234. <param name="namedOutput" type="java.lang.String"/>
  63235. <doc>
  63236. <![CDATA[Returns if a named output is multiple.
  63237. @param conf job conf
  63238. @param namedOutput named output
  63239. @return <code>true</code> if the name output is multi, <code>false</code>
  63240. if it is single. If the name output is not defined it returns
  63241. <code>false</code>]]>
  63242. </doc>
  63243. </method>
  63244. <method name="getNamedOutputFormatClass" return="java.lang.Class"
  63245. abstract="false" native="false" synchronized="false"
  63246. static="true" final="false" visibility="public"
  63247. deprecated="not deprecated">
  63248. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63249. <param name="namedOutput" type="java.lang.String"/>
  63250. <doc>
  63251. <![CDATA[Returns the named output OutputFormat.
  63252. @param conf job conf
  63253. @param namedOutput named output
  63254. @return namedOutput OutputFormat]]>
  63255. </doc>
  63256. </method>
  63257. <method name="getNamedOutputKeyClass" return="java.lang.Class"
  63258. abstract="false" native="false" synchronized="false"
  63259. static="true" final="false" visibility="public"
  63260. deprecated="not deprecated">
  63261. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63262. <param name="namedOutput" type="java.lang.String"/>
  63263. <doc>
  63264. <![CDATA[Returns the key class for a named output.
  63265. @param conf job conf
  63266. @param namedOutput named output
  63267. @return class for the named output key]]>
  63268. </doc>
  63269. </method>
  63270. <method name="getNamedOutputValueClass" return="java.lang.Class"
  63271. abstract="false" native="false" synchronized="false"
  63272. static="true" final="false" visibility="public"
  63273. deprecated="not deprecated">
  63274. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63275. <param name="namedOutput" type="java.lang.String"/>
  63276. <doc>
  63277. <![CDATA[Returns the value class for a named output.
  63278. @param conf job conf
  63279. @param namedOutput named output
  63280. @return class of named output value]]>
  63281. </doc>
  63282. </method>
  63283. <method name="addNamedOutput"
  63284. abstract="false" native="false" synchronized="false"
  63285. static="true" final="false" visibility="public"
  63286. deprecated="not deprecated">
  63287. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63288. <param name="namedOutput" type="java.lang.String"/>
  63289. <param name="outputFormatClass" type="java.lang.Class"/>
  63290. <param name="keyClass" type="java.lang.Class"/>
  63291. <param name="valueClass" type="java.lang.Class"/>
  63292. <doc>
  63293. <![CDATA[Adds a named output for the job.
  63294. <p/>
  63295. @param conf job conf to add the named output
  63296. @param namedOutput named output name, it has to be a word, letters
  63297. and numbers only, cannot be the word 'part' as
  63298. that is reserved for the
  63299. default output.
  63300. @param outputFormatClass OutputFormat class.
  63301. @param keyClass key class
  63302. @param valueClass value class]]>
  63303. </doc>
  63304. </method>
  63305. <method name="addMultiNamedOutput"
  63306. abstract="false" native="false" synchronized="false"
  63307. static="true" final="false" visibility="public"
  63308. deprecated="not deprecated">
  63309. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63310. <param name="namedOutput" type="java.lang.String"/>
  63311. <param name="outputFormatClass" type="java.lang.Class"/>
  63312. <param name="keyClass" type="java.lang.Class"/>
  63313. <param name="valueClass" type="java.lang.Class"/>
  63314. <doc>
  63315. <![CDATA[Adds a multi named output for the job.
  63316. <p/>
  63317. @param conf job conf to add the named output
  63318. @param namedOutput named output name, it has to be a word, letters
  63319. and numbers only, cannot be the word 'part' as
  63320. that is reserved for the
  63321. default output.
  63322. @param outputFormatClass OutputFormat class.
  63323. @param keyClass key class
  63324. @param valueClass value class]]>
  63325. </doc>
  63326. </method>
  63327. <method name="setCountersEnabled"
  63328. abstract="false" native="false" synchronized="false"
  63329. static="true" final="false" visibility="public"
  63330. deprecated="not deprecated">
  63331. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63332. <param name="enabled" type="boolean"/>
  63333. <doc>
  63334. <![CDATA[Enables or disables counters for the named outputs.
  63335. <p/>
  63336. By default these counters are disabled.
  63337. <p/>
  63338. MultipleOutputs supports counters, by default the are disabled.
  63339. The counters group is the {@link MultipleOutputs} class name.
  63340. </p>
  63341. The names of the counters are the same as the named outputs. For multi
  63342. named outputs the name of the counter is the concatenation of the named
  63343. output, and underscore '_' and the multiname.
  63344. @param conf job conf to enableadd the named output.
  63345. @param enabled indicates if the counters will be enabled or not.]]>
  63346. </doc>
  63347. </method>
  63348. <method name="getCountersEnabled" return="boolean"
  63349. abstract="false" native="false" synchronized="false"
  63350. static="true" final="false" visibility="public"
  63351. deprecated="not deprecated">
  63352. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63353. <doc>
  63354. <![CDATA[Returns if the counters for the named outputs are enabled or not.
  63355. <p/>
  63356. By default these counters are disabled.
  63357. <p/>
  63358. MultipleOutputs supports counters, by default the are disabled.
  63359. The counters group is the {@link MultipleOutputs} class name.
  63360. </p>
  63361. The names of the counters are the same as the named outputs. For multi
  63362. named outputs the name of the counter is the concatenation of the named
  63363. output, and underscore '_' and the multiname.
  63364. @param conf job conf to enableadd the named output.
  63365. @return TRUE if the counters are enabled, FALSE if they are disabled.]]>
  63366. </doc>
  63367. </method>
  63368. <method name="getNamedOutputs" return="java.util.Iterator"
  63369. abstract="false" native="false" synchronized="false"
  63370. static="false" final="false" visibility="public"
  63371. deprecated="not deprecated">
  63372. <doc>
  63373. <![CDATA[Returns iterator with the defined name outputs.
  63374. @return iterator with the defined named outputs]]>
  63375. </doc>
  63376. </method>
  63377. <method name="getCollector" return="org.apache.hadoop.mapred.OutputCollector"
  63378. abstract="false" native="false" synchronized="false"
  63379. static="false" final="false" visibility="public"
  63380. deprecated="not deprecated">
  63381. <param name="namedOutput" type="java.lang.String"/>
  63382. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  63383. <exception name="IOException" type="java.io.IOException"/>
  63384. <doc>
  63385. <![CDATA[Gets the output collector for a named output.
  63386. <p/>
  63387. @param namedOutput the named output name
  63388. @param reporter the reporter
  63389. @return the output collector for the given named output
  63390. @throws IOException thrown if output collector could not be created]]>
  63391. </doc>
  63392. </method>
  63393. <method name="getCollector" return="org.apache.hadoop.mapred.OutputCollector"
  63394. abstract="false" native="false" synchronized="false"
  63395. static="false" final="false" visibility="public"
  63396. deprecated="not deprecated">
  63397. <param name="namedOutput" type="java.lang.String"/>
  63398. <param name="multiName" type="java.lang.String"/>
  63399. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  63400. <exception name="IOException" type="java.io.IOException"/>
  63401. <doc>
  63402. <![CDATA[Gets the output collector for a multi named output.
  63403. <p/>
  63404. @param namedOutput the named output name
  63405. @param multiName the multi name part
  63406. @param reporter the reporter
  63407. @return the output collector for the given named output
  63408. @throws IOException thrown if output collector could not be created]]>
  63409. </doc>
  63410. </method>
  63411. <method name="close"
  63412. abstract="false" native="false" synchronized="false"
  63413. static="false" final="false" visibility="public"
  63414. deprecated="not deprecated">
  63415. <exception name="IOException" type="java.io.IOException"/>
  63416. <doc>
  63417. <![CDATA[Closes all the opened named outputs.
  63418. <p/>
  63419. If overriden subclasses must invoke <code>super.close()</code> at the
  63420. end of their <code>close()</code>
  63421. @throws java.io.IOException thrown if any of the MultipleOutput files
  63422. could not be closed properly.]]>
  63423. </doc>
  63424. </method>
  63425. <doc>
  63426. <![CDATA[The MultipleOutputs class simplifies writting to additional outputs other
  63427. than the job default output via the <code>OutputCollector</code> passed to
  63428. the <code>map()</code> and <code>reduce()</code> methods of the
  63429. <code>Mapper</code> and <code>Reducer</code> implementations.
  63430. <p/>
  63431. Each additional output, or named output, may be configured with its own
  63432. <code>OutputFormat</code>, with its own key class and with its own value
  63433. class.
  63434. <p/>
  63435. A named output can be a single file or a multi file. The later is refered as
  63436. a multi named output.
  63437. <p/>
  63438. A multi named output is an unbound set of files all sharing the same
  63439. <code>OutputFormat</code>, key class and value class configuration.
  63440. <p/>
  63441. When named outputs are used within a <code>Mapper</code> implementation,
  63442. key/values written to a name output are not part of the reduce phase, only
  63443. key/values written to the job <code>OutputCollector</code> are part of the
  63444. reduce phase.
  63445. <p/>
  63446. MultipleOutputs supports counters, by default the are disabled. The counters
  63447. group is the {@link MultipleOutputs} class name.
  63448. </p>
  63449. The names of the counters are the same as the named outputs. For multi
  63450. named outputs the name of the counter is the concatenation of the named
  63451. output, and underscore '_' and the multiname.
  63452. <p/>
  63453. Job configuration usage pattern is:
  63454. <pre>
  63455. JobConf conf = new JobConf();
  63456. conf.setInputPath(inDir);
  63457. FileOutputFormat.setOutputPath(conf, outDir);
  63458. conf.setMapperClass(MOMap.class);
  63459. conf.setReducerClass(MOReduce.class);
  63460. ...
  63461. // Defines additional single text based output 'text' for the job
  63462. MultipleOutputs.addNamedOutput(conf, "text", TextOutputFormat.class,
  63463. LongWritable.class, Text.class);
  63464. // Defines additional multi sequencefile based output 'sequence' for the
  63465. // job
  63466. MultipleOutputs.addMultiNamedOutput(conf, "seq",
  63467. SequenceFileOutputFormat.class,
  63468. LongWritable.class, Text.class);
  63469. ...
  63470. JobClient jc = new JobClient();
  63471. RunningJob job = jc.submitJob(conf);
  63472. ...
  63473. </pre>
  63474. <p/>
  63475. Job configuration usage pattern is:
  63476. <pre>
  63477. public class MOReduce implements
  63478. Reducer&lt;WritableComparable, Writable&gt; {
  63479. private MultipleOutputs mos;
  63480. public void configure(JobConf conf) {
  63481. ...
  63482. mos = new MultipleOutputs(conf);
  63483. }
  63484. public void reduce(WritableComparable key, Iterator&lt;Writable&gt; values,
  63485. OutputCollector output, Reporter reporter)
  63486. throws IOException {
  63487. ...
  63488. mos.getCollector("text", reporter).collect(key, new Text("Hello"));
  63489. mos.getCollector("seq", "A", reporter).collect(key, new Text("Bye"));
  63490. mos.getCollector("seq", "B", reporter).collect(key, new Text("Chau"));
  63491. ...
  63492. }
  63493. public void close() throws IOException {
  63494. mos.close();
  63495. ...
  63496. }
  63497. }
  63498. </pre>]]>
  63499. </doc>
  63500. </class>
  63501. <!-- end class org.apache.hadoop.mapred.lib.MultipleOutputs -->
  63502. <!-- start class org.apache.hadoop.mapred.lib.MultipleSequenceFileOutputFormat -->
  63503. <class name="MultipleSequenceFileOutputFormat" extends="org.apache.hadoop.mapred.lib.MultipleOutputFormat"
  63504. abstract="false"
  63505. static="false" final="false" visibility="public"
  63506. deprecated="not deprecated">
  63507. <constructor name="MultipleSequenceFileOutputFormat"
  63508. static="false" final="false" visibility="public"
  63509. deprecated="not deprecated">
  63510. </constructor>
  63511. <method name="getBaseRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  63512. abstract="false" native="false" synchronized="false"
  63513. static="false" final="false" visibility="protected"
  63514. deprecated="not deprecated">
  63515. <param name="fs" 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="arg3" type="org.apache.hadoop.util.Progressable"/>
  63519. <exception name="IOException" type="java.io.IOException"/>
  63520. </method>
  63521. <doc>
  63522. <![CDATA[This class extends the MultipleOutputFormat, allowing to write the output data
  63523. to different output files in sequence file output format.]]>
  63524. </doc>
  63525. </class>
  63526. <!-- end class org.apache.hadoop.mapred.lib.MultipleSequenceFileOutputFormat -->
  63527. <!-- start class org.apache.hadoop.mapred.lib.MultipleTextOutputFormat -->
  63528. <class name="MultipleTextOutputFormat" extends="org.apache.hadoop.mapred.lib.MultipleOutputFormat"
  63529. abstract="false"
  63530. static="false" final="false" visibility="public"
  63531. deprecated="not deprecated">
  63532. <constructor name="MultipleTextOutputFormat"
  63533. static="false" final="false" visibility="public"
  63534. deprecated="not deprecated">
  63535. </constructor>
  63536. <method name="getBaseRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  63537. abstract="false" native="false" synchronized="false"
  63538. static="false" final="false" visibility="protected"
  63539. deprecated="not deprecated">
  63540. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  63541. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63542. <param name="name" type="java.lang.String"/>
  63543. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  63544. <exception name="IOException" type="java.io.IOException"/>
  63545. </method>
  63546. <doc>
  63547. <![CDATA[This class extends the MultipleOutputFormat, allowing to write the output
  63548. data to different output files in Text output format.]]>
  63549. </doc>
  63550. </class>
  63551. <!-- end class org.apache.hadoop.mapred.lib.MultipleTextOutputFormat -->
  63552. <!-- start class org.apache.hadoop.mapred.lib.MultithreadedMapRunner -->
  63553. <class name="MultithreadedMapRunner" extends="java.lang.Object"
  63554. abstract="false"
  63555. static="false" final="false" visibility="public"
  63556. deprecated="not deprecated">
  63557. <implements name="org.apache.hadoop.mapred.MapRunnable"/>
  63558. <constructor name="MultithreadedMapRunner"
  63559. static="false" final="false" visibility="public"
  63560. deprecated="not deprecated">
  63561. </constructor>
  63562. <method name="configure"
  63563. abstract="false" native="false" synchronized="false"
  63564. static="false" final="false" visibility="public"
  63565. deprecated="not deprecated">
  63566. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  63567. </method>
  63568. <method name="run"
  63569. abstract="false" native="false" synchronized="false"
  63570. static="false" final="false" visibility="public"
  63571. deprecated="not deprecated">
  63572. <param name="input" type="org.apache.hadoop.mapred.RecordReader"/>
  63573. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  63574. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  63575. <exception name="IOException" type="java.io.IOException"/>
  63576. </method>
  63577. <doc>
  63578. <![CDATA[Multithreaded implementation for @link org.apache.hadoop.mapred.MapRunnable.
  63579. <p>
  63580. It can be used instead of the default implementation,
  63581. @link org.apache.hadoop.mapred.MapRunner, when the Map operation is not CPU
  63582. bound in order to improve throughput.
  63583. <p>
  63584. Map implementations using this MapRunnable must be thread-safe.
  63585. <p>
  63586. The Map-Reduce job has to be configured to use this MapRunnable class (using
  63587. the JobConf.setMapRunnerClass method) and
  63588. the number of thread the thread-pool can use with the
  63589. <code>mapred.map.multithreadedrunner.threads</code> property, its default
  63590. value is 10 threads.
  63591. <p>]]>
  63592. </doc>
  63593. </class>
  63594. <!-- end class org.apache.hadoop.mapred.lib.MultithreadedMapRunner -->
  63595. <!-- start class org.apache.hadoop.mapred.lib.NLineInputFormat -->
  63596. <class name="NLineInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  63597. abstract="false"
  63598. static="false" final="false" visibility="public"
  63599. deprecated="not deprecated">
  63600. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  63601. <constructor name="NLineInputFormat"
  63602. static="false" final="false" visibility="public"
  63603. deprecated="not deprecated">
  63604. </constructor>
  63605. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  63606. abstract="false" native="false" synchronized="false"
  63607. static="false" final="false" visibility="public"
  63608. deprecated="not deprecated">
  63609. <param name="genericSplit" type="org.apache.hadoop.mapred.InputSplit"/>
  63610. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63611. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  63612. <exception name="IOException" type="java.io.IOException"/>
  63613. </method>
  63614. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  63615. abstract="false" native="false" synchronized="false"
  63616. static="false" final="false" visibility="public"
  63617. deprecated="not deprecated">
  63618. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63619. <param name="numSplits" type="int"/>
  63620. <exception name="IOException" type="java.io.IOException"/>
  63621. <doc>
  63622. <![CDATA[Logically splits the set of input files for the job, splits N lines
  63623. of the input as one split.
  63624. @see org.apache.hadoop.mapred.FileInputFormat#getSplits(JobConf, int)]]>
  63625. </doc>
  63626. </method>
  63627. <method name="createFileSplit" return="org.apache.hadoop.mapred.FileSplit"
  63628. abstract="false" native="false" synchronized="false"
  63629. static="true" final="false" visibility="protected"
  63630. deprecated="not deprecated">
  63631. <param name="fileName" type="org.apache.hadoop.fs.Path"/>
  63632. <param name="begin" type="long"/>
  63633. <param name="length" type="long"/>
  63634. <doc>
  63635. <![CDATA[NLineInputFormat uses LineRecordReader, which always reads
  63636. (and consumes) at least one character out of its upper split
  63637. boundary. So to make sure that each mapper gets N lines, we
  63638. move back the upper split limits of each split
  63639. by one character here.
  63640. @param fileName Path of file
  63641. @param begin the position of the first byte in the file to process
  63642. @param length number of bytes in InputSplit
  63643. @return FileSplit]]>
  63644. </doc>
  63645. </method>
  63646. <method name="configure"
  63647. abstract="false" native="false" synchronized="false"
  63648. static="false" final="false" visibility="public"
  63649. deprecated="not deprecated">
  63650. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63651. </method>
  63652. <doc>
  63653. <![CDATA[NLineInputFormat which splits N lines of input as one split.
  63654. In many "pleasantly" parallel applications, each process/mapper
  63655. processes the same input file (s), but with computations are
  63656. controlled by different parameters.(Referred to as "parameter sweeps").
  63657. One way to achieve this, is to specify a set of parameters
  63658. (one set per line) as input in a control file
  63659. (which is the input path to the map-reduce application,
  63660. where as the input dataset is specified
  63661. via a config variable in JobConf.).
  63662. The NLineInputFormat can be used in such applications, that splits
  63663. the input file such that by default, one line is fed as
  63664. a value to one map task, and key is the offset.
  63665. i.e. (k,v) is (LongWritable, Text).
  63666. The location hints will span the whole mapred cluster.]]>
  63667. </doc>
  63668. </class>
  63669. <!-- end class org.apache.hadoop.mapred.lib.NLineInputFormat -->
  63670. <!-- start class org.apache.hadoop.mapred.lib.NullOutputFormat -->
  63671. <class name="NullOutputFormat" extends="java.lang.Object"
  63672. abstract="false"
  63673. static="false" final="false" visibility="public"
  63674. deprecated="not deprecated">
  63675. <implements name="org.apache.hadoop.mapred.OutputFormat"/>
  63676. <constructor name="NullOutputFormat"
  63677. static="false" final="false" visibility="public"
  63678. deprecated="not deprecated">
  63679. </constructor>
  63680. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  63681. abstract="false" native="false" synchronized="false"
  63682. static="false" final="false" visibility="public"
  63683. deprecated="not deprecated">
  63684. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  63685. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63686. <param name="name" type="java.lang.String"/>
  63687. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  63688. </method>
  63689. <method name="checkOutputSpecs"
  63690. abstract="false" native="false" synchronized="false"
  63691. static="false" final="false" visibility="public"
  63692. deprecated="not deprecated">
  63693. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  63694. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63695. </method>
  63696. <doc>
  63697. <![CDATA[Consume all outputs and put them in /dev/null.]]>
  63698. </doc>
  63699. </class>
  63700. <!-- end class org.apache.hadoop.mapred.lib.NullOutputFormat -->
  63701. <!-- start class org.apache.hadoop.mapred.lib.RegexMapper -->
  63702. <class name="RegexMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  63703. abstract="false"
  63704. static="false" final="false" visibility="public"
  63705. deprecated="not deprecated">
  63706. <implements name="org.apache.hadoop.mapred.Mapper"/>
  63707. <constructor name="RegexMapper"
  63708. static="false" final="false" visibility="public"
  63709. deprecated="not deprecated">
  63710. </constructor>
  63711. <method name="configure"
  63712. abstract="false" native="false" synchronized="false"
  63713. static="false" final="false" visibility="public"
  63714. deprecated="not deprecated">
  63715. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63716. </method>
  63717. <method name="map"
  63718. abstract="false" native="false" synchronized="false"
  63719. static="false" final="false" visibility="public"
  63720. deprecated="not deprecated">
  63721. <param name="key" type="java.lang.Object"/>
  63722. <param name="value" type="org.apache.hadoop.io.Text"/>
  63723. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  63724. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  63725. <exception name="IOException" type="java.io.IOException"/>
  63726. </method>
  63727. <doc>
  63728. <![CDATA[A {@link Mapper} that extracts text matching a regular expression.]]>
  63729. </doc>
  63730. </class>
  63731. <!-- end class org.apache.hadoop.mapred.lib.RegexMapper -->
  63732. <!-- start class org.apache.hadoop.mapred.lib.TokenCountMapper -->
  63733. <class name="TokenCountMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  63734. abstract="false"
  63735. static="false" final="false" visibility="public"
  63736. deprecated="not deprecated">
  63737. <implements name="org.apache.hadoop.mapred.Mapper"/>
  63738. <constructor name="TokenCountMapper"
  63739. static="false" final="false" visibility="public"
  63740. deprecated="not deprecated">
  63741. </constructor>
  63742. <method name="map"
  63743. abstract="false" native="false" synchronized="false"
  63744. static="false" final="false" visibility="public"
  63745. deprecated="not deprecated">
  63746. <param name="key" type="java.lang.Object"/>
  63747. <param name="value" type="org.apache.hadoop.io.Text"/>
  63748. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  63749. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  63750. <exception name="IOException" type="java.io.IOException"/>
  63751. </method>
  63752. <doc>
  63753. <![CDATA[A {@link Mapper} that maps text values into <token,freq> pairs. Uses
  63754. {@link StringTokenizer} to break text into tokens.]]>
  63755. </doc>
  63756. </class>
  63757. <!-- end class org.apache.hadoop.mapred.lib.TokenCountMapper -->
  63758. <!-- start class org.apache.hadoop.mapred.lib.TotalOrderPartitioner -->
  63759. <class name="TotalOrderPartitioner" extends="java.lang.Object"
  63760. abstract="false"
  63761. static="false" final="false" visibility="public"
  63762. deprecated="not deprecated">
  63763. <implements name="org.apache.hadoop.mapred.Partitioner"/>
  63764. <constructor name="TotalOrderPartitioner"
  63765. static="false" final="false" visibility="public"
  63766. deprecated="not deprecated">
  63767. </constructor>
  63768. <method name="configure"
  63769. abstract="false" native="false" synchronized="false"
  63770. static="false" final="false" visibility="public"
  63771. deprecated="not deprecated">
  63772. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63773. <doc>
  63774. <![CDATA[Read in the partition file and build indexing data structures.
  63775. If the keytype is {@link org.apache.hadoop.io.BinaryComparable} and
  63776. <tt>total.order.partitioner.natural.order</tt> is not false, a trie
  63777. of the first <tt>total.order.partitioner.max.trie.depth</tt>(2) + 1 bytes
  63778. will be built. Otherwise, keys will be located using a binary search of
  63779. the partition keyset using the {@link org.apache.hadoop.io.RawComparator}
  63780. defined for this job. The input file must be sorted with the same
  63781. comparator and contain {@link
  63782. org.apache.hadoop.mapred.JobConf#getNumReduceTasks} - 1 keys.]]>
  63783. </doc>
  63784. </method>
  63785. <method name="getPartition" return="int"
  63786. abstract="false" native="false" synchronized="false"
  63787. static="false" final="false" visibility="public"
  63788. deprecated="not deprecated">
  63789. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  63790. <param name="value" type="java.lang.Object"/>
  63791. <param name="numPartitions" type="int"/>
  63792. </method>
  63793. <method name="setPartitionFile"
  63794. abstract="false" native="false" synchronized="false"
  63795. static="true" final="false" visibility="public"
  63796. deprecated="not deprecated">
  63797. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63798. <param name="p" type="org.apache.hadoop.fs.Path"/>
  63799. <doc>
  63800. <![CDATA[Set the path to the SequenceFile storing the sorted partition keyset.
  63801. It must be the case that for <tt>R</tt> reduces, there are <tt>R-1</tt>
  63802. keys in the SequenceFile.]]>
  63803. </doc>
  63804. </method>
  63805. <method name="getPartitionFile" return="java.lang.String"
  63806. abstract="false" native="false" synchronized="false"
  63807. static="true" final="false" visibility="public"
  63808. deprecated="not deprecated">
  63809. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63810. <doc>
  63811. <![CDATA[Get the path to the SequenceFile storing the sorted partition keyset.
  63812. @see #setPartitionFile(JobConf,Path)]]>
  63813. </doc>
  63814. </method>
  63815. <field name="DEFAULT_PATH" type="java.lang.String"
  63816. transient="false" volatile="false"
  63817. static="true" final="true" visibility="public"
  63818. deprecated="not deprecated">
  63819. </field>
  63820. <doc>
  63821. <![CDATA[Partitioner effecting a total order by reading split points from
  63822. an externally generated source.]]>
  63823. </doc>
  63824. </class>
  63825. <!-- end class org.apache.hadoop.mapred.lib.TotalOrderPartitioner -->
  63826. </package>
  63827. <package name="org.apache.hadoop.mapred.lib.aggregate">
  63828. <!-- start class org.apache.hadoop.mapred.lib.aggregate.DoubleValueSum -->
  63829. <class name="DoubleValueSum" extends="java.lang.Object"
  63830. abstract="false"
  63831. static="false" final="false" visibility="public"
  63832. deprecated="not deprecated">
  63833. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  63834. <constructor name="DoubleValueSum"
  63835. static="false" final="false" visibility="public"
  63836. deprecated="not deprecated">
  63837. <doc>
  63838. <![CDATA[The default constructor]]>
  63839. </doc>
  63840. </constructor>
  63841. <method name="addNextValue"
  63842. abstract="false" native="false" synchronized="false"
  63843. static="false" final="false" visibility="public"
  63844. deprecated="not deprecated">
  63845. <param name="val" type="java.lang.Object"/>
  63846. <doc>
  63847. <![CDATA[add a value to the aggregator
  63848. @param val
  63849. an object whose string representation represents a double value.]]>
  63850. </doc>
  63851. </method>
  63852. <method name="addNextValue"
  63853. abstract="false" native="false" synchronized="false"
  63854. static="false" final="false" visibility="public"
  63855. deprecated="not deprecated">
  63856. <param name="val" type="double"/>
  63857. <doc>
  63858. <![CDATA[add a value to the aggregator
  63859. @param val
  63860. a double value.]]>
  63861. </doc>
  63862. </method>
  63863. <method name="getReport" return="java.lang.String"
  63864. abstract="false" native="false" synchronized="false"
  63865. static="false" final="false" visibility="public"
  63866. deprecated="not deprecated">
  63867. <doc>
  63868. <![CDATA[@return the string representation of the aggregated value]]>
  63869. </doc>
  63870. </method>
  63871. <method name="getSum" return="double"
  63872. abstract="false" native="false" synchronized="false"
  63873. static="false" final="false" visibility="public"
  63874. deprecated="not deprecated">
  63875. <doc>
  63876. <![CDATA[@return the aggregated value]]>
  63877. </doc>
  63878. </method>
  63879. <method name="reset"
  63880. abstract="false" native="false" synchronized="false"
  63881. static="false" final="false" visibility="public"
  63882. deprecated="not deprecated">
  63883. <doc>
  63884. <![CDATA[reset the aggregator]]>
  63885. </doc>
  63886. </method>
  63887. <method name="getCombinerOutput" return="java.util.ArrayList"
  63888. abstract="false" native="false" synchronized="false"
  63889. static="false" final="false" visibility="public"
  63890. deprecated="not deprecated">
  63891. <doc>
  63892. <![CDATA[@return return an array of one element. The element is a string
  63893. representation of the aggregated value. The return value is
  63894. expected to be used by the a combiner.]]>
  63895. </doc>
  63896. </method>
  63897. <doc>
  63898. <![CDATA[This class implements a value aggregator that sums up a sequence of double
  63899. values.]]>
  63900. </doc>
  63901. </class>
  63902. <!-- end class org.apache.hadoop.mapred.lib.aggregate.DoubleValueSum -->
  63903. <!-- start class org.apache.hadoop.mapred.lib.aggregate.LongValueMax -->
  63904. <class name="LongValueMax" extends="java.lang.Object"
  63905. abstract="false"
  63906. static="false" final="false" visibility="public"
  63907. deprecated="not deprecated">
  63908. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  63909. <constructor name="LongValueMax"
  63910. static="false" final="false" visibility="public"
  63911. deprecated="not deprecated">
  63912. <doc>
  63913. <![CDATA[the default constructor]]>
  63914. </doc>
  63915. </constructor>
  63916. <method name="addNextValue"
  63917. abstract="false" native="false" synchronized="false"
  63918. static="false" final="false" visibility="public"
  63919. deprecated="not deprecated">
  63920. <param name="val" type="java.lang.Object"/>
  63921. <doc>
  63922. <![CDATA[add a value to the aggregator
  63923. @param val
  63924. an object whose string representation represents a long value.]]>
  63925. </doc>
  63926. </method>
  63927. <method name="addNextValue"
  63928. abstract="false" native="false" synchronized="false"
  63929. static="false" final="false" visibility="public"
  63930. deprecated="not deprecated">
  63931. <param name="newVal" type="long"/>
  63932. <doc>
  63933. <![CDATA[add a value to the aggregator
  63934. @param newVal
  63935. a long value.]]>
  63936. </doc>
  63937. </method>
  63938. <method name="getVal" return="long"
  63939. abstract="false" native="false" synchronized="false"
  63940. static="false" final="false" visibility="public"
  63941. deprecated="not deprecated">
  63942. <doc>
  63943. <![CDATA[@return the aggregated value]]>
  63944. </doc>
  63945. </method>
  63946. <method name="getReport" return="java.lang.String"
  63947. abstract="false" native="false" synchronized="false"
  63948. static="false" final="false" visibility="public"
  63949. deprecated="not deprecated">
  63950. <doc>
  63951. <![CDATA[@return the string representation of the aggregated value]]>
  63952. </doc>
  63953. </method>
  63954. <method name="reset"
  63955. abstract="false" native="false" synchronized="false"
  63956. static="false" final="false" visibility="public"
  63957. deprecated="not deprecated">
  63958. <doc>
  63959. <![CDATA[reset the aggregator]]>
  63960. </doc>
  63961. </method>
  63962. <method name="getCombinerOutput" return="java.util.ArrayList"
  63963. abstract="false" native="false" synchronized="false"
  63964. static="false" final="false" visibility="public"
  63965. deprecated="not deprecated">
  63966. <doc>
  63967. <![CDATA[@return return an array of one element. The element is a string
  63968. representation of the aggregated value. The return value is
  63969. expected to be used by the a combiner.]]>
  63970. </doc>
  63971. </method>
  63972. <doc>
  63973. <![CDATA[This class implements a value aggregator that maintain the maximum of
  63974. a sequence of long values.]]>
  63975. </doc>
  63976. </class>
  63977. <!-- end class org.apache.hadoop.mapred.lib.aggregate.LongValueMax -->
  63978. <!-- start class org.apache.hadoop.mapred.lib.aggregate.LongValueMin -->
  63979. <class name="LongValueMin" extends="java.lang.Object"
  63980. abstract="false"
  63981. static="false" final="false" visibility="public"
  63982. deprecated="not deprecated">
  63983. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  63984. <constructor name="LongValueMin"
  63985. static="false" final="false" visibility="public"
  63986. deprecated="not deprecated">
  63987. <doc>
  63988. <![CDATA[the default constructor]]>
  63989. </doc>
  63990. </constructor>
  63991. <method name="addNextValue"
  63992. abstract="false" native="false" synchronized="false"
  63993. static="false" final="false" visibility="public"
  63994. deprecated="not deprecated">
  63995. <param name="val" type="java.lang.Object"/>
  63996. <doc>
  63997. <![CDATA[add a value to the aggregator
  63998. @param val
  63999. an object whose string representation represents a long value.]]>
  64000. </doc>
  64001. </method>
  64002. <method name="addNextValue"
  64003. abstract="false" native="false" synchronized="false"
  64004. static="false" final="false" visibility="public"
  64005. deprecated="not deprecated">
  64006. <param name="newVal" type="long"/>
  64007. <doc>
  64008. <![CDATA[add a value to the aggregator
  64009. @param newVal
  64010. a long value.]]>
  64011. </doc>
  64012. </method>
  64013. <method name="getVal" return="long"
  64014. abstract="false" native="false" synchronized="false"
  64015. static="false" final="false" visibility="public"
  64016. deprecated="not deprecated">
  64017. <doc>
  64018. <![CDATA[@return the aggregated value]]>
  64019. </doc>
  64020. </method>
  64021. <method name="getReport" return="java.lang.String"
  64022. abstract="false" native="false" synchronized="false"
  64023. static="false" final="false" visibility="public"
  64024. deprecated="not deprecated">
  64025. <doc>
  64026. <![CDATA[@return the string representation of the aggregated value]]>
  64027. </doc>
  64028. </method>
  64029. <method name="reset"
  64030. abstract="false" native="false" synchronized="false"
  64031. static="false" final="false" visibility="public"
  64032. deprecated="not deprecated">
  64033. <doc>
  64034. <![CDATA[reset the aggregator]]>
  64035. </doc>
  64036. </method>
  64037. <method name="getCombinerOutput" return="java.util.ArrayList"
  64038. abstract="false" native="false" synchronized="false"
  64039. static="false" final="false" visibility="public"
  64040. deprecated="not deprecated">
  64041. <doc>
  64042. <![CDATA[@return return an array of one element. The element is a string
  64043. representation of the aggregated value. The return value is
  64044. expected to be used by the a combiner.]]>
  64045. </doc>
  64046. </method>
  64047. <doc>
  64048. <![CDATA[This class implements a value aggregator that maintain the minimum of
  64049. a sequence of long values.]]>
  64050. </doc>
  64051. </class>
  64052. <!-- end class org.apache.hadoop.mapred.lib.aggregate.LongValueMin -->
  64053. <!-- start class org.apache.hadoop.mapred.lib.aggregate.LongValueSum -->
  64054. <class name="LongValueSum" extends="java.lang.Object"
  64055. abstract="false"
  64056. static="false" final="false" visibility="public"
  64057. deprecated="not deprecated">
  64058. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  64059. <constructor name="LongValueSum"
  64060. static="false" final="false" visibility="public"
  64061. deprecated="not deprecated">
  64062. <doc>
  64063. <![CDATA[the default constructor]]>
  64064. </doc>
  64065. </constructor>
  64066. <method name="addNextValue"
  64067. abstract="false" native="false" synchronized="false"
  64068. static="false" final="false" visibility="public"
  64069. deprecated="not deprecated">
  64070. <param name="val" type="java.lang.Object"/>
  64071. <doc>
  64072. <![CDATA[add a value to the aggregator
  64073. @param val
  64074. an object whose string representation represents a long value.]]>
  64075. </doc>
  64076. </method>
  64077. <method name="addNextValue"
  64078. abstract="false" native="false" synchronized="false"
  64079. static="false" final="false" visibility="public"
  64080. deprecated="not deprecated">
  64081. <param name="val" type="long"/>
  64082. <doc>
  64083. <![CDATA[add a value to the aggregator
  64084. @param val
  64085. a long value.]]>
  64086. </doc>
  64087. </method>
  64088. <method name="getSum" return="long"
  64089. abstract="false" native="false" synchronized="false"
  64090. static="false" final="false" visibility="public"
  64091. deprecated="not deprecated">
  64092. <doc>
  64093. <![CDATA[@return the aggregated value]]>
  64094. </doc>
  64095. </method>
  64096. <method name="getReport" return="java.lang.String"
  64097. abstract="false" native="false" synchronized="false"
  64098. static="false" final="false" visibility="public"
  64099. deprecated="not deprecated">
  64100. <doc>
  64101. <![CDATA[@return the string representation of the aggregated value]]>
  64102. </doc>
  64103. </method>
  64104. <method name="reset"
  64105. abstract="false" native="false" synchronized="false"
  64106. static="false" final="false" visibility="public"
  64107. deprecated="not deprecated">
  64108. <doc>
  64109. <![CDATA[reset the aggregator]]>
  64110. </doc>
  64111. </method>
  64112. <method name="getCombinerOutput" return="java.util.ArrayList"
  64113. abstract="false" native="false" synchronized="false"
  64114. static="false" final="false" visibility="public"
  64115. deprecated="not deprecated">
  64116. <doc>
  64117. <![CDATA[@return return an array of one element. The element is a string
  64118. representation of the aggregated value. The return value is
  64119. expected to be used by the a combiner.]]>
  64120. </doc>
  64121. </method>
  64122. <doc>
  64123. <![CDATA[This class implements a value aggregator that sums up
  64124. a sequence of long values.]]>
  64125. </doc>
  64126. </class>
  64127. <!-- end class org.apache.hadoop.mapred.lib.aggregate.LongValueSum -->
  64128. <!-- start class org.apache.hadoop.mapred.lib.aggregate.StringValueMax -->
  64129. <class name="StringValueMax" extends="java.lang.Object"
  64130. abstract="false"
  64131. static="false" final="false" visibility="public"
  64132. deprecated="not deprecated">
  64133. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  64134. <constructor name="StringValueMax"
  64135. static="false" final="false" visibility="public"
  64136. deprecated="not deprecated">
  64137. <doc>
  64138. <![CDATA[the default constructor]]>
  64139. </doc>
  64140. </constructor>
  64141. <method name="addNextValue"
  64142. abstract="false" native="false" synchronized="false"
  64143. static="false" final="false" visibility="public"
  64144. deprecated="not deprecated">
  64145. <param name="val" type="java.lang.Object"/>
  64146. <doc>
  64147. <![CDATA[add a value to the aggregator
  64148. @param val
  64149. a string.]]>
  64150. </doc>
  64151. </method>
  64152. <method name="getVal" return="java.lang.String"
  64153. abstract="false" native="false" synchronized="false"
  64154. static="false" final="false" visibility="public"
  64155. deprecated="not deprecated">
  64156. <doc>
  64157. <![CDATA[@return the aggregated value]]>
  64158. </doc>
  64159. </method>
  64160. <method name="getReport" return="java.lang.String"
  64161. abstract="false" native="false" synchronized="false"
  64162. static="false" final="false" visibility="public"
  64163. deprecated="not deprecated">
  64164. <doc>
  64165. <![CDATA[@return the string representation of the aggregated value]]>
  64166. </doc>
  64167. </method>
  64168. <method name="reset"
  64169. abstract="false" native="false" synchronized="false"
  64170. static="false" final="false" visibility="public"
  64171. deprecated="not deprecated">
  64172. <doc>
  64173. <![CDATA[reset the aggregator]]>
  64174. </doc>
  64175. </method>
  64176. <method name="getCombinerOutput" return="java.util.ArrayList"
  64177. abstract="false" native="false" synchronized="false"
  64178. static="false" final="false" visibility="public"
  64179. deprecated="not deprecated">
  64180. <doc>
  64181. <![CDATA[@return return an array of one element. The element is a string
  64182. representation of the aggregated value. The return value is
  64183. expected to be used by the a combiner.]]>
  64184. </doc>
  64185. </method>
  64186. <doc>
  64187. <![CDATA[This class implements a value aggregator that maintain the biggest of
  64188. a sequence of strings.]]>
  64189. </doc>
  64190. </class>
  64191. <!-- end class org.apache.hadoop.mapred.lib.aggregate.StringValueMax -->
  64192. <!-- start class org.apache.hadoop.mapred.lib.aggregate.StringValueMin -->
  64193. <class name="StringValueMin" extends="java.lang.Object"
  64194. abstract="false"
  64195. static="false" final="false" visibility="public"
  64196. deprecated="not deprecated">
  64197. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  64198. <constructor name="StringValueMin"
  64199. static="false" final="false" visibility="public"
  64200. deprecated="not deprecated">
  64201. <doc>
  64202. <![CDATA[the default constructor]]>
  64203. </doc>
  64204. </constructor>
  64205. <method name="addNextValue"
  64206. abstract="false" native="false" synchronized="false"
  64207. static="false" final="false" visibility="public"
  64208. deprecated="not deprecated">
  64209. <param name="val" type="java.lang.Object"/>
  64210. <doc>
  64211. <![CDATA[add a value to the aggregator
  64212. @param val
  64213. a string.]]>
  64214. </doc>
  64215. </method>
  64216. <method name="getVal" return="java.lang.String"
  64217. abstract="false" native="false" synchronized="false"
  64218. static="false" final="false" visibility="public"
  64219. deprecated="not deprecated">
  64220. <doc>
  64221. <![CDATA[@return the aggregated value]]>
  64222. </doc>
  64223. </method>
  64224. <method name="getReport" return="java.lang.String"
  64225. abstract="false" native="false" synchronized="false"
  64226. static="false" final="false" visibility="public"
  64227. deprecated="not deprecated">
  64228. <doc>
  64229. <![CDATA[@return the string representation of the aggregated value]]>
  64230. </doc>
  64231. </method>
  64232. <method name="reset"
  64233. abstract="false" native="false" synchronized="false"
  64234. static="false" final="false" visibility="public"
  64235. deprecated="not deprecated">
  64236. <doc>
  64237. <![CDATA[reset the aggregator]]>
  64238. </doc>
  64239. </method>
  64240. <method name="getCombinerOutput" return="java.util.ArrayList"
  64241. abstract="false" native="false" synchronized="false"
  64242. static="false" final="false" visibility="public"
  64243. deprecated="not deprecated">
  64244. <doc>
  64245. <![CDATA[@return return an array of one element. The element is a string
  64246. representation of the aggregated value. The return value is
  64247. expected to be used by the a combiner.]]>
  64248. </doc>
  64249. </method>
  64250. <doc>
  64251. <![CDATA[This class implements a value aggregator that maintain the smallest of
  64252. a sequence of strings.]]>
  64253. </doc>
  64254. </class>
  64255. <!-- end class org.apache.hadoop.mapred.lib.aggregate.StringValueMin -->
  64256. <!-- start class org.apache.hadoop.mapred.lib.aggregate.UniqValueCount -->
  64257. <class name="UniqValueCount" extends="java.lang.Object"
  64258. abstract="false"
  64259. static="false" final="false" visibility="public"
  64260. deprecated="not deprecated">
  64261. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  64262. <constructor name="UniqValueCount"
  64263. static="false" final="false" visibility="public"
  64264. deprecated="not deprecated">
  64265. <doc>
  64266. <![CDATA[the default constructor]]>
  64267. </doc>
  64268. </constructor>
  64269. <constructor name="UniqValueCount" type="long"
  64270. static="false" final="false" visibility="public"
  64271. deprecated="not deprecated">
  64272. <doc>
  64273. <![CDATA[constructor
  64274. @param maxNum the limit in the number of unique values to keep.]]>
  64275. </doc>
  64276. </constructor>
  64277. <method name="setMaxItems" return="long"
  64278. abstract="false" native="false" synchronized="false"
  64279. static="false" final="false" visibility="public"
  64280. deprecated="not deprecated">
  64281. <param name="n" type="long"/>
  64282. <doc>
  64283. <![CDATA[Set the limit on the number of unique values
  64284. @param n the desired limit on the number of unique values
  64285. @return the new limit on the number of unique values]]>
  64286. </doc>
  64287. </method>
  64288. <method name="addNextValue"
  64289. abstract="false" native="false" synchronized="false"
  64290. static="false" final="false" visibility="public"
  64291. deprecated="not deprecated">
  64292. <param name="val" type="java.lang.Object"/>
  64293. <doc>
  64294. <![CDATA[add a value to the aggregator
  64295. @param val
  64296. an object.]]>
  64297. </doc>
  64298. </method>
  64299. <method name="getReport" return="java.lang.String"
  64300. abstract="false" native="false" synchronized="false"
  64301. static="false" final="false" visibility="public"
  64302. deprecated="not deprecated">
  64303. <doc>
  64304. <![CDATA[@return return the number of unique objects aggregated]]>
  64305. </doc>
  64306. </method>
  64307. <method name="getUniqueItems" return="java.util.Set"
  64308. abstract="false" native="false" synchronized="false"
  64309. static="false" final="false" visibility="public"
  64310. deprecated="not deprecated">
  64311. <doc>
  64312. <![CDATA[@return the set of the unique objects]]>
  64313. </doc>
  64314. </method>
  64315. <method name="reset"
  64316. abstract="false" native="false" synchronized="false"
  64317. static="false" final="false" visibility="public"
  64318. deprecated="not deprecated">
  64319. <doc>
  64320. <![CDATA[reset the aggregator]]>
  64321. </doc>
  64322. </method>
  64323. <method name="getCombinerOutput" return="java.util.ArrayList"
  64324. abstract="false" native="false" synchronized="false"
  64325. static="false" final="false" visibility="public"
  64326. deprecated="not deprecated">
  64327. <doc>
  64328. <![CDATA[@return return an array of the unique objects. The return value is
  64329. expected to be used by the a combiner.]]>
  64330. </doc>
  64331. </method>
  64332. <doc>
  64333. <![CDATA[This class implements a value aggregator that dedupes a sequence of objects.]]>
  64334. </doc>
  64335. </class>
  64336. <!-- end class org.apache.hadoop.mapred.lib.aggregate.UniqValueCount -->
  64337. <!-- start class org.apache.hadoop.mapred.lib.aggregate.UserDefinedValueAggregatorDescriptor -->
  64338. <class name="UserDefinedValueAggregatorDescriptor" extends="java.lang.Object"
  64339. abstract="false"
  64340. static="false" final="false" visibility="public"
  64341. deprecated="not deprecated">
  64342. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor"/>
  64343. <constructor name="UserDefinedValueAggregatorDescriptor" type="java.lang.String, org.apache.hadoop.mapred.JobConf"
  64344. static="false" final="false" visibility="public"
  64345. deprecated="not deprecated">
  64346. <doc>
  64347. <![CDATA[@param className the class name of the user defined descriptor class
  64348. @param job a configure object used for decriptor configuration]]>
  64349. </doc>
  64350. </constructor>
  64351. <method name="createInstance" return="java.lang.Object"
  64352. abstract="false" native="false" synchronized="false"
  64353. static="true" final="false" visibility="public"
  64354. deprecated="not deprecated">
  64355. <param name="className" type="java.lang.String"/>
  64356. <doc>
  64357. <![CDATA[Create an instance of the given class
  64358. @param className the name of the class
  64359. @return a dynamically created instance of the given class]]>
  64360. </doc>
  64361. </method>
  64362. <method name="generateKeyValPairs" return="java.util.ArrayList"
  64363. abstract="false" native="false" synchronized="false"
  64364. static="false" final="false" visibility="public"
  64365. deprecated="not deprecated">
  64366. <param name="key" type="java.lang.Object"/>
  64367. <param name="val" type="java.lang.Object"/>
  64368. <doc>
  64369. <![CDATA[Generate a list of aggregation-id/value pairs for the given key/value pairs
  64370. by delegating the invocation to the real object.
  64371. @param key
  64372. input key
  64373. @param val
  64374. input value
  64375. @return a list of aggregation id/value pairs. An aggregation id encodes an
  64376. aggregation type which is used to guide the way to aggregate the
  64377. value in the reduce/combiner phrase of an Aggregate based job.]]>
  64378. </doc>
  64379. </method>
  64380. <method name="toString" return="java.lang.String"
  64381. abstract="false" native="false" synchronized="false"
  64382. static="false" final="false" visibility="public"
  64383. deprecated="not deprecated">
  64384. <doc>
  64385. <![CDATA[@return the string representation of this object.]]>
  64386. </doc>
  64387. </method>
  64388. <method name="configure"
  64389. abstract="false" native="false" synchronized="false"
  64390. static="false" final="false" visibility="public"
  64391. deprecated="not deprecated">
  64392. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  64393. <doc>
  64394. <![CDATA[Do nothing.]]>
  64395. </doc>
  64396. </method>
  64397. <doc>
  64398. <![CDATA[This class implements a wrapper for a user defined value aggregator descriptor.
  64399. It servs two functions: One is to create an object of ValueAggregatorDescriptor from the
  64400. name of a user defined class that may be dynamically loaded. The other is to
  64401. deligate inviokations of generateKeyValPairs function to the created object.]]>
  64402. </doc>
  64403. </class>
  64404. <!-- end class org.apache.hadoop.mapred.lib.aggregate.UserDefinedValueAggregatorDescriptor -->
  64405. <!-- start interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregator -->
  64406. <interface name="ValueAggregator" abstract="true"
  64407. static="false" final="false" visibility="public"
  64408. deprecated="not deprecated">
  64409. <method name="addNextValue"
  64410. abstract="false" native="false" synchronized="false"
  64411. static="false" final="false" visibility="public"
  64412. deprecated="not deprecated">
  64413. <param name="val" type="java.lang.Object"/>
  64414. <doc>
  64415. <![CDATA[add a value to the aggregator
  64416. @param val the value to be added]]>
  64417. </doc>
  64418. </method>
  64419. <method name="reset"
  64420. abstract="false" native="false" synchronized="false"
  64421. static="false" final="false" visibility="public"
  64422. deprecated="not deprecated">
  64423. <doc>
  64424. <![CDATA[reset the aggregator]]>
  64425. </doc>
  64426. </method>
  64427. <method name="getReport" return="java.lang.String"
  64428. abstract="false" native="false" synchronized="false"
  64429. static="false" final="false" visibility="public"
  64430. deprecated="not deprecated">
  64431. <doc>
  64432. <![CDATA[@return the string representation of the agregator]]>
  64433. </doc>
  64434. </method>
  64435. <method name="getCombinerOutput" return="java.util.ArrayList"
  64436. abstract="false" native="false" synchronized="false"
  64437. static="false" final="false" visibility="public"
  64438. deprecated="not deprecated">
  64439. <doc>
  64440. <![CDATA[@return an array of values as the outputs of the combiner.]]>
  64441. </doc>
  64442. </method>
  64443. <doc>
  64444. <![CDATA[This interface defines the minimal protocol for value aggregators.]]>
  64445. </doc>
  64446. </interface>
  64447. <!-- end interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregator -->
  64448. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorBaseDescriptor -->
  64449. <class name="ValueAggregatorBaseDescriptor" extends="java.lang.Object"
  64450. abstract="false"
  64451. static="false" final="false" visibility="public"
  64452. deprecated="not deprecated">
  64453. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor"/>
  64454. <constructor name="ValueAggregatorBaseDescriptor"
  64455. static="false" final="false" visibility="public"
  64456. deprecated="not deprecated">
  64457. </constructor>
  64458. <method name="generateEntry" return="java.util.Map.Entry"
  64459. abstract="false" native="false" synchronized="false"
  64460. static="true" final="false" visibility="public"
  64461. deprecated="not deprecated">
  64462. <param name="type" type="java.lang.String"/>
  64463. <param name="id" type="java.lang.String"/>
  64464. <param name="val" type="org.apache.hadoop.io.Text"/>
  64465. <doc>
  64466. <![CDATA[@param type the aggregation type
  64467. @param id the aggregation id
  64468. @param val the val associated with the id to be aggregated
  64469. @return an Entry whose key is the aggregation id prefixed with
  64470. the aggregation type.]]>
  64471. </doc>
  64472. </method>
  64473. <method name="generateValueAggregator" return="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"
  64474. abstract="false" native="false" synchronized="false"
  64475. static="true" final="false" visibility="public"
  64476. deprecated="not deprecated">
  64477. <param name="type" type="java.lang.String"/>
  64478. <doc>
  64479. <![CDATA[@param type the aggregation type
  64480. @return a value aggregator of the given type.]]>
  64481. </doc>
  64482. </method>
  64483. <method name="generateKeyValPairs" return="java.util.ArrayList"
  64484. abstract="false" native="false" synchronized="false"
  64485. static="false" final="false" visibility="public"
  64486. deprecated="not deprecated">
  64487. <param name="key" type="java.lang.Object"/>
  64488. <param name="val" type="java.lang.Object"/>
  64489. <doc>
  64490. <![CDATA[Generate 1 or 2 aggregation-id/value pairs for the given key/value pair.
  64491. The first id will be of type LONG_VALUE_SUM, with "record_count" as
  64492. its aggregation id. If the input is a file split,
  64493. the second id of the same type will be generated too, with the file name
  64494. as its aggregation id. This achieves the behavior of counting the total number
  64495. of records in the input data, and the number of records in each input file.
  64496. @param key
  64497. input key
  64498. @param val
  64499. input value
  64500. @return a list of aggregation id/value pairs. An aggregation id encodes an
  64501. aggregation type which is used to guide the way to aggregate the
  64502. value in the reduce/combiner phrase of an Aggregate based job.]]>
  64503. </doc>
  64504. </method>
  64505. <method name="configure"
  64506. abstract="false" native="false" synchronized="false"
  64507. static="false" final="false" visibility="public"
  64508. deprecated="not deprecated">
  64509. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  64510. <doc>
  64511. <![CDATA[get the input file name.
  64512. @param job a job configuration object]]>
  64513. </doc>
  64514. </method>
  64515. <field name="UNIQ_VALUE_COUNT" type="java.lang.String"
  64516. transient="false" volatile="false"
  64517. static="true" final="true" visibility="public"
  64518. deprecated="not deprecated">
  64519. </field>
  64520. <field name="LONG_VALUE_SUM" type="java.lang.String"
  64521. transient="false" volatile="false"
  64522. static="true" final="true" visibility="public"
  64523. deprecated="not deprecated">
  64524. </field>
  64525. <field name="DOUBLE_VALUE_SUM" type="java.lang.String"
  64526. transient="false" volatile="false"
  64527. static="true" final="true" visibility="public"
  64528. deprecated="not deprecated">
  64529. </field>
  64530. <field name="VALUE_HISTOGRAM" type="java.lang.String"
  64531. transient="false" volatile="false"
  64532. static="true" final="true" visibility="public"
  64533. deprecated="not deprecated">
  64534. </field>
  64535. <field name="LONG_VALUE_MAX" type="java.lang.String"
  64536. transient="false" volatile="false"
  64537. static="true" final="true" visibility="public"
  64538. deprecated="not deprecated">
  64539. </field>
  64540. <field name="LONG_VALUE_MIN" type="java.lang.String"
  64541. transient="false" volatile="false"
  64542. static="true" final="true" visibility="public"
  64543. deprecated="not deprecated">
  64544. </field>
  64545. <field name="STRING_VALUE_MAX" type="java.lang.String"
  64546. transient="false" volatile="false"
  64547. static="true" final="true" visibility="public"
  64548. deprecated="not deprecated">
  64549. </field>
  64550. <field name="STRING_VALUE_MIN" type="java.lang.String"
  64551. transient="false" volatile="false"
  64552. static="true" final="true" visibility="public"
  64553. deprecated="not deprecated">
  64554. </field>
  64555. <field name="inputFile" type="java.lang.String"
  64556. transient="false" volatile="false"
  64557. static="false" final="false" visibility="public"
  64558. deprecated="not deprecated">
  64559. </field>
  64560. <doc>
  64561. <![CDATA[This class implements the common functionalities of
  64562. the subclasses of ValueAggregatorDescriptor class.]]>
  64563. </doc>
  64564. </class>
  64565. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorBaseDescriptor -->
  64566. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorCombiner -->
  64567. <class name="ValueAggregatorCombiner" extends="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase"
  64568. abstract="false"
  64569. static="false" final="false" visibility="public"
  64570. deprecated="not deprecated">
  64571. <constructor name="ValueAggregatorCombiner"
  64572. static="false" final="false" visibility="public"
  64573. deprecated="not deprecated">
  64574. </constructor>
  64575. <method name="configure"
  64576. abstract="false" native="false" synchronized="false"
  64577. static="false" final="false" visibility="public"
  64578. deprecated="not deprecated">
  64579. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  64580. <doc>
  64581. <![CDATA[Combiner does not need to configure.]]>
  64582. </doc>
  64583. </method>
  64584. <method name="reduce"
  64585. abstract="false" native="false" synchronized="false"
  64586. static="false" final="false" visibility="public"
  64587. deprecated="not deprecated">
  64588. <param name="key" type="org.apache.hadoop.io.Text"/>
  64589. <param name="values" type="java.util.Iterator"/>
  64590. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  64591. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  64592. <exception name="IOException" type="java.io.IOException"/>
  64593. <doc>
  64594. <![CDATA[Combines values for a given key.
  64595. @param key the key is expected to be a Text object, whose prefix indicates
  64596. the type of aggregation to aggregate the values.
  64597. @param values the values to combine
  64598. @param output to collect combined values]]>
  64599. </doc>
  64600. </method>
  64601. <method name="close"
  64602. abstract="false" native="false" synchronized="false"
  64603. static="false" final="false" visibility="public"
  64604. deprecated="not deprecated">
  64605. <exception name="IOException" type="java.io.IOException"/>
  64606. <doc>
  64607. <![CDATA[Do nothing.]]>
  64608. </doc>
  64609. </method>
  64610. <method name="map"
  64611. abstract="false" native="false" synchronized="false"
  64612. static="false" final="false" visibility="public"
  64613. deprecated="not deprecated">
  64614. <param name="arg0" type="org.apache.hadoop.io.WritableComparable"/>
  64615. <param name="arg1" type="org.apache.hadoop.io.Writable"/>
  64616. <param name="arg2" type="org.apache.hadoop.mapred.OutputCollector"/>
  64617. <param name="arg3" type="org.apache.hadoop.mapred.Reporter"/>
  64618. <exception name="IOException" type="java.io.IOException"/>
  64619. <doc>
  64620. <![CDATA[Do nothing. Should not be called.]]>
  64621. </doc>
  64622. </method>
  64623. <doc>
  64624. <![CDATA[This class implements the generic combiner of Aggregate.]]>
  64625. </doc>
  64626. </class>
  64627. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorCombiner -->
  64628. <!-- start interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor -->
  64629. <interface name="ValueAggregatorDescriptor" abstract="true"
  64630. static="false" final="false" visibility="public"
  64631. deprecated="not deprecated">
  64632. <method name="generateKeyValPairs" return="java.util.ArrayList"
  64633. abstract="false" native="false" synchronized="false"
  64634. static="false" final="false" visibility="public"
  64635. deprecated="not deprecated">
  64636. <param name="key" type="java.lang.Object"/>
  64637. <param name="val" type="java.lang.Object"/>
  64638. <doc>
  64639. <![CDATA[Generate a list of aggregation-id/value pairs for the given key/value pair.
  64640. This function is usually called by the mapper of an Aggregate based job.
  64641. @param key
  64642. input key
  64643. @param val
  64644. input value
  64645. @return a list of aggregation id/value pairs. An aggregation id encodes an
  64646. aggregation type which is used to guide the way to aggregate the
  64647. value in the reduce/combiner phrase of an Aggregate based job.]]>
  64648. </doc>
  64649. </method>
  64650. <method name="configure"
  64651. abstract="false" native="false" synchronized="false"
  64652. static="false" final="false" visibility="public"
  64653. deprecated="not deprecated">
  64654. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  64655. <doc>
  64656. <![CDATA[Configure the object
  64657. @param job
  64658. a JobConf object that may contain the information that can be used
  64659. to configure the object.]]>
  64660. </doc>
  64661. </method>
  64662. <field name="TYPE_SEPARATOR" type="java.lang.String"
  64663. transient="false" volatile="false"
  64664. static="true" final="true" visibility="public"
  64665. deprecated="not deprecated">
  64666. </field>
  64667. <field name="ONE" type="org.apache.hadoop.io.Text"
  64668. transient="false" volatile="false"
  64669. static="true" final="true" visibility="public"
  64670. deprecated="not deprecated">
  64671. </field>
  64672. <doc>
  64673. <![CDATA[This interface defines the contract a value aggregator descriptor must
  64674. support. Such a descriptor can be configured with a JobConf object. Its main
  64675. function is to generate a list of aggregation-id/value pairs. An aggregation
  64676. id encodes an aggregation type which is used to guide the way to aggregate
  64677. the value in the reduce/combiner phrase of an Aggregate based job.The mapper in
  64678. an Aggregate based map/reduce job may create one or more of
  64679. ValueAggregatorDescriptor objects at configuration time. For each input
  64680. key/value pair, the mapper will use those objects to create aggregation
  64681. id/value pairs.]]>
  64682. </doc>
  64683. </interface>
  64684. <!-- end interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor -->
  64685. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJob -->
  64686. <class name="ValueAggregatorJob" extends="java.lang.Object"
  64687. abstract="false"
  64688. static="false" final="false" visibility="public"
  64689. deprecated="not deprecated">
  64690. <constructor name="ValueAggregatorJob"
  64691. static="false" final="false" visibility="public"
  64692. deprecated="not deprecated">
  64693. </constructor>
  64694. <method name="createValueAggregatorJobs" return="org.apache.hadoop.mapred.jobcontrol.JobControl"
  64695. abstract="false" native="false" synchronized="false"
  64696. static="true" final="false" visibility="public"
  64697. deprecated="not deprecated">
  64698. <param name="args" type="java.lang.String[]"/>
  64699. <param name="descriptors" type="java.lang.Class[]"/>
  64700. <exception name="IOException" type="java.io.IOException"/>
  64701. </method>
  64702. <method name="createValueAggregatorJobs" return="org.apache.hadoop.mapred.jobcontrol.JobControl"
  64703. abstract="false" native="false" synchronized="false"
  64704. static="true" final="false" visibility="public"
  64705. deprecated="not deprecated">
  64706. <param name="args" type="java.lang.String[]"/>
  64707. <exception name="IOException" type="java.io.IOException"/>
  64708. </method>
  64709. <method name="createValueAggregatorJob" return="org.apache.hadoop.mapred.JobConf"
  64710. abstract="false" native="false" synchronized="false"
  64711. static="true" final="false" visibility="public"
  64712. deprecated="not deprecated">
  64713. <param name="args" type="java.lang.String[]"/>
  64714. <exception name="IOException" type="java.io.IOException"/>
  64715. <doc>
  64716. <![CDATA[Create an Aggregate based map/reduce job.
  64717. @param args the arguments used for job creation. Generic hadoop
  64718. arguments are accepted.
  64719. @return a JobConf object ready for submission.
  64720. @throws IOException
  64721. @see GenericOptionsParser]]>
  64722. </doc>
  64723. </method>
  64724. <method name="createValueAggregatorJob" return="org.apache.hadoop.mapred.JobConf"
  64725. abstract="false" native="false" synchronized="false"
  64726. static="true" final="false" visibility="public"
  64727. deprecated="not deprecated">
  64728. <param name="args" type="java.lang.String[]"/>
  64729. <param name="descriptors" type="java.lang.Class[]"/>
  64730. <exception name="IOException" type="java.io.IOException"/>
  64731. </method>
  64732. <method name="setAggregatorDescriptors"
  64733. abstract="false" native="false" synchronized="false"
  64734. static="true" final="false" visibility="public"
  64735. deprecated="not deprecated">
  64736. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  64737. <param name="descriptors" type="java.lang.Class[]"/>
  64738. </method>
  64739. <method name="main"
  64740. abstract="false" native="false" synchronized="false"
  64741. static="true" final="false" visibility="public"
  64742. deprecated="not deprecated">
  64743. <param name="args" type="java.lang.String[]"/>
  64744. <exception name="IOException" type="java.io.IOException"/>
  64745. <doc>
  64746. <![CDATA[create and run an Aggregate based map/reduce job.
  64747. @param args the arguments used for job creation
  64748. @throws IOException]]>
  64749. </doc>
  64750. </method>
  64751. <doc>
  64752. <![CDATA[This is the main class for creating a map/reduce job using Aggregate
  64753. framework. The Aggregate is a specialization of map/reduce framework,
  64754. specilizing for performing various simple aggregations.
  64755. Generally speaking, in order to implement an application using Map/Reduce
  64756. model, the developer is to implement Map and Reduce functions (and possibly
  64757. combine function). However, a lot of applications related to counting and
  64758. statistics computing have very similar characteristics. Aggregate abstracts
  64759. out the general patterns of these functions and implementing those patterns.
  64760. In particular, the package provides generic mapper/redducer/combiner classes,
  64761. and a set of built-in value aggregators, and a generic utility class that
  64762. helps user create map/reduce jobs using the generic class. The built-in
  64763. aggregators include:
  64764. sum over numeric values count the number of distinct values compute the
  64765. histogram of values compute the minimum, maximum, media,average, standard
  64766. deviation of numeric values
  64767. The developer using Aggregate will need only to provide a plugin class
  64768. conforming to the following interface:
  64769. public interface ValueAggregatorDescriptor { public ArrayList<Entry>
  64770. generateKeyValPairs(Object key, Object value); public void
  64771. configure(JobConfjob); }
  64772. The package also provides a base class, ValueAggregatorBaseDescriptor,
  64773. implementing the above interface. The user can extend the base class and
  64774. implement generateKeyValPairs accordingly.
  64775. The primary work of generateKeyValPairs is to emit one or more key/value
  64776. pairs based on the input key/value pair. The key in an output key/value pair
  64777. encode two pieces of information: aggregation type and aggregation id. The
  64778. value will be aggregated onto the aggregation id according the aggregation
  64779. type.
  64780. This class offers a function to generate a map/reduce job using Aggregate
  64781. framework. The function takes the following parameters: input directory spec
  64782. input format (text or sequence file) output directory a file specifying the
  64783. user plugin class]]>
  64784. </doc>
  64785. </class>
  64786. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJob -->
  64787. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase -->
  64788. <class name="ValueAggregatorJobBase" extends="java.lang.Object"
  64789. abstract="true"
  64790. static="false" final="false" visibility="public"
  64791. deprecated="not deprecated">
  64792. <implements name="org.apache.hadoop.mapred.Mapper"/>
  64793. <implements name="org.apache.hadoop.mapred.Reducer"/>
  64794. <constructor name="ValueAggregatorJobBase"
  64795. static="false" final="false" visibility="public"
  64796. deprecated="not deprecated">
  64797. </constructor>
  64798. <method name="configure"
  64799. abstract="false" native="false" synchronized="false"
  64800. static="false" final="false" visibility="public"
  64801. deprecated="not deprecated">
  64802. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  64803. </method>
  64804. <method name="logSpec"
  64805. abstract="false" native="false" synchronized="false"
  64806. static="false" final="false" visibility="protected"
  64807. deprecated="not deprecated">
  64808. </method>
  64809. <method name="close"
  64810. abstract="false" native="false" synchronized="false"
  64811. static="false" final="false" visibility="public"
  64812. deprecated="not deprecated">
  64813. <exception name="IOException" type="java.io.IOException"/>
  64814. </method>
  64815. <field name="aggregatorDescriptorList" type="java.util.ArrayList"
  64816. transient="false" volatile="false"
  64817. static="false" final="false" visibility="protected"
  64818. deprecated="not deprecated">
  64819. </field>
  64820. <doc>
  64821. <![CDATA[This abstract class implements some common functionalities of the
  64822. the generic mapper, reducer and combiner classes of Aggregate.]]>
  64823. </doc>
  64824. </class>
  64825. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase -->
  64826. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorMapper -->
  64827. <class name="ValueAggregatorMapper" extends="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase"
  64828. abstract="false"
  64829. static="false" final="false" visibility="public"
  64830. deprecated="not deprecated">
  64831. <constructor name="ValueAggregatorMapper"
  64832. static="false" final="false" visibility="public"
  64833. deprecated="not deprecated">
  64834. </constructor>
  64835. <method name="map"
  64836. abstract="false" native="false" synchronized="false"
  64837. static="false" final="false" visibility="public"
  64838. deprecated="not deprecated">
  64839. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  64840. <param name="value" type="org.apache.hadoop.io.Writable"/>
  64841. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  64842. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  64843. <exception name="IOException" type="java.io.IOException"/>
  64844. <doc>
  64845. <![CDATA[the map function. It iterates through the value aggregator descriptor
  64846. list to generate aggregation id/value pairs and emit them.]]>
  64847. </doc>
  64848. </method>
  64849. <method name="reduce"
  64850. abstract="false" native="false" synchronized="false"
  64851. static="false" final="false" visibility="public"
  64852. deprecated="not deprecated">
  64853. <param name="arg0" type="org.apache.hadoop.io.Text"/>
  64854. <param name="arg1" type="java.util.Iterator"/>
  64855. <param name="arg2" type="org.apache.hadoop.mapred.OutputCollector"/>
  64856. <param name="arg3" type="org.apache.hadoop.mapred.Reporter"/>
  64857. <exception name="IOException" type="java.io.IOException"/>
  64858. <doc>
  64859. <![CDATA[Do nothing. Should not be called.]]>
  64860. </doc>
  64861. </method>
  64862. <doc>
  64863. <![CDATA[This class implements the generic mapper of Aggregate.]]>
  64864. </doc>
  64865. </class>
  64866. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorMapper -->
  64867. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorReducer -->
  64868. <class name="ValueAggregatorReducer" extends="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase"
  64869. abstract="false"
  64870. static="false" final="false" visibility="public"
  64871. deprecated="not deprecated">
  64872. <constructor name="ValueAggregatorReducer"
  64873. static="false" final="false" visibility="public"
  64874. deprecated="not deprecated">
  64875. </constructor>
  64876. <method name="reduce"
  64877. abstract="false" native="false" synchronized="false"
  64878. static="false" final="false" visibility="public"
  64879. deprecated="not deprecated">
  64880. <param name="key" type="org.apache.hadoop.io.Text"/>
  64881. <param name="values" type="java.util.Iterator"/>
  64882. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  64883. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  64884. <exception name="IOException" type="java.io.IOException"/>
  64885. <doc>
  64886. <![CDATA[@param key
  64887. the key is expected to be a Text object, whose prefix indicates
  64888. the type of aggregation to aggregate the values. In effect, data
  64889. driven computing is achieved. It is assumed that each aggregator's
  64890. getReport method emits appropriate output for the aggregator. This
  64891. may be further customiized.
  64892. @value the values to be aggregated]]>
  64893. </doc>
  64894. </method>
  64895. <method name="map"
  64896. abstract="false" native="false" synchronized="false"
  64897. static="false" final="false" visibility="public"
  64898. deprecated="not deprecated">
  64899. <param name="arg0" type="org.apache.hadoop.io.WritableComparable"/>
  64900. <param name="arg1" type="org.apache.hadoop.io.Writable"/>
  64901. <param name="arg2" type="org.apache.hadoop.mapred.OutputCollector"/>
  64902. <param name="arg3" type="org.apache.hadoop.mapred.Reporter"/>
  64903. <exception name="IOException" type="java.io.IOException"/>
  64904. <doc>
  64905. <![CDATA[Do nothing. Should not be called]]>
  64906. </doc>
  64907. </method>
  64908. <doc>
  64909. <![CDATA[This class implements the generic reducer of Aggregate.]]>
  64910. </doc>
  64911. </class>
  64912. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorReducer -->
  64913. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueHistogram -->
  64914. <class name="ValueHistogram" extends="java.lang.Object"
  64915. abstract="false"
  64916. static="false" final="false" visibility="public"
  64917. deprecated="not deprecated">
  64918. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  64919. <constructor name="ValueHistogram"
  64920. static="false" final="false" visibility="public"
  64921. deprecated="not deprecated">
  64922. </constructor>
  64923. <method name="addNextValue"
  64924. abstract="false" native="false" synchronized="false"
  64925. static="false" final="false" visibility="public"
  64926. deprecated="not deprecated">
  64927. <param name="val" type="java.lang.Object"/>
  64928. <doc>
  64929. <![CDATA[add the given val to the aggregator.
  64930. @param val the value to be added. It is expected to be a string
  64931. in the form of xxxx\tnum, meaning xxxx has num occurrences.]]>
  64932. </doc>
  64933. </method>
  64934. <method name="getReport" return="java.lang.String"
  64935. abstract="false" native="false" synchronized="false"
  64936. static="false" final="false" visibility="public"
  64937. deprecated="not deprecated">
  64938. <doc>
  64939. <![CDATA[@return the string representation of this aggregator.
  64940. It includes the following basic statistics of the histogram:
  64941. the number of unique values
  64942. the minimum value
  64943. the media value
  64944. the maximum value
  64945. the average value
  64946. the standard deviation]]>
  64947. </doc>
  64948. </method>
  64949. <method name="getReportDetails" return="java.lang.String"
  64950. abstract="false" native="false" synchronized="false"
  64951. static="false" final="false" visibility="public"
  64952. deprecated="not deprecated">
  64953. <doc>
  64954. <![CDATA[@return a string representation of the list of value/frequence pairs of
  64955. the histogram]]>
  64956. </doc>
  64957. </method>
  64958. <method name="getCombinerOutput" return="java.util.ArrayList"
  64959. abstract="false" native="false" synchronized="false"
  64960. static="false" final="false" visibility="public"
  64961. deprecated="not deprecated">
  64962. <doc>
  64963. <![CDATA[@return a list value/frequence pairs.
  64964. The return value is expected to be used by the reducer.]]>
  64965. </doc>
  64966. </method>
  64967. <method name="getReportItems" return="java.util.TreeMap"
  64968. abstract="false" native="false" synchronized="false"
  64969. static="false" final="false" visibility="public"
  64970. deprecated="not deprecated">
  64971. <doc>
  64972. <![CDATA[@return a TreeMap representation of the histogram]]>
  64973. </doc>
  64974. </method>
  64975. <method name="reset"
  64976. abstract="false" native="false" synchronized="false"
  64977. static="false" final="false" visibility="public"
  64978. deprecated="not deprecated">
  64979. <doc>
  64980. <![CDATA[reset the aggregator]]>
  64981. </doc>
  64982. </method>
  64983. <doc>
  64984. <![CDATA[This class implements a value aggregator that computes the
  64985. histogram of a sequence of strings.]]>
  64986. </doc>
  64987. </class>
  64988. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueHistogram -->
  64989. </package>
  64990. <package name="org.apache.hadoop.mapred.lib.db">
  64991. <!-- start class org.apache.hadoop.mapred.lib.db.DBConfiguration -->
  64992. <class name="DBConfiguration" extends="java.lang.Object"
  64993. abstract="false"
  64994. static="false" final="false" visibility="public"
  64995. deprecated="not deprecated">
  64996. <method name="configureDB"
  64997. abstract="false" native="false" synchronized="false"
  64998. static="true" final="false" visibility="public"
  64999. deprecated="not deprecated">
  65000. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  65001. <param name="driverClass" type="java.lang.String"/>
  65002. <param name="dbUrl" type="java.lang.String"/>
  65003. <param name="userName" type="java.lang.String"/>
  65004. <param name="passwd" type="java.lang.String"/>
  65005. <doc>
  65006. <![CDATA[Sets the DB access related fields in the JobConf.
  65007. @param job the job
  65008. @param driverClass JDBC Driver class name
  65009. @param dbUrl JDBC DB access URL.
  65010. @param userName DB access username
  65011. @param passwd DB access passwd]]>
  65012. </doc>
  65013. </method>
  65014. <method name="configureDB"
  65015. abstract="false" native="false" synchronized="false"
  65016. static="true" final="false" visibility="public"
  65017. deprecated="not deprecated">
  65018. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  65019. <param name="driverClass" type="java.lang.String"/>
  65020. <param name="dbUrl" type="java.lang.String"/>
  65021. <doc>
  65022. <![CDATA[Sets the DB access related fields in the JobConf.
  65023. @param job the job
  65024. @param driverClass JDBC Driver class name
  65025. @param dbUrl JDBC DB access URL.]]>
  65026. </doc>
  65027. </method>
  65028. <field name="DRIVER_CLASS_PROPERTY" type="java.lang.String"
  65029. transient="false" volatile="false"
  65030. static="true" final="true" visibility="public"
  65031. deprecated="not deprecated">
  65032. <doc>
  65033. <![CDATA[The JDBC Driver class name]]>
  65034. </doc>
  65035. </field>
  65036. <field name="URL_PROPERTY" type="java.lang.String"
  65037. transient="false" volatile="false"
  65038. static="true" final="true" visibility="public"
  65039. deprecated="not deprecated">
  65040. <doc>
  65041. <![CDATA[JDBC Database access URL]]>
  65042. </doc>
  65043. </field>
  65044. <field name="USERNAME_PROPERTY" type="java.lang.String"
  65045. transient="false" volatile="false"
  65046. static="true" final="true" visibility="public"
  65047. deprecated="not deprecated">
  65048. <doc>
  65049. <![CDATA[User name to access the database]]>
  65050. </doc>
  65051. </field>
  65052. <field name="PASSWORD_PROPERTY" type="java.lang.String"
  65053. transient="false" volatile="false"
  65054. static="true" final="true" visibility="public"
  65055. deprecated="not deprecated">
  65056. <doc>
  65057. <![CDATA[Password to access the database]]>
  65058. </doc>
  65059. </field>
  65060. <field name="INPUT_TABLE_NAME_PROPERTY" type="java.lang.String"
  65061. transient="false" volatile="false"
  65062. static="true" final="true" visibility="public"
  65063. deprecated="not deprecated">
  65064. <doc>
  65065. <![CDATA[Input table name]]>
  65066. </doc>
  65067. </field>
  65068. <field name="INPUT_FIELD_NAMES_PROPERTY" type="java.lang.String"
  65069. transient="false" volatile="false"
  65070. static="true" final="true" visibility="public"
  65071. deprecated="not deprecated">
  65072. <doc>
  65073. <![CDATA[Field names in the Input table]]>
  65074. </doc>
  65075. </field>
  65076. <field name="INPUT_CONDITIONS_PROPERTY" type="java.lang.String"
  65077. transient="false" volatile="false"
  65078. static="true" final="true" visibility="public"
  65079. deprecated="not deprecated">
  65080. <doc>
  65081. <![CDATA[WHERE clause in the input SELECT statement]]>
  65082. </doc>
  65083. </field>
  65084. <field name="INPUT_ORDER_BY_PROPERTY" type="java.lang.String"
  65085. transient="false" volatile="false"
  65086. static="true" final="true" visibility="public"
  65087. deprecated="not deprecated">
  65088. <doc>
  65089. <![CDATA[ORDER BY clause in the input SELECT statement]]>
  65090. </doc>
  65091. </field>
  65092. <field name="INPUT_QUERY" type="java.lang.String"
  65093. transient="false" volatile="false"
  65094. static="true" final="true" visibility="public"
  65095. deprecated="not deprecated">
  65096. <doc>
  65097. <![CDATA[Whole input query, exluding LIMIT...OFFSET]]>
  65098. </doc>
  65099. </field>
  65100. <field name="INPUT_COUNT_QUERY" type="java.lang.String"
  65101. transient="false" volatile="false"
  65102. static="true" final="true" visibility="public"
  65103. deprecated="not deprecated">
  65104. <doc>
  65105. <![CDATA[Input query to get the count of records]]>
  65106. </doc>
  65107. </field>
  65108. <field name="INPUT_CLASS_PROPERTY" type="java.lang.String"
  65109. transient="false" volatile="false"
  65110. static="true" final="true" visibility="public"
  65111. deprecated="not deprecated">
  65112. <doc>
  65113. <![CDATA[Class name implementing DBWritable which will hold input tuples]]>
  65114. </doc>
  65115. </field>
  65116. <field name="OUTPUT_TABLE_NAME_PROPERTY" type="java.lang.String"
  65117. transient="false" volatile="false"
  65118. static="true" final="true" visibility="public"
  65119. deprecated="not deprecated">
  65120. <doc>
  65121. <![CDATA[Output table name]]>
  65122. </doc>
  65123. </field>
  65124. <field name="OUTPUT_FIELD_NAMES_PROPERTY" type="java.lang.String"
  65125. transient="false" volatile="false"
  65126. static="true" final="true" visibility="public"
  65127. deprecated="not deprecated">
  65128. <doc>
  65129. <![CDATA[Field names in the Output table]]>
  65130. </doc>
  65131. </field>
  65132. <doc>
  65133. <![CDATA[A container for configuration property names for jobs with DB input/output.
  65134. <br>
  65135. The job can be configured using the static methods in this class,
  65136. {@link DBInputFormat}, and {@link DBOutputFormat}.
  65137. <p>
  65138. Alternatively, the properties can be set in the configuration with proper
  65139. values.
  65140. @see DBConfiguration#configureDB(JobConf, String, String, String, String)
  65141. @see DBInputFormat#setInput(JobConf, Class, String, String)
  65142. @see DBInputFormat#setInput(JobConf, Class, String, String, String, String...)
  65143. @see DBOutputFormat#setOutput(JobConf, String, String...)]]>
  65144. </doc>
  65145. </class>
  65146. <!-- end class org.apache.hadoop.mapred.lib.db.DBConfiguration -->
  65147. <!-- start class org.apache.hadoop.mapred.lib.db.DBInputFormat -->
  65148. <class name="DBInputFormat" extends="java.lang.Object"
  65149. abstract="false"
  65150. static="false" final="false" visibility="public"
  65151. deprecated="not deprecated">
  65152. <implements name="org.apache.hadoop.mapred.InputFormat"/>
  65153. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  65154. <constructor name="DBInputFormat"
  65155. static="false" final="false" visibility="public"
  65156. deprecated="not deprecated">
  65157. </constructor>
  65158. <method name="configure"
  65159. abstract="false" native="false" synchronized="false"
  65160. static="false" final="false" visibility="public"
  65161. deprecated="not deprecated">
  65162. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  65163. <doc>
  65164. <![CDATA[{@inheritDoc}]]>
  65165. </doc>
  65166. </method>
  65167. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  65168. abstract="false" native="false" synchronized="false"
  65169. static="false" final="false" visibility="public"
  65170. deprecated="not deprecated">
  65171. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  65172. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  65173. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  65174. <exception name="IOException" type="java.io.IOException"/>
  65175. <doc>
  65176. <![CDATA[{@inheritDoc}]]>
  65177. </doc>
  65178. </method>
  65179. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  65180. abstract="false" native="false" synchronized="false"
  65181. static="false" final="false" visibility="public"
  65182. deprecated="not deprecated">
  65183. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  65184. <param name="chunks" type="int"/>
  65185. <exception name="IOException" type="java.io.IOException"/>
  65186. <doc>
  65187. <![CDATA[{@inheritDoc}]]>
  65188. </doc>
  65189. </method>
  65190. <method name="getCountQuery" return="java.lang.String"
  65191. abstract="false" native="false" synchronized="false"
  65192. static="false" final="false" visibility="protected"
  65193. deprecated="not deprecated">
  65194. <doc>
  65195. <![CDATA[Returns the query for getting the total number of rows,
  65196. subclasses can override this for custom behaviour.]]>
  65197. </doc>
  65198. </method>
  65199. <method name="setInput"
  65200. abstract="false" native="false" synchronized="false"
  65201. static="true" final="false" visibility="public"
  65202. deprecated="not deprecated">
  65203. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  65204. <param name="inputClass" type="java.lang.Class"/>
  65205. <param name="tableName" type="java.lang.String"/>
  65206. <param name="conditions" type="java.lang.String"/>
  65207. <param name="orderBy" type="java.lang.String"/>
  65208. <param name="fieldNames" type="java.lang.String[]"/>
  65209. <doc>
  65210. <![CDATA[Initializes the map-part of the job with the appropriate input settings.
  65211. @param job The job
  65212. @param inputClass the class object implementing DBWritable, which is the
  65213. Java object holding tuple fields.
  65214. @param tableName The table to read data from
  65215. @param conditions The condition which to select data with, eg. '(updated >
  65216. 20070101 AND length > 0)'
  65217. @param orderBy the fieldNames in the orderBy clause.
  65218. @param fieldNames The field names in the table
  65219. @see #setInput(JobConf, Class, String, String)]]>
  65220. </doc>
  65221. </method>
  65222. <method name="setInput"
  65223. abstract="false" native="false" synchronized="false"
  65224. static="true" final="false" visibility="public"
  65225. deprecated="not deprecated">
  65226. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  65227. <param name="inputClass" type="java.lang.Class"/>
  65228. <param name="inputQuery" type="java.lang.String"/>
  65229. <param name="inputCountQuery" type="java.lang.String"/>
  65230. <doc>
  65231. <![CDATA[Initializes the map-part of the job with the appropriate input settings.
  65232. @param job The job
  65233. @param inputClass the class object implementing DBWritable, which is the
  65234. Java object holding tuple fields.
  65235. @param inputQuery the input query to select fields. Example :
  65236. "SELECT f1, f2, f3 FROM Mytable ORDER BY f1"
  65237. @param inputCountQuery the input query that returns the number of records in
  65238. the table.
  65239. Example : "SELECT COUNT(f1) FROM Mytable"
  65240. @see #setInput(JobConf, Class, String, String, String, String...)]]>
  65241. </doc>
  65242. </method>
  65243. <doc>
  65244. <![CDATA[A InputFormat that reads input data from an SQL table.
  65245. <p>
  65246. DBInputFormat emits LongWritables containing the record number as
  65247. key and DBWritables as value.
  65248. The SQL query, and input class can be using one of the two
  65249. setInput methods.]]>
  65250. </doc>
  65251. </class>
  65252. <!-- end class org.apache.hadoop.mapred.lib.db.DBInputFormat -->
  65253. <!-- start class org.apache.hadoop.mapred.lib.db.DBInputFormat.DBInputSplit -->
  65254. <class name="DBInputFormat.DBInputSplit" extends="java.lang.Object"
  65255. abstract="false"
  65256. static="true" final="false" visibility="protected"
  65257. deprecated="not deprecated">
  65258. <implements name="org.apache.hadoop.mapred.InputSplit"/>
  65259. <constructor name="DBInputFormat.DBInputSplit"
  65260. static="false" final="false" visibility="public"
  65261. deprecated="not deprecated">
  65262. <doc>
  65263. <![CDATA[Default Constructor]]>
  65264. </doc>
  65265. </constructor>
  65266. <constructor name="DBInputFormat.DBInputSplit" type="long, long"
  65267. static="false" final="false" visibility="public"
  65268. deprecated="not deprecated">
  65269. <doc>
  65270. <![CDATA[Convenience Constructor
  65271. @param start the index of the first row to select
  65272. @param end the index of the last row to select]]>
  65273. </doc>
  65274. </constructor>
  65275. <method name="getLocations" return="java.lang.String[]"
  65276. abstract="false" native="false" synchronized="false"
  65277. static="false" final="false" visibility="public"
  65278. deprecated="not deprecated">
  65279. <exception name="IOException" type="java.io.IOException"/>
  65280. <doc>
  65281. <![CDATA[{@inheritDoc}]]>
  65282. </doc>
  65283. </method>
  65284. <method name="getStart" return="long"
  65285. abstract="false" native="false" synchronized="false"
  65286. static="false" final="false" visibility="public"
  65287. deprecated="not deprecated">
  65288. <doc>
  65289. <![CDATA[@return The index of the first row to select]]>
  65290. </doc>
  65291. </method>
  65292. <method name="getEnd" return="long"
  65293. abstract="false" native="false" synchronized="false"
  65294. static="false" final="false" visibility="public"
  65295. deprecated="not deprecated">
  65296. <doc>
  65297. <![CDATA[@return The index of the last row to select]]>
  65298. </doc>
  65299. </method>
  65300. <method name="getLength" return="long"
  65301. abstract="false" native="false" synchronized="false"
  65302. static="false" final="false" visibility="public"
  65303. deprecated="not deprecated">
  65304. <exception name="IOException" type="java.io.IOException"/>
  65305. <doc>
  65306. <![CDATA[@return The total row count in this split]]>
  65307. </doc>
  65308. </method>
  65309. <method name="readFields"
  65310. abstract="false" native="false" synchronized="false"
  65311. static="false" final="false" visibility="public"
  65312. deprecated="not deprecated">
  65313. <param name="input" type="java.io.DataInput"/>
  65314. <exception name="IOException" type="java.io.IOException"/>
  65315. <doc>
  65316. <![CDATA[{@inheritDoc}]]>
  65317. </doc>
  65318. </method>
  65319. <method name="write"
  65320. abstract="false" native="false" synchronized="false"
  65321. static="false" final="false" visibility="public"
  65322. deprecated="not deprecated">
  65323. <param name="output" type="java.io.DataOutput"/>
  65324. <exception name="IOException" type="java.io.IOException"/>
  65325. <doc>
  65326. <![CDATA[{@inheritDoc}]]>
  65327. </doc>
  65328. </method>
  65329. <doc>
  65330. <![CDATA[A InputSplit that spans a set of rows]]>
  65331. </doc>
  65332. </class>
  65333. <!-- end class org.apache.hadoop.mapred.lib.db.DBInputFormat.DBInputSplit -->
  65334. <!-- start class org.apache.hadoop.mapred.lib.db.DBInputFormat.DBRecordReader -->
  65335. <class name="DBInputFormat.DBRecordReader" extends="java.lang.Object"
  65336. abstract="false"
  65337. static="false" final="false" visibility="protected"
  65338. deprecated="not deprecated">
  65339. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  65340. <constructor name="DBInputFormat.DBRecordReader" type="org.apache.hadoop.mapred.lib.db.DBInputFormat.DBInputSplit, java.lang.Class, org.apache.hadoop.mapred.JobConf"
  65341. static="false" final="false" visibility="protected"
  65342. deprecated="not deprecated">
  65343. <exception name="SQLException" type="java.sql.SQLException"/>
  65344. <doc>
  65345. <![CDATA[@param split The InputSplit to read data for
  65346. @throws SQLException]]>
  65347. </doc>
  65348. </constructor>
  65349. <method name="getSelectQuery" return="java.lang.String"
  65350. abstract="false" native="false" synchronized="false"
  65351. static="false" final="false" visibility="protected"
  65352. deprecated="not deprecated">
  65353. <doc>
  65354. <![CDATA[Returns the query for selecting the records,
  65355. subclasses can override this for custom behaviour.]]>
  65356. </doc>
  65357. </method>
  65358. <method name="close"
  65359. abstract="false" native="false" synchronized="false"
  65360. static="false" final="false" visibility="public"
  65361. deprecated="not deprecated">
  65362. <exception name="IOException" type="java.io.IOException"/>
  65363. <doc>
  65364. <![CDATA[{@inheritDoc}]]>
  65365. </doc>
  65366. </method>
  65367. <method name="createKey" return="org.apache.hadoop.io.LongWritable"
  65368. abstract="false" native="false" synchronized="false"
  65369. static="false" final="false" visibility="public"
  65370. deprecated="not deprecated">
  65371. <doc>
  65372. <![CDATA[{@inheritDoc}]]>
  65373. </doc>
  65374. </method>
  65375. <method name="createValue" return="org.apache.hadoop.mapred.lib.db.DBWritable"
  65376. abstract="false" native="false" synchronized="false"
  65377. static="false" final="false" visibility="public"
  65378. deprecated="not deprecated">
  65379. <doc>
  65380. <![CDATA[{@inheritDoc}]]>
  65381. </doc>
  65382. </method>
  65383. <method name="getPos" return="long"
  65384. abstract="false" native="false" synchronized="false"
  65385. static="false" final="false" visibility="public"
  65386. deprecated="not deprecated">
  65387. <exception name="IOException" type="java.io.IOException"/>
  65388. <doc>
  65389. <![CDATA[{@inheritDoc}]]>
  65390. </doc>
  65391. </method>
  65392. <method name="getProgress" return="float"
  65393. abstract="false" native="false" synchronized="false"
  65394. static="false" final="false" visibility="public"
  65395. deprecated="not deprecated">
  65396. <exception name="IOException" type="java.io.IOException"/>
  65397. <doc>
  65398. <![CDATA[{@inheritDoc}]]>
  65399. </doc>
  65400. </method>
  65401. <method name="next" return="boolean"
  65402. abstract="false" native="false" synchronized="false"
  65403. static="false" final="false" visibility="public"
  65404. deprecated="not deprecated">
  65405. <param name="key" type="org.apache.hadoop.io.LongWritable"/>
  65406. <param name="value" type="org.apache.hadoop.mapred.lib.db.DBWritable"/>
  65407. <exception name="IOException" type="java.io.IOException"/>
  65408. <doc>
  65409. <![CDATA[{@inheritDoc}]]>
  65410. </doc>
  65411. </method>
  65412. <doc>
  65413. <![CDATA[A RecordReader that reads records from a SQL table.
  65414. Emits LongWritables containing the record number as
  65415. key and DBWritables as value.]]>
  65416. </doc>
  65417. </class>
  65418. <!-- end class org.apache.hadoop.mapred.lib.db.DBInputFormat.DBRecordReader -->
  65419. <!-- start class org.apache.hadoop.mapred.lib.db.DBInputFormat.NullDBWritable -->
  65420. <class name="DBInputFormat.NullDBWritable" extends="java.lang.Object"
  65421. abstract="false"
  65422. static="true" final="false" visibility="public"
  65423. deprecated="not deprecated">
  65424. <implements name="org.apache.hadoop.mapred.lib.db.DBWritable"/>
  65425. <implements name="org.apache.hadoop.io.Writable"/>
  65426. <constructor name="DBInputFormat.NullDBWritable"
  65427. static="false" final="false" visibility="public"
  65428. deprecated="not deprecated">
  65429. </constructor>
  65430. <method name="readFields"
  65431. abstract="false" native="false" synchronized="false"
  65432. static="false" final="false" visibility="public"
  65433. deprecated="not deprecated">
  65434. <param name="in" type="java.io.DataInput"/>
  65435. <exception name="IOException" type="java.io.IOException"/>
  65436. </method>
  65437. <method name="readFields"
  65438. abstract="false" native="false" synchronized="false"
  65439. static="false" final="false" visibility="public"
  65440. deprecated="not deprecated">
  65441. <param name="arg0" type="java.sql.ResultSet"/>
  65442. <exception name="SQLException" type="java.sql.SQLException"/>
  65443. </method>
  65444. <method name="write"
  65445. abstract="false" native="false" synchronized="false"
  65446. static="false" final="false" visibility="public"
  65447. deprecated="not deprecated">
  65448. <param name="out" type="java.io.DataOutput"/>
  65449. <exception name="IOException" type="java.io.IOException"/>
  65450. </method>
  65451. <method name="write"
  65452. abstract="false" native="false" synchronized="false"
  65453. static="false" final="false" visibility="public"
  65454. deprecated="not deprecated">
  65455. <param name="arg0" type="java.sql.PreparedStatement"/>
  65456. <exception name="SQLException" type="java.sql.SQLException"/>
  65457. </method>
  65458. <doc>
  65459. <![CDATA[A Class that does nothing, implementing DBWritable]]>
  65460. </doc>
  65461. </class>
  65462. <!-- end class org.apache.hadoop.mapred.lib.db.DBInputFormat.NullDBWritable -->
  65463. <!-- start class org.apache.hadoop.mapred.lib.db.DBOutputFormat -->
  65464. <class name="DBOutputFormat" extends="java.lang.Object"
  65465. abstract="false"
  65466. static="false" final="false" visibility="public"
  65467. deprecated="not deprecated">
  65468. <implements name="org.apache.hadoop.mapred.OutputFormat"/>
  65469. <constructor name="DBOutputFormat"
  65470. static="false" final="false" visibility="public"
  65471. deprecated="not deprecated">
  65472. </constructor>
  65473. <method name="constructQuery" return="java.lang.String"
  65474. abstract="false" native="false" synchronized="false"
  65475. static="false" final="false" visibility="protected"
  65476. deprecated="not deprecated">
  65477. <param name="table" type="java.lang.String"/>
  65478. <param name="fieldNames" type="java.lang.String[]"/>
  65479. <doc>
  65480. <![CDATA[Constructs the query used as the prepared statement to insert data.
  65481. @param table
  65482. the table to insert into
  65483. @param fieldNames
  65484. the fields to insert into. If field names are unknown, supply an
  65485. array of nulls.]]>
  65486. </doc>
  65487. </method>
  65488. <method name="checkOutputSpecs"
  65489. abstract="false" native="false" synchronized="false"
  65490. static="false" final="false" visibility="public"
  65491. deprecated="not deprecated">
  65492. <param name="filesystem" type="org.apache.hadoop.fs.FileSystem"/>
  65493. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  65494. <exception name="IOException" type="java.io.IOException"/>
  65495. <doc>
  65496. <![CDATA[{@inheritDoc}]]>
  65497. </doc>
  65498. </method>
  65499. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  65500. abstract="false" native="false" synchronized="false"
  65501. static="false" final="false" visibility="public"
  65502. deprecated="not deprecated">
  65503. <param name="filesystem" type="org.apache.hadoop.fs.FileSystem"/>
  65504. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  65505. <param name="name" type="java.lang.String"/>
  65506. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  65507. <exception name="IOException" type="java.io.IOException"/>
  65508. <doc>
  65509. <![CDATA[{@inheritDoc}]]>
  65510. </doc>
  65511. </method>
  65512. <method name="setOutput"
  65513. abstract="false" native="false" synchronized="false"
  65514. static="true" final="false" visibility="public"
  65515. deprecated="not deprecated">
  65516. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  65517. <param name="tableName" type="java.lang.String"/>
  65518. <param name="fieldNames" type="java.lang.String[]"/>
  65519. <doc>
  65520. <![CDATA[Initializes the reduce-part of the job with the appropriate output settings
  65521. @param job
  65522. The job
  65523. @param tableName
  65524. The table to insert data into
  65525. @param fieldNames
  65526. The field names in the table. If unknown, supply the appropriate
  65527. number of nulls.]]>
  65528. </doc>
  65529. </method>
  65530. <doc>
  65531. <![CDATA[A OutputFormat that sends the reduce output to a SQL table.
  65532. <p>
  65533. {@link DBOutputFormat} accepts &lt;key,value&gt; pairs, where
  65534. key has a type extending DBWritable. Returned {@link RecordWriter}
  65535. writes <b>only the key</b> to the database with a batch SQL query.]]>
  65536. </doc>
  65537. </class>
  65538. <!-- end class org.apache.hadoop.mapred.lib.db.DBOutputFormat -->
  65539. <!-- start class org.apache.hadoop.mapred.lib.db.DBOutputFormat.DBRecordWriter -->
  65540. <class name="DBOutputFormat.DBRecordWriter" extends="java.lang.Object"
  65541. abstract="false"
  65542. static="false" final="false" visibility="protected"
  65543. deprecated="not deprecated">
  65544. <implements name="org.apache.hadoop.mapred.RecordWriter"/>
  65545. <constructor name="DBOutputFormat.DBRecordWriter" type="java.sql.Connection, java.sql.PreparedStatement"
  65546. static="false" final="false" visibility="protected"
  65547. deprecated="not deprecated">
  65548. <exception name="SQLException" type="java.sql.SQLException"/>
  65549. </constructor>
  65550. <method name="close"
  65551. abstract="false" native="false" synchronized="false"
  65552. static="false" final="false" visibility="public"
  65553. deprecated="not deprecated">
  65554. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  65555. <exception name="IOException" type="java.io.IOException"/>
  65556. <doc>
  65557. <![CDATA[{@inheritDoc}]]>
  65558. </doc>
  65559. </method>
  65560. <method name="write"
  65561. abstract="false" native="false" synchronized="false"
  65562. static="false" final="false" visibility="public"
  65563. deprecated="not deprecated">
  65564. <param name="key" type="org.apache.hadoop.mapred.lib.db.DBWritable"/>
  65565. <param name="value" type="java.lang.Object"/>
  65566. <exception name="IOException" type="java.io.IOException"/>
  65567. <doc>
  65568. <![CDATA[{@inheritDoc}]]>
  65569. </doc>
  65570. </method>
  65571. <doc>
  65572. <![CDATA[A RecordWriter that writes the reduce output to a SQL table]]>
  65573. </doc>
  65574. </class>
  65575. <!-- end class org.apache.hadoop.mapred.lib.db.DBOutputFormat.DBRecordWriter -->
  65576. <!-- start interface org.apache.hadoop.mapred.lib.db.DBWritable -->
  65577. <interface name="DBWritable" abstract="true"
  65578. static="false" final="false" visibility="public"
  65579. deprecated="not deprecated">
  65580. <method name="write"
  65581. abstract="false" native="false" synchronized="false"
  65582. static="false" final="false" visibility="public"
  65583. deprecated="not deprecated">
  65584. <param name="statement" type="java.sql.PreparedStatement"/>
  65585. <exception name="SQLException" type="java.sql.SQLException"/>
  65586. <doc>
  65587. <![CDATA[Sets the fields of the object in the {@link PreparedStatement}.
  65588. @param statement the statement that the fields are put into.
  65589. @throws SQLException]]>
  65590. </doc>
  65591. </method>
  65592. <method name="readFields"
  65593. abstract="false" native="false" synchronized="false"
  65594. static="false" final="false" visibility="public"
  65595. deprecated="not deprecated">
  65596. <param name="resultSet" type="java.sql.ResultSet"/>
  65597. <exception name="SQLException" type="java.sql.SQLException"/>
  65598. <doc>
  65599. <![CDATA[Reads the fields of the object from the {@link ResultSet}.
  65600. @param resultSet the {@link ResultSet} to get the fields from.
  65601. @throws SQLException]]>
  65602. </doc>
  65603. </method>
  65604. <doc>
  65605. <![CDATA[Objects that are read from/written to a database should implement
  65606. <code>DBWritable</code>. DBWritable, is similar to {@link Writable}
  65607. except that the {@link #write(PreparedStatement)} method takes a
  65608. {@link PreparedStatement}, and {@link #readFields(ResultSet)}
  65609. takes a {@link ResultSet}.
  65610. <p>
  65611. Implementations are responsible for writing the fields of the object
  65612. to PreparedStatement, and reading the fields of the object from the
  65613. ResultSet.
  65614. <p>Example:</p>
  65615. If we have the following table in the database :
  65616. <pre>
  65617. CREATE TABLE MyTable (
  65618. counter INTEGER NOT NULL,
  65619. timestamp BIGINT NOT NULL,
  65620. );
  65621. </pre>
  65622. then we can read/write the tuples from/to the table with :
  65623. <p><pre>
  65624. public class MyWritable implements Writable, DBWritable {
  65625. // Some data
  65626. private int counter;
  65627. private long timestamp;
  65628. //Writable#write() implementation
  65629. public void write(DataOutput out) throws IOException {
  65630. out.writeInt(counter);
  65631. out.writeLong(timestamp);
  65632. }
  65633. //Writable#readFields() implementation
  65634. public void readFields(DataInput in) throws IOException {
  65635. counter = in.readInt();
  65636. timestamp = in.readLong();
  65637. }
  65638. public void write(PreparedStatement statement) throws SQLException {
  65639. statement.setInt(1, counter);
  65640. statement.setLong(2, timestamp);
  65641. }
  65642. public void readFields(ResultSet resultSet) throws SQLException {
  65643. counter = resultSet.getInt(1);
  65644. timestamp = resultSet.getLong(2);
  65645. }
  65646. }
  65647. </pre></p>]]>
  65648. </doc>
  65649. </interface>
  65650. <!-- end interface org.apache.hadoop.mapred.lib.db.DBWritable -->
  65651. </package>
  65652. <package name="org.apache.hadoop.mapred.pipes">
  65653. <!-- start class org.apache.hadoop.mapred.pipes.Submitter -->
  65654. <class name="Submitter" extends="org.apache.hadoop.conf.Configured"
  65655. abstract="false"
  65656. static="false" final="false" visibility="public"
  65657. deprecated="not deprecated">
  65658. <implements name="org.apache.hadoop.util.Tool"/>
  65659. <constructor name="Submitter"
  65660. static="false" final="false" visibility="public"
  65661. deprecated="not deprecated">
  65662. </constructor>
  65663. <constructor name="Submitter" type="org.apache.hadoop.conf.Configuration"
  65664. static="false" final="false" visibility="public"
  65665. deprecated="not deprecated">
  65666. </constructor>
  65667. <method name="getExecutable" return="java.lang.String"
  65668. abstract="false" native="false" synchronized="false"
  65669. static="true" final="false" visibility="public"
  65670. deprecated="not deprecated">
  65671. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  65672. <doc>
  65673. <![CDATA[Get the URI of the application's executable.
  65674. @param conf
  65675. @return the URI where the application's executable is located]]>
  65676. </doc>
  65677. </method>
  65678. <method name="setExecutable"
  65679. abstract="false" native="false" synchronized="false"
  65680. static="true" final="false" visibility="public"
  65681. deprecated="not deprecated">
  65682. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  65683. <param name="executable" type="java.lang.String"/>
  65684. <doc>
  65685. <![CDATA[Set the URI for the application's executable. Normally this is a hdfs:
  65686. location.
  65687. @param conf
  65688. @param executable The URI of the application's executable.]]>
  65689. </doc>
  65690. </method>
  65691. <method name="setIsJavaRecordReader"
  65692. abstract="false" native="false" synchronized="false"
  65693. static="true" final="false" visibility="public"
  65694. deprecated="not deprecated">
  65695. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  65696. <param name="value" type="boolean"/>
  65697. <doc>
  65698. <![CDATA[Set whether the job is using a Java RecordReader.
  65699. @param conf the configuration to modify
  65700. @param value the new value]]>
  65701. </doc>
  65702. </method>
  65703. <method name="getIsJavaRecordReader" return="boolean"
  65704. abstract="false" native="false" synchronized="false"
  65705. static="true" final="false" visibility="public"
  65706. deprecated="not deprecated">
  65707. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  65708. <doc>
  65709. <![CDATA[Check whether the job is using a Java RecordReader
  65710. @param conf the configuration to check
  65711. @return is it a Java RecordReader?]]>
  65712. </doc>
  65713. </method>
  65714. <method name="setIsJavaMapper"
  65715. abstract="false" native="false" synchronized="false"
  65716. static="true" final="false" visibility="public"
  65717. deprecated="not deprecated">
  65718. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  65719. <param name="value" type="boolean"/>
  65720. <doc>
  65721. <![CDATA[Set whether the Mapper is written in Java.
  65722. @param conf the configuration to modify
  65723. @param value the new value]]>
  65724. </doc>
  65725. </method>
  65726. <method name="getIsJavaMapper" return="boolean"
  65727. abstract="false" native="false" synchronized="false"
  65728. static="true" final="false" visibility="public"
  65729. deprecated="not deprecated">
  65730. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  65731. <doc>
  65732. <![CDATA[Check whether the job is using a Java Mapper.
  65733. @param conf the configuration to check
  65734. @return is it a Java Mapper?]]>
  65735. </doc>
  65736. </method>
  65737. <method name="setIsJavaReducer"
  65738. abstract="false" native="false" synchronized="false"
  65739. static="true" final="false" visibility="public"
  65740. deprecated="not deprecated">
  65741. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  65742. <param name="value" type="boolean"/>
  65743. <doc>
  65744. <![CDATA[Set whether the Reducer is written in Java.
  65745. @param conf the configuration to modify
  65746. @param value the new value]]>
  65747. </doc>
  65748. </method>
  65749. <method name="getIsJavaReducer" return="boolean"
  65750. abstract="false" native="false" synchronized="false"
  65751. static="true" final="false" visibility="public"
  65752. deprecated="not deprecated">
  65753. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  65754. <doc>
  65755. <![CDATA[Check whether the job is using a Java Reducer.
  65756. @param conf the configuration to check
  65757. @return is it a Java Reducer?]]>
  65758. </doc>
  65759. </method>
  65760. <method name="setIsJavaRecordWriter"
  65761. abstract="false" native="false" synchronized="false"
  65762. static="true" final="false" visibility="public"
  65763. deprecated="not deprecated">
  65764. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  65765. <param name="value" type="boolean"/>
  65766. <doc>
  65767. <![CDATA[Set whether the job will use a Java RecordWriter.
  65768. @param conf the configuration to modify
  65769. @param value the new value to set]]>
  65770. </doc>
  65771. </method>
  65772. <method name="getIsJavaRecordWriter" return="boolean"
  65773. abstract="false" native="false" synchronized="false"
  65774. static="true" final="false" visibility="public"
  65775. deprecated="not deprecated">
  65776. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  65777. <doc>
  65778. <![CDATA[Will the reduce use a Java RecordWriter?
  65779. @param conf the configuration to check
  65780. @return true, if the output of the job will be written by Java]]>
  65781. </doc>
  65782. </method>
  65783. <method name="getKeepCommandFile" return="boolean"
  65784. abstract="false" native="false" synchronized="false"
  65785. static="true" final="false" visibility="public"
  65786. deprecated="not deprecated">
  65787. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  65788. <doc>
  65789. <![CDATA[Does the user want to keep the command file for debugging? If this is
  65790. true, pipes will write a copy of the command data to a file in the
  65791. task directory named "downlink.data", which may be used to run the C++
  65792. program under the debugger. You probably also want to set
  65793. JobConf.setKeepFailedTaskFiles(true) to keep the entire directory from
  65794. being deleted.
  65795. To run using the data file, set the environment variable
  65796. "hadoop.pipes.command.file" to point to the file.
  65797. @param conf the configuration to check
  65798. @return will the framework save the command file?]]>
  65799. </doc>
  65800. </method>
  65801. <method name="setKeepCommandFile"
  65802. abstract="false" native="false" synchronized="false"
  65803. static="true" final="false" visibility="public"
  65804. deprecated="not deprecated">
  65805. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  65806. <param name="keep" type="boolean"/>
  65807. <doc>
  65808. <![CDATA[Set whether to keep the command file for debugging
  65809. @param conf the configuration to modify
  65810. @param keep the new value]]>
  65811. </doc>
  65812. </method>
  65813. <method name="submitJob" return="org.apache.hadoop.mapred.RunningJob"
  65814. abstract="false" native="false" synchronized="false"
  65815. static="true" final="false" visibility="public"
  65816. deprecated="Use {@link Submitter#runJob(JobConf)}">
  65817. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  65818. <exception name="IOException" type="java.io.IOException"/>
  65819. <doc>
  65820. <![CDATA[Submit a job to the map/reduce cluster. All of the necessary modifications
  65821. to the job to run under pipes are made to the configuration.
  65822. @param conf the job to submit to the cluster (MODIFIED)
  65823. @throws IOException
  65824. @deprecated Use {@link Submitter#runJob(JobConf)}]]>
  65825. </doc>
  65826. </method>
  65827. <method name="runJob" return="org.apache.hadoop.mapred.RunningJob"
  65828. abstract="false" native="false" synchronized="false"
  65829. static="true" final="false" visibility="public"
  65830. deprecated="not deprecated">
  65831. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  65832. <exception name="IOException" type="java.io.IOException"/>
  65833. <doc>
  65834. <![CDATA[Submit a job to the map/reduce cluster. All of the necessary modifications
  65835. to the job to run under pipes are made to the configuration.
  65836. @param conf the job to submit to the cluster (MODIFIED)
  65837. @throws IOException]]>
  65838. </doc>
  65839. </method>
  65840. <method name="jobSubmit" return="org.apache.hadoop.mapred.RunningJob"
  65841. abstract="false" native="false" synchronized="false"
  65842. static="true" final="false" visibility="public"
  65843. deprecated="not deprecated">
  65844. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  65845. <exception name="IOException" type="java.io.IOException"/>
  65846. <doc>
  65847. <![CDATA[Submit a job to the Map-Reduce framework.
  65848. This returns a handle to the {@link RunningJob} which can be used to track
  65849. the running-job.
  65850. @param conf the job configuration.
  65851. @return a handle to the {@link RunningJob} which can be used to track the
  65852. running-job.
  65853. @throws IOException]]>
  65854. </doc>
  65855. </method>
  65856. <method name="run" return="int"
  65857. abstract="false" native="false" synchronized="false"
  65858. static="false" final="false" visibility="public"
  65859. deprecated="not deprecated">
  65860. <param name="args" type="java.lang.String[]"/>
  65861. <exception name="Exception" type="java.lang.Exception"/>
  65862. </method>
  65863. <method name="main"
  65864. abstract="false" native="false" synchronized="false"
  65865. static="true" final="false" visibility="public"
  65866. deprecated="not deprecated">
  65867. <param name="args" type="java.lang.String[]"/>
  65868. <exception name="Exception" type="java.lang.Exception"/>
  65869. <doc>
  65870. <![CDATA[Submit a pipes job based on the command line arguments.
  65871. @param args]]>
  65872. </doc>
  65873. </method>
  65874. <field name="LOG" type="org.apache.commons.logging.Log"
  65875. transient="false" volatile="false"
  65876. static="true" final="true" visibility="protected"
  65877. deprecated="not deprecated">
  65878. </field>
  65879. <doc>
  65880. <![CDATA[The main entry point and job submitter. It may either be used as a command
  65881. line-based or API-based method to launch Pipes jobs.]]>
  65882. </doc>
  65883. </class>
  65884. <!-- end class org.apache.hadoop.mapred.pipes.Submitter -->
  65885. </package>
  65886. <package name="org.apache.hadoop.mapred.tools">
  65887. <!-- start class org.apache.hadoop.mapred.tools.MRAdmin -->
  65888. <class name="MRAdmin" extends="org.apache.hadoop.conf.Configured"
  65889. abstract="false"
  65890. static="false" final="false" visibility="public"
  65891. deprecated="not deprecated">
  65892. <implements name="org.apache.hadoop.util.Tool"/>
  65893. <constructor name="MRAdmin"
  65894. static="false" final="false" visibility="public"
  65895. deprecated="not deprecated">
  65896. </constructor>
  65897. <constructor name="MRAdmin" type="org.apache.hadoop.conf.Configuration"
  65898. static="false" final="false" visibility="public"
  65899. deprecated="not deprecated">
  65900. </constructor>
  65901. <method name="refreshSuperUserGroupsConfiguration" return="int"
  65902. abstract="false" native="false" synchronized="false"
  65903. static="false" final="false" visibility="public"
  65904. deprecated="not deprecated">
  65905. <exception name="IOException" type="java.io.IOException"/>
  65906. <doc>
  65907. <![CDATA[refreshSuperUserGroupsConfiguration {@link JobTracker}.
  65908. @return exitcode 0 on success, non-zero on failure
  65909. @throws IOException]]>
  65910. </doc>
  65911. </method>
  65912. <method name="run" return="int"
  65913. abstract="false" native="false" synchronized="false"
  65914. static="false" final="false" visibility="public"
  65915. deprecated="not deprecated">
  65916. <param name="args" type="java.lang.String[]"/>
  65917. <exception name="Exception" type="java.lang.Exception"/>
  65918. </method>
  65919. <method name="main"
  65920. abstract="false" native="false" synchronized="false"
  65921. static="true" final="false" visibility="public"
  65922. deprecated="not deprecated">
  65923. <param name="args" type="java.lang.String[]"/>
  65924. <exception name="Exception" type="java.lang.Exception"/>
  65925. </method>
  65926. <doc>
  65927. <![CDATA[Administrative access to Hadoop Map-Reduce.
  65928. Currently it only provides the ability to connect to the {@link JobTracker}
  65929. and 1) refresh the service-level authorization policy, 2) refresh queue acl
  65930. properties.]]>
  65931. </doc>
  65932. </class>
  65933. <!-- end class org.apache.hadoop.mapred.tools.MRAdmin -->
  65934. </package>
  65935. <package name="org.apache.hadoop.mapreduce">
  65936. <!-- start class org.apache.hadoop.mapreduce.ClusterMetrics -->
  65937. <class name="ClusterMetrics" extends="java.lang.Object"
  65938. abstract="false"
  65939. static="false" final="false" visibility="public"
  65940. deprecated="not deprecated">
  65941. <implements name="org.apache.hadoop.io.Writable"/>
  65942. <constructor name="ClusterMetrics"
  65943. static="false" final="false" visibility="public"
  65944. deprecated="not deprecated">
  65945. </constructor>
  65946. <constructor name="ClusterMetrics" type="int, int, int, int, int, int, int, int, int, int, int, int, int"
  65947. static="false" final="false" visibility="public"
  65948. deprecated="not deprecated">
  65949. </constructor>
  65950. <method name="getRunningMaps" return="int"
  65951. abstract="false" native="false" synchronized="false"
  65952. static="false" final="false" visibility="public"
  65953. deprecated="not deprecated">
  65954. <doc>
  65955. <![CDATA[Get the number of running map tasks in the cluster.
  65956. @return running maps]]>
  65957. </doc>
  65958. </method>
  65959. <method name="getRunningReduces" return="int"
  65960. abstract="false" native="false" synchronized="false"
  65961. static="false" final="false" visibility="public"
  65962. deprecated="not deprecated">
  65963. <doc>
  65964. <![CDATA[Get the number of running reduce tasks in the cluster.
  65965. @return running reduces]]>
  65966. </doc>
  65967. </method>
  65968. <method name="getOccupiedMapSlots" return="int"
  65969. abstract="false" native="false" synchronized="false"
  65970. static="false" final="false" visibility="public"
  65971. deprecated="not deprecated">
  65972. <doc>
  65973. <![CDATA[Get number of occupied map slots in the cluster.
  65974. @return occupied map slot count]]>
  65975. </doc>
  65976. </method>
  65977. <method name="getOccupiedReduceSlots" return="int"
  65978. abstract="false" native="false" synchronized="false"
  65979. static="false" final="false" visibility="public"
  65980. deprecated="not deprecated">
  65981. <doc>
  65982. <![CDATA[Get the number of occupied reduce slots in the cluster.
  65983. @return occupied reduce slot count]]>
  65984. </doc>
  65985. </method>
  65986. <method name="getReservedMapSlots" return="int"
  65987. abstract="false" native="false" synchronized="false"
  65988. static="false" final="false" visibility="public"
  65989. deprecated="not deprecated">
  65990. <doc>
  65991. <![CDATA[Get number of reserved map slots in the cluster.
  65992. @return reserved map slot count]]>
  65993. </doc>
  65994. </method>
  65995. <method name="getReservedReduceSlots" return="int"
  65996. abstract="false" native="false" synchronized="false"
  65997. static="false" final="false" visibility="public"
  65998. deprecated="not deprecated">
  65999. <doc>
  66000. <![CDATA[Get the number of reserved reduce slots in the cluster.
  66001. @return reserved reduce slot count]]>
  66002. </doc>
  66003. </method>
  66004. <method name="getMapSlotCapacity" return="int"
  66005. abstract="false" native="false" synchronized="false"
  66006. static="false" final="false" visibility="public"
  66007. deprecated="not deprecated">
  66008. <doc>
  66009. <![CDATA[Get the total number of map slots in the cluster.
  66010. @return map slot capacity]]>
  66011. </doc>
  66012. </method>
  66013. <method name="getReduceSlotCapacity" return="int"
  66014. abstract="false" native="false" synchronized="false"
  66015. static="false" final="false" visibility="public"
  66016. deprecated="not deprecated">
  66017. <doc>
  66018. <![CDATA[Get the total number of reduce slots in the cluster.
  66019. @return reduce slot capacity]]>
  66020. </doc>
  66021. </method>
  66022. <method name="getTotalJobSubmissions" return="int"
  66023. abstract="false" native="false" synchronized="false"
  66024. static="false" final="false" visibility="public"
  66025. deprecated="not deprecated">
  66026. <doc>
  66027. <![CDATA[Get the total number of job submissions in the cluster.
  66028. @return total number of job submissions]]>
  66029. </doc>
  66030. </method>
  66031. <method name="getTaskTrackerCount" return="int"
  66032. abstract="false" native="false" synchronized="false"
  66033. static="false" final="false" visibility="public"
  66034. deprecated="not deprecated">
  66035. <doc>
  66036. <![CDATA[Get the number of active trackers in the cluster.
  66037. @return active tracker count.]]>
  66038. </doc>
  66039. </method>
  66040. <method name="getBlackListedTaskTrackerCount" return="int"
  66041. abstract="false" native="false" synchronized="false"
  66042. static="false" final="false" visibility="public"
  66043. deprecated="not deprecated">
  66044. <doc>
  66045. <![CDATA[Get the number of blacklisted trackers in the cluster.
  66046. @return blacklisted tracker count]]>
  66047. </doc>
  66048. </method>
  66049. <method name="getGrayListedTaskTrackerCount" return="int"
  66050. abstract="false" native="false" synchronized="false"
  66051. static="false" final="false" visibility="public"
  66052. deprecated="not deprecated">
  66053. <doc>
  66054. <![CDATA[Get the number of graylisted trackers in the cluster.
  66055. @return graylisted tracker count]]>
  66056. </doc>
  66057. </method>
  66058. <method name="getDecommissionedTaskTrackerCount" return="int"
  66059. abstract="false" native="false" synchronized="false"
  66060. static="false" final="false" visibility="public"
  66061. deprecated="not deprecated">
  66062. <doc>
  66063. <![CDATA[Get the number of decommissioned trackers in the cluster.
  66064. @return decommissioned tracker count]]>
  66065. </doc>
  66066. </method>
  66067. <method name="readFields"
  66068. abstract="false" native="false" synchronized="false"
  66069. static="false" final="false" visibility="public"
  66070. deprecated="not deprecated">
  66071. <param name="in" type="java.io.DataInput"/>
  66072. <exception name="IOException" type="java.io.IOException"/>
  66073. </method>
  66074. <method name="write"
  66075. abstract="false" native="false" synchronized="false"
  66076. static="false" final="false" visibility="public"
  66077. deprecated="not deprecated">
  66078. <param name="out" type="java.io.DataOutput"/>
  66079. <exception name="IOException" type="java.io.IOException"/>
  66080. </method>
  66081. <doc>
  66082. <![CDATA[Status information on the current state of the Map-Reduce cluster.
  66083. <p><code>ClusterMetrics</code> provides clients with information such as:
  66084. <ol>
  66085. <li>
  66086. Size of the cluster.
  66087. </li>
  66088. <li>
  66089. Number of blacklisted and decommissioned trackers.
  66090. </li>
  66091. <li>
  66092. Slot capacity of the cluster.
  66093. </li>
  66094. <li>
  66095. The number of currently occupied/reserved map & reduce slots.
  66096. </li>
  66097. <li>
  66098. The number of currently running map & reduce tasks.
  66099. </li>
  66100. <li>
  66101. The number of job submissions.
  66102. </li>
  66103. </ol></p>]]>
  66104. </doc>
  66105. </class>
  66106. <!-- end class org.apache.hadoop.mapreduce.ClusterMetrics -->
  66107. <!-- start class org.apache.hadoop.mapreduce.Counter -->
  66108. <class name="Counter" extends="java.lang.Object"
  66109. abstract="false"
  66110. static="false" final="false" visibility="public"
  66111. deprecated="not deprecated">
  66112. <implements name="org.apache.hadoop.io.Writable"/>
  66113. <constructor name="Counter"
  66114. static="false" final="false" visibility="protected"
  66115. deprecated="not deprecated">
  66116. </constructor>
  66117. <constructor name="Counter" type="java.lang.String, java.lang.String"
  66118. static="false" final="false" visibility="protected"
  66119. deprecated="not deprecated">
  66120. </constructor>
  66121. <method name="setDisplayName"
  66122. abstract="false" native="false" synchronized="true"
  66123. static="false" final="false" visibility="protected"
  66124. deprecated="not deprecated">
  66125. <param name="displayName" type="java.lang.String"/>
  66126. </method>
  66127. <method name="readFields"
  66128. abstract="false" native="false" synchronized="true"
  66129. static="false" final="false" visibility="public"
  66130. deprecated="not deprecated">
  66131. <param name="in" type="java.io.DataInput"/>
  66132. <exception name="IOException" type="java.io.IOException"/>
  66133. <doc>
  66134. <![CDATA[Read the binary representation of the counter]]>
  66135. </doc>
  66136. </method>
  66137. <method name="write"
  66138. abstract="false" native="false" synchronized="true"
  66139. static="false" final="false" visibility="public"
  66140. deprecated="not deprecated">
  66141. <param name="out" type="java.io.DataOutput"/>
  66142. <exception name="IOException" type="java.io.IOException"/>
  66143. <doc>
  66144. <![CDATA[Write the binary representation of the counter]]>
  66145. </doc>
  66146. </method>
  66147. <method name="getName" return="java.lang.String"
  66148. abstract="false" native="false" synchronized="true"
  66149. static="false" final="false" visibility="public"
  66150. deprecated="not deprecated">
  66151. </method>
  66152. <method name="getDisplayName" return="java.lang.String"
  66153. abstract="false" native="false" synchronized="true"
  66154. static="false" final="false" visibility="public"
  66155. deprecated="not deprecated">
  66156. <doc>
  66157. <![CDATA[Get the name of the counter.
  66158. @return the user facing name of the counter]]>
  66159. </doc>
  66160. </method>
  66161. <method name="getValue" return="long"
  66162. abstract="false" native="false" synchronized="true"
  66163. static="false" final="false" visibility="public"
  66164. deprecated="not deprecated">
  66165. <doc>
  66166. <![CDATA[What is the current value of this counter?
  66167. @return the current value]]>
  66168. </doc>
  66169. </method>
  66170. <method name="setValue"
  66171. abstract="false" native="false" synchronized="true"
  66172. static="false" final="false" visibility="public"
  66173. deprecated="not deprecated">
  66174. <param name="value" type="long"/>
  66175. <doc>
  66176. <![CDATA[Set this counter by the given value
  66177. @param value the value to set]]>
  66178. </doc>
  66179. </method>
  66180. <method name="increment"
  66181. abstract="false" native="false" synchronized="true"
  66182. static="false" final="false" visibility="public"
  66183. deprecated="not deprecated">
  66184. <param name="incr" type="long"/>
  66185. <doc>
  66186. <![CDATA[Increment this counter by the given value
  66187. @param incr the value to increase this counter by]]>
  66188. </doc>
  66189. </method>
  66190. <method name="equals" return="boolean"
  66191. abstract="false" native="false" synchronized="true"
  66192. static="false" final="false" visibility="public"
  66193. deprecated="not deprecated">
  66194. <param name="genericRight" type="java.lang.Object"/>
  66195. </method>
  66196. <method name="hashCode" return="int"
  66197. abstract="false" native="false" synchronized="true"
  66198. static="false" final="false" visibility="public"
  66199. deprecated="not deprecated">
  66200. </method>
  66201. <doc>
  66202. <![CDATA[A named counter that tracks the progress of a map/reduce job.
  66203. <p><code>Counters</code> represent global counters, defined either by the
  66204. Map-Reduce framework or applications. Each <code>Counter</code> is named by
  66205. an {@link Enum} and has a long for the value.</p>
  66206. <p><code>Counters</code> are bunched into Groups, each comprising of
  66207. counters from a particular <code>Enum</code> class.]]>
  66208. </doc>
  66209. </class>
  66210. <!-- end class org.apache.hadoop.mapreduce.Counter -->
  66211. <!-- start class org.apache.hadoop.mapreduce.CounterGroup -->
  66212. <class name="CounterGroup" extends="java.lang.Object"
  66213. abstract="false"
  66214. static="false" final="false" visibility="public"
  66215. deprecated="not deprecated">
  66216. <implements name="org.apache.hadoop.io.Writable"/>
  66217. <implements name="java.lang.Iterable"/>
  66218. <constructor name="CounterGroup" type="java.lang.String"
  66219. static="false" final="false" visibility="protected"
  66220. deprecated="not deprecated">
  66221. </constructor>
  66222. <constructor name="CounterGroup" type="java.lang.String, java.lang.String"
  66223. static="false" final="false" visibility="protected"
  66224. deprecated="not deprecated">
  66225. </constructor>
  66226. <method name="getName" return="java.lang.String"
  66227. abstract="false" native="false" synchronized="true"
  66228. static="false" final="false" visibility="public"
  66229. deprecated="not deprecated">
  66230. <doc>
  66231. <![CDATA[Get the internal name of the group
  66232. @return the internal name]]>
  66233. </doc>
  66234. </method>
  66235. <method name="getDisplayName" return="java.lang.String"
  66236. abstract="false" native="false" synchronized="true"
  66237. static="false" final="false" visibility="public"
  66238. deprecated="not deprecated">
  66239. <doc>
  66240. <![CDATA[Get the display name of the group.
  66241. @return the human readable name]]>
  66242. </doc>
  66243. </method>
  66244. <method name="findCounter" return="org.apache.hadoop.mapreduce.Counter"
  66245. abstract="false" native="false" synchronized="false"
  66246. static="false" final="false" visibility="protected"
  66247. deprecated="not deprecated">
  66248. <param name="counterName" type="java.lang.String"/>
  66249. <param name="displayName" type="java.lang.String"/>
  66250. <doc>
  66251. <![CDATA[Internal to find a counter in a group.
  66252. @param counterName the name of the counter
  66253. @param displayName the display name of the counter
  66254. @return the counter that was found or added]]>
  66255. </doc>
  66256. </method>
  66257. <method name="findCounter" return="org.apache.hadoop.mapreduce.Counter"
  66258. abstract="false" native="false" synchronized="true"
  66259. static="false" final="false" visibility="public"
  66260. deprecated="not deprecated">
  66261. <param name="counterName" type="java.lang.String"/>
  66262. </method>
  66263. <method name="iterator" return="java.util.Iterator"
  66264. abstract="false" native="false" synchronized="true"
  66265. static="false" final="false" visibility="public"
  66266. deprecated="not deprecated">
  66267. </method>
  66268. <method name="write"
  66269. abstract="false" native="false" synchronized="true"
  66270. static="false" final="false" visibility="public"
  66271. deprecated="not deprecated">
  66272. <param name="out" type="java.io.DataOutput"/>
  66273. <exception name="IOException" type="java.io.IOException"/>
  66274. </method>
  66275. <method name="readFields"
  66276. abstract="false" native="false" synchronized="true"
  66277. static="false" final="false" visibility="public"
  66278. deprecated="not deprecated">
  66279. <param name="in" type="java.io.DataInput"/>
  66280. <exception name="IOException" type="java.io.IOException"/>
  66281. </method>
  66282. <method name="size" return="int"
  66283. abstract="false" native="false" synchronized="true"
  66284. static="false" final="false" visibility="public"
  66285. deprecated="not deprecated">
  66286. <doc>
  66287. <![CDATA[Returns the number of counters in this group.]]>
  66288. </doc>
  66289. </method>
  66290. <method name="equals" return="boolean"
  66291. abstract="false" native="false" synchronized="true"
  66292. static="false" final="false" visibility="public"
  66293. deprecated="not deprecated">
  66294. <param name="genericRight" type="java.lang.Object"/>
  66295. </method>
  66296. <method name="hashCode" return="int"
  66297. abstract="false" native="false" synchronized="true"
  66298. static="false" final="false" visibility="public"
  66299. deprecated="not deprecated">
  66300. </method>
  66301. <method name="incrAllCounters"
  66302. abstract="false" native="false" synchronized="true"
  66303. static="false" final="false" visibility="public"
  66304. deprecated="not deprecated">
  66305. <param name="rightGroup" type="org.apache.hadoop.mapreduce.CounterGroup"/>
  66306. </method>
  66307. <doc>
  66308. <![CDATA[A group of {@link Counter}s that logically belong together. Typically,
  66309. it is an {@link Enum} subclass and the counters are the values.]]>
  66310. </doc>
  66311. </class>
  66312. <!-- end class org.apache.hadoop.mapreduce.CounterGroup -->
  66313. <!-- start class org.apache.hadoop.mapreduce.Counters -->
  66314. <class name="Counters" extends="java.lang.Object"
  66315. abstract="false"
  66316. static="false" final="false" visibility="public"
  66317. deprecated="not deprecated">
  66318. <implements name="org.apache.hadoop.io.Writable"/>
  66319. <implements name="java.lang.Iterable"/>
  66320. <constructor name="Counters"
  66321. static="false" final="false" visibility="public"
  66322. deprecated="not deprecated">
  66323. </constructor>
  66324. <constructor name="Counters" type="org.apache.hadoop.mapred.Counters"
  66325. static="false" final="false" visibility="public"
  66326. deprecated="not deprecated">
  66327. </constructor>
  66328. <method name="findCounter" return="org.apache.hadoop.mapreduce.Counter"
  66329. abstract="false" native="false" synchronized="false"
  66330. static="false" final="false" visibility="public"
  66331. deprecated="not deprecated">
  66332. <param name="groupName" type="java.lang.String"/>
  66333. <param name="counterName" type="java.lang.String"/>
  66334. </method>
  66335. <method name="findCounter" return="org.apache.hadoop.mapreduce.Counter"
  66336. abstract="false" native="false" synchronized="true"
  66337. static="false" final="false" visibility="public"
  66338. deprecated="not deprecated">
  66339. <param name="key" type="java.lang.Enum"/>
  66340. <doc>
  66341. <![CDATA[Find the counter for the given enum. The same enum will always return the
  66342. same counter.
  66343. @param key the counter key
  66344. @return the matching counter object]]>
  66345. </doc>
  66346. </method>
  66347. <method name="getGroupNames" return="java.util.Collection"
  66348. abstract="false" native="false" synchronized="true"
  66349. static="false" final="false" visibility="public"
  66350. deprecated="not deprecated">
  66351. <doc>
  66352. <![CDATA[Returns the names of all counter classes.
  66353. @return Set of counter names.]]>
  66354. </doc>
  66355. </method>
  66356. <method name="iterator" return="java.util.Iterator"
  66357. abstract="false" native="false" synchronized="false"
  66358. static="false" final="false" visibility="public"
  66359. deprecated="not deprecated">
  66360. </method>
  66361. <method name="getGroup" return="org.apache.hadoop.mapreduce.CounterGroup"
  66362. abstract="false" native="false" synchronized="true"
  66363. static="false" final="false" visibility="public"
  66364. deprecated="not deprecated">
  66365. <param name="groupName" type="java.lang.String"/>
  66366. <doc>
  66367. <![CDATA[Returns the named counter group, or an empty group if there is none
  66368. with the specified name.]]>
  66369. </doc>
  66370. </method>
  66371. <method name="countCounters" return="int"
  66372. abstract="false" native="false" synchronized="true"
  66373. static="false" final="false" visibility="public"
  66374. deprecated="not deprecated">
  66375. <doc>
  66376. <![CDATA[Returns the total number of counters, by summing the number of counters
  66377. in each group.]]>
  66378. </doc>
  66379. </method>
  66380. <method name="write"
  66381. abstract="false" native="false" synchronized="true"
  66382. static="false" final="false" visibility="public"
  66383. deprecated="not deprecated">
  66384. <param name="out" type="java.io.DataOutput"/>
  66385. <exception name="IOException" type="java.io.IOException"/>
  66386. <doc>
  66387. <![CDATA[Write the set of groups.
  66388. The external format is:
  66389. #groups (groupName group)*
  66390. i.e. the number of groups followed by 0 or more groups, where each
  66391. group is of the form:
  66392. groupDisplayName #counters (false | true counter)*
  66393. where each counter is of the form:
  66394. name (false | true displayName) value]]>
  66395. </doc>
  66396. </method>
  66397. <method name="readFields"
  66398. abstract="false" native="false" synchronized="true"
  66399. static="false" final="false" visibility="public"
  66400. deprecated="not deprecated">
  66401. <param name="in" type="java.io.DataInput"/>
  66402. <exception name="IOException" type="java.io.IOException"/>
  66403. <doc>
  66404. <![CDATA[Read a set of groups.]]>
  66405. </doc>
  66406. </method>
  66407. <method name="toString" return="java.lang.String"
  66408. abstract="false" native="false" synchronized="true"
  66409. static="false" final="false" visibility="public"
  66410. deprecated="not deprecated">
  66411. <doc>
  66412. <![CDATA[Return textual representation of the counter values.]]>
  66413. </doc>
  66414. </method>
  66415. <method name="incrAllCounters"
  66416. abstract="false" native="false" synchronized="true"
  66417. static="false" final="false" visibility="public"
  66418. deprecated="not deprecated">
  66419. <param name="other" type="org.apache.hadoop.mapreduce.Counters"/>
  66420. <doc>
  66421. <![CDATA[Increments multiple counters by their amounts in another Counters
  66422. instance.
  66423. @param other the other Counters instance]]>
  66424. </doc>
  66425. </method>
  66426. <method name="equals" return="boolean"
  66427. abstract="false" native="false" synchronized="false"
  66428. static="false" final="false" visibility="public"
  66429. deprecated="not deprecated">
  66430. <param name="genericRight" type="java.lang.Object"/>
  66431. </method>
  66432. <method name="hashCode" return="int"
  66433. abstract="false" native="false" synchronized="false"
  66434. static="false" final="false" visibility="public"
  66435. deprecated="not deprecated">
  66436. </method>
  66437. </class>
  66438. <!-- end class org.apache.hadoop.mapreduce.Counters -->
  66439. <!-- start class org.apache.hadoop.mapreduce.ID -->
  66440. <class name="ID" extends="java.lang.Object"
  66441. abstract="true"
  66442. static="false" final="false" visibility="public"
  66443. deprecated="not deprecated">
  66444. <implements name="org.apache.hadoop.io.WritableComparable"/>
  66445. <constructor name="ID" type="int"
  66446. static="false" final="false" visibility="public"
  66447. deprecated="not deprecated">
  66448. <doc>
  66449. <![CDATA[constructs an ID object from the given int]]>
  66450. </doc>
  66451. </constructor>
  66452. <constructor name="ID"
  66453. static="false" final="false" visibility="protected"
  66454. deprecated="not deprecated">
  66455. </constructor>
  66456. <method name="getId" return="int"
  66457. abstract="false" native="false" synchronized="false"
  66458. static="false" final="false" visibility="public"
  66459. deprecated="not deprecated">
  66460. <doc>
  66461. <![CDATA[returns the int which represents the identifier]]>
  66462. </doc>
  66463. </method>
  66464. <method name="toString" return="java.lang.String"
  66465. abstract="false" native="false" synchronized="false"
  66466. static="false" final="false" visibility="public"
  66467. deprecated="not deprecated">
  66468. </method>
  66469. <method name="hashCode" return="int"
  66470. abstract="false" native="false" synchronized="false"
  66471. static="false" final="false" visibility="public"
  66472. deprecated="not deprecated">
  66473. </method>
  66474. <method name="equals" return="boolean"
  66475. abstract="false" native="false" synchronized="false"
  66476. static="false" final="false" visibility="public"
  66477. deprecated="not deprecated">
  66478. <param name="o" type="java.lang.Object"/>
  66479. </method>
  66480. <method name="compareTo" return="int"
  66481. abstract="false" native="false" synchronized="false"
  66482. static="false" final="false" visibility="public"
  66483. deprecated="not deprecated">
  66484. <param name="that" type="org.apache.hadoop.mapreduce.ID"/>
  66485. <doc>
  66486. <![CDATA[Compare IDs by associated numbers]]>
  66487. </doc>
  66488. </method>
  66489. <method name="readFields"
  66490. abstract="false" native="false" synchronized="false"
  66491. static="false" final="false" visibility="public"
  66492. deprecated="not deprecated">
  66493. <param name="in" type="java.io.DataInput"/>
  66494. <exception name="IOException" type="java.io.IOException"/>
  66495. </method>
  66496. <method name="write"
  66497. abstract="false" native="false" synchronized="false"
  66498. static="false" final="false" visibility="public"
  66499. deprecated="not deprecated">
  66500. <param name="out" type="java.io.DataOutput"/>
  66501. <exception name="IOException" type="java.io.IOException"/>
  66502. </method>
  66503. <field name="SEPARATOR" type="char"
  66504. transient="false" volatile="false"
  66505. static="true" final="true" visibility="protected"
  66506. deprecated="not deprecated">
  66507. </field>
  66508. <field name="id" type="int"
  66509. transient="false" volatile="false"
  66510. static="false" final="false" visibility="protected"
  66511. deprecated="not deprecated">
  66512. </field>
  66513. <doc>
  66514. <![CDATA[A general identifier, which internally stores the id
  66515. as an integer. This is the super class of {@link JobID},
  66516. {@link TaskID} and {@link TaskAttemptID}.
  66517. @see JobID
  66518. @see TaskID
  66519. @see TaskAttemptID]]>
  66520. </doc>
  66521. </class>
  66522. <!-- end class org.apache.hadoop.mapreduce.ID -->
  66523. <!-- start class org.apache.hadoop.mapreduce.InputFormat -->
  66524. <class name="InputFormat" extends="java.lang.Object"
  66525. abstract="true"
  66526. static="false" final="false" visibility="public"
  66527. deprecated="not deprecated">
  66528. <constructor name="InputFormat"
  66529. static="false" final="false" visibility="public"
  66530. deprecated="not deprecated">
  66531. </constructor>
  66532. <method name="getSplits" return="java.util.List"
  66533. abstract="true" native="false" synchronized="false"
  66534. static="false" final="false" visibility="public"
  66535. deprecated="not deprecated">
  66536. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  66537. <exception name="IOException" type="java.io.IOException"/>
  66538. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66539. <doc>
  66540. <![CDATA[Logically split the set of input files for the job.
  66541. <p>Each {@link InputSplit} is then assigned to an individual {@link Mapper}
  66542. for processing.</p>
  66543. <p><i>Note</i>: The split is a <i>logical</i> split of the inputs and the
  66544. input files are not physically split into chunks. For e.g. a split could
  66545. be <i>&lt;input-file-path, start, offset&gt;</i> tuple. The InputFormat
  66546. also creates the {@link RecordReader} to read the {@link InputSplit}.
  66547. @param context job configuration.
  66548. @return an array of {@link InputSplit}s for the job.]]>
  66549. </doc>
  66550. </method>
  66551. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  66552. abstract="true" native="false" synchronized="false"
  66553. static="false" final="false" visibility="public"
  66554. deprecated="not deprecated">
  66555. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  66556. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  66557. <exception name="IOException" type="java.io.IOException"/>
  66558. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66559. <doc>
  66560. <![CDATA[Create a record reader for a given split. The framework will call
  66561. {@link RecordReader#initialize(InputSplit, TaskAttemptContext)} before
  66562. the split is used.
  66563. @param split the split to be read
  66564. @param context the information about the task
  66565. @return a new record reader
  66566. @throws IOException
  66567. @throws InterruptedException]]>
  66568. </doc>
  66569. </method>
  66570. <doc>
  66571. <![CDATA[<code>InputFormat</code> describes the input-specification for a
  66572. Map-Reduce job.
  66573. <p>The Map-Reduce framework relies on the <code>InputFormat</code> of the
  66574. job to:<p>
  66575. <ol>
  66576. <li>
  66577. Validate the input-specification of the job.
  66578. <li>
  66579. Split-up the input file(s) into logical {@link InputSplit}s, each of
  66580. which is then assigned to an individual {@link Mapper}.
  66581. </li>
  66582. <li>
  66583. Provide the {@link RecordReader} implementation to be used to glean
  66584. input records from the logical <code>InputSplit</code> for processing by
  66585. the {@link Mapper}.
  66586. </li>
  66587. </ol>
  66588. <p>The default behavior of file-based {@link InputFormat}s, typically
  66589. sub-classes of {@link FileInputFormat}, is to split the
  66590. input into <i>logical</i> {@link InputSplit}s based on the total size, in
  66591. bytes, of the input files. However, the {@link FileSystem} blocksize of
  66592. the input files is treated as an upper bound for input splits. A lower bound
  66593. on the split size can be set via
  66594. <a href="{@docRoot}/../mapred-default.html#mapred.min.split.size">
  66595. mapred.min.split.size</a>.</p>
  66596. <p>Clearly, logical splits based on input-size is insufficient for many
  66597. applications since record boundaries are to respected. In such cases, the
  66598. application has to also implement a {@link RecordReader} on whom lies the
  66599. responsibility to respect record-boundaries and present a record-oriented
  66600. view of the logical <code>InputSplit</code> to the individual task.
  66601. @see InputSplit
  66602. @see RecordReader
  66603. @see FileInputFormat]]>
  66604. </doc>
  66605. </class>
  66606. <!-- end class org.apache.hadoop.mapreduce.InputFormat -->
  66607. <!-- start class org.apache.hadoop.mapreduce.InputSplit -->
  66608. <class name="InputSplit" extends="java.lang.Object"
  66609. abstract="true"
  66610. static="false" final="false" visibility="public"
  66611. deprecated="not deprecated">
  66612. <constructor name="InputSplit"
  66613. static="false" final="false" visibility="public"
  66614. deprecated="not deprecated">
  66615. </constructor>
  66616. <method name="getLength" return="long"
  66617. abstract="true" native="false" synchronized="false"
  66618. static="false" final="false" visibility="public"
  66619. deprecated="not deprecated">
  66620. <exception name="IOException" type="java.io.IOException"/>
  66621. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66622. <doc>
  66623. <![CDATA[Get the size of the split, so that the input splits can be sorted by size.
  66624. @return the number of bytes in the split
  66625. @throws IOException
  66626. @throws InterruptedException]]>
  66627. </doc>
  66628. </method>
  66629. <method name="getLocations" return="java.lang.String[]"
  66630. abstract="true" native="false" synchronized="false"
  66631. static="false" final="false" visibility="public"
  66632. deprecated="not deprecated">
  66633. <exception name="IOException" type="java.io.IOException"/>
  66634. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66635. <doc>
  66636. <![CDATA[Get the list of nodes by name where the data for the split would be local.
  66637. The locations do not need to be serialized.
  66638. @return a new array of the node nodes.
  66639. @throws IOException
  66640. @throws InterruptedException]]>
  66641. </doc>
  66642. </method>
  66643. <doc>
  66644. <![CDATA[<code>InputSplit</code> represents the data to be processed by an
  66645. individual {@link Mapper}.
  66646. <p>Typically, it presents a byte-oriented view on the input and is the
  66647. responsibility of {@link RecordReader} of the job to process this and present
  66648. a record-oriented view.
  66649. @see InputFormat
  66650. @see RecordReader]]>
  66651. </doc>
  66652. </class>
  66653. <!-- end class org.apache.hadoop.mapreduce.InputSplit -->
  66654. <!-- start class org.apache.hadoop.mapreduce.Job -->
  66655. <class name="Job" extends="org.apache.hadoop.mapreduce.JobContext"
  66656. abstract="false"
  66657. static="false" final="false" visibility="public"
  66658. deprecated="not deprecated">
  66659. <constructor name="Job"
  66660. static="false" final="false" visibility="public"
  66661. deprecated="not deprecated">
  66662. <exception name="IOException" type="java.io.IOException"/>
  66663. </constructor>
  66664. <constructor name="Job" type="org.apache.hadoop.conf.Configuration"
  66665. static="false" final="false" visibility="public"
  66666. deprecated="not deprecated">
  66667. <exception name="IOException" type="java.io.IOException"/>
  66668. </constructor>
  66669. <constructor name="Job" type="org.apache.hadoop.conf.Configuration, java.lang.String"
  66670. static="false" final="false" visibility="public"
  66671. deprecated="not deprecated">
  66672. <exception name="IOException" type="java.io.IOException"/>
  66673. </constructor>
  66674. <method name="setNumReduceTasks"
  66675. abstract="false" native="false" synchronized="false"
  66676. static="false" final="false" visibility="public"
  66677. deprecated="not deprecated">
  66678. <param name="tasks" type="int"/>
  66679. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  66680. <doc>
  66681. <![CDATA[Set the number of reduce tasks for the job.
  66682. @param tasks the number of reduce tasks
  66683. @throws IllegalStateException if the job is submitted]]>
  66684. </doc>
  66685. </method>
  66686. <method name="setWorkingDirectory"
  66687. abstract="false" native="false" synchronized="false"
  66688. static="false" final="false" visibility="public"
  66689. deprecated="not deprecated">
  66690. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  66691. <exception name="IOException" type="java.io.IOException"/>
  66692. <doc>
  66693. <![CDATA[Set the current working directory for the default file system.
  66694. @param dir the new current working directory.
  66695. @throws IllegalStateException if the job is submitted]]>
  66696. </doc>
  66697. </method>
  66698. <method name="setInputFormatClass"
  66699. abstract="false" native="false" synchronized="false"
  66700. static="false" final="false" visibility="public"
  66701. deprecated="not deprecated">
  66702. <param name="cls" type="java.lang.Class"/>
  66703. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  66704. <doc>
  66705. <![CDATA[Set the {@link InputFormat} for the job.
  66706. @param cls the <code>InputFormat</code> to use
  66707. @throws IllegalStateException if the job is submitted]]>
  66708. </doc>
  66709. </method>
  66710. <method name="setOutputFormatClass"
  66711. abstract="false" native="false" synchronized="false"
  66712. static="false" final="false" visibility="public"
  66713. deprecated="not deprecated">
  66714. <param name="cls" type="java.lang.Class"/>
  66715. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  66716. <doc>
  66717. <![CDATA[Set the {@link OutputFormat} for the job.
  66718. @param cls the <code>OutputFormat</code> to use
  66719. @throws IllegalStateException if the job is submitted]]>
  66720. </doc>
  66721. </method>
  66722. <method name="setMapperClass"
  66723. abstract="false" native="false" synchronized="false"
  66724. static="false" final="false" visibility="public"
  66725. deprecated="not deprecated">
  66726. <param name="cls" type="java.lang.Class"/>
  66727. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  66728. <doc>
  66729. <![CDATA[Set the {@link Mapper} for the job.
  66730. @param cls the <code>Mapper</code> to use
  66731. @throws IllegalStateException if the job is submitted]]>
  66732. </doc>
  66733. </method>
  66734. <method name="setJarByClass"
  66735. abstract="false" native="false" synchronized="false"
  66736. static="false" final="false" visibility="public"
  66737. deprecated="not deprecated">
  66738. <param name="cls" type="java.lang.Class"/>
  66739. <doc>
  66740. <![CDATA[Set the Jar by finding where a given class came from.
  66741. @param cls the example class]]>
  66742. </doc>
  66743. </method>
  66744. <method name="getJar" return="java.lang.String"
  66745. abstract="false" native="false" synchronized="false"
  66746. static="false" final="false" visibility="public"
  66747. deprecated="not deprecated">
  66748. <doc>
  66749. <![CDATA[Get the pathname of the job's jar.
  66750. @return the pathname]]>
  66751. </doc>
  66752. </method>
  66753. <method name="setCombinerClass"
  66754. abstract="false" native="false" synchronized="false"
  66755. static="false" final="false" visibility="public"
  66756. deprecated="not deprecated">
  66757. <param name="cls" type="java.lang.Class"/>
  66758. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  66759. <doc>
  66760. <![CDATA[Set the combiner class for the job.
  66761. @param cls the combiner to use
  66762. @throws IllegalStateException if the job is submitted]]>
  66763. </doc>
  66764. </method>
  66765. <method name="setReducerClass"
  66766. abstract="false" native="false" synchronized="false"
  66767. static="false" final="false" visibility="public"
  66768. deprecated="not deprecated">
  66769. <param name="cls" type="java.lang.Class"/>
  66770. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  66771. <doc>
  66772. <![CDATA[Set the {@link Reducer} for the job.
  66773. @param cls the <code>Reducer</code> to use
  66774. @throws IllegalStateException if the job is submitted]]>
  66775. </doc>
  66776. </method>
  66777. <method name="setPartitionerClass"
  66778. abstract="false" native="false" synchronized="false"
  66779. static="false" final="false" visibility="public"
  66780. deprecated="not deprecated">
  66781. <param name="cls" type="java.lang.Class"/>
  66782. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  66783. <doc>
  66784. <![CDATA[Set the {@link Partitioner} for the job.
  66785. @param cls the <code>Partitioner</code> to use
  66786. @throws IllegalStateException if the job is submitted]]>
  66787. </doc>
  66788. </method>
  66789. <method name="setMapOutputKeyClass"
  66790. abstract="false" native="false" synchronized="false"
  66791. static="false" final="false" visibility="public"
  66792. deprecated="not deprecated">
  66793. <param name="theClass" type="java.lang.Class"/>
  66794. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  66795. <doc>
  66796. <![CDATA[Set the key class for the map output data. This allows the user to
  66797. specify the map output key class to be different than the final output
  66798. value class.
  66799. @param theClass the map output key class.
  66800. @throws IllegalStateException if the job is submitted]]>
  66801. </doc>
  66802. </method>
  66803. <method name="setMapOutputValueClass"
  66804. abstract="false" native="false" synchronized="false"
  66805. static="false" final="false" visibility="public"
  66806. deprecated="not deprecated">
  66807. <param name="theClass" type="java.lang.Class"/>
  66808. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  66809. <doc>
  66810. <![CDATA[Set the value class for the map output data. This allows the user to
  66811. specify the map output value class to be different than the final output
  66812. value class.
  66813. @param theClass the map output value class.
  66814. @throws IllegalStateException if the job is submitted]]>
  66815. </doc>
  66816. </method>
  66817. <method name="setOutputKeyClass"
  66818. abstract="false" native="false" synchronized="false"
  66819. static="false" final="false" visibility="public"
  66820. deprecated="not deprecated">
  66821. <param name="theClass" type="java.lang.Class"/>
  66822. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  66823. <doc>
  66824. <![CDATA[Set the key class for the job output data.
  66825. @param theClass the key class for the job output data.
  66826. @throws IllegalStateException if the job is submitted]]>
  66827. </doc>
  66828. </method>
  66829. <method name="setOutputValueClass"
  66830. abstract="false" native="false" synchronized="false"
  66831. static="false" final="false" visibility="public"
  66832. deprecated="not deprecated">
  66833. <param name="theClass" type="java.lang.Class"/>
  66834. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  66835. <doc>
  66836. <![CDATA[Set the value class for job outputs.
  66837. @param theClass the value class for job outputs.
  66838. @throws IllegalStateException if the job is submitted]]>
  66839. </doc>
  66840. </method>
  66841. <method name="setSortComparatorClass"
  66842. abstract="false" native="false" synchronized="false"
  66843. static="false" final="false" visibility="public"
  66844. deprecated="not deprecated">
  66845. <param name="cls" type="java.lang.Class"/>
  66846. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  66847. <doc>
  66848. <![CDATA[Define the comparator that controls how the keys are sorted before they
  66849. are passed to the {@link Reducer}.
  66850. @param cls the raw comparator
  66851. @throws IllegalStateException if the job is submitted]]>
  66852. </doc>
  66853. </method>
  66854. <method name="setGroupingComparatorClass"
  66855. abstract="false" native="false" synchronized="false"
  66856. static="false" final="false" visibility="public"
  66857. deprecated="not deprecated">
  66858. <param name="cls" type="java.lang.Class"/>
  66859. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  66860. <doc>
  66861. <![CDATA[Define the comparator that controls which keys are grouped together
  66862. for a single call to
  66863. {@link Reducer#reduce(Object, Iterable,
  66864. org.apache.hadoop.mapreduce.Reducer.Context)}
  66865. @param cls the raw comparator to use
  66866. @throws IllegalStateException if the job is submitted]]>
  66867. </doc>
  66868. </method>
  66869. <method name="setJobName"
  66870. abstract="false" native="false" synchronized="false"
  66871. static="false" final="false" visibility="public"
  66872. deprecated="not deprecated">
  66873. <param name="name" type="java.lang.String"/>
  66874. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  66875. <doc>
  66876. <![CDATA[Set the user-specified job name.
  66877. @param name the job's new name.
  66878. @throws IllegalStateException if the job is submitted]]>
  66879. </doc>
  66880. </method>
  66881. <method name="setSpeculativeExecution"
  66882. abstract="false" native="false" synchronized="false"
  66883. static="false" final="false" visibility="public"
  66884. deprecated="not deprecated">
  66885. <param name="speculativeExecution" type="boolean"/>
  66886. <doc>
  66887. <![CDATA[Turn speculative execution on or off for this job.
  66888. @param speculativeExecution <code>true</code> if speculative execution
  66889. should be turned on, else <code>false</code>.]]>
  66890. </doc>
  66891. </method>
  66892. <method name="setMapSpeculativeExecution"
  66893. abstract="false" native="false" synchronized="false"
  66894. static="false" final="false" visibility="public"
  66895. deprecated="not deprecated">
  66896. <param name="speculativeExecution" type="boolean"/>
  66897. <doc>
  66898. <![CDATA[Turn speculative execution on or off for this job for map tasks.
  66899. @param speculativeExecution <code>true</code> if speculative execution
  66900. should be turned on for map tasks,
  66901. else <code>false</code>.]]>
  66902. </doc>
  66903. </method>
  66904. <method name="setReduceSpeculativeExecution"
  66905. abstract="false" native="false" synchronized="false"
  66906. static="false" final="false" visibility="public"
  66907. deprecated="not deprecated">
  66908. <param name="speculativeExecution" type="boolean"/>
  66909. <doc>
  66910. <![CDATA[Turn speculative execution on or off for this job for reduce tasks.
  66911. @param speculativeExecution <code>true</code> if speculative execution
  66912. should be turned on for reduce tasks,
  66913. else <code>false</code>.]]>
  66914. </doc>
  66915. </method>
  66916. <method name="getTrackingURL" return="java.lang.String"
  66917. abstract="false" native="false" synchronized="false"
  66918. static="false" final="false" visibility="public"
  66919. deprecated="not deprecated">
  66920. <doc>
  66921. <![CDATA[Get the URL where some job progress information will be displayed.
  66922. @return the URL where some job progress information will be displayed.]]>
  66923. </doc>
  66924. </method>
  66925. <method name="setupProgress" return="float"
  66926. abstract="false" native="false" synchronized="false"
  66927. static="false" final="false" visibility="public"
  66928. deprecated="not deprecated">
  66929. <exception name="IOException" type="java.io.IOException"/>
  66930. <doc>
  66931. <![CDATA[Get the <i>progress</i> of the job's setup, as a float between 0.0
  66932. and 1.0. When the job setup is completed, the function returns 1.0.
  66933. @return the progress of the job's setup.
  66934. @throws IOException]]>
  66935. </doc>
  66936. </method>
  66937. <method name="mapProgress" return="float"
  66938. abstract="false" native="false" synchronized="false"
  66939. static="false" final="false" visibility="public"
  66940. deprecated="not deprecated">
  66941. <exception name="IOException" type="java.io.IOException"/>
  66942. <doc>
  66943. <![CDATA[Get the <i>progress</i> of the job's map-tasks, as a float between 0.0
  66944. and 1.0. When all map tasks have completed, the function returns 1.0.
  66945. @return the progress of the job's map-tasks.
  66946. @throws IOException]]>
  66947. </doc>
  66948. </method>
  66949. <method name="reduceProgress" return="float"
  66950. abstract="false" native="false" synchronized="false"
  66951. static="false" final="false" visibility="public"
  66952. deprecated="not deprecated">
  66953. <exception name="IOException" type="java.io.IOException"/>
  66954. <doc>
  66955. <![CDATA[Get the <i>progress</i> of the job's reduce-tasks, as a float between 0.0
  66956. and 1.0. When all reduce tasks have completed, the function returns 1.0.
  66957. @return the progress of the job's reduce-tasks.
  66958. @throws IOException]]>
  66959. </doc>
  66960. </method>
  66961. <method name="isComplete" return="boolean"
  66962. abstract="false" native="false" synchronized="false"
  66963. static="false" final="false" visibility="public"
  66964. deprecated="not deprecated">
  66965. <exception name="IOException" type="java.io.IOException"/>
  66966. <doc>
  66967. <![CDATA[Check if the job is finished or not.
  66968. This is a non-blocking call.
  66969. @return <code>true</code> if the job is complete, else <code>false</code>.
  66970. @throws IOException]]>
  66971. </doc>
  66972. </method>
  66973. <method name="isSuccessful" return="boolean"
  66974. abstract="false" native="false" synchronized="false"
  66975. static="false" final="false" visibility="public"
  66976. deprecated="not deprecated">
  66977. <exception name="IOException" type="java.io.IOException"/>
  66978. <doc>
  66979. <![CDATA[Check if the job completed successfully.
  66980. @return <code>true</code> if the job succeeded, else <code>false</code>.
  66981. @throws IOException]]>
  66982. </doc>
  66983. </method>
  66984. <method name="killJob"
  66985. abstract="false" native="false" synchronized="false"
  66986. static="false" final="false" visibility="public"
  66987. deprecated="not deprecated">
  66988. <exception name="IOException" type="java.io.IOException"/>
  66989. <doc>
  66990. <![CDATA[Kill the running job. Blocks until all job tasks have been
  66991. killed as well. If the job is no longer running, it simply returns.
  66992. @throws IOException]]>
  66993. </doc>
  66994. </method>
  66995. <method name="getTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  66996. abstract="false" native="false" synchronized="false"
  66997. static="false" final="false" visibility="public"
  66998. deprecated="not deprecated">
  66999. <param name="startFrom" type="int"/>
  67000. <exception name="IOException" type="java.io.IOException"/>
  67001. <doc>
  67002. <![CDATA[Get events indicating completion (success/failure) of component tasks.
  67003. @param startFrom index to start fetching events from
  67004. @return an array of {@link TaskCompletionEvent}s
  67005. @throws IOException]]>
  67006. </doc>
  67007. </method>
  67008. <method name="killTask"
  67009. abstract="false" native="false" synchronized="false"
  67010. static="false" final="false" visibility="public"
  67011. deprecated="not deprecated">
  67012. <param name="taskId" type="org.apache.hadoop.mapreduce.TaskAttemptID"/>
  67013. <exception name="IOException" type="java.io.IOException"/>
  67014. <doc>
  67015. <![CDATA[Kill indicated task attempt.
  67016. @param taskId the id of the task to be terminated.
  67017. @throws IOException]]>
  67018. </doc>
  67019. </method>
  67020. <method name="failTask"
  67021. abstract="false" native="false" synchronized="false"
  67022. static="false" final="false" visibility="public"
  67023. deprecated="not deprecated">
  67024. <param name="taskId" type="org.apache.hadoop.mapreduce.TaskAttemptID"/>
  67025. <exception name="IOException" type="java.io.IOException"/>
  67026. <doc>
  67027. <![CDATA[Fail indicated task attempt.
  67028. @param taskId the id of the task to be terminated.
  67029. @throws IOException]]>
  67030. </doc>
  67031. </method>
  67032. <method name="getCounters" return="org.apache.hadoop.mapreduce.Counters"
  67033. abstract="false" native="false" synchronized="false"
  67034. static="false" final="false" visibility="public"
  67035. deprecated="not deprecated">
  67036. <exception name="IOException" type="java.io.IOException"/>
  67037. <doc>
  67038. <![CDATA[Gets the counters for this job.
  67039. @return the counters for this job.
  67040. @throws IOException]]>
  67041. </doc>
  67042. </method>
  67043. <method name="setCancelDelegationTokenUponJobCompletion"
  67044. abstract="false" native="false" synchronized="false"
  67045. static="false" final="false" visibility="public"
  67046. deprecated="not deprecated">
  67047. <param name="value" type="boolean"/>
  67048. <doc>
  67049. <![CDATA[Sets the flag that will allow the JobTracker to cancel the HDFS delegation
  67050. tokens upon job completion. Defaults to true.]]>
  67051. </doc>
  67052. </method>
  67053. <method name="submit"
  67054. abstract="false" native="false" synchronized="false"
  67055. static="false" final="false" visibility="public"
  67056. deprecated="not deprecated">
  67057. <exception name="IOException" type="java.io.IOException"/>
  67058. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67059. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  67060. <doc>
  67061. <![CDATA[Submit the job to the cluster and return immediately.
  67062. @throws IOException]]>
  67063. </doc>
  67064. </method>
  67065. <method name="waitForCompletion" return="boolean"
  67066. abstract="false" native="false" synchronized="false"
  67067. static="false" final="false" visibility="public"
  67068. deprecated="not deprecated">
  67069. <param name="verbose" type="boolean"/>
  67070. <exception name="IOException" type="java.io.IOException"/>
  67071. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67072. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  67073. <doc>
  67074. <![CDATA[Submit the job to the cluster and wait for it to finish.
  67075. @param verbose print the progress to the user
  67076. @return true if the job succeeded
  67077. @throws IOException thrown if the communication with the
  67078. <code>JobTracker</code> is lost]]>
  67079. </doc>
  67080. </method>
  67081. <doc>
  67082. <![CDATA[The job submitter's view of the Job. It allows the user to configure the
  67083. job, submit it, control its execution, and query the state. The set methods
  67084. only work until the job is submitted, afterwards they will throw an
  67085. IllegalStateException.]]>
  67086. </doc>
  67087. </class>
  67088. <!-- end class org.apache.hadoop.mapreduce.Job -->
  67089. <!-- start class org.apache.hadoop.mapreduce.Job.JobState -->
  67090. <class name="Job.JobState" extends="java.lang.Enum"
  67091. abstract="false"
  67092. static="true" final="true" visibility="public"
  67093. deprecated="not deprecated">
  67094. <method name="values" return="org.apache.hadoop.mapreduce.Job.JobState[]"
  67095. abstract="false" native="false" synchronized="false"
  67096. static="true" final="false" visibility="public"
  67097. deprecated="not deprecated">
  67098. </method>
  67099. <method name="valueOf" return="org.apache.hadoop.mapreduce.Job.JobState"
  67100. abstract="false" native="false" synchronized="false"
  67101. static="true" final="false" visibility="public"
  67102. deprecated="not deprecated">
  67103. <param name="name" type="java.lang.String"/>
  67104. </method>
  67105. <field name="DEFINE" type="org.apache.hadoop.mapreduce.Job.JobState"
  67106. transient="false" volatile="false"
  67107. static="true" final="true" visibility="public"
  67108. deprecated="not deprecated">
  67109. </field>
  67110. <field name="RUNNING" type="org.apache.hadoop.mapreduce.Job.JobState"
  67111. transient="false" volatile="false"
  67112. static="true" final="true" visibility="public"
  67113. deprecated="not deprecated">
  67114. </field>
  67115. </class>
  67116. <!-- end class org.apache.hadoop.mapreduce.Job.JobState -->
  67117. <!-- start class org.apache.hadoop.mapreduce.JobACL -->
  67118. <class name="JobACL" extends="java.lang.Enum"
  67119. abstract="false"
  67120. static="false" final="true" visibility="public"
  67121. deprecated="not deprecated">
  67122. <method name="values" return="org.apache.hadoop.mapreduce.JobACL[]"
  67123. abstract="false" native="false" synchronized="false"
  67124. static="true" final="false" visibility="public"
  67125. deprecated="not deprecated">
  67126. </method>
  67127. <method name="valueOf" return="org.apache.hadoop.mapreduce.JobACL"
  67128. abstract="false" native="false" synchronized="false"
  67129. static="true" final="false" visibility="public"
  67130. deprecated="not deprecated">
  67131. <param name="name" type="java.lang.String"/>
  67132. </method>
  67133. <method name="getAclName" return="java.lang.String"
  67134. abstract="false" native="false" synchronized="false"
  67135. static="false" final="false" visibility="public"
  67136. deprecated="not deprecated">
  67137. <doc>
  67138. <![CDATA[Get the name of the ACL. Here it is same as the name of the configuration
  67139. property for specifying the ACL for the job.
  67140. @return aclName]]>
  67141. </doc>
  67142. </method>
  67143. <field name="VIEW_JOB" type="org.apache.hadoop.mapreduce.JobACL"
  67144. transient="false" volatile="false"
  67145. static="true" final="true" visibility="public"
  67146. deprecated="not deprecated">
  67147. <doc>
  67148. <![CDATA[ACL for 'viewing' job. Dictates who can 'view' some or all of the job
  67149. related details.]]>
  67150. </doc>
  67151. </field>
  67152. <field name="MODIFY_JOB" type="org.apache.hadoop.mapreduce.JobACL"
  67153. transient="false" volatile="false"
  67154. static="true" final="true" visibility="public"
  67155. deprecated="not deprecated">
  67156. <doc>
  67157. <![CDATA[ACL for 'modifying' job. Dictates who can 'modify' the job for e.g., by
  67158. killing the job, killing/failing a task of the job or setting priority of
  67159. the job.]]>
  67160. </doc>
  67161. </field>
  67162. <doc>
  67163. <![CDATA[Job related ACLs]]>
  67164. </doc>
  67165. </class>
  67166. <!-- end class org.apache.hadoop.mapreduce.JobACL -->
  67167. <!-- start class org.apache.hadoop.mapreduce.JobContext -->
  67168. <class name="JobContext" extends="java.lang.Object"
  67169. abstract="false"
  67170. static="false" final="false" visibility="public"
  67171. deprecated="not deprecated">
  67172. <constructor name="JobContext" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapreduce.JobID"
  67173. static="false" final="false" visibility="public"
  67174. deprecated="not deprecated">
  67175. </constructor>
  67176. <method name="getConfiguration" return="org.apache.hadoop.conf.Configuration"
  67177. abstract="false" native="false" synchronized="false"
  67178. static="false" final="false" visibility="public"
  67179. deprecated="not deprecated">
  67180. <doc>
  67181. <![CDATA[Return the configuration for the job.
  67182. @return the shared configuration object]]>
  67183. </doc>
  67184. </method>
  67185. <method name="getCredentials" return="org.apache.hadoop.security.Credentials"
  67186. abstract="false" native="false" synchronized="false"
  67187. static="false" final="false" visibility="public"
  67188. deprecated="not deprecated">
  67189. <doc>
  67190. <![CDATA[Get credentials for the job.
  67191. @return credentials for the job]]>
  67192. </doc>
  67193. </method>
  67194. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  67195. abstract="false" native="false" synchronized="false"
  67196. static="false" final="false" visibility="public"
  67197. deprecated="not deprecated">
  67198. <doc>
  67199. <![CDATA[Get the unique ID for the job.
  67200. @return the object with the job id]]>
  67201. </doc>
  67202. </method>
  67203. <method name="getNumReduceTasks" return="int"
  67204. abstract="false" native="false" synchronized="false"
  67205. static="false" final="false" visibility="public"
  67206. deprecated="not deprecated">
  67207. <doc>
  67208. <![CDATA[Get configured the number of reduce tasks for this job. Defaults to
  67209. <code>1</code>.
  67210. @return the number of reduce tasks for this job.]]>
  67211. </doc>
  67212. </method>
  67213. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  67214. abstract="false" native="false" synchronized="false"
  67215. static="false" final="false" visibility="public"
  67216. deprecated="not deprecated">
  67217. <exception name="IOException" type="java.io.IOException"/>
  67218. <doc>
  67219. <![CDATA[Get the current working directory for the default file system.
  67220. @return the directory name.]]>
  67221. </doc>
  67222. </method>
  67223. <method name="getOutputKeyClass" return="java.lang.Class"
  67224. abstract="false" native="false" synchronized="false"
  67225. static="false" final="false" visibility="public"
  67226. deprecated="not deprecated">
  67227. <doc>
  67228. <![CDATA[Get the key class for the job output data.
  67229. @return the key class for the job output data.]]>
  67230. </doc>
  67231. </method>
  67232. <method name="getOutputValueClass" return="java.lang.Class"
  67233. abstract="false" native="false" synchronized="false"
  67234. static="false" final="false" visibility="public"
  67235. deprecated="not deprecated">
  67236. <doc>
  67237. <![CDATA[Get the value class for job outputs.
  67238. @return the value class for job outputs.]]>
  67239. </doc>
  67240. </method>
  67241. <method name="getMapOutputKeyClass" return="java.lang.Class"
  67242. abstract="false" native="false" synchronized="false"
  67243. static="false" final="false" visibility="public"
  67244. deprecated="not deprecated">
  67245. <doc>
  67246. <![CDATA[Get the key class for the map output data. If it is not set, use the
  67247. (final) output key class. This allows the map output key class to be
  67248. different than the final output key class.
  67249. @return the map output key class.]]>
  67250. </doc>
  67251. </method>
  67252. <method name="getMapOutputValueClass" return="java.lang.Class"
  67253. abstract="false" native="false" synchronized="false"
  67254. static="false" final="false" visibility="public"
  67255. deprecated="not deprecated">
  67256. <doc>
  67257. <![CDATA[Get the value class for the map output data. If it is not set, use the
  67258. (final) output value class This allows the map output value class to be
  67259. different than the final output value class.
  67260. @return the map output value class.]]>
  67261. </doc>
  67262. </method>
  67263. <method name="getJobName" return="java.lang.String"
  67264. abstract="false" native="false" synchronized="false"
  67265. static="false" final="false" visibility="public"
  67266. deprecated="not deprecated">
  67267. <doc>
  67268. <![CDATA[Get the user-specified job name. This is only used to identify the
  67269. job to the user.
  67270. @return the job's name, defaulting to "".]]>
  67271. </doc>
  67272. </method>
  67273. <method name="getInputFormatClass" return="java.lang.Class"
  67274. abstract="false" native="false" synchronized="false"
  67275. static="false" final="false" visibility="public"
  67276. deprecated="not deprecated">
  67277. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  67278. <doc>
  67279. <![CDATA[Get the {@link InputFormat} class for the job.
  67280. @return the {@link InputFormat} class for the job.]]>
  67281. </doc>
  67282. </method>
  67283. <method name="getMapperClass" return="java.lang.Class"
  67284. abstract="false" native="false" synchronized="false"
  67285. static="false" final="false" visibility="public"
  67286. deprecated="not deprecated">
  67287. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  67288. <doc>
  67289. <![CDATA[Get the {@link Mapper} class for the job.
  67290. @return the {@link Mapper} class for the job.]]>
  67291. </doc>
  67292. </method>
  67293. <method name="getCombinerClass" return="java.lang.Class"
  67294. abstract="false" native="false" synchronized="false"
  67295. static="false" final="false" visibility="public"
  67296. deprecated="not deprecated">
  67297. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  67298. <doc>
  67299. <![CDATA[Get the combiner class for the job.
  67300. @return the combiner class for the job.]]>
  67301. </doc>
  67302. </method>
  67303. <method name="getReducerClass" return="java.lang.Class"
  67304. abstract="false" native="false" synchronized="false"
  67305. static="false" final="false" visibility="public"
  67306. deprecated="not deprecated">
  67307. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  67308. <doc>
  67309. <![CDATA[Get the {@link Reducer} class for the job.
  67310. @return the {@link Reducer} class for the job.]]>
  67311. </doc>
  67312. </method>
  67313. <method name="getOutputFormatClass" return="java.lang.Class"
  67314. abstract="false" native="false" synchronized="false"
  67315. static="false" final="false" visibility="public"
  67316. deprecated="not deprecated">
  67317. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  67318. <doc>
  67319. <![CDATA[Get the {@link OutputFormat} class for the job.
  67320. @return the {@link OutputFormat} class for the job.]]>
  67321. </doc>
  67322. </method>
  67323. <method name="getPartitionerClass" return="java.lang.Class"
  67324. abstract="false" native="false" synchronized="false"
  67325. static="false" final="false" visibility="public"
  67326. deprecated="not deprecated">
  67327. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  67328. <doc>
  67329. <![CDATA[Get the {@link Partitioner} class for the job.
  67330. @return the {@link Partitioner} class for the job.]]>
  67331. </doc>
  67332. </method>
  67333. <method name="getSortComparator" return="org.apache.hadoop.io.RawComparator"
  67334. abstract="false" native="false" synchronized="false"
  67335. static="false" final="false" visibility="public"
  67336. deprecated="not deprecated">
  67337. <doc>
  67338. <![CDATA[Get the {@link RawComparator} comparator used to compare keys.
  67339. @return the {@link RawComparator} comparator used to compare keys.]]>
  67340. </doc>
  67341. </method>
  67342. <method name="getJar" return="java.lang.String"
  67343. abstract="false" native="false" synchronized="false"
  67344. static="false" final="false" visibility="public"
  67345. deprecated="not deprecated">
  67346. <doc>
  67347. <![CDATA[Get the pathname of the job's jar.
  67348. @return the pathname]]>
  67349. </doc>
  67350. </method>
  67351. <method name="getGroupingComparator" return="org.apache.hadoop.io.RawComparator"
  67352. abstract="false" native="false" synchronized="false"
  67353. static="false" final="false" visibility="public"
  67354. deprecated="not deprecated">
  67355. <doc>
  67356. <![CDATA[Get the user defined {@link RawComparator} comparator for
  67357. grouping keys of inputs to the reduce.
  67358. @return comparator set by the user for grouping values.
  67359. @see Job#setGroupingComparatorClass(Class) for details.]]>
  67360. </doc>
  67361. </method>
  67362. <field name="INPUT_FORMAT_CLASS_ATTR" type="java.lang.String"
  67363. transient="false" volatile="false"
  67364. static="true" final="true" visibility="protected"
  67365. deprecated="not deprecated">
  67366. </field>
  67367. <field name="MAP_CLASS_ATTR" type="java.lang.String"
  67368. transient="false" volatile="false"
  67369. static="true" final="true" visibility="protected"
  67370. deprecated="not deprecated">
  67371. </field>
  67372. <field name="COMBINE_CLASS_ATTR" type="java.lang.String"
  67373. transient="false" volatile="false"
  67374. static="true" final="true" visibility="protected"
  67375. deprecated="not deprecated">
  67376. </field>
  67377. <field name="REDUCE_CLASS_ATTR" type="java.lang.String"
  67378. transient="false" volatile="false"
  67379. static="true" final="true" visibility="protected"
  67380. deprecated="not deprecated">
  67381. </field>
  67382. <field name="OUTPUT_FORMAT_CLASS_ATTR" type="java.lang.String"
  67383. transient="false" volatile="false"
  67384. static="true" final="true" visibility="protected"
  67385. deprecated="not deprecated">
  67386. </field>
  67387. <field name="PARTITIONER_CLASS_ATTR" type="java.lang.String"
  67388. transient="false" volatile="false"
  67389. static="true" final="true" visibility="protected"
  67390. deprecated="not deprecated">
  67391. </field>
  67392. <field name="conf" type="org.apache.hadoop.mapred.JobConf"
  67393. transient="false" volatile="false"
  67394. static="false" final="true" visibility="protected"
  67395. deprecated="not deprecated">
  67396. </field>
  67397. <field name="credentials" type="org.apache.hadoop.security.Credentials"
  67398. transient="false" volatile="false"
  67399. static="false" final="true" visibility="protected"
  67400. deprecated="not deprecated">
  67401. </field>
  67402. <field name="JOB_NAMENODES" type="java.lang.String"
  67403. transient="false" volatile="false"
  67404. static="true" final="true" visibility="public"
  67405. deprecated="not deprecated">
  67406. </field>
  67407. <field name="JOB_ACL_VIEW_JOB" type="java.lang.String"
  67408. transient="false" volatile="false"
  67409. static="true" final="true" visibility="public"
  67410. deprecated="not deprecated">
  67411. </field>
  67412. <field name="JOB_ACL_MODIFY_JOB" type="java.lang.String"
  67413. transient="false" volatile="false"
  67414. static="true" final="true" visibility="public"
  67415. deprecated="not deprecated">
  67416. </field>
  67417. <field name="CACHE_FILE_VISIBILITIES" type="java.lang.String"
  67418. transient="false" volatile="false"
  67419. static="true" final="true" visibility="public"
  67420. deprecated="not deprecated">
  67421. </field>
  67422. <field name="CACHE_ARCHIVES_VISIBILITIES" type="java.lang.String"
  67423. transient="false" volatile="false"
  67424. static="true" final="true" visibility="public"
  67425. deprecated="not deprecated">
  67426. </field>
  67427. <field name="JOB_CANCEL_DELEGATION_TOKEN" type="java.lang.String"
  67428. transient="false" volatile="false"
  67429. static="true" final="true" visibility="public"
  67430. deprecated="not deprecated">
  67431. </field>
  67432. <field name="USER_LOG_RETAIN_HOURS" type="java.lang.String"
  67433. transient="false" volatile="false"
  67434. static="true" final="true" visibility="public"
  67435. deprecated="not deprecated">
  67436. </field>
  67437. <field name="ugi" type="org.apache.hadoop.security.UserGroupInformation"
  67438. transient="false" volatile="false"
  67439. static="false" final="false" visibility="protected"
  67440. deprecated="not deprecated">
  67441. <doc>
  67442. <![CDATA[The UserGroupInformation object that has a reference to the current user]]>
  67443. </doc>
  67444. </field>
  67445. <doc>
  67446. <![CDATA[A read-only view of the job that is provided to the tasks while they
  67447. are running.]]>
  67448. </doc>
  67449. </class>
  67450. <!-- end class org.apache.hadoop.mapreduce.JobContext -->
  67451. <!-- start class org.apache.hadoop.mapreduce.JobID -->
  67452. <class name="JobID" extends="org.apache.hadoop.mapred.ID"
  67453. abstract="false"
  67454. static="false" final="false" visibility="public"
  67455. deprecated="not deprecated">
  67456. <implements name="java.lang.Comparable"/>
  67457. <constructor name="JobID" type="java.lang.String, int"
  67458. static="false" final="false" visibility="public"
  67459. deprecated="not deprecated">
  67460. <doc>
  67461. <![CDATA[Constructs a JobID object
  67462. @param jtIdentifier jobTracker identifier
  67463. @param id job number]]>
  67464. </doc>
  67465. </constructor>
  67466. <constructor name="JobID"
  67467. static="false" final="false" visibility="public"
  67468. deprecated="not deprecated">
  67469. </constructor>
  67470. <method name="getJtIdentifier" return="java.lang.String"
  67471. abstract="false" native="false" synchronized="false"
  67472. static="false" final="false" visibility="public"
  67473. deprecated="not deprecated">
  67474. </method>
  67475. <method name="equals" return="boolean"
  67476. abstract="false" native="false" synchronized="false"
  67477. static="false" final="false" visibility="public"
  67478. deprecated="not deprecated">
  67479. <param name="o" type="java.lang.Object"/>
  67480. </method>
  67481. <method name="compareTo" return="int"
  67482. abstract="false" native="false" synchronized="false"
  67483. static="false" final="false" visibility="public"
  67484. deprecated="not deprecated">
  67485. <param name="o" type="org.apache.hadoop.mapreduce.ID"/>
  67486. <doc>
  67487. <![CDATA[Compare JobIds by first jtIdentifiers, then by job numbers]]>
  67488. </doc>
  67489. </method>
  67490. <method name="appendTo" return="java.lang.StringBuilder"
  67491. abstract="false" native="false" synchronized="false"
  67492. static="false" final="false" visibility="public"
  67493. deprecated="not deprecated">
  67494. <param name="builder" type="java.lang.StringBuilder"/>
  67495. <doc>
  67496. <![CDATA[Add the stuff after the "job" prefix to the given builder. This is useful,
  67497. because the sub-ids use this substring at the start of their string.
  67498. @param builder the builder to append to
  67499. @return the builder that was passed in]]>
  67500. </doc>
  67501. </method>
  67502. <method name="hashCode" return="int"
  67503. abstract="false" native="false" synchronized="false"
  67504. static="false" final="false" visibility="public"
  67505. deprecated="not deprecated">
  67506. </method>
  67507. <method name="toString" return="java.lang.String"
  67508. abstract="false" native="false" synchronized="false"
  67509. static="false" final="false" visibility="public"
  67510. deprecated="not deprecated">
  67511. </method>
  67512. <method name="readFields"
  67513. abstract="false" native="false" synchronized="false"
  67514. static="false" final="false" visibility="public"
  67515. deprecated="not deprecated">
  67516. <param name="in" type="java.io.DataInput"/>
  67517. <exception name="IOException" type="java.io.IOException"/>
  67518. </method>
  67519. <method name="write"
  67520. abstract="false" native="false" synchronized="false"
  67521. static="false" final="false" visibility="public"
  67522. deprecated="not deprecated">
  67523. <param name="out" type="java.io.DataOutput"/>
  67524. <exception name="IOException" type="java.io.IOException"/>
  67525. </method>
  67526. <method name="forName" return="org.apache.hadoop.mapreduce.JobID"
  67527. abstract="false" native="false" synchronized="false"
  67528. static="true" final="false" visibility="public"
  67529. deprecated="not deprecated">
  67530. <param name="str" type="java.lang.String"/>
  67531. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  67532. <doc>
  67533. <![CDATA[Construct a JobId object from given string
  67534. @return constructed JobId object or null if the given String is null
  67535. @throws IllegalArgumentException if the given string is malformed]]>
  67536. </doc>
  67537. </method>
  67538. <field name="JOB" type="java.lang.String"
  67539. transient="false" volatile="false"
  67540. static="true" final="true" visibility="protected"
  67541. deprecated="not deprecated">
  67542. </field>
  67543. <field name="JOBID_REGEX" type="java.lang.String"
  67544. transient="false" volatile="false"
  67545. static="true" final="true" visibility="public"
  67546. deprecated="not deprecated">
  67547. </field>
  67548. <field name="idFormat" type="java.text.NumberFormat"
  67549. transient="false" volatile="false"
  67550. static="true" final="true" visibility="protected"
  67551. deprecated="not deprecated">
  67552. </field>
  67553. <doc>
  67554. <![CDATA[JobID represents the immutable and unique identifier for
  67555. the job. JobID consists of two parts. First part
  67556. represents the jobtracker identifier, so that jobID to jobtracker map
  67557. is defined. For cluster setup this string is the jobtracker
  67558. start time, for local setting, it is "local".
  67559. Second part of the JobID is the job number. <br>
  67560. An example JobID is :
  67561. <code>job_200707121733_0003</code> , which represents the third job
  67562. running at the jobtracker started at <code>200707121733</code>.
  67563. <p>
  67564. Applications should never construct or parse JobID strings, but rather
  67565. use appropriate constructors or {@link #forName(String)} method.
  67566. @see TaskID
  67567. @see TaskAttemptID
  67568. @see org.apache.hadoop.mapred.JobTracker#getNewJobId()
  67569. @see org.apache.hadoop.mapred.JobTracker#getStartTime()]]>
  67570. </doc>
  67571. </class>
  67572. <!-- end class org.apache.hadoop.mapreduce.JobID -->
  67573. <!-- start class org.apache.hadoop.mapreduce.JobStatus -->
  67574. <class name="JobStatus" extends="java.lang.Object"
  67575. abstract="false"
  67576. static="false" final="false" visibility="public"
  67577. deprecated="not deprecated">
  67578. <constructor name="JobStatus"
  67579. static="false" final="false" visibility="public"
  67580. deprecated="not deprecated">
  67581. </constructor>
  67582. <doc>
  67583. <![CDATA[Describes the current status of a job.]]>
  67584. </doc>
  67585. </class>
  67586. <!-- end class org.apache.hadoop.mapreduce.JobStatus -->
  67587. <!-- start class org.apache.hadoop.mapreduce.JobStatus.State -->
  67588. <class name="JobStatus.State" extends="java.lang.Enum"
  67589. abstract="false"
  67590. static="true" final="true" visibility="public"
  67591. deprecated="not deprecated">
  67592. <method name="values" return="org.apache.hadoop.mapreduce.JobStatus.State[]"
  67593. abstract="false" native="false" synchronized="false"
  67594. static="true" final="false" visibility="public"
  67595. deprecated="not deprecated">
  67596. </method>
  67597. <method name="valueOf" return="org.apache.hadoop.mapreduce.JobStatus.State"
  67598. abstract="false" native="false" synchronized="false"
  67599. static="true" final="false" visibility="public"
  67600. deprecated="not deprecated">
  67601. <param name="name" type="java.lang.String"/>
  67602. </method>
  67603. <method name="getValue" return="int"
  67604. abstract="false" native="false" synchronized="false"
  67605. static="false" final="false" visibility="public"
  67606. deprecated="not deprecated">
  67607. </method>
  67608. <field name="RUNNING" type="org.apache.hadoop.mapreduce.JobStatus.State"
  67609. transient="false" volatile="false"
  67610. static="true" final="true" visibility="public"
  67611. deprecated="not deprecated">
  67612. </field>
  67613. <field name="SUCCEEDED" type="org.apache.hadoop.mapreduce.JobStatus.State"
  67614. transient="false" volatile="false"
  67615. static="true" final="true" visibility="public"
  67616. deprecated="not deprecated">
  67617. </field>
  67618. <field name="FAILED" type="org.apache.hadoop.mapreduce.JobStatus.State"
  67619. transient="false" volatile="false"
  67620. static="true" final="true" visibility="public"
  67621. deprecated="not deprecated">
  67622. </field>
  67623. <field name="PREP" type="org.apache.hadoop.mapreduce.JobStatus.State"
  67624. transient="false" volatile="false"
  67625. static="true" final="true" visibility="public"
  67626. deprecated="not deprecated">
  67627. </field>
  67628. <field name="KILLED" type="org.apache.hadoop.mapreduce.JobStatus.State"
  67629. transient="false" volatile="false"
  67630. static="true" final="true" visibility="public"
  67631. deprecated="not deprecated">
  67632. </field>
  67633. <doc>
  67634. <![CDATA[Current state of the job]]>
  67635. </doc>
  67636. </class>
  67637. <!-- end class org.apache.hadoop.mapreduce.JobStatus.State -->
  67638. <!-- start class org.apache.hadoop.mapreduce.JobSubmissionFiles -->
  67639. <class name="JobSubmissionFiles" extends="java.lang.Object"
  67640. abstract="false"
  67641. static="false" final="false" visibility="public"
  67642. deprecated="not deprecated">
  67643. <constructor name="JobSubmissionFiles"
  67644. static="false" final="false" visibility="public"
  67645. deprecated="not deprecated">
  67646. </constructor>
  67647. <method name="getJobSplitFile" return="org.apache.hadoop.fs.Path"
  67648. abstract="false" native="false" synchronized="false"
  67649. static="true" final="false" visibility="public"
  67650. deprecated="not deprecated">
  67651. <param name="jobSubmissionDir" type="org.apache.hadoop.fs.Path"/>
  67652. </method>
  67653. <method name="getJobSplitMetaFile" return="org.apache.hadoop.fs.Path"
  67654. abstract="false" native="false" synchronized="false"
  67655. static="true" final="false" visibility="public"
  67656. deprecated="not deprecated">
  67657. <param name="jobSubmissionDir" type="org.apache.hadoop.fs.Path"/>
  67658. </method>
  67659. <method name="getJobConfPath" return="org.apache.hadoop.fs.Path"
  67660. abstract="false" native="false" synchronized="false"
  67661. static="true" final="false" visibility="public"
  67662. deprecated="not deprecated">
  67663. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  67664. <doc>
  67665. <![CDATA[Get the job conf path.]]>
  67666. </doc>
  67667. </method>
  67668. <method name="getJobJar" return="org.apache.hadoop.fs.Path"
  67669. abstract="false" native="false" synchronized="false"
  67670. static="true" final="false" visibility="public"
  67671. deprecated="not deprecated">
  67672. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  67673. <doc>
  67674. <![CDATA[Get the job jar path.]]>
  67675. </doc>
  67676. </method>
  67677. <method name="getJobDistCacheFiles" return="org.apache.hadoop.fs.Path"
  67678. abstract="false" native="false" synchronized="false"
  67679. static="true" final="false" visibility="public"
  67680. deprecated="not deprecated">
  67681. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  67682. <doc>
  67683. <![CDATA[Get the job distributed cache files path.
  67684. @param jobSubmitDir]]>
  67685. </doc>
  67686. </method>
  67687. <method name="getJobDistCacheArchives" return="org.apache.hadoop.fs.Path"
  67688. abstract="false" native="false" synchronized="false"
  67689. static="true" final="false" visibility="public"
  67690. deprecated="not deprecated">
  67691. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  67692. <doc>
  67693. <![CDATA[Get the job distributed cache archives path.
  67694. @param jobSubmitDir]]>
  67695. </doc>
  67696. </method>
  67697. <method name="getJobDistCacheLibjars" return="org.apache.hadoop.fs.Path"
  67698. abstract="false" native="false" synchronized="false"
  67699. static="true" final="false" visibility="public"
  67700. deprecated="not deprecated">
  67701. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  67702. <doc>
  67703. <![CDATA[Get the job distributed cache libjars path.
  67704. @param jobSubmitDir]]>
  67705. </doc>
  67706. </method>
  67707. <method name="getStagingDir" return="org.apache.hadoop.fs.Path"
  67708. abstract="false" native="false" synchronized="false"
  67709. static="true" final="false" visibility="public"
  67710. deprecated="not deprecated">
  67711. <param name="client" type="org.apache.hadoop.mapred.JobClient"/>
  67712. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  67713. <exception name="IOException" type="java.io.IOException"/>
  67714. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67715. <doc>
  67716. <![CDATA[Initializes the staging directory and returns the path. It also
  67717. keeps track of all necessary ownership & permissions
  67718. @param client
  67719. @param conf]]>
  67720. </doc>
  67721. </method>
  67722. <field name="JOB_DIR_PERMISSION" type="org.apache.hadoop.fs.permission.FsPermission"
  67723. transient="false" volatile="false"
  67724. static="true" final="true" visibility="public"
  67725. deprecated="not deprecated">
  67726. </field>
  67727. <field name="JOB_FILE_PERMISSION" type="org.apache.hadoop.fs.permission.FsPermission"
  67728. transient="false" volatile="false"
  67729. static="true" final="true" visibility="public"
  67730. deprecated="not deprecated">
  67731. </field>
  67732. <doc>
  67733. <![CDATA[A utility to manage job submission files.<br/>
  67734. <b><i>Note that this class is for framework internal usage only and is
  67735. not to be used by users directly.</i></b>]]>
  67736. </doc>
  67737. </class>
  67738. <!-- end class org.apache.hadoop.mapreduce.JobSubmissionFiles -->
  67739. <!-- start class org.apache.hadoop.mapreduce.MapContext -->
  67740. <class name="MapContext" extends="org.apache.hadoop.mapreduce.TaskInputOutputContext"
  67741. abstract="false"
  67742. static="false" final="false" visibility="public"
  67743. deprecated="not deprecated">
  67744. <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"
  67745. static="false" final="false" visibility="public"
  67746. deprecated="not deprecated">
  67747. </constructor>
  67748. <method name="getInputSplit" return="org.apache.hadoop.mapreduce.InputSplit"
  67749. abstract="false" native="false" synchronized="false"
  67750. static="false" final="false" visibility="public"
  67751. deprecated="not deprecated">
  67752. <doc>
  67753. <![CDATA[Get the input split for this map.]]>
  67754. </doc>
  67755. </method>
  67756. <method name="getCurrentKey" return="java.lang.Object"
  67757. abstract="false" native="false" synchronized="false"
  67758. static="false" final="false" visibility="public"
  67759. deprecated="not deprecated">
  67760. <exception name="IOException" type="java.io.IOException"/>
  67761. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67762. </method>
  67763. <method name="getCurrentValue" return="java.lang.Object"
  67764. abstract="false" native="false" synchronized="false"
  67765. static="false" final="false" visibility="public"
  67766. deprecated="not deprecated">
  67767. <exception name="IOException" type="java.io.IOException"/>
  67768. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67769. </method>
  67770. <method name="nextKeyValue" return="boolean"
  67771. abstract="false" native="false" synchronized="false"
  67772. static="false" final="false" visibility="public"
  67773. deprecated="not deprecated">
  67774. <exception name="IOException" type="java.io.IOException"/>
  67775. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67776. </method>
  67777. <doc>
  67778. <![CDATA[The context that is given to the {@link Mapper}.
  67779. @param <KEYIN> the key input type to the Mapper
  67780. @param <VALUEIN> the value input type to the Mapper
  67781. @param <KEYOUT> the key output type from the Mapper
  67782. @param <VALUEOUT> the value output type from the Mapper]]>
  67783. </doc>
  67784. </class>
  67785. <!-- end class org.apache.hadoop.mapreduce.MapContext -->
  67786. <!-- start class org.apache.hadoop.mapreduce.Mapper -->
  67787. <class name="Mapper" extends="java.lang.Object"
  67788. abstract="false"
  67789. static="false" final="false" visibility="public"
  67790. deprecated="not deprecated">
  67791. <constructor name="Mapper"
  67792. static="false" final="false" visibility="public"
  67793. deprecated="not deprecated">
  67794. </constructor>
  67795. <method name="setup"
  67796. abstract="false" native="false" synchronized="false"
  67797. static="false" final="false" visibility="protected"
  67798. deprecated="not deprecated">
  67799. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  67800. <exception name="IOException" type="java.io.IOException"/>
  67801. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67802. <doc>
  67803. <![CDATA[Called once at the beginning of the task.]]>
  67804. </doc>
  67805. </method>
  67806. <method name="map"
  67807. abstract="false" native="false" synchronized="false"
  67808. static="false" final="false" visibility="protected"
  67809. deprecated="not deprecated">
  67810. <param name="key" type="java.lang.Object"/>
  67811. <param name="value" type="java.lang.Object"/>
  67812. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  67813. <exception name="IOException" type="java.io.IOException"/>
  67814. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67815. <doc>
  67816. <![CDATA[Called once for each key/value pair in the input split. Most applications
  67817. should override this, but the default is the identity function.]]>
  67818. </doc>
  67819. </method>
  67820. <method name="cleanup"
  67821. abstract="false" native="false" synchronized="false"
  67822. static="false" final="false" visibility="protected"
  67823. deprecated="not deprecated">
  67824. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  67825. <exception name="IOException" type="java.io.IOException"/>
  67826. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67827. <doc>
  67828. <![CDATA[Called once at the end of the task.]]>
  67829. </doc>
  67830. </method>
  67831. <method name="run"
  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.Mapper.Context"/>
  67836. <exception name="IOException" type="java.io.IOException"/>
  67837. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67838. <doc>
  67839. <![CDATA[Expert users can override this method for more complete control over the
  67840. execution of the Mapper.
  67841. @param context
  67842. @throws IOException]]>
  67843. </doc>
  67844. </method>
  67845. <doc>
  67846. <![CDATA[Maps input key/value pairs to a set of intermediate key/value pairs.
  67847. <p>Maps are the individual tasks which transform input records into a
  67848. intermediate records. The transformed intermediate records need not be of
  67849. the same type as the input records. A given input pair may map to zero or
  67850. many output pairs.</p>
  67851. <p>The Hadoop Map-Reduce framework spawns one map task for each
  67852. {@link InputSplit} generated by the {@link InputFormat} for the job.
  67853. <code>Mapper</code> implementations can access the {@link Configuration} for
  67854. the job via the {@link JobContext#getConfiguration()}.
  67855. <p>The framework first calls
  67856. {@link #setup(org.apache.hadoop.mapreduce.Mapper.Context)}, followed by
  67857. {@link #map(Object, Object, Context)}
  67858. for each key/value pair in the <code>InputSplit</code>. Finally
  67859. {@link #cleanup(Context)} is called.</p>
  67860. <p>All intermediate values associated with a given output key are
  67861. subsequently grouped by the framework, and passed to a {@link Reducer} to
  67862. determine the final output. Users can control the sorting and grouping by
  67863. specifying two key {@link RawComparator} classes.</p>
  67864. <p>The <code>Mapper</code> outputs are partitioned per
  67865. <code>Reducer</code>. Users can control which keys (and hence records) go to
  67866. which <code>Reducer</code> by implementing a custom {@link Partitioner}.
  67867. <p>Users can optionally specify a <code>combiner</code>, via
  67868. {@link Job#setCombinerClass(Class)}, to perform local aggregation of the
  67869. intermediate outputs, which helps to cut down the amount of data transferred
  67870. from the <code>Mapper</code> to the <code>Reducer</code>.
  67871. <p>Applications can specify if and how the intermediate
  67872. outputs are to be compressed and which {@link CompressionCodec}s are to be
  67873. used via the <code>Configuration</code>.</p>
  67874. <p>If the job has zero
  67875. reduces then the output of the <code>Mapper</code> is directly written
  67876. to the {@link OutputFormat} without sorting by keys.</p>
  67877. <p>Example:</p>
  67878. <p><blockquote><pre>
  67879. public class TokenCounterMapper
  67880. extends Mapper<Object, Text, Text, IntWritable>{
  67881. private final static IntWritable one = new IntWritable(1);
  67882. private Text word = new Text();
  67883. public void map(Object key, Text value, Context context) throws IOException {
  67884. StringTokenizer itr = new StringTokenizer(value.toString());
  67885. while (itr.hasMoreTokens()) {
  67886. word.set(itr.nextToken());
  67887. context.collect(word, one);
  67888. }
  67889. }
  67890. }
  67891. </pre></blockquote></p>
  67892. <p>Applications may override the {@link #run(Context)} method to exert
  67893. greater control on map processing e.g. multi-threaded <code>Mapper</code>s
  67894. etc.</p>
  67895. @see InputFormat
  67896. @see JobContext
  67897. @see Partitioner
  67898. @see Reducer]]>
  67899. </doc>
  67900. </class>
  67901. <!-- end class org.apache.hadoop.mapreduce.Mapper -->
  67902. <!-- start class org.apache.hadoop.mapreduce.Mapper.Context -->
  67903. <class name="Mapper.Context" extends="org.apache.hadoop.mapreduce.MapContext"
  67904. abstract="false"
  67905. static="false" final="false" visibility="public"
  67906. deprecated="not deprecated">
  67907. <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"
  67908. static="false" final="false" visibility="public"
  67909. deprecated="not deprecated">
  67910. <exception name="IOException" type="java.io.IOException"/>
  67911. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67912. </constructor>
  67913. </class>
  67914. <!-- end class org.apache.hadoop.mapreduce.Mapper.Context -->
  67915. <!-- start class org.apache.hadoop.mapreduce.OutputCommitter -->
  67916. <class name="OutputCommitter" extends="java.lang.Object"
  67917. abstract="true"
  67918. static="false" final="false" visibility="public"
  67919. deprecated="not deprecated">
  67920. <constructor name="OutputCommitter"
  67921. static="false" final="false" visibility="public"
  67922. deprecated="not deprecated">
  67923. </constructor>
  67924. <method name="setupJob"
  67925. abstract="true" native="false" synchronized="false"
  67926. static="false" final="false" visibility="public"
  67927. deprecated="not deprecated">
  67928. <param name="jobContext" type="org.apache.hadoop.mapreduce.JobContext"/>
  67929. <exception name="IOException" type="java.io.IOException"/>
  67930. <doc>
  67931. <![CDATA[For the framework to setup the job output during initialization
  67932. @param jobContext Context of the job whose output is being written.
  67933. @throws IOException if temporary output could not be created]]>
  67934. </doc>
  67935. </method>
  67936. <method name="commitJob"
  67937. abstract="false" native="false" synchronized="false"
  67938. static="false" final="false" visibility="public"
  67939. deprecated="not deprecated">
  67940. <param name="jobContext" type="org.apache.hadoop.mapreduce.JobContext"/>
  67941. <exception name="IOException" type="java.io.IOException"/>
  67942. <doc>
  67943. <![CDATA[For cleaning up the job's output after job completion. Note that this
  67944. is invoked for jobs with final run state as
  67945. {@link JobStatus.State#SUCCEEDED}
  67946. @param jobContext Context of the job whose output is being written.
  67947. @throws IOException]]>
  67948. </doc>
  67949. </method>
  67950. <method name="cleanupJob"
  67951. abstract="false" native="false" synchronized="false"
  67952. static="false" final="false" visibility="public"
  67953. deprecated="use {@link #commitJob(JobContext)} or
  67954. {@link #abortJob(JobContext, JobStatus.State)} instead">
  67955. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  67956. <exception name="IOException" type="java.io.IOException"/>
  67957. <doc>
  67958. <![CDATA[For cleaning up the job's output after job completion
  67959. @deprecated use {@link #commitJob(JobContext)} or
  67960. {@link #abortJob(JobContext, JobStatus.State)} instead]]>
  67961. </doc>
  67962. </method>
  67963. <method name="abortJob"
  67964. abstract="false" native="false" synchronized="false"
  67965. static="false" final="false" visibility="public"
  67966. deprecated="not deprecated">
  67967. <param name="jobContext" type="org.apache.hadoop.mapreduce.JobContext"/>
  67968. <param name="state" type="org.apache.hadoop.mapreduce.JobStatus.State"/>
  67969. <exception name="IOException" type="java.io.IOException"/>
  67970. <doc>
  67971. <![CDATA[For aborting an unsuccessful job's output. Note that this is invoked for
  67972. jobs with final run state as {@link JobStatus.State#FAILED} or
  67973. {@link JobStatus.State#KILLED}.
  67974. @param jobContext Context of the job whose output is being written.
  67975. @param state final run state of the job, should be either
  67976. {@link JobStatus.State#KILLED} or {@link JobStatus.State#FAILED}
  67977. @throws IOException]]>
  67978. </doc>
  67979. </method>
  67980. <method name="setupTask"
  67981. abstract="true" native="false" synchronized="false"
  67982. static="false" final="false" visibility="public"
  67983. deprecated="not deprecated">
  67984. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  67985. <exception name="IOException" type="java.io.IOException"/>
  67986. <doc>
  67987. <![CDATA[Sets up output for the task.
  67988. @param taskContext Context of the task whose output is being written.
  67989. @throws IOException]]>
  67990. </doc>
  67991. </method>
  67992. <method name="needsTaskCommit" return="boolean"
  67993. abstract="true" native="false" synchronized="false"
  67994. static="false" final="false" visibility="public"
  67995. deprecated="not deprecated">
  67996. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  67997. <exception name="IOException" type="java.io.IOException"/>
  67998. <doc>
  67999. <![CDATA[Check whether task needs a commit
  68000. @param taskContext
  68001. @return true/false
  68002. @throws IOException]]>
  68003. </doc>
  68004. </method>
  68005. <method name="commitTask"
  68006. abstract="true" native="false" synchronized="false"
  68007. static="false" final="false" visibility="public"
  68008. deprecated="not deprecated">
  68009. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  68010. <exception name="IOException" type="java.io.IOException"/>
  68011. <doc>
  68012. <![CDATA[To promote the task's temporary output to final output location
  68013. The task's output is moved to the job's output directory.
  68014. @param taskContext Context of the task whose output is being written.
  68015. @throws IOException if commit is not]]>
  68016. </doc>
  68017. </method>
  68018. <method name="abortTask"
  68019. abstract="true" native="false" synchronized="false"
  68020. static="false" final="false" visibility="public"
  68021. deprecated="not deprecated">
  68022. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  68023. <exception name="IOException" type="java.io.IOException"/>
  68024. <doc>
  68025. <![CDATA[Discard the task output
  68026. @param taskContext
  68027. @throws IOException]]>
  68028. </doc>
  68029. </method>
  68030. <doc>
  68031. <![CDATA[<code>OutputCommitter</code> describes the commit of task output for a
  68032. Map-Reduce job.
  68033. <p>The Map-Reduce framework relies on the <code>OutputCommitter</code> of
  68034. the job to:<p>
  68035. <ol>
  68036. <li>
  68037. Setup the job during initialization. For example, create the temporary
  68038. output directory for the job during the initialization of the job.
  68039. </li>
  68040. <li>
  68041. Cleanup the job after the job completion. For example, remove the
  68042. temporary output directory after the job completion.
  68043. </li>
  68044. <li>
  68045. Setup the task temporary output.
  68046. </li>
  68047. <li>
  68048. Check whether a task needs a commit. This is to avoid the commit
  68049. procedure if a task does not need commit.
  68050. </li>
  68051. <li>
  68052. Commit of the task output.
  68053. </li>
  68054. <li>
  68055. Discard the task commit.
  68056. </li>
  68057. </ol>
  68058. @see org.apache.hadoop.mapreduce.lib.output.FileOutputCommitter
  68059. @see JobContext
  68060. @see TaskAttemptContext]]>
  68061. </doc>
  68062. </class>
  68063. <!-- end class org.apache.hadoop.mapreduce.OutputCommitter -->
  68064. <!-- start class org.apache.hadoop.mapreduce.OutputFormat -->
  68065. <class name="OutputFormat" extends="java.lang.Object"
  68066. abstract="true"
  68067. static="false" final="false" visibility="public"
  68068. deprecated="not deprecated">
  68069. <constructor name="OutputFormat"
  68070. static="false" final="false" visibility="public"
  68071. deprecated="not deprecated">
  68072. </constructor>
  68073. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  68074. abstract="true" native="false" synchronized="false"
  68075. static="false" final="false" visibility="public"
  68076. deprecated="not deprecated">
  68077. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  68078. <exception name="IOException" type="java.io.IOException"/>
  68079. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68080. <doc>
  68081. <![CDATA[Get the {@link RecordWriter} for the given task.
  68082. @param context the information about the current task.
  68083. @return a {@link RecordWriter} to write the output for the job.
  68084. @throws IOException]]>
  68085. </doc>
  68086. </method>
  68087. <method name="checkOutputSpecs"
  68088. abstract="true" native="false" synchronized="false"
  68089. static="false" final="false" visibility="public"
  68090. deprecated="not deprecated">
  68091. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  68092. <exception name="IOException" type="java.io.IOException"/>
  68093. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68094. <doc>
  68095. <![CDATA[Check for validity of the output-specification for the job.
  68096. <p>This is to validate the output specification for the job when it is
  68097. a job is submitted. Typically checks that it does not already exist,
  68098. throwing an exception when it already exists, so that output is not
  68099. overwritten.</p>
  68100. @param context information about the job
  68101. @throws IOException when output should not be attempted]]>
  68102. </doc>
  68103. </method>
  68104. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  68105. abstract="true" native="false" synchronized="false"
  68106. static="false" final="false" visibility="public"
  68107. deprecated="not deprecated">
  68108. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  68109. <exception name="IOException" type="java.io.IOException"/>
  68110. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68111. <doc>
  68112. <![CDATA[Get the output committer for this output format. This is responsible
  68113. for ensuring the output is committed correctly.
  68114. @param context the task context
  68115. @return an output committer
  68116. @throws IOException
  68117. @throws InterruptedException]]>
  68118. </doc>
  68119. </method>
  68120. <doc>
  68121. <![CDATA[<code>OutputFormat</code> describes the output-specification for a
  68122. Map-Reduce job.
  68123. <p>The Map-Reduce framework relies on the <code>OutputFormat</code> of the
  68124. job to:<p>
  68125. <ol>
  68126. <li>
  68127. Validate the output-specification of the job. For e.g. check that the
  68128. output directory doesn't already exist.
  68129. <li>
  68130. Provide the {@link RecordWriter} implementation to be used to write out
  68131. the output files of the job. Output files are stored in a
  68132. {@link FileSystem}.
  68133. </li>
  68134. </ol>
  68135. @see RecordWriter]]>
  68136. </doc>
  68137. </class>
  68138. <!-- end class org.apache.hadoop.mapreduce.OutputFormat -->
  68139. <!-- start class org.apache.hadoop.mapreduce.Partitioner -->
  68140. <class name="Partitioner" extends="java.lang.Object"
  68141. abstract="true"
  68142. static="false" final="false" visibility="public"
  68143. deprecated="not deprecated">
  68144. <constructor name="Partitioner"
  68145. static="false" final="false" visibility="public"
  68146. deprecated="not deprecated">
  68147. </constructor>
  68148. <method name="getPartition" return="int"
  68149. abstract="true" native="false" synchronized="false"
  68150. static="false" final="false" visibility="public"
  68151. deprecated="not deprecated">
  68152. <param name="key" type="java.lang.Object"/>
  68153. <param name="value" type="java.lang.Object"/>
  68154. <param name="numPartitions" type="int"/>
  68155. <doc>
  68156. <![CDATA[Get the partition number for a given key (hence record) given the total
  68157. number of partitions i.e. number of reduce-tasks for the job.
  68158. <p>Typically a hash function on a all or a subset of the key.</p>
  68159. @param key the key to be partioned.
  68160. @param value the entry value.
  68161. @param numPartitions the total number of partitions.
  68162. @return the partition number for the <code>key</code>.]]>
  68163. </doc>
  68164. </method>
  68165. <doc>
  68166. <![CDATA[Partitions the key space.
  68167. <p><code>Partitioner</code> controls the partitioning of the keys of the
  68168. intermediate map-outputs. The key (or a subset of the key) is used to derive
  68169. the partition, typically by a hash function. The total number of partitions
  68170. is the same as the number of reduce tasks for the job. Hence this controls
  68171. which of the <code>m</code> reduce tasks the intermediate key (and hence the
  68172. record) is sent for reduction.</p>
  68173. @see Reducer]]>
  68174. </doc>
  68175. </class>
  68176. <!-- end class org.apache.hadoop.mapreduce.Partitioner -->
  68177. <!-- start class org.apache.hadoop.mapreduce.RecordReader -->
  68178. <class name="RecordReader" extends="java.lang.Object"
  68179. abstract="true"
  68180. static="false" final="false" visibility="public"
  68181. deprecated="not deprecated">
  68182. <implements name="java.io.Closeable"/>
  68183. <constructor name="RecordReader"
  68184. static="false" final="false" visibility="public"
  68185. deprecated="not deprecated">
  68186. </constructor>
  68187. <method name="initialize"
  68188. abstract="true" native="false" synchronized="false"
  68189. static="false" final="false" visibility="public"
  68190. deprecated="not deprecated">
  68191. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  68192. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  68193. <exception name="IOException" type="java.io.IOException"/>
  68194. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68195. <doc>
  68196. <![CDATA[Called once at initialization.
  68197. @param split the split that defines the range of records to read
  68198. @param context the information about the task
  68199. @throws IOException
  68200. @throws InterruptedException]]>
  68201. </doc>
  68202. </method>
  68203. <method name="nextKeyValue" return="boolean"
  68204. abstract="true" native="false" synchronized="false"
  68205. static="false" final="false" visibility="public"
  68206. deprecated="not deprecated">
  68207. <exception name="IOException" type="java.io.IOException"/>
  68208. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68209. <doc>
  68210. <![CDATA[Read the next key, value pair.
  68211. @return true if a key/value pair was read
  68212. @throws IOException
  68213. @throws InterruptedException]]>
  68214. </doc>
  68215. </method>
  68216. <method name="getCurrentKey" return="java.lang.Object"
  68217. abstract="true" native="false" synchronized="false"
  68218. static="false" final="false" visibility="public"
  68219. deprecated="not deprecated">
  68220. <exception name="IOException" type="java.io.IOException"/>
  68221. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68222. <doc>
  68223. <![CDATA[Get the current key
  68224. @return the current key or null if there is no current key
  68225. @throws IOException
  68226. @throws InterruptedException]]>
  68227. </doc>
  68228. </method>
  68229. <method name="getCurrentValue" return="java.lang.Object"
  68230. abstract="true" native="false" synchronized="false"
  68231. static="false" final="false" visibility="public"
  68232. deprecated="not deprecated">
  68233. <exception name="IOException" type="java.io.IOException"/>
  68234. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68235. <doc>
  68236. <![CDATA[Get the current value.
  68237. @return the object that was read
  68238. @throws IOException
  68239. @throws InterruptedException]]>
  68240. </doc>
  68241. </method>
  68242. <method name="getProgress" return="float"
  68243. abstract="true" native="false" synchronized="false"
  68244. static="false" final="false" visibility="public"
  68245. deprecated="not deprecated">
  68246. <exception name="IOException" type="java.io.IOException"/>
  68247. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68248. <doc>
  68249. <![CDATA[The current progress of the record reader through its data.
  68250. @return a number between 0.0 and 1.0 that is the fraction of the data read
  68251. @throws IOException
  68252. @throws InterruptedException]]>
  68253. </doc>
  68254. </method>
  68255. <method name="close"
  68256. abstract="true" native="false" synchronized="false"
  68257. static="false" final="false" visibility="public"
  68258. deprecated="not deprecated">
  68259. <exception name="IOException" type="java.io.IOException"/>
  68260. <doc>
  68261. <![CDATA[Close the record reader.]]>
  68262. </doc>
  68263. </method>
  68264. <doc>
  68265. <![CDATA[The record reader breaks the data into key/value pairs for input to the
  68266. {@link Mapper}.
  68267. @param <KEYIN>
  68268. @param <VALUEIN>]]>
  68269. </doc>
  68270. </class>
  68271. <!-- end class org.apache.hadoop.mapreduce.RecordReader -->
  68272. <!-- start class org.apache.hadoop.mapreduce.RecordWriter -->
  68273. <class name="RecordWriter" extends="java.lang.Object"
  68274. abstract="true"
  68275. static="false" final="false" visibility="public"
  68276. deprecated="not deprecated">
  68277. <constructor name="RecordWriter"
  68278. static="false" final="false" visibility="public"
  68279. deprecated="not deprecated">
  68280. </constructor>
  68281. <method name="write"
  68282. abstract="true" native="false" synchronized="false"
  68283. static="false" final="false" visibility="public"
  68284. deprecated="not deprecated">
  68285. <param name="key" type="java.lang.Object"/>
  68286. <param name="value" type="java.lang.Object"/>
  68287. <exception name="IOException" type="java.io.IOException"/>
  68288. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68289. <doc>
  68290. <![CDATA[Writes a key/value pair.
  68291. @param key the key to write.
  68292. @param value the value to write.
  68293. @throws IOException]]>
  68294. </doc>
  68295. </method>
  68296. <method name="close"
  68297. abstract="true" native="false" synchronized="false"
  68298. static="false" final="false" visibility="public"
  68299. deprecated="not deprecated">
  68300. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  68301. <exception name="IOException" type="java.io.IOException"/>
  68302. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68303. <doc>
  68304. <![CDATA[Close this <code>RecordWriter</code> to future operations.
  68305. @param context the context of the task
  68306. @throws IOException]]>
  68307. </doc>
  68308. </method>
  68309. <doc>
  68310. <![CDATA[<code>RecordWriter</code> writes the output &lt;key, value&gt; pairs
  68311. to an output file.
  68312. <p><code>RecordWriter</code> implementations write the job outputs to the
  68313. {@link FileSystem}.
  68314. @see OutputFormat]]>
  68315. </doc>
  68316. </class>
  68317. <!-- end class org.apache.hadoop.mapreduce.RecordWriter -->
  68318. <!-- start class org.apache.hadoop.mapreduce.ReduceContext -->
  68319. <class name="ReduceContext" extends="org.apache.hadoop.mapreduce.TaskInputOutputContext"
  68320. abstract="false"
  68321. static="false" final="false" visibility="public"
  68322. deprecated="not deprecated">
  68323. <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"
  68324. static="false" final="false" visibility="public"
  68325. deprecated="not deprecated">
  68326. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68327. <exception name="IOException" type="java.io.IOException"/>
  68328. </constructor>
  68329. <method name="nextKey" return="boolean"
  68330. abstract="false" native="false" synchronized="false"
  68331. static="false" final="false" visibility="public"
  68332. deprecated="not deprecated">
  68333. <exception name="IOException" type="java.io.IOException"/>
  68334. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68335. <doc>
  68336. <![CDATA[Start processing next unique key.]]>
  68337. </doc>
  68338. </method>
  68339. <method name="nextKeyValue" return="boolean"
  68340. abstract="false" native="false" synchronized="false"
  68341. static="false" final="false" visibility="public"
  68342. deprecated="not deprecated">
  68343. <exception name="IOException" type="java.io.IOException"/>
  68344. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68345. <doc>
  68346. <![CDATA[Advance to the next key/value pair.]]>
  68347. </doc>
  68348. </method>
  68349. <method name="getCurrentKey" return="java.lang.Object"
  68350. abstract="false" native="false" synchronized="false"
  68351. static="false" final="false" visibility="public"
  68352. deprecated="not deprecated">
  68353. </method>
  68354. <method name="getCurrentValue" return="java.lang.Object"
  68355. abstract="false" native="false" synchronized="false"
  68356. static="false" final="false" visibility="public"
  68357. deprecated="not deprecated">
  68358. </method>
  68359. <method name="getValues" return="java.lang.Iterable"
  68360. abstract="false" native="false" synchronized="false"
  68361. static="false" final="false" visibility="public"
  68362. deprecated="not deprecated">
  68363. <exception name="IOException" type="java.io.IOException"/>
  68364. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68365. <doc>
  68366. <![CDATA[Iterate through the values for the current key, reusing the same value
  68367. object, which is stored in the context.
  68368. @return the series of values associated with the current key. All of the
  68369. objects returned directly and indirectly from this method are reused.]]>
  68370. </doc>
  68371. </method>
  68372. <field name="reporter" type="org.apache.hadoop.util.Progressable"
  68373. transient="false" volatile="false"
  68374. static="false" final="false" visibility="protected"
  68375. deprecated="not deprecated">
  68376. </field>
  68377. <doc>
  68378. <![CDATA[The context passed to the {@link Reducer}.
  68379. @param <KEYIN> the class of the input keys
  68380. @param <VALUEIN> the class of the input values
  68381. @param <KEYOUT> the class of the output keys
  68382. @param <VALUEOUT> the class of the output values]]>
  68383. </doc>
  68384. </class>
  68385. <!-- end class org.apache.hadoop.mapreduce.ReduceContext -->
  68386. <!-- start class org.apache.hadoop.mapreduce.ReduceContext.ValueIterable -->
  68387. <class name="ReduceContext.ValueIterable" extends="java.lang.Object"
  68388. abstract="false"
  68389. static="false" final="false" visibility="protected"
  68390. deprecated="not deprecated">
  68391. <implements name="java.lang.Iterable"/>
  68392. <constructor name="ReduceContext.ValueIterable"
  68393. static="false" final="false" visibility="protected"
  68394. deprecated="not deprecated">
  68395. </constructor>
  68396. <method name="iterator" return="java.util.Iterator"
  68397. abstract="false" native="false" synchronized="false"
  68398. static="false" final="false" visibility="public"
  68399. deprecated="not deprecated">
  68400. </method>
  68401. </class>
  68402. <!-- end class org.apache.hadoop.mapreduce.ReduceContext.ValueIterable -->
  68403. <!-- start class org.apache.hadoop.mapreduce.ReduceContext.ValueIterator -->
  68404. <class name="ReduceContext.ValueIterator" extends="java.lang.Object"
  68405. abstract="false"
  68406. static="false" final="false" visibility="protected"
  68407. deprecated="not deprecated">
  68408. <implements name="java.util.Iterator"/>
  68409. <constructor name="ReduceContext.ValueIterator"
  68410. static="false" final="false" visibility="protected"
  68411. deprecated="not deprecated">
  68412. </constructor>
  68413. <method name="hasNext" return="boolean"
  68414. abstract="false" native="false" synchronized="false"
  68415. static="false" final="false" visibility="public"
  68416. deprecated="not deprecated">
  68417. </method>
  68418. <method name="next" return="java.lang.Object"
  68419. abstract="false" native="false" synchronized="false"
  68420. static="false" final="false" visibility="public"
  68421. deprecated="not deprecated">
  68422. </method>
  68423. <method name="remove"
  68424. abstract="false" native="false" synchronized="false"
  68425. static="false" final="false" visibility="public"
  68426. deprecated="not deprecated">
  68427. </method>
  68428. </class>
  68429. <!-- end class org.apache.hadoop.mapreduce.ReduceContext.ValueIterator -->
  68430. <!-- start class org.apache.hadoop.mapreduce.Reducer -->
  68431. <class name="Reducer" extends="java.lang.Object"
  68432. abstract="false"
  68433. static="false" final="false" visibility="public"
  68434. deprecated="not deprecated">
  68435. <constructor name="Reducer"
  68436. static="false" final="false" visibility="public"
  68437. deprecated="not deprecated">
  68438. </constructor>
  68439. <method name="setup"
  68440. abstract="false" native="false" synchronized="false"
  68441. static="false" final="false" visibility="protected"
  68442. deprecated="not deprecated">
  68443. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  68444. <exception name="IOException" type="java.io.IOException"/>
  68445. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68446. <doc>
  68447. <![CDATA[Called once at the start of the task.]]>
  68448. </doc>
  68449. </method>
  68450. <method name="reduce"
  68451. abstract="false" native="false" synchronized="false"
  68452. static="false" final="false" visibility="protected"
  68453. deprecated="not deprecated">
  68454. <param name="key" type="java.lang.Object"/>
  68455. <param name="values" type="java.lang.Iterable"/>
  68456. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  68457. <exception name="IOException" type="java.io.IOException"/>
  68458. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68459. <doc>
  68460. <![CDATA[This method is called once for each key. Most applications will define
  68461. their reduce class by overriding this method. The default implementation
  68462. is an identity function.]]>
  68463. </doc>
  68464. </method>
  68465. <method name="cleanup"
  68466. abstract="false" native="false" synchronized="false"
  68467. static="false" final="false" visibility="protected"
  68468. deprecated="not deprecated">
  68469. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  68470. <exception name="IOException" type="java.io.IOException"/>
  68471. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68472. <doc>
  68473. <![CDATA[Called once at the end of the task.]]>
  68474. </doc>
  68475. </method>
  68476. <method name="run"
  68477. abstract="false" native="false" synchronized="false"
  68478. static="false" final="false" visibility="public"
  68479. deprecated="not deprecated">
  68480. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  68481. <exception name="IOException" type="java.io.IOException"/>
  68482. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68483. <doc>
  68484. <![CDATA[Advanced application writers can use the
  68485. {@link #run(org.apache.hadoop.mapreduce.Reducer.Context)} method to
  68486. control how the reduce task works.]]>
  68487. </doc>
  68488. </method>
  68489. <doc>
  68490. <![CDATA[Reduces a set of intermediate values which share a key to a smaller set of
  68491. values.
  68492. <p><code>Reducer</code> implementations
  68493. can access the {@link Configuration} for the job via the
  68494. {@link JobContext#getConfiguration()} method.</p>
  68495. <p><code>Reducer</code> has 3 primary phases:</p>
  68496. <ol>
  68497. <li>
  68498. <h4 id="Shuffle">Shuffle</h4>
  68499. <p>The <code>Reducer</code> copies the sorted output from each
  68500. {@link Mapper} using HTTP across the network.</p>
  68501. </li>
  68502. <li>
  68503. <h4 id="Sort">Sort</h4>
  68504. <p>The framework merge sorts <code>Reducer</code> inputs by
  68505. <code>key</code>s
  68506. (since different <code>Mapper</code>s may have output the same key).</p>
  68507. <p>The shuffle and sort phases occur simultaneously i.e. while outputs are
  68508. being fetched they are merged.</p>
  68509. <h5 id="SecondarySort">SecondarySort</h5>
  68510. <p>To achieve a secondary sort on the values returned by the value
  68511. iterator, the application should extend the key with the secondary
  68512. key and define a grouping comparator. The keys will be sorted using the
  68513. entire key, but will be grouped using the grouping comparator to decide
  68514. which keys and values are sent in the same call to reduce.The grouping
  68515. comparator is specified via
  68516. {@link Job#setGroupingComparatorClass(Class)}. The sort order is
  68517. controlled by
  68518. {@link Job#setSortComparatorClass(Class)}.</p>
  68519. For example, say that you want to find duplicate web pages and tag them
  68520. all with the url of the "best" known example. You would set up the job
  68521. like:
  68522. <ul>
  68523. <li>Map Input Key: url</li>
  68524. <li>Map Input Value: document</li>
  68525. <li>Map Output Key: document checksum, url pagerank</li>
  68526. <li>Map Output Value: url</li>
  68527. <li>Partitioner: by checksum</li>
  68528. <li>OutputKeyComparator: by checksum and then decreasing pagerank</li>
  68529. <li>OutputValueGroupingComparator: by checksum</li>
  68530. </ul>
  68531. </li>
  68532. <li>
  68533. <h4 id="Reduce">Reduce</h4>
  68534. <p>In this phase the
  68535. {@link #reduce(Object, Iterable, Context)}
  68536. method is called for each <code>&lt;key, (collection of values)></code> in
  68537. the sorted inputs.</p>
  68538. <p>The output of the reduce task is typically written to a
  68539. {@link RecordWriter} via
  68540. {@link Context#write(Object, Object)}.</p>
  68541. </li>
  68542. </ol>
  68543. <p>The output of the <code>Reducer</code> is <b>not re-sorted</b>.</p>
  68544. <p>Example:</p>
  68545. <p><blockquote><pre>
  68546. public class IntSumReducer<Key> extends Reducer<Key,IntWritable,
  68547. Key,IntWritable> {
  68548. private IntWritable result = new IntWritable();
  68549. public void reduce(Key key, Iterable<IntWritable> values,
  68550. Context context) throws IOException {
  68551. int sum = 0;
  68552. for (IntWritable val : values) {
  68553. sum += val.get();
  68554. }
  68555. result.set(sum);
  68556. context.collect(key, result);
  68557. }
  68558. }
  68559. </pre></blockquote></p>
  68560. @see Mapper
  68561. @see Partitioner]]>
  68562. </doc>
  68563. </class>
  68564. <!-- end class org.apache.hadoop.mapreduce.Reducer -->
  68565. <!-- start class org.apache.hadoop.mapreduce.Reducer.Context -->
  68566. <class name="Reducer.Context" extends="org.apache.hadoop.mapreduce.ReduceContext"
  68567. abstract="false"
  68568. static="false" final="false" visibility="public"
  68569. deprecated="not deprecated">
  68570. <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"
  68571. static="false" final="false" visibility="public"
  68572. deprecated="not deprecated">
  68573. <exception name="IOException" type="java.io.IOException"/>
  68574. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68575. </constructor>
  68576. </class>
  68577. <!-- end class org.apache.hadoop.mapreduce.Reducer.Context -->
  68578. <!-- start class org.apache.hadoop.mapreduce.StatusReporter -->
  68579. <class name="StatusReporter" extends="java.lang.Object"
  68580. abstract="true"
  68581. static="false" final="false" visibility="public"
  68582. deprecated="not deprecated">
  68583. <constructor name="StatusReporter"
  68584. static="false" final="false" visibility="public"
  68585. deprecated="not deprecated">
  68586. </constructor>
  68587. <method name="getCounter" return="org.apache.hadoop.mapreduce.Counter"
  68588. abstract="true" native="false" synchronized="false"
  68589. static="false" final="false" visibility="public"
  68590. deprecated="not deprecated">
  68591. <param name="name" type="java.lang.Enum"/>
  68592. </method>
  68593. <method name="getCounter" return="org.apache.hadoop.mapreduce.Counter"
  68594. abstract="true" native="false" synchronized="false"
  68595. static="false" final="false" visibility="public"
  68596. deprecated="not deprecated">
  68597. <param name="group" type="java.lang.String"/>
  68598. <param name="name" type="java.lang.String"/>
  68599. </method>
  68600. <method name="progress"
  68601. abstract="true" native="false" synchronized="false"
  68602. static="false" final="false" visibility="public"
  68603. deprecated="not deprecated">
  68604. </method>
  68605. <method name="getProgress" return="float"
  68606. abstract="true" native="false" synchronized="false"
  68607. static="false" final="false" visibility="public"
  68608. deprecated="not deprecated">
  68609. <doc>
  68610. <![CDATA[Get the current progress.
  68611. @return a number between 0.0 and 1.0 (inclusive) indicating the attempt's
  68612. progress.]]>
  68613. </doc>
  68614. </method>
  68615. <method name="setStatus"
  68616. abstract="true" native="false" synchronized="false"
  68617. static="false" final="false" visibility="public"
  68618. deprecated="not deprecated">
  68619. <param name="status" type="java.lang.String"/>
  68620. </method>
  68621. </class>
  68622. <!-- end class org.apache.hadoop.mapreduce.StatusReporter -->
  68623. <!-- start class org.apache.hadoop.mapreduce.TaskAttemptContext -->
  68624. <class name="TaskAttemptContext" extends="org.apache.hadoop.mapreduce.JobContext"
  68625. abstract="false"
  68626. static="false" final="false" visibility="public"
  68627. deprecated="not deprecated">
  68628. <implements name="org.apache.hadoop.util.Progressable"/>
  68629. <constructor name="TaskAttemptContext" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapreduce.TaskAttemptID"
  68630. static="false" final="false" visibility="public"
  68631. deprecated="not deprecated">
  68632. </constructor>
  68633. <method name="getTaskAttemptID" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  68634. abstract="false" native="false" synchronized="false"
  68635. static="false" final="false" visibility="public"
  68636. deprecated="not deprecated">
  68637. <doc>
  68638. <![CDATA[Get the unique name for this task attempt.]]>
  68639. </doc>
  68640. </method>
  68641. <method name="setStatus"
  68642. abstract="false" native="false" synchronized="false"
  68643. static="false" final="false" visibility="public"
  68644. deprecated="not deprecated">
  68645. <param name="msg" type="java.lang.String"/>
  68646. <exception name="IOException" type="java.io.IOException"/>
  68647. <doc>
  68648. <![CDATA[Set the current status of the task to the given string.]]>
  68649. </doc>
  68650. </method>
  68651. <method name="getStatus" return="java.lang.String"
  68652. abstract="false" native="false" synchronized="false"
  68653. static="false" final="false" visibility="public"
  68654. deprecated="not deprecated">
  68655. <doc>
  68656. <![CDATA[Get the last set status message.
  68657. @return the current status message]]>
  68658. </doc>
  68659. </method>
  68660. <method name="progress"
  68661. abstract="false" native="false" synchronized="false"
  68662. static="false" final="false" visibility="public"
  68663. deprecated="not deprecated">
  68664. <doc>
  68665. <![CDATA[Report progress. The subtypes actually do work in this method.]]>
  68666. </doc>
  68667. </method>
  68668. <doc>
  68669. <![CDATA[The context for task attempts.]]>
  68670. </doc>
  68671. </class>
  68672. <!-- end class org.apache.hadoop.mapreduce.TaskAttemptContext -->
  68673. <!-- start class org.apache.hadoop.mapreduce.TaskAttemptID -->
  68674. <class name="TaskAttemptID" extends="org.apache.hadoop.mapred.ID"
  68675. abstract="false"
  68676. static="false" final="false" visibility="public"
  68677. deprecated="not deprecated">
  68678. <constructor name="TaskAttemptID" type="org.apache.hadoop.mapreduce.TaskID, int"
  68679. static="false" final="false" visibility="public"
  68680. deprecated="not deprecated">
  68681. <doc>
  68682. <![CDATA[Constructs a TaskAttemptID object from given {@link TaskID}.
  68683. @param taskId TaskID that this task belongs to
  68684. @param id the task attempt number]]>
  68685. </doc>
  68686. </constructor>
  68687. <constructor name="TaskAttemptID" type="java.lang.String, int, boolean, int, int"
  68688. static="false" final="false" visibility="public"
  68689. deprecated="not deprecated">
  68690. <doc>
  68691. <![CDATA[Constructs a TaskId object from given parts.
  68692. @param jtIdentifier jobTracker identifier
  68693. @param jobId job number
  68694. @param isMap whether the tip is a map
  68695. @param taskId taskId number
  68696. @param id the task attempt number]]>
  68697. </doc>
  68698. </constructor>
  68699. <constructor name="TaskAttemptID"
  68700. static="false" final="false" visibility="public"
  68701. deprecated="not deprecated">
  68702. </constructor>
  68703. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  68704. abstract="false" native="false" synchronized="false"
  68705. static="false" final="false" visibility="public"
  68706. deprecated="not deprecated">
  68707. <doc>
  68708. <![CDATA[Returns the {@link JobID} object that this task attempt belongs to]]>
  68709. </doc>
  68710. </method>
  68711. <method name="getTaskID" return="org.apache.hadoop.mapreduce.TaskID"
  68712. abstract="false" native="false" synchronized="false"
  68713. static="false" final="false" visibility="public"
  68714. deprecated="not deprecated">
  68715. <doc>
  68716. <![CDATA[Returns the {@link TaskID} object that this task attempt belongs to]]>
  68717. </doc>
  68718. </method>
  68719. <method name="isMap" return="boolean"
  68720. abstract="false" native="false" synchronized="false"
  68721. static="false" final="false" visibility="public"
  68722. deprecated="not deprecated">
  68723. <doc>
  68724. <![CDATA[Returns whether this TaskAttemptID is a map ID]]>
  68725. </doc>
  68726. </method>
  68727. <method name="equals" return="boolean"
  68728. abstract="false" native="false" synchronized="false"
  68729. static="false" final="false" visibility="public"
  68730. deprecated="not deprecated">
  68731. <param name="o" type="java.lang.Object"/>
  68732. </method>
  68733. <method name="appendTo" return="java.lang.StringBuilder"
  68734. abstract="false" native="false" synchronized="false"
  68735. static="false" final="false" visibility="protected"
  68736. deprecated="not deprecated">
  68737. <param name="builder" type="java.lang.StringBuilder"/>
  68738. <doc>
  68739. <![CDATA[Add the unique string to the StringBuilder
  68740. @param builder the builder to append ot
  68741. @return the builder that was passed in.]]>
  68742. </doc>
  68743. </method>
  68744. <method name="readFields"
  68745. abstract="false" native="false" synchronized="false"
  68746. static="false" final="false" visibility="public"
  68747. deprecated="not deprecated">
  68748. <param name="in" type="java.io.DataInput"/>
  68749. <exception name="IOException" type="java.io.IOException"/>
  68750. </method>
  68751. <method name="write"
  68752. abstract="false" native="false" synchronized="false"
  68753. static="false" final="false" visibility="public"
  68754. deprecated="not deprecated">
  68755. <param name="out" type="java.io.DataOutput"/>
  68756. <exception name="IOException" type="java.io.IOException"/>
  68757. </method>
  68758. <method name="hashCode" return="int"
  68759. abstract="false" native="false" synchronized="false"
  68760. static="false" final="false" visibility="public"
  68761. deprecated="not deprecated">
  68762. </method>
  68763. <method name="compareTo" return="int"
  68764. abstract="false" native="false" synchronized="false"
  68765. static="false" final="false" visibility="public"
  68766. deprecated="not deprecated">
  68767. <param name="o" type="org.apache.hadoop.mapreduce.ID"/>
  68768. <doc>
  68769. <![CDATA[Compare TaskIds by first tipIds, then by task numbers.]]>
  68770. </doc>
  68771. </method>
  68772. <method name="toString" return="java.lang.String"
  68773. abstract="false" native="false" synchronized="false"
  68774. static="false" final="false" visibility="public"
  68775. deprecated="not deprecated">
  68776. </method>
  68777. <method name="forName" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  68778. abstract="false" native="false" synchronized="false"
  68779. static="true" final="false" visibility="public"
  68780. deprecated="not deprecated">
  68781. <param name="str" type="java.lang.String"/>
  68782. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  68783. <doc>
  68784. <![CDATA[Construct a TaskAttemptID object from given string
  68785. @return constructed TaskAttemptID object or null if the given String is null
  68786. @throws IllegalArgumentException if the given string is malformed]]>
  68787. </doc>
  68788. </method>
  68789. <field name="ATTEMPT" type="java.lang.String"
  68790. transient="false" volatile="false"
  68791. static="true" final="true" visibility="protected"
  68792. deprecated="not deprecated">
  68793. </field>
  68794. <doc>
  68795. <![CDATA[TaskAttemptID represents the immutable and unique identifier for
  68796. a task attempt. Each task attempt is one particular instance of a Map or
  68797. Reduce Task identified by its TaskID.
  68798. TaskAttemptID consists of 2 parts. First part is the
  68799. {@link TaskID}, that this TaskAttemptID belongs to.
  68800. Second part is the task attempt number. <br>
  68801. An example TaskAttemptID is :
  68802. <code>attempt_200707121733_0003_m_000005_0</code> , which represents the
  68803. zeroth task attempt for the fifth map task in the third job
  68804. running at the jobtracker started at <code>200707121733</code>.
  68805. <p>
  68806. Applications should never construct or parse TaskAttemptID strings
  68807. , but rather use appropriate constructors or {@link #forName(String)}
  68808. method.
  68809. @see JobID
  68810. @see TaskID]]>
  68811. </doc>
  68812. </class>
  68813. <!-- end class org.apache.hadoop.mapreduce.TaskAttemptID -->
  68814. <!-- start class org.apache.hadoop.mapreduce.TaskID -->
  68815. <class name="TaskID" extends="org.apache.hadoop.mapred.ID"
  68816. abstract="false"
  68817. static="false" final="false" visibility="public"
  68818. deprecated="not deprecated">
  68819. <constructor name="TaskID" type="org.apache.hadoop.mapreduce.JobID, boolean, int"
  68820. static="false" final="false" visibility="public"
  68821. deprecated="not deprecated">
  68822. <doc>
  68823. <![CDATA[Constructs a TaskID object from given {@link JobID}.
  68824. @param jobId JobID that this tip belongs to
  68825. @param isMap whether the tip is a map
  68826. @param id the tip number]]>
  68827. </doc>
  68828. </constructor>
  68829. <constructor name="TaskID" type="java.lang.String, int, boolean, int"
  68830. static="false" final="false" visibility="public"
  68831. deprecated="not deprecated">
  68832. <doc>
  68833. <![CDATA[Constructs a TaskInProgressId object from given parts.
  68834. @param jtIdentifier jobTracker identifier
  68835. @param jobId job number
  68836. @param isMap whether the tip is a map
  68837. @param id the tip number]]>
  68838. </doc>
  68839. </constructor>
  68840. <constructor name="TaskID"
  68841. static="false" final="false" visibility="public"
  68842. deprecated="not deprecated">
  68843. </constructor>
  68844. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  68845. abstract="false" native="false" synchronized="false"
  68846. static="false" final="false" visibility="public"
  68847. deprecated="not deprecated">
  68848. <doc>
  68849. <![CDATA[Returns the {@link JobID} object that this tip belongs to]]>
  68850. </doc>
  68851. </method>
  68852. <method name="isMap" return="boolean"
  68853. abstract="false" native="false" synchronized="false"
  68854. static="false" final="false" visibility="public"
  68855. deprecated="not deprecated">
  68856. <doc>
  68857. <![CDATA[Returns whether this TaskID is a map ID]]>
  68858. </doc>
  68859. </method>
  68860. <method name="equals" return="boolean"
  68861. abstract="false" native="false" synchronized="false"
  68862. static="false" final="false" visibility="public"
  68863. deprecated="not deprecated">
  68864. <param name="o" type="java.lang.Object"/>
  68865. </method>
  68866. <method name="compareTo" return="int"
  68867. abstract="false" native="false" synchronized="false"
  68868. static="false" final="false" visibility="public"
  68869. deprecated="not deprecated">
  68870. <param name="o" type="org.apache.hadoop.mapreduce.ID"/>
  68871. <doc>
  68872. <![CDATA[Compare TaskInProgressIds by first jobIds, then by tip numbers. Reduces are
  68873. defined as greater then maps.]]>
  68874. </doc>
  68875. </method>
  68876. <method name="toString" return="java.lang.String"
  68877. abstract="false" native="false" synchronized="false"
  68878. static="false" final="false" visibility="public"
  68879. deprecated="not deprecated">
  68880. </method>
  68881. <method name="appendTo" return="java.lang.StringBuilder"
  68882. abstract="false" native="false" synchronized="false"
  68883. static="false" final="false" visibility="protected"
  68884. deprecated="not deprecated">
  68885. <param name="builder" type="java.lang.StringBuilder"/>
  68886. <doc>
  68887. <![CDATA[Add the unique string to the given builder.
  68888. @param builder the builder to append to
  68889. @return the builder that was passed in]]>
  68890. </doc>
  68891. </method>
  68892. <method name="hashCode" return="int"
  68893. abstract="false" native="false" synchronized="false"
  68894. static="false" final="false" visibility="public"
  68895. deprecated="not deprecated">
  68896. </method>
  68897. <method name="readFields"
  68898. abstract="false" native="false" synchronized="false"
  68899. static="false" final="false" visibility="public"
  68900. deprecated="not deprecated">
  68901. <param name="in" type="java.io.DataInput"/>
  68902. <exception name="IOException" type="java.io.IOException"/>
  68903. </method>
  68904. <method name="write"
  68905. abstract="false" native="false" synchronized="false"
  68906. static="false" final="false" visibility="public"
  68907. deprecated="not deprecated">
  68908. <param name="out" type="java.io.DataOutput"/>
  68909. <exception name="IOException" type="java.io.IOException"/>
  68910. </method>
  68911. <method name="forName" return="org.apache.hadoop.mapreduce.TaskID"
  68912. abstract="false" native="false" synchronized="false"
  68913. static="true" final="false" visibility="public"
  68914. deprecated="not deprecated">
  68915. <param name="str" type="java.lang.String"/>
  68916. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  68917. <doc>
  68918. <![CDATA[Construct a TaskID object from given string
  68919. @return constructed TaskID object or null if the given String is null
  68920. @throws IllegalArgumentException if the given string is malformed]]>
  68921. </doc>
  68922. </method>
  68923. <field name="TASK" type="java.lang.String"
  68924. transient="false" volatile="false"
  68925. static="true" final="true" visibility="protected"
  68926. deprecated="not deprecated">
  68927. </field>
  68928. <field name="idFormat" type="java.text.NumberFormat"
  68929. transient="false" volatile="false"
  68930. static="true" final="true" visibility="protected"
  68931. deprecated="not deprecated">
  68932. </field>
  68933. <doc>
  68934. <![CDATA[TaskID represents the immutable and unique identifier for
  68935. a Map or Reduce Task. Each TaskID encompasses multiple attempts made to
  68936. execute the Map or Reduce Task, each of which are uniquely indentified by
  68937. their TaskAttemptID.
  68938. TaskID consists of 3 parts. First part is the {@link JobID}, that this
  68939. TaskInProgress belongs to. Second part of the TaskID is either 'm' or 'r'
  68940. representing whether the task is a map task or a reduce task.
  68941. And the third part is the task number. <br>
  68942. An example TaskID is :
  68943. <code>task_200707121733_0003_m_000005</code> , which represents the
  68944. fifth map task in the third job running at the jobtracker
  68945. started at <code>200707121733</code>.
  68946. <p>
  68947. Applications should never construct or parse TaskID strings
  68948. , but rather use appropriate constructors or {@link #forName(String)}
  68949. method.
  68950. @see JobID
  68951. @see TaskAttemptID]]>
  68952. </doc>
  68953. </class>
  68954. <!-- end class org.apache.hadoop.mapreduce.TaskID -->
  68955. <!-- start class org.apache.hadoop.mapreduce.TaskInputOutputContext -->
  68956. <class name="TaskInputOutputContext" extends="org.apache.hadoop.mapreduce.TaskAttemptContext"
  68957. abstract="true"
  68958. static="false" final="false" visibility="public"
  68959. deprecated="not deprecated">
  68960. <implements name="org.apache.hadoop.util.Progressable"/>
  68961. <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"
  68962. static="false" final="false" visibility="public"
  68963. deprecated="not deprecated">
  68964. </constructor>
  68965. <method name="nextKeyValue" return="boolean"
  68966. abstract="true" native="false" synchronized="false"
  68967. static="false" final="false" visibility="public"
  68968. deprecated="not deprecated">
  68969. <exception name="IOException" type="java.io.IOException"/>
  68970. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68971. <doc>
  68972. <![CDATA[Advance to the next key, value pair, returning null if at end.
  68973. @return the key object that was read into, or null if no more]]>
  68974. </doc>
  68975. </method>
  68976. <method name="getCurrentKey" return="java.lang.Object"
  68977. abstract="true" native="false" synchronized="false"
  68978. static="false" final="false" visibility="public"
  68979. deprecated="not deprecated">
  68980. <exception name="IOException" type="java.io.IOException"/>
  68981. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68982. <doc>
  68983. <![CDATA[Get the current key.
  68984. @return the current key object or null if there isn't one
  68985. @throws IOException
  68986. @throws InterruptedException]]>
  68987. </doc>
  68988. </method>
  68989. <method name="getCurrentValue" return="java.lang.Object"
  68990. abstract="true" native="false" synchronized="false"
  68991. static="false" final="false" visibility="public"
  68992. deprecated="not deprecated">
  68993. <exception name="IOException" type="java.io.IOException"/>
  68994. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68995. <doc>
  68996. <![CDATA[Get the current value.
  68997. @return the value object that was read into
  68998. @throws IOException
  68999. @throws InterruptedException]]>
  69000. </doc>
  69001. </method>
  69002. <method name="write"
  69003. abstract="false" native="false" synchronized="false"
  69004. static="false" final="false" visibility="public"
  69005. deprecated="not deprecated">
  69006. <param name="key" type="java.lang.Object"/>
  69007. <param name="value" type="java.lang.Object"/>
  69008. <exception name="IOException" type="java.io.IOException"/>
  69009. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69010. <doc>
  69011. <![CDATA[Generate an output key/value pair.]]>
  69012. </doc>
  69013. </method>
  69014. <method name="getCounter" return="org.apache.hadoop.mapreduce.Counter"
  69015. abstract="false" native="false" synchronized="false"
  69016. static="false" final="false" visibility="public"
  69017. deprecated="not deprecated">
  69018. <param name="counterName" type="java.lang.Enum"/>
  69019. </method>
  69020. <method name="getCounter" return="org.apache.hadoop.mapreduce.Counter"
  69021. abstract="false" native="false" synchronized="false"
  69022. static="false" final="false" visibility="public"
  69023. deprecated="not deprecated">
  69024. <param name="groupName" type="java.lang.String"/>
  69025. <param name="counterName" type="java.lang.String"/>
  69026. </method>
  69027. <method name="progress"
  69028. abstract="false" native="false" synchronized="false"
  69029. static="false" final="false" visibility="public"
  69030. deprecated="not deprecated">
  69031. </method>
  69032. <method name="getProgress" return="float"
  69033. abstract="false" native="false" synchronized="false"
  69034. static="false" final="false" visibility="public"
  69035. deprecated="not deprecated">
  69036. </method>
  69037. <method name="setStatus"
  69038. abstract="false" native="false" synchronized="false"
  69039. static="false" final="false" visibility="public"
  69040. deprecated="not deprecated">
  69041. <param name="status" type="java.lang.String"/>
  69042. </method>
  69043. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  69044. abstract="false" native="false" synchronized="false"
  69045. static="false" final="false" visibility="public"
  69046. deprecated="not deprecated">
  69047. </method>
  69048. <doc>
  69049. <![CDATA[A context object that allows input and output from the task. It is only
  69050. supplied to the {@link Mapper} or {@link Reducer}.
  69051. @param <KEYIN> the input key type for the task
  69052. @param <VALUEIN> the input value type for the task
  69053. @param <KEYOUT> the output key type for the task
  69054. @param <VALUEOUT> the output value type for the task]]>
  69055. </doc>
  69056. </class>
  69057. <!-- end class org.apache.hadoop.mapreduce.TaskInputOutputContext -->
  69058. <!-- start class org.apache.hadoop.mapreduce.TaskType -->
  69059. <class name="TaskType" extends="java.lang.Enum"
  69060. abstract="false"
  69061. static="false" final="true" visibility="public"
  69062. deprecated="not deprecated">
  69063. <method name="values" return="org.apache.hadoop.mapreduce.TaskType[]"
  69064. abstract="false" native="false" synchronized="false"
  69065. static="true" final="false" visibility="public"
  69066. deprecated="not deprecated">
  69067. </method>
  69068. <method name="valueOf" return="org.apache.hadoop.mapreduce.TaskType"
  69069. abstract="false" native="false" synchronized="false"
  69070. static="true" final="false" visibility="public"
  69071. deprecated="not deprecated">
  69072. <param name="name" type="java.lang.String"/>
  69073. </method>
  69074. <field name="MAP" type="org.apache.hadoop.mapreduce.TaskType"
  69075. transient="false" volatile="false"
  69076. static="true" final="true" visibility="public"
  69077. deprecated="not deprecated">
  69078. </field>
  69079. <field name="REDUCE" type="org.apache.hadoop.mapreduce.TaskType"
  69080. transient="false" volatile="false"
  69081. static="true" final="true" visibility="public"
  69082. deprecated="not deprecated">
  69083. </field>
  69084. <field name="JOB_SETUP" type="org.apache.hadoop.mapreduce.TaskType"
  69085. transient="false" volatile="false"
  69086. static="true" final="true" visibility="public"
  69087. deprecated="not deprecated">
  69088. </field>
  69089. <field name="JOB_CLEANUP" type="org.apache.hadoop.mapreduce.TaskType"
  69090. transient="false" volatile="false"
  69091. static="true" final="true" visibility="public"
  69092. deprecated="not deprecated">
  69093. </field>
  69094. <field name="TASK_CLEANUP" type="org.apache.hadoop.mapreduce.TaskType"
  69095. transient="false" volatile="false"
  69096. static="true" final="true" visibility="public"
  69097. deprecated="not deprecated">
  69098. </field>
  69099. <doc>
  69100. <![CDATA[Enum for map, reduce, job-setup, job-cleanup, task-cleanup task types.]]>
  69101. </doc>
  69102. </class>
  69103. <!-- end class org.apache.hadoop.mapreduce.TaskType -->
  69104. </package>
  69105. <package name="org.apache.hadoop.mapreduce.lib.db">
  69106. <!-- start class org.apache.hadoop.mapreduce.lib.db.BigDecimalSplitter -->
  69107. <class name="BigDecimalSplitter" extends="java.lang.Object"
  69108. abstract="false"
  69109. static="false" final="false" visibility="public"
  69110. deprecated="not deprecated">
  69111. <implements name="org.apache.hadoop.mapreduce.lib.db.DBSplitter"/>
  69112. <constructor name="BigDecimalSplitter"
  69113. static="false" final="false" visibility="public"
  69114. deprecated="not deprecated">
  69115. </constructor>
  69116. <method name="split" return="java.util.List"
  69117. abstract="false" native="false" synchronized="false"
  69118. static="false" final="false" visibility="public"
  69119. deprecated="not deprecated">
  69120. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  69121. <param name="results" type="java.sql.ResultSet"/>
  69122. <param name="colName" type="java.lang.String"/>
  69123. <exception name="SQLException" type="java.sql.SQLException"/>
  69124. </method>
  69125. <method name="tryDivide" return="java.math.BigDecimal"
  69126. abstract="false" native="false" synchronized="false"
  69127. static="false" final="false" visibility="protected"
  69128. deprecated="not deprecated">
  69129. <param name="numerator" type="java.math.BigDecimal"/>
  69130. <param name="denominator" type="java.math.BigDecimal"/>
  69131. <doc>
  69132. <![CDATA[Divide numerator by denominator. If impossible in exact mode, use rounding.]]>
  69133. </doc>
  69134. </method>
  69135. <doc>
  69136. <![CDATA[Implement DBSplitter over BigDecimal values.]]>
  69137. </doc>
  69138. </class>
  69139. <!-- end class org.apache.hadoop.mapreduce.lib.db.BigDecimalSplitter -->
  69140. <!-- start class org.apache.hadoop.mapreduce.lib.db.BooleanSplitter -->
  69141. <class name="BooleanSplitter" extends="java.lang.Object"
  69142. abstract="false"
  69143. static="false" final="false" visibility="public"
  69144. deprecated="not deprecated">
  69145. <implements name="org.apache.hadoop.mapreduce.lib.db.DBSplitter"/>
  69146. <constructor name="BooleanSplitter"
  69147. static="false" final="false" visibility="public"
  69148. deprecated="not deprecated">
  69149. </constructor>
  69150. <method name="split" return="java.util.List"
  69151. abstract="false" native="false" synchronized="false"
  69152. static="false" final="false" visibility="public"
  69153. deprecated="not deprecated">
  69154. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  69155. <param name="results" type="java.sql.ResultSet"/>
  69156. <param name="colName" type="java.lang.String"/>
  69157. <exception name="SQLException" type="java.sql.SQLException"/>
  69158. </method>
  69159. <doc>
  69160. <![CDATA[Implement DBSplitter over boolean values.]]>
  69161. </doc>
  69162. </class>
  69163. <!-- end class org.apache.hadoop.mapreduce.lib.db.BooleanSplitter -->
  69164. <!-- start class org.apache.hadoop.mapreduce.lib.db.DataDrivenDBInputFormat -->
  69165. <class name="DataDrivenDBInputFormat" extends="org.apache.hadoop.mapreduce.lib.db.DBInputFormat"
  69166. abstract="false"
  69167. static="false" final="false" visibility="public"
  69168. deprecated="not deprecated">
  69169. <implements name="org.apache.hadoop.conf.Configurable"/>
  69170. <constructor name="DataDrivenDBInputFormat"
  69171. static="false" final="false" visibility="public"
  69172. deprecated="not deprecated">
  69173. </constructor>
  69174. <method name="getSplitter" return="org.apache.hadoop.mapreduce.lib.db.DBSplitter"
  69175. abstract="false" native="false" synchronized="false"
  69176. static="false" final="false" visibility="protected"
  69177. deprecated="not deprecated">
  69178. <param name="sqlDataType" type="int"/>
  69179. <doc>
  69180. <![CDATA[@return the DBSplitter implementation to use to divide the table/query into InputSplits.]]>
  69181. </doc>
  69182. </method>
  69183. <method name="getSplits" return="java.util.List"
  69184. abstract="false" native="false" synchronized="false"
  69185. static="false" final="false" visibility="public"
  69186. deprecated="not deprecated">
  69187. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  69188. <exception name="IOException" type="java.io.IOException"/>
  69189. <doc>
  69190. <![CDATA[{@inheritDoc}]]>
  69191. </doc>
  69192. </method>
  69193. <method name="getBoundingValsQuery" return="java.lang.String"
  69194. abstract="false" native="false" synchronized="false"
  69195. static="false" final="false" visibility="protected"
  69196. deprecated="not deprecated">
  69197. <doc>
  69198. <![CDATA[@return a query which returns the minimum and maximum values for
  69199. the order-by column.
  69200. The min value should be in the first column, and the
  69201. max value should be in the second column of the results.]]>
  69202. </doc>
  69203. </method>
  69204. <method name="setBoundingQuery"
  69205. abstract="false" native="false" synchronized="false"
  69206. static="true" final="false" visibility="public"
  69207. deprecated="not deprecated">
  69208. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  69209. <param name="query" type="java.lang.String"/>
  69210. <doc>
  69211. <![CDATA[Set the user-defined bounding query to use with a user-defined query.
  69212. This *must* include the substring "$CONDITIONS"
  69213. (DataDrivenDBInputFormat.SUBSTITUTE_TOKEN) inside the WHERE clause,
  69214. so that DataDrivenDBInputFormat knows where to insert split clauses.
  69215. e.g., "SELECT foo FROM mytable WHERE $CONDITIONS"
  69216. This will be expanded to something like:
  69217. SELECT foo FROM mytable WHERE (id &gt; 100) AND (id &lt; 250)
  69218. inside each split.]]>
  69219. </doc>
  69220. </method>
  69221. <method name="createDBRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  69222. abstract="false" native="false" synchronized="false"
  69223. static="false" final="false" visibility="protected"
  69224. deprecated="not deprecated">
  69225. <param name="split" type="org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit"/>
  69226. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  69227. <exception name="IOException" type="java.io.IOException"/>
  69228. </method>
  69229. <method name="setInput"
  69230. abstract="false" native="false" synchronized="false"
  69231. static="true" final="false" visibility="public"
  69232. deprecated="not deprecated">
  69233. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  69234. <param name="inputClass" type="java.lang.Class"/>
  69235. <param name="tableName" type="java.lang.String"/>
  69236. <param name="conditions" type="java.lang.String"/>
  69237. <param name="splitBy" type="java.lang.String"/>
  69238. <param name="fieldNames" type="java.lang.String[]"/>
  69239. <doc>
  69240. <![CDATA[Note that the "orderBy" column is called the "splitBy" in this version.
  69241. We reuse the same field, but it's not strictly ordering it -- just partitioning
  69242. the results.]]>
  69243. </doc>
  69244. </method>
  69245. <method name="setInput"
  69246. abstract="false" native="false" synchronized="false"
  69247. static="true" final="false" visibility="public"
  69248. deprecated="not deprecated">
  69249. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  69250. <param name="inputClass" type="java.lang.Class"/>
  69251. <param name="inputQuery" type="java.lang.String"/>
  69252. <param name="inputBoundingQuery" type="java.lang.String"/>
  69253. <doc>
  69254. <![CDATA[setInput() takes a custom query and a separate "bounding query" to use
  69255. instead of the custom "count query" used by DBInputFormat.]]>
  69256. </doc>
  69257. </method>
  69258. <field name="SUBSTITUTE_TOKEN" type="java.lang.String"
  69259. transient="false" volatile="false"
  69260. static="true" final="true" visibility="public"
  69261. deprecated="not deprecated">
  69262. <doc>
  69263. <![CDATA[If users are providing their own query, the following string is expected to
  69264. appear in the WHERE clause, which will be substituted with a pair of conditions
  69265. on the input to allow input splits to parallelise the import.]]>
  69266. </doc>
  69267. </field>
  69268. <doc>
  69269. <![CDATA[A InputFormat that reads input data from an SQL table.
  69270. Operates like DBInputFormat, but instead of using LIMIT and OFFSET to demarcate
  69271. splits, it tries to generate WHERE clauses which separate the data into roughly
  69272. equivalent shards.]]>
  69273. </doc>
  69274. </class>
  69275. <!-- end class org.apache.hadoop.mapreduce.lib.db.DataDrivenDBInputFormat -->
  69276. <!-- start class org.apache.hadoop.mapreduce.lib.db.DataDrivenDBInputFormat.DataDrivenDBInputSplit -->
  69277. <class name="DataDrivenDBInputFormat.DataDrivenDBInputSplit" extends="org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit"
  69278. abstract="false"
  69279. static="true" final="false" visibility="public"
  69280. deprecated="not deprecated">
  69281. <constructor name="DataDrivenDBInputFormat.DataDrivenDBInputSplit"
  69282. static="false" final="false" visibility="public"
  69283. deprecated="not deprecated">
  69284. <doc>
  69285. <![CDATA[Default Constructor]]>
  69286. </doc>
  69287. </constructor>
  69288. <constructor name="DataDrivenDBInputFormat.DataDrivenDBInputSplit" type="java.lang.String, java.lang.String"
  69289. static="false" final="false" visibility="public"
  69290. deprecated="not deprecated">
  69291. <doc>
  69292. <![CDATA[Convenience Constructor
  69293. @param lower the string to be put in the WHERE clause to guard on the 'lower' end
  69294. @param upper the string to be put in the WHERE clause to guard on the 'upper' end]]>
  69295. </doc>
  69296. </constructor>
  69297. <method name="getLength" return="long"
  69298. abstract="false" native="false" synchronized="false"
  69299. static="false" final="false" visibility="public"
  69300. deprecated="not deprecated">
  69301. <exception name="IOException" type="java.io.IOException"/>
  69302. <doc>
  69303. <![CDATA[@return The total row count in this split]]>
  69304. </doc>
  69305. </method>
  69306. <method name="readFields"
  69307. abstract="false" native="false" synchronized="false"
  69308. static="false" final="false" visibility="public"
  69309. deprecated="not deprecated">
  69310. <param name="input" type="java.io.DataInput"/>
  69311. <exception name="IOException" type="java.io.IOException"/>
  69312. <doc>
  69313. <![CDATA[{@inheritDoc}]]>
  69314. </doc>
  69315. </method>
  69316. <method name="write"
  69317. abstract="false" native="false" synchronized="false"
  69318. static="false" final="false" visibility="public"
  69319. deprecated="not deprecated">
  69320. <param name="output" type="java.io.DataOutput"/>
  69321. <exception name="IOException" type="java.io.IOException"/>
  69322. <doc>
  69323. <![CDATA[{@inheritDoc}]]>
  69324. </doc>
  69325. </method>
  69326. <method name="getLowerClause" return="java.lang.String"
  69327. abstract="false" native="false" synchronized="false"
  69328. static="false" final="false" visibility="public"
  69329. deprecated="not deprecated">
  69330. </method>
  69331. <method name="getUpperClause" return="java.lang.String"
  69332. abstract="false" native="false" synchronized="false"
  69333. static="false" final="false" visibility="public"
  69334. deprecated="not deprecated">
  69335. </method>
  69336. <doc>
  69337. <![CDATA[A InputSplit that spans a set of rows]]>
  69338. </doc>
  69339. </class>
  69340. <!-- end class org.apache.hadoop.mapreduce.lib.db.DataDrivenDBInputFormat.DataDrivenDBInputSplit -->
  69341. <!-- start class org.apache.hadoop.mapreduce.lib.db.DataDrivenDBRecordReader -->
  69342. <class name="DataDrivenDBRecordReader" extends="org.apache.hadoop.mapreduce.lib.db.DBRecordReader"
  69343. abstract="false"
  69344. static="false" final="false" visibility="public"
  69345. deprecated="not deprecated">
  69346. <constructor name="DataDrivenDBRecordReader" type="org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit, java.lang.Class, org.apache.hadoop.conf.Configuration, java.sql.Connection, org.apache.hadoop.mapreduce.lib.db.DBConfiguration, java.lang.String, java.lang.String[], java.lang.String, java.lang.String"
  69347. static="false" final="false" visibility="public"
  69348. deprecated="not deprecated">
  69349. <exception name="SQLException" type="java.sql.SQLException"/>
  69350. <doc>
  69351. <![CDATA[@param split The InputSplit to read data for
  69352. @throws SQLException]]>
  69353. </doc>
  69354. </constructor>
  69355. <method name="getSelectQuery" return="java.lang.String"
  69356. abstract="false" native="false" synchronized="false"
  69357. static="false" final="false" visibility="protected"
  69358. deprecated="not deprecated">
  69359. <doc>
  69360. <![CDATA[Returns the query for selecting the records,
  69361. subclasses can override this for custom behaviour.]]>
  69362. </doc>
  69363. </method>
  69364. <doc>
  69365. <![CDATA[A RecordReader that reads records from a SQL table,
  69366. using data-driven WHERE clause splits.
  69367. Emits LongWritables containing the record number as
  69368. key and DBWritables as value.]]>
  69369. </doc>
  69370. </class>
  69371. <!-- end class org.apache.hadoop.mapreduce.lib.db.DataDrivenDBRecordReader -->
  69372. <!-- start class org.apache.hadoop.mapreduce.lib.db.DateSplitter -->
  69373. <class name="DateSplitter" extends="org.apache.hadoop.mapreduce.lib.db.IntegerSplitter"
  69374. abstract="false"
  69375. static="false" final="false" visibility="public"
  69376. deprecated="not deprecated">
  69377. <constructor name="DateSplitter"
  69378. static="false" final="false" visibility="public"
  69379. deprecated="not deprecated">
  69380. </constructor>
  69381. <method name="split" return="java.util.List"
  69382. abstract="false" native="false" synchronized="false"
  69383. static="false" final="false" visibility="public"
  69384. deprecated="not deprecated">
  69385. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  69386. <param name="results" type="java.sql.ResultSet"/>
  69387. <param name="colName" type="java.lang.String"/>
  69388. <exception name="SQLException" type="java.sql.SQLException"/>
  69389. </method>
  69390. <method name="dateToString" return="java.lang.String"
  69391. abstract="false" native="false" synchronized="false"
  69392. static="false" final="false" visibility="protected"
  69393. deprecated="not deprecated">
  69394. <param name="d" type="java.util.Date"/>
  69395. <doc>
  69396. <![CDATA[Given a Date 'd', format it as a string for use in a SQL date
  69397. comparison operation.
  69398. @param d the date to format.
  69399. @return the string representing this date in SQL with any appropriate
  69400. quotation characters, etc.]]>
  69401. </doc>
  69402. </method>
  69403. <doc>
  69404. <![CDATA[Implement DBSplitter over date/time values.
  69405. Make use of logic from IntegerSplitter, since date/time are just longs
  69406. in Java.]]>
  69407. </doc>
  69408. </class>
  69409. <!-- end class org.apache.hadoop.mapreduce.lib.db.DateSplitter -->
  69410. <!-- start class org.apache.hadoop.mapreduce.lib.db.DBConfiguration -->
  69411. <class name="DBConfiguration" extends="java.lang.Object"
  69412. abstract="false"
  69413. static="false" final="false" visibility="public"
  69414. deprecated="not deprecated">
  69415. <constructor name="DBConfiguration" type="org.apache.hadoop.conf.Configuration"
  69416. static="false" final="false" visibility="public"
  69417. deprecated="not deprecated">
  69418. </constructor>
  69419. <method name="configureDB"
  69420. abstract="false" native="false" synchronized="false"
  69421. static="true" final="false" visibility="public"
  69422. deprecated="not deprecated">
  69423. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  69424. <param name="driverClass" type="java.lang.String"/>
  69425. <param name="dbUrl" type="java.lang.String"/>
  69426. <param name="userName" type="java.lang.String"/>
  69427. <param name="passwd" type="java.lang.String"/>
  69428. <doc>
  69429. <![CDATA[Sets the DB access related fields in the {@link Configuration}.
  69430. @param conf the configuration
  69431. @param driverClass JDBC Driver class name
  69432. @param dbUrl JDBC DB access URL.
  69433. @param userName DB access username
  69434. @param passwd DB access passwd]]>
  69435. </doc>
  69436. </method>
  69437. <method name="configureDB"
  69438. abstract="false" native="false" synchronized="false"
  69439. static="true" final="false" visibility="public"
  69440. deprecated="not deprecated">
  69441. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  69442. <param name="driverClass" type="java.lang.String"/>
  69443. <param name="dbUrl" type="java.lang.String"/>
  69444. <doc>
  69445. <![CDATA[Sets the DB access related fields in the JobConf.
  69446. @param job the job
  69447. @param driverClass JDBC Driver class name
  69448. @param dbUrl JDBC DB access URL.]]>
  69449. </doc>
  69450. </method>
  69451. <method name="getConnection" return="java.sql.Connection"
  69452. abstract="false" native="false" synchronized="false"
  69453. static="false" final="false" visibility="public"
  69454. deprecated="not deprecated">
  69455. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  69456. <exception name="SQLException" type="java.sql.SQLException"/>
  69457. <doc>
  69458. <![CDATA[Returns a connection object o the DB
  69459. @throws ClassNotFoundException
  69460. @throws SQLException]]>
  69461. </doc>
  69462. </method>
  69463. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  69464. abstract="false" native="false" synchronized="false"
  69465. static="false" final="false" visibility="public"
  69466. deprecated="not deprecated">
  69467. </method>
  69468. <method name="getInputTableName" return="java.lang.String"
  69469. abstract="false" native="false" synchronized="false"
  69470. static="false" final="false" visibility="public"
  69471. deprecated="not deprecated">
  69472. </method>
  69473. <method name="setInputTableName"
  69474. abstract="false" native="false" synchronized="false"
  69475. static="false" final="false" visibility="public"
  69476. deprecated="not deprecated">
  69477. <param name="tableName" type="java.lang.String"/>
  69478. </method>
  69479. <method name="getInputFieldNames" return="java.lang.String[]"
  69480. abstract="false" native="false" synchronized="false"
  69481. static="false" final="false" visibility="public"
  69482. deprecated="not deprecated">
  69483. </method>
  69484. <method name="setInputFieldNames"
  69485. abstract="false" native="false" synchronized="false"
  69486. static="false" final="false" visibility="public"
  69487. deprecated="not deprecated">
  69488. <param name="fieldNames" type="java.lang.String[]"/>
  69489. </method>
  69490. <method name="getInputConditions" return="java.lang.String"
  69491. abstract="false" native="false" synchronized="false"
  69492. static="false" final="false" visibility="public"
  69493. deprecated="not deprecated">
  69494. </method>
  69495. <method name="setInputConditions"
  69496. abstract="false" native="false" synchronized="false"
  69497. static="false" final="false" visibility="public"
  69498. deprecated="not deprecated">
  69499. <param name="conditions" type="java.lang.String"/>
  69500. </method>
  69501. <method name="getInputOrderBy" return="java.lang.String"
  69502. abstract="false" native="false" synchronized="false"
  69503. static="false" final="false" visibility="public"
  69504. deprecated="not deprecated">
  69505. </method>
  69506. <method name="setInputOrderBy"
  69507. abstract="false" native="false" synchronized="false"
  69508. static="false" final="false" visibility="public"
  69509. deprecated="not deprecated">
  69510. <param name="orderby" type="java.lang.String"/>
  69511. </method>
  69512. <method name="getInputQuery" return="java.lang.String"
  69513. abstract="false" native="false" synchronized="false"
  69514. static="false" final="false" visibility="public"
  69515. deprecated="not deprecated">
  69516. </method>
  69517. <method name="setInputQuery"
  69518. abstract="false" native="false" synchronized="false"
  69519. static="false" final="false" visibility="public"
  69520. deprecated="not deprecated">
  69521. <param name="query" type="java.lang.String"/>
  69522. </method>
  69523. <method name="getInputCountQuery" return="java.lang.String"
  69524. abstract="false" native="false" synchronized="false"
  69525. static="false" final="false" visibility="public"
  69526. deprecated="not deprecated">
  69527. </method>
  69528. <method name="setInputCountQuery"
  69529. abstract="false" native="false" synchronized="false"
  69530. static="false" final="false" visibility="public"
  69531. deprecated="not deprecated">
  69532. <param name="query" type="java.lang.String"/>
  69533. </method>
  69534. <method name="setInputBoundingQuery"
  69535. abstract="false" native="false" synchronized="false"
  69536. static="false" final="false" visibility="public"
  69537. deprecated="not deprecated">
  69538. <param name="query" type="java.lang.String"/>
  69539. </method>
  69540. <method name="getInputBoundingQuery" return="java.lang.String"
  69541. abstract="false" native="false" synchronized="false"
  69542. static="false" final="false" visibility="public"
  69543. deprecated="not deprecated">
  69544. </method>
  69545. <method name="getInputClass" return="java.lang.Class"
  69546. abstract="false" native="false" synchronized="false"
  69547. static="false" final="false" visibility="public"
  69548. deprecated="not deprecated">
  69549. </method>
  69550. <method name="setInputClass"
  69551. abstract="false" native="false" synchronized="false"
  69552. static="false" final="false" visibility="public"
  69553. deprecated="not deprecated">
  69554. <param name="inputClass" type="java.lang.Class"/>
  69555. </method>
  69556. <method name="getOutputTableName" return="java.lang.String"
  69557. abstract="false" native="false" synchronized="false"
  69558. static="false" final="false" visibility="public"
  69559. deprecated="not deprecated">
  69560. </method>
  69561. <method name="setOutputTableName"
  69562. abstract="false" native="false" synchronized="false"
  69563. static="false" final="false" visibility="public"
  69564. deprecated="not deprecated">
  69565. <param name="tableName" type="java.lang.String"/>
  69566. </method>
  69567. <method name="getOutputFieldNames" return="java.lang.String[]"
  69568. abstract="false" native="false" synchronized="false"
  69569. static="false" final="false" visibility="public"
  69570. deprecated="not deprecated">
  69571. </method>
  69572. <method name="setOutputFieldNames"
  69573. abstract="false" native="false" synchronized="false"
  69574. static="false" final="false" visibility="public"
  69575. deprecated="not deprecated">
  69576. <param name="fieldNames" type="java.lang.String[]"/>
  69577. </method>
  69578. <method name="setOutputFieldCount"
  69579. abstract="false" native="false" synchronized="false"
  69580. static="false" final="false" visibility="public"
  69581. deprecated="not deprecated">
  69582. <param name="fieldCount" type="int"/>
  69583. </method>
  69584. <method name="getOutputFieldCount" return="int"
  69585. abstract="false" native="false" synchronized="false"
  69586. static="false" final="false" visibility="public"
  69587. deprecated="not deprecated">
  69588. </method>
  69589. <field name="DRIVER_CLASS_PROPERTY" type="java.lang.String"
  69590. transient="false" volatile="false"
  69591. static="true" final="true" visibility="public"
  69592. deprecated="not deprecated">
  69593. <doc>
  69594. <![CDATA[The JDBC Driver class name]]>
  69595. </doc>
  69596. </field>
  69597. <field name="URL_PROPERTY" type="java.lang.String"
  69598. transient="false" volatile="false"
  69599. static="true" final="true" visibility="public"
  69600. deprecated="not deprecated">
  69601. <doc>
  69602. <![CDATA[JDBC Database access URL]]>
  69603. </doc>
  69604. </field>
  69605. <field name="USERNAME_PROPERTY" type="java.lang.String"
  69606. transient="false" volatile="false"
  69607. static="true" final="true" visibility="public"
  69608. deprecated="not deprecated">
  69609. <doc>
  69610. <![CDATA[User name to access the database]]>
  69611. </doc>
  69612. </field>
  69613. <field name="PASSWORD_PROPERTY" type="java.lang.String"
  69614. transient="false" volatile="false"
  69615. static="true" final="true" visibility="public"
  69616. deprecated="not deprecated">
  69617. <doc>
  69618. <![CDATA[Password to access the database]]>
  69619. </doc>
  69620. </field>
  69621. <field name="INPUT_TABLE_NAME_PROPERTY" type="java.lang.String"
  69622. transient="false" volatile="false"
  69623. static="true" final="true" visibility="public"
  69624. deprecated="not deprecated">
  69625. <doc>
  69626. <![CDATA[Input table name]]>
  69627. </doc>
  69628. </field>
  69629. <field name="INPUT_FIELD_NAMES_PROPERTY" type="java.lang.String"
  69630. transient="false" volatile="false"
  69631. static="true" final="true" visibility="public"
  69632. deprecated="not deprecated">
  69633. <doc>
  69634. <![CDATA[Field names in the Input table]]>
  69635. </doc>
  69636. </field>
  69637. <field name="INPUT_CONDITIONS_PROPERTY" type="java.lang.String"
  69638. transient="false" volatile="false"
  69639. static="true" final="true" visibility="public"
  69640. deprecated="not deprecated">
  69641. <doc>
  69642. <![CDATA[WHERE clause in the input SELECT statement]]>
  69643. </doc>
  69644. </field>
  69645. <field name="INPUT_ORDER_BY_PROPERTY" type="java.lang.String"
  69646. transient="false" volatile="false"
  69647. static="true" final="true" visibility="public"
  69648. deprecated="not deprecated">
  69649. <doc>
  69650. <![CDATA[ORDER BY clause in the input SELECT statement]]>
  69651. </doc>
  69652. </field>
  69653. <field name="INPUT_QUERY" type="java.lang.String"
  69654. transient="false" volatile="false"
  69655. static="true" final="true" visibility="public"
  69656. deprecated="not deprecated">
  69657. <doc>
  69658. <![CDATA[Whole input query, exluding LIMIT...OFFSET]]>
  69659. </doc>
  69660. </field>
  69661. <field name="INPUT_COUNT_QUERY" type="java.lang.String"
  69662. transient="false" volatile="false"
  69663. static="true" final="true" visibility="public"
  69664. deprecated="not deprecated">
  69665. <doc>
  69666. <![CDATA[Input query to get the count of records]]>
  69667. </doc>
  69668. </field>
  69669. <field name="INPUT_BOUNDING_QUERY" type="java.lang.String"
  69670. transient="false" volatile="false"
  69671. static="true" final="true" visibility="public"
  69672. deprecated="not deprecated">
  69673. <doc>
  69674. <![CDATA[Input query to get the max and min values of the jdbc.input.query]]>
  69675. </doc>
  69676. </field>
  69677. <field name="INPUT_CLASS_PROPERTY" type="java.lang.String"
  69678. transient="false" volatile="false"
  69679. static="true" final="true" visibility="public"
  69680. deprecated="not deprecated">
  69681. <doc>
  69682. <![CDATA[Class name implementing DBWritable which will hold input tuples]]>
  69683. </doc>
  69684. </field>
  69685. <field name="OUTPUT_TABLE_NAME_PROPERTY" type="java.lang.String"
  69686. transient="false" volatile="false"
  69687. static="true" final="true" visibility="public"
  69688. deprecated="not deprecated">
  69689. <doc>
  69690. <![CDATA[Output table name]]>
  69691. </doc>
  69692. </field>
  69693. <field name="OUTPUT_FIELD_NAMES_PROPERTY" type="java.lang.String"
  69694. transient="false" volatile="false"
  69695. static="true" final="true" visibility="public"
  69696. deprecated="not deprecated">
  69697. <doc>
  69698. <![CDATA[Field names in the Output table]]>
  69699. </doc>
  69700. </field>
  69701. <field name="OUTPUT_FIELD_COUNT_PROPERTY" type="java.lang.String"
  69702. transient="false" volatile="false"
  69703. static="true" final="true" visibility="public"
  69704. deprecated="not deprecated">
  69705. <doc>
  69706. <![CDATA[Number of fields in the Output table]]>
  69707. </doc>
  69708. </field>
  69709. <doc>
  69710. <![CDATA[A container for configuration property names for jobs with DB input/output.
  69711. The job can be configured using the static methods in this class,
  69712. {@link DBInputFormat}, and {@link DBOutputFormat}.
  69713. Alternatively, the properties can be set in the configuration with proper
  69714. values.
  69715. @see DBConfiguration#configureDB(Configuration, String, String, String, String)
  69716. @see DBInputFormat#setInput(Job, Class, String, String)
  69717. @see DBInputFormat#setInput(Job, Class, String, String, String, String...)
  69718. @see DBOutputFormat#setOutput(Job, String, String...)]]>
  69719. </doc>
  69720. </class>
  69721. <!-- end class org.apache.hadoop.mapreduce.lib.db.DBConfiguration -->
  69722. <!-- start class org.apache.hadoop.mapreduce.lib.db.DBInputFormat -->
  69723. <class name="DBInputFormat" extends="org.apache.hadoop.mapreduce.InputFormat"
  69724. abstract="false"
  69725. static="false" final="false" visibility="public"
  69726. deprecated="not deprecated">
  69727. <implements name="org.apache.hadoop.conf.Configurable"/>
  69728. <constructor name="DBInputFormat"
  69729. static="false" final="false" visibility="public"
  69730. deprecated="not deprecated">
  69731. </constructor>
  69732. <method name="setConf"
  69733. abstract="false" native="false" synchronized="false"
  69734. static="false" final="false" visibility="public"
  69735. deprecated="not deprecated">
  69736. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  69737. <doc>
  69738. <![CDATA[{@inheritDoc}]]>
  69739. </doc>
  69740. </method>
  69741. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  69742. abstract="false" native="false" synchronized="false"
  69743. static="false" final="false" visibility="public"
  69744. deprecated="not deprecated">
  69745. </method>
  69746. <method name="getDBConf" return="org.apache.hadoop.mapreduce.lib.db.DBConfiguration"
  69747. abstract="false" native="false" synchronized="false"
  69748. static="false" final="false" visibility="public"
  69749. deprecated="not deprecated">
  69750. </method>
  69751. <method name="getConnection" return="java.sql.Connection"
  69752. abstract="false" native="false" synchronized="false"
  69753. static="false" final="false" visibility="public"
  69754. deprecated="not deprecated">
  69755. </method>
  69756. <method name="getDBProductName" return="java.lang.String"
  69757. abstract="false" native="false" synchronized="false"
  69758. static="false" final="false" visibility="public"
  69759. deprecated="not deprecated">
  69760. </method>
  69761. <method name="createDBRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  69762. abstract="false" native="false" synchronized="false"
  69763. static="false" final="false" visibility="protected"
  69764. deprecated="not deprecated">
  69765. <param name="split" type="org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit"/>
  69766. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  69767. <exception name="IOException" type="java.io.IOException"/>
  69768. </method>
  69769. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  69770. abstract="false" native="false" synchronized="false"
  69771. static="false" final="false" visibility="public"
  69772. deprecated="not deprecated">
  69773. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  69774. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  69775. <exception name="IOException" type="java.io.IOException"/>
  69776. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69777. <doc>
  69778. <![CDATA[{@inheritDoc}]]>
  69779. </doc>
  69780. </method>
  69781. <method name="getSplits" return="java.util.List"
  69782. abstract="false" native="false" synchronized="false"
  69783. static="false" final="false" visibility="public"
  69784. deprecated="not deprecated">
  69785. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  69786. <exception name="IOException" type="java.io.IOException"/>
  69787. <doc>
  69788. <![CDATA[{@inheritDoc}]]>
  69789. </doc>
  69790. </method>
  69791. <method name="getCountQuery" return="java.lang.String"
  69792. abstract="false" native="false" synchronized="false"
  69793. static="false" final="false" visibility="protected"
  69794. deprecated="not deprecated">
  69795. <doc>
  69796. <![CDATA[Returns the query for getting the total number of rows,
  69797. subclasses can override this for custom behaviour.]]>
  69798. </doc>
  69799. </method>
  69800. <method name="setInput"
  69801. abstract="false" native="false" synchronized="false"
  69802. static="true" final="false" visibility="public"
  69803. deprecated="not deprecated">
  69804. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  69805. <param name="inputClass" type="java.lang.Class"/>
  69806. <param name="tableName" type="java.lang.String"/>
  69807. <param name="conditions" type="java.lang.String"/>
  69808. <param name="orderBy" type="java.lang.String"/>
  69809. <param name="fieldNames" type="java.lang.String[]"/>
  69810. <doc>
  69811. <![CDATA[Initializes the map-part of the job with the appropriate input settings.
  69812. @param job The map-reduce job
  69813. @param inputClass the class object implementing DBWritable, which is the
  69814. Java object holding tuple fields.
  69815. @param tableName The table to read data from
  69816. @param conditions The condition which to select data with,
  69817. eg. '(updated > 20070101 AND length > 0)'
  69818. @param orderBy the fieldNames in the orderBy clause.
  69819. @param fieldNames The field names in the table
  69820. @see #setInput(Job, Class, String, String)]]>
  69821. </doc>
  69822. </method>
  69823. <method name="setInput"
  69824. abstract="false" native="false" synchronized="false"
  69825. static="true" final="false" visibility="public"
  69826. deprecated="not deprecated">
  69827. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  69828. <param name="inputClass" type="java.lang.Class"/>
  69829. <param name="inputQuery" type="java.lang.String"/>
  69830. <param name="inputCountQuery" type="java.lang.String"/>
  69831. <doc>
  69832. <![CDATA[Initializes the map-part of the job with the appropriate input settings.
  69833. @param job The map-reduce job
  69834. @param inputClass the class object implementing DBWritable, which is the
  69835. Java object holding tuple fields.
  69836. @param inputQuery the input query to select fields. Example :
  69837. "SELECT f1, f2, f3 FROM Mytable ORDER BY f1"
  69838. @param inputCountQuery the input query that returns
  69839. the number of records in the table.
  69840. Example : "SELECT COUNT(f1) FROM Mytable"
  69841. @see #setInput(Job, Class, String, String, String, String...)]]>
  69842. </doc>
  69843. </method>
  69844. <method name="closeConnection"
  69845. abstract="false" native="false" synchronized="false"
  69846. static="false" final="false" visibility="protected"
  69847. deprecated="not deprecated">
  69848. </method>
  69849. <doc>
  69850. <![CDATA[A InputFormat that reads input data from an SQL table.
  69851. <p>
  69852. DBInputFormat emits LongWritables containing the record number as
  69853. key and DBWritables as value.
  69854. The SQL query, and input class can be using one of the two
  69855. setInput methods.]]>
  69856. </doc>
  69857. </class>
  69858. <!-- end class org.apache.hadoop.mapreduce.lib.db.DBInputFormat -->
  69859. <!-- start class org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit -->
  69860. <class name="DBInputFormat.DBInputSplit" extends="org.apache.hadoop.mapreduce.InputSplit"
  69861. abstract="false"
  69862. static="true" final="false" visibility="public"
  69863. deprecated="not deprecated">
  69864. <implements name="org.apache.hadoop.io.Writable"/>
  69865. <constructor name="DBInputFormat.DBInputSplit"
  69866. static="false" final="false" visibility="public"
  69867. deprecated="not deprecated">
  69868. <doc>
  69869. <![CDATA[Default Constructor]]>
  69870. </doc>
  69871. </constructor>
  69872. <constructor name="DBInputFormat.DBInputSplit" type="long, long"
  69873. static="false" final="false" visibility="public"
  69874. deprecated="not deprecated">
  69875. <doc>
  69876. <![CDATA[Convenience Constructor
  69877. @param start the index of the first row to select
  69878. @param end the index of the last row to select]]>
  69879. </doc>
  69880. </constructor>
  69881. <method name="getLocations" return="java.lang.String[]"
  69882. abstract="false" native="false" synchronized="false"
  69883. static="false" final="false" visibility="public"
  69884. deprecated="not deprecated">
  69885. <exception name="IOException" type="java.io.IOException"/>
  69886. <doc>
  69887. <![CDATA[{@inheritDoc}]]>
  69888. </doc>
  69889. </method>
  69890. <method name="getStart" return="long"
  69891. abstract="false" native="false" synchronized="false"
  69892. static="false" final="false" visibility="public"
  69893. deprecated="not deprecated">
  69894. <doc>
  69895. <![CDATA[@return The index of the first row to select]]>
  69896. </doc>
  69897. </method>
  69898. <method name="getEnd" return="long"
  69899. abstract="false" native="false" synchronized="false"
  69900. static="false" final="false" visibility="public"
  69901. deprecated="not deprecated">
  69902. <doc>
  69903. <![CDATA[@return The index of the last row to select]]>
  69904. </doc>
  69905. </method>
  69906. <method name="getLength" return="long"
  69907. abstract="false" native="false" synchronized="false"
  69908. static="false" final="false" visibility="public"
  69909. deprecated="not deprecated">
  69910. <exception name="IOException" type="java.io.IOException"/>
  69911. <doc>
  69912. <![CDATA[@return The total row count in this split]]>
  69913. </doc>
  69914. </method>
  69915. <method name="readFields"
  69916. abstract="false" native="false" synchronized="false"
  69917. static="false" final="false" visibility="public"
  69918. deprecated="not deprecated">
  69919. <param name="input" type="java.io.DataInput"/>
  69920. <exception name="IOException" type="java.io.IOException"/>
  69921. <doc>
  69922. <![CDATA[{@inheritDoc}]]>
  69923. </doc>
  69924. </method>
  69925. <method name="write"
  69926. abstract="false" native="false" synchronized="false"
  69927. static="false" final="false" visibility="public"
  69928. deprecated="not deprecated">
  69929. <param name="output" type="java.io.DataOutput"/>
  69930. <exception name="IOException" type="java.io.IOException"/>
  69931. <doc>
  69932. <![CDATA[{@inheritDoc}]]>
  69933. </doc>
  69934. </method>
  69935. <doc>
  69936. <![CDATA[A InputSplit that spans a set of rows]]>
  69937. </doc>
  69938. </class>
  69939. <!-- end class org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit -->
  69940. <!-- start class org.apache.hadoop.mapreduce.lib.db.DBInputFormat.NullDBWritable -->
  69941. <class name="DBInputFormat.NullDBWritable" extends="java.lang.Object"
  69942. abstract="false"
  69943. static="true" final="false" visibility="public"
  69944. deprecated="not deprecated">
  69945. <implements name="org.apache.hadoop.mapreduce.lib.db.DBWritable"/>
  69946. <implements name="org.apache.hadoop.io.Writable"/>
  69947. <constructor name="DBInputFormat.NullDBWritable"
  69948. static="false" final="false" visibility="public"
  69949. deprecated="not deprecated">
  69950. </constructor>
  69951. <method name="readFields"
  69952. abstract="false" native="false" synchronized="false"
  69953. static="false" final="false" visibility="public"
  69954. deprecated="not deprecated">
  69955. <param name="in" type="java.io.DataInput"/>
  69956. <exception name="IOException" type="java.io.IOException"/>
  69957. </method>
  69958. <method name="readFields"
  69959. abstract="false" native="false" synchronized="false"
  69960. static="false" final="false" visibility="public"
  69961. deprecated="not deprecated">
  69962. <param name="arg0" type="java.sql.ResultSet"/>
  69963. <exception name="SQLException" type="java.sql.SQLException"/>
  69964. </method>
  69965. <method name="write"
  69966. abstract="false" native="false" synchronized="false"
  69967. static="false" final="false" visibility="public"
  69968. deprecated="not deprecated">
  69969. <param name="out" type="java.io.DataOutput"/>
  69970. <exception name="IOException" type="java.io.IOException"/>
  69971. </method>
  69972. <method name="write"
  69973. abstract="false" native="false" synchronized="false"
  69974. static="false" final="false" visibility="public"
  69975. deprecated="not deprecated">
  69976. <param name="arg0" type="java.sql.PreparedStatement"/>
  69977. <exception name="SQLException" type="java.sql.SQLException"/>
  69978. </method>
  69979. <doc>
  69980. <![CDATA[A Class that does nothing, implementing DBWritable]]>
  69981. </doc>
  69982. </class>
  69983. <!-- end class org.apache.hadoop.mapreduce.lib.db.DBInputFormat.NullDBWritable -->
  69984. <!-- start class org.apache.hadoop.mapreduce.lib.db.DBOutputFormat -->
  69985. <class name="DBOutputFormat" extends="org.apache.hadoop.mapreduce.OutputFormat"
  69986. abstract="false"
  69987. static="false" final="false" visibility="public"
  69988. deprecated="not deprecated">
  69989. <constructor name="DBOutputFormat"
  69990. static="false" final="false" visibility="public"
  69991. deprecated="not deprecated">
  69992. </constructor>
  69993. <method name="checkOutputSpecs"
  69994. abstract="false" native="false" synchronized="false"
  69995. static="false" final="false" visibility="public"
  69996. deprecated="not deprecated">
  69997. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  69998. <exception name="IOException" type="java.io.IOException"/>
  69999. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70000. </method>
  70001. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  70002. abstract="false" native="false" synchronized="false"
  70003. static="false" final="false" visibility="public"
  70004. deprecated="not deprecated">
  70005. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  70006. <exception name="IOException" type="java.io.IOException"/>
  70007. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70008. </method>
  70009. <method name="constructQuery" return="java.lang.String"
  70010. abstract="false" native="false" synchronized="false"
  70011. static="false" final="false" visibility="public"
  70012. deprecated="not deprecated">
  70013. <param name="table" type="java.lang.String"/>
  70014. <param name="fieldNames" type="java.lang.String[]"/>
  70015. <doc>
  70016. <![CDATA[Constructs the query used as the prepared statement to insert data.
  70017. @param table
  70018. the table to insert into
  70019. @param fieldNames
  70020. the fields to insert into. If field names are unknown, supply an
  70021. array of nulls.]]>
  70022. </doc>
  70023. </method>
  70024. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  70025. abstract="false" native="false" synchronized="false"
  70026. static="false" final="false" visibility="public"
  70027. deprecated="not deprecated">
  70028. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  70029. <exception name="IOException" type="java.io.IOException"/>
  70030. <doc>
  70031. <![CDATA[{@inheritDoc}]]>
  70032. </doc>
  70033. </method>
  70034. <method name="setOutput"
  70035. abstract="false" native="false" synchronized="false"
  70036. static="true" final="false" visibility="public"
  70037. deprecated="not deprecated">
  70038. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  70039. <param name="tableName" type="java.lang.String"/>
  70040. <param name="fieldNames" type="java.lang.String[]"/>
  70041. <exception name="IOException" type="java.io.IOException"/>
  70042. <doc>
  70043. <![CDATA[Initializes the reduce-part of the job with
  70044. the appropriate output settings
  70045. @param job The job
  70046. @param tableName The table to insert data into
  70047. @param fieldNames The field names in the table.]]>
  70048. </doc>
  70049. </method>
  70050. <method name="setOutput"
  70051. abstract="false" native="false" synchronized="false"
  70052. static="true" final="false" visibility="public"
  70053. deprecated="not deprecated">
  70054. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  70055. <param name="tableName" type="java.lang.String"/>
  70056. <param name="fieldCount" type="int"/>
  70057. <exception name="IOException" type="java.io.IOException"/>
  70058. <doc>
  70059. <![CDATA[Initializes the reduce-part of the job
  70060. with the appropriate output settings
  70061. @param job The job
  70062. @param tableName The table to insert data into
  70063. @param fieldCount the number of fields in the table.]]>
  70064. </doc>
  70065. </method>
  70066. <doc>
  70067. <![CDATA[A OutputFormat that sends the reduce output to a SQL table.
  70068. <p>
  70069. {@link DBOutputFormat} accepts &lt;key,value&gt; pairs, where
  70070. key has a type extending DBWritable. Returned {@link RecordWriter}
  70071. writes <b>only the key</b> to the database with a batch SQL query.]]>
  70072. </doc>
  70073. </class>
  70074. <!-- end class org.apache.hadoop.mapreduce.lib.db.DBOutputFormat -->
  70075. <!-- start class org.apache.hadoop.mapreduce.lib.db.DBOutputFormat.DBRecordWriter -->
  70076. <class name="DBOutputFormat.DBRecordWriter" extends="org.apache.hadoop.mapreduce.RecordWriter"
  70077. abstract="false"
  70078. static="false" final="false" visibility="public"
  70079. deprecated="not deprecated">
  70080. <constructor name="DBOutputFormat.DBRecordWriter"
  70081. static="false" final="false" visibility="public"
  70082. deprecated="not deprecated">
  70083. <exception name="SQLException" type="java.sql.SQLException"/>
  70084. </constructor>
  70085. <constructor name="DBOutputFormat.DBRecordWriter" type="java.sql.Connection, java.sql.PreparedStatement"
  70086. static="false" final="false" visibility="public"
  70087. deprecated="not deprecated">
  70088. <exception name="SQLException" type="java.sql.SQLException"/>
  70089. </constructor>
  70090. <method name="getConnection" return="java.sql.Connection"
  70091. abstract="false" native="false" synchronized="false"
  70092. static="false" final="false" visibility="public"
  70093. deprecated="not deprecated">
  70094. </method>
  70095. <method name="getStatement" return="java.sql.PreparedStatement"
  70096. abstract="false" native="false" synchronized="false"
  70097. static="false" final="false" visibility="public"
  70098. deprecated="not deprecated">
  70099. </method>
  70100. <method name="close"
  70101. abstract="false" native="false" synchronized="false"
  70102. static="false" final="false" visibility="public"
  70103. deprecated="not deprecated">
  70104. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  70105. <exception name="IOException" type="java.io.IOException"/>
  70106. <doc>
  70107. <![CDATA[{@inheritDoc}]]>
  70108. </doc>
  70109. </method>
  70110. <method name="write"
  70111. abstract="false" native="false" synchronized="false"
  70112. static="false" final="false" visibility="public"
  70113. deprecated="not deprecated">
  70114. <param name="key" type="org.apache.hadoop.mapreduce.lib.db.DBWritable"/>
  70115. <param name="value" type="java.lang.Object"/>
  70116. <exception name="IOException" type="java.io.IOException"/>
  70117. <doc>
  70118. <![CDATA[{@inheritDoc}]]>
  70119. </doc>
  70120. </method>
  70121. <doc>
  70122. <![CDATA[A RecordWriter that writes the reduce output to a SQL table]]>
  70123. </doc>
  70124. </class>
  70125. <!-- end class org.apache.hadoop.mapreduce.lib.db.DBOutputFormat.DBRecordWriter -->
  70126. <!-- start class org.apache.hadoop.mapreduce.lib.db.DBRecordReader -->
  70127. <class name="DBRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  70128. abstract="false"
  70129. static="false" final="false" visibility="public"
  70130. deprecated="not deprecated">
  70131. <constructor name="DBRecordReader" type="org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit, java.lang.Class, org.apache.hadoop.conf.Configuration, java.sql.Connection, org.apache.hadoop.mapreduce.lib.db.DBConfiguration, java.lang.String, java.lang.String[], java.lang.String"
  70132. static="false" final="false" visibility="public"
  70133. deprecated="not deprecated">
  70134. <exception name="SQLException" type="java.sql.SQLException"/>
  70135. <doc>
  70136. <![CDATA[@param split The InputSplit to read data for
  70137. @throws SQLException]]>
  70138. </doc>
  70139. </constructor>
  70140. <method name="executeQuery" return="java.sql.ResultSet"
  70141. abstract="false" native="false" synchronized="false"
  70142. static="false" final="false" visibility="protected"
  70143. deprecated="not deprecated">
  70144. <param name="query" type="java.lang.String"/>
  70145. <exception name="SQLException" type="java.sql.SQLException"/>
  70146. </method>
  70147. <method name="getSelectQuery" return="java.lang.String"
  70148. abstract="false" native="false" synchronized="false"
  70149. static="false" final="false" visibility="protected"
  70150. deprecated="not deprecated">
  70151. <doc>
  70152. <![CDATA[Returns the query for selecting the records,
  70153. subclasses can override this for custom behaviour.]]>
  70154. </doc>
  70155. </method>
  70156. <method name="close"
  70157. abstract="false" native="false" synchronized="false"
  70158. static="false" final="false" visibility="public"
  70159. deprecated="not deprecated">
  70160. <exception name="IOException" type="java.io.IOException"/>
  70161. <doc>
  70162. <![CDATA[{@inheritDoc}]]>
  70163. </doc>
  70164. </method>
  70165. <method name="initialize"
  70166. abstract="false" native="false" synchronized="false"
  70167. static="false" final="false" visibility="public"
  70168. deprecated="not deprecated">
  70169. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  70170. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  70171. <exception name="IOException" type="java.io.IOException"/>
  70172. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70173. </method>
  70174. <method name="getCurrentKey" return="org.apache.hadoop.io.LongWritable"
  70175. abstract="false" native="false" synchronized="false"
  70176. static="false" final="false" visibility="public"
  70177. deprecated="not deprecated">
  70178. <doc>
  70179. <![CDATA[{@inheritDoc}]]>
  70180. </doc>
  70181. </method>
  70182. <method name="getCurrentValue" return="org.apache.hadoop.mapreduce.lib.db.DBWritable"
  70183. abstract="false" native="false" synchronized="false"
  70184. static="false" final="false" visibility="public"
  70185. deprecated="not deprecated">
  70186. <doc>
  70187. <![CDATA[{@inheritDoc}]]>
  70188. </doc>
  70189. </method>
  70190. <method name="createValue" return="org.apache.hadoop.mapreduce.lib.db.DBWritable"
  70191. abstract="false" native="false" synchronized="false"
  70192. static="false" final="false" visibility="public"
  70193. deprecated="deprecated, no comment">
  70194. <doc>
  70195. <![CDATA[@deprecated]]>
  70196. </doc>
  70197. </method>
  70198. <method name="getPos" return="long"
  70199. abstract="false" native="false" synchronized="false"
  70200. static="false" final="false" visibility="public"
  70201. deprecated="deprecated, no comment">
  70202. <exception name="IOException" type="java.io.IOException"/>
  70203. <doc>
  70204. <![CDATA[@deprecated]]>
  70205. </doc>
  70206. </method>
  70207. <method name="next" return="boolean"
  70208. abstract="false" native="false" synchronized="false"
  70209. static="false" final="false" visibility="public"
  70210. deprecated="Use {@link #nextKeyValue()}">
  70211. <param name="key" type="org.apache.hadoop.io.LongWritable"/>
  70212. <param name="value" type="org.apache.hadoop.mapreduce.lib.db.DBWritable"/>
  70213. <exception name="IOException" type="java.io.IOException"/>
  70214. <doc>
  70215. <![CDATA[@deprecated Use {@link #nextKeyValue()}]]>
  70216. </doc>
  70217. </method>
  70218. <method name="getProgress" return="float"
  70219. abstract="false" native="false" synchronized="false"
  70220. static="false" final="false" visibility="public"
  70221. deprecated="not deprecated">
  70222. <exception name="IOException" type="java.io.IOException"/>
  70223. <doc>
  70224. <![CDATA[{@inheritDoc}]]>
  70225. </doc>
  70226. </method>
  70227. <method name="nextKeyValue" return="boolean"
  70228. abstract="false" native="false" synchronized="false"
  70229. static="false" final="false" visibility="public"
  70230. deprecated="not deprecated">
  70231. <exception name="IOException" type="java.io.IOException"/>
  70232. <doc>
  70233. <![CDATA[{@inheritDoc}]]>
  70234. </doc>
  70235. </method>
  70236. <method name="getSplit" return="org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit"
  70237. abstract="false" native="false" synchronized="false"
  70238. static="false" final="false" visibility="protected"
  70239. deprecated="not deprecated">
  70240. </method>
  70241. <method name="getFieldNames" return="java.lang.String[]"
  70242. abstract="false" native="false" synchronized="false"
  70243. static="false" final="false" visibility="protected"
  70244. deprecated="not deprecated">
  70245. </method>
  70246. <method name="getTableName" return="java.lang.String"
  70247. abstract="false" native="false" synchronized="false"
  70248. static="false" final="false" visibility="protected"
  70249. deprecated="not deprecated">
  70250. </method>
  70251. <method name="getConditions" return="java.lang.String"
  70252. abstract="false" native="false" synchronized="false"
  70253. static="false" final="false" visibility="protected"
  70254. deprecated="not deprecated">
  70255. </method>
  70256. <method name="getDBConf" return="org.apache.hadoop.mapreduce.lib.db.DBConfiguration"
  70257. abstract="false" native="false" synchronized="false"
  70258. static="false" final="false" visibility="protected"
  70259. deprecated="not deprecated">
  70260. </method>
  70261. <method name="getConnection" return="java.sql.Connection"
  70262. abstract="false" native="false" synchronized="false"
  70263. static="false" final="false" visibility="protected"
  70264. deprecated="not deprecated">
  70265. </method>
  70266. <method name="getStatement" return="java.sql.PreparedStatement"
  70267. abstract="false" native="false" synchronized="false"
  70268. static="false" final="false" visibility="protected"
  70269. deprecated="not deprecated">
  70270. </method>
  70271. <method name="setStatement"
  70272. abstract="false" native="false" synchronized="false"
  70273. static="false" final="false" visibility="protected"
  70274. deprecated="not deprecated">
  70275. <param name="stmt" type="java.sql.PreparedStatement"/>
  70276. </method>
  70277. <field name="statement" type="java.sql.PreparedStatement"
  70278. transient="false" volatile="false"
  70279. static="false" final="false" visibility="protected"
  70280. deprecated="not deprecated">
  70281. </field>
  70282. <doc>
  70283. <![CDATA[A RecordReader that reads records from a SQL table.
  70284. Emits LongWritables containing the record number as
  70285. key and DBWritables as value.]]>
  70286. </doc>
  70287. </class>
  70288. <!-- end class org.apache.hadoop.mapreduce.lib.db.DBRecordReader -->
  70289. <!-- start interface org.apache.hadoop.mapreduce.lib.db.DBSplitter -->
  70290. <interface name="DBSplitter" abstract="true"
  70291. static="false" final="false" visibility="public"
  70292. deprecated="not deprecated">
  70293. <method name="split" return="java.util.List"
  70294. abstract="false" native="false" synchronized="false"
  70295. static="false" final="false" visibility="public"
  70296. deprecated="not deprecated">
  70297. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  70298. <param name="results" type="java.sql.ResultSet"/>
  70299. <param name="colName" type="java.lang.String"/>
  70300. <exception name="SQLException" type="java.sql.SQLException"/>
  70301. <doc>
  70302. <![CDATA[Given a ResultSet containing one record (and already advanced to that record)
  70303. with two columns (a low value, and a high value, both of the same type), determine
  70304. a set of splits that span the given values.]]>
  70305. </doc>
  70306. </method>
  70307. <doc>
  70308. <![CDATA[DBSplitter will generate DBInputSplits to use with DataDrivenDBInputFormat.
  70309. DataDrivenDBInputFormat needs to interpolate between two values that
  70310. represent the lowest and highest valued records to import. Depending
  70311. on the data-type of the column, this requires different behavior.
  70312. DBSplitter implementations should perform this for a data type or family
  70313. of data types.]]>
  70314. </doc>
  70315. </interface>
  70316. <!-- end interface org.apache.hadoop.mapreduce.lib.db.DBSplitter -->
  70317. <!-- start interface org.apache.hadoop.mapreduce.lib.db.DBWritable -->
  70318. <interface name="DBWritable" abstract="true"
  70319. static="false" final="false" visibility="public"
  70320. deprecated="not deprecated">
  70321. <method name="write"
  70322. abstract="false" native="false" synchronized="false"
  70323. static="false" final="false" visibility="public"
  70324. deprecated="not deprecated">
  70325. <param name="statement" type="java.sql.PreparedStatement"/>
  70326. <exception name="SQLException" type="java.sql.SQLException"/>
  70327. <doc>
  70328. <![CDATA[Sets the fields of the object in the {@link PreparedStatement}.
  70329. @param statement the statement that the fields are put into.
  70330. @throws SQLException]]>
  70331. </doc>
  70332. </method>
  70333. <method name="readFields"
  70334. abstract="false" native="false" synchronized="false"
  70335. static="false" final="false" visibility="public"
  70336. deprecated="not deprecated">
  70337. <param name="resultSet" type="java.sql.ResultSet"/>
  70338. <exception name="SQLException" type="java.sql.SQLException"/>
  70339. <doc>
  70340. <![CDATA[Reads the fields of the object from the {@link ResultSet}.
  70341. @param resultSet the {@link ResultSet} to get the fields from.
  70342. @throws SQLException]]>
  70343. </doc>
  70344. </method>
  70345. <doc>
  70346. <![CDATA[Objects that are read from/written to a database should implement
  70347. <code>DBWritable</code>. DBWritable, is similar to {@link Writable}
  70348. except that the {@link #write(PreparedStatement)} method takes a
  70349. {@link PreparedStatement}, and {@link #readFields(ResultSet)}
  70350. takes a {@link ResultSet}.
  70351. <p>
  70352. Implementations are responsible for writing the fields of the object
  70353. to PreparedStatement, and reading the fields of the object from the
  70354. ResultSet.
  70355. <p>Example:</p>
  70356. If we have the following table in the database :
  70357. <pre>
  70358. CREATE TABLE MyTable (
  70359. counter INTEGER NOT NULL,
  70360. timestamp BIGINT NOT NULL,
  70361. );
  70362. </pre>
  70363. then we can read/write the tuples from/to the table with :
  70364. <p><pre>
  70365. public class MyWritable implements Writable, DBWritable {
  70366. // Some data
  70367. private int counter;
  70368. private long timestamp;
  70369. //Writable#write() implementation
  70370. public void write(DataOutput out) throws IOException {
  70371. out.writeInt(counter);
  70372. out.writeLong(timestamp);
  70373. }
  70374. //Writable#readFields() implementation
  70375. public void readFields(DataInput in) throws IOException {
  70376. counter = in.readInt();
  70377. timestamp = in.readLong();
  70378. }
  70379. public void write(PreparedStatement statement) throws SQLException {
  70380. statement.setInt(1, counter);
  70381. statement.setLong(2, timestamp);
  70382. }
  70383. public void readFields(ResultSet resultSet) throws SQLException {
  70384. counter = resultSet.getInt(1);
  70385. timestamp = resultSet.getLong(2);
  70386. }
  70387. }
  70388. </pre></p>]]>
  70389. </doc>
  70390. </interface>
  70391. <!-- end interface org.apache.hadoop.mapreduce.lib.db.DBWritable -->
  70392. <!-- start class org.apache.hadoop.mapreduce.lib.db.FloatSplitter -->
  70393. <class name="FloatSplitter" extends="java.lang.Object"
  70394. abstract="false"
  70395. static="false" final="false" visibility="public"
  70396. deprecated="not deprecated">
  70397. <implements name="org.apache.hadoop.mapreduce.lib.db.DBSplitter"/>
  70398. <constructor name="FloatSplitter"
  70399. static="false" final="false" visibility="public"
  70400. deprecated="not deprecated">
  70401. </constructor>
  70402. <method name="split" return="java.util.List"
  70403. abstract="false" native="false" synchronized="false"
  70404. static="false" final="false" visibility="public"
  70405. deprecated="not deprecated">
  70406. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  70407. <param name="results" type="java.sql.ResultSet"/>
  70408. <param name="colName" type="java.lang.String"/>
  70409. <exception name="SQLException" type="java.sql.SQLException"/>
  70410. </method>
  70411. <doc>
  70412. <![CDATA[Implement DBSplitter over floating-point values.]]>
  70413. </doc>
  70414. </class>
  70415. <!-- end class org.apache.hadoop.mapreduce.lib.db.FloatSplitter -->
  70416. <!-- start class org.apache.hadoop.mapreduce.lib.db.IntegerSplitter -->
  70417. <class name="IntegerSplitter" extends="java.lang.Object"
  70418. abstract="false"
  70419. static="false" final="false" visibility="public"
  70420. deprecated="not deprecated">
  70421. <implements name="org.apache.hadoop.mapreduce.lib.db.DBSplitter"/>
  70422. <constructor name="IntegerSplitter"
  70423. static="false" final="false" visibility="public"
  70424. deprecated="not deprecated">
  70425. </constructor>
  70426. <method name="split" return="java.util.List"
  70427. abstract="false" native="false" synchronized="false"
  70428. static="false" final="false" visibility="public"
  70429. deprecated="not deprecated">
  70430. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  70431. <param name="results" type="java.sql.ResultSet"/>
  70432. <param name="colName" type="java.lang.String"/>
  70433. <exception name="SQLException" type="java.sql.SQLException"/>
  70434. </method>
  70435. <doc>
  70436. <![CDATA[Implement DBSplitter over integer values.]]>
  70437. </doc>
  70438. </class>
  70439. <!-- end class org.apache.hadoop.mapreduce.lib.db.IntegerSplitter -->
  70440. <!-- start class org.apache.hadoop.mapreduce.lib.db.MySQLDataDrivenDBRecordReader -->
  70441. <class name="MySQLDataDrivenDBRecordReader" extends="org.apache.hadoop.mapreduce.lib.db.DataDrivenDBRecordReader"
  70442. abstract="false"
  70443. static="false" final="false" visibility="public"
  70444. deprecated="not deprecated">
  70445. <constructor name="MySQLDataDrivenDBRecordReader" type="org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit, java.lang.Class, org.apache.hadoop.conf.Configuration, java.sql.Connection, org.apache.hadoop.mapreduce.lib.db.DBConfiguration, java.lang.String, java.lang.String[], java.lang.String"
  70446. static="false" final="false" visibility="public"
  70447. deprecated="not deprecated">
  70448. <exception name="SQLException" type="java.sql.SQLException"/>
  70449. </constructor>
  70450. <method name="executeQuery" return="java.sql.ResultSet"
  70451. abstract="false" native="false" synchronized="false"
  70452. static="false" final="false" visibility="protected"
  70453. deprecated="not deprecated">
  70454. <param name="query" type="java.lang.String"/>
  70455. <exception name="SQLException" type="java.sql.SQLException"/>
  70456. </method>
  70457. <doc>
  70458. <![CDATA[A RecordReader that reads records from a MySQL table via DataDrivenDBRecordReader]]>
  70459. </doc>
  70460. </class>
  70461. <!-- end class org.apache.hadoop.mapreduce.lib.db.MySQLDataDrivenDBRecordReader -->
  70462. <!-- start class org.apache.hadoop.mapreduce.lib.db.MySQLDBRecordReader -->
  70463. <class name="MySQLDBRecordReader" extends="org.apache.hadoop.mapreduce.lib.db.DBRecordReader"
  70464. abstract="false"
  70465. static="false" final="false" visibility="public"
  70466. deprecated="not deprecated">
  70467. <constructor name="MySQLDBRecordReader" type="org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit, java.lang.Class, org.apache.hadoop.conf.Configuration, java.sql.Connection, org.apache.hadoop.mapreduce.lib.db.DBConfiguration, java.lang.String, java.lang.String[], java.lang.String"
  70468. static="false" final="false" visibility="public"
  70469. deprecated="not deprecated">
  70470. <exception name="SQLException" type="java.sql.SQLException"/>
  70471. </constructor>
  70472. <method name="executeQuery" return="java.sql.ResultSet"
  70473. abstract="false" native="false" synchronized="false"
  70474. static="false" final="false" visibility="protected"
  70475. deprecated="not deprecated">
  70476. <param name="query" type="java.lang.String"/>
  70477. <exception name="SQLException" type="java.sql.SQLException"/>
  70478. </method>
  70479. <doc>
  70480. <![CDATA[A RecordReader that reads records from a MySQL table.]]>
  70481. </doc>
  70482. </class>
  70483. <!-- end class org.apache.hadoop.mapreduce.lib.db.MySQLDBRecordReader -->
  70484. <!-- start class org.apache.hadoop.mapreduce.lib.db.OracleDataDrivenDBInputFormat -->
  70485. <class name="OracleDataDrivenDBInputFormat" extends="org.apache.hadoop.mapreduce.lib.db.DataDrivenDBInputFormat"
  70486. abstract="false"
  70487. static="false" final="false" visibility="public"
  70488. deprecated="not deprecated">
  70489. <implements name="org.apache.hadoop.conf.Configurable"/>
  70490. <constructor name="OracleDataDrivenDBInputFormat"
  70491. static="false" final="false" visibility="public"
  70492. deprecated="not deprecated">
  70493. </constructor>
  70494. <method name="getSplitter" return="org.apache.hadoop.mapreduce.lib.db.DBSplitter"
  70495. abstract="false" native="false" synchronized="false"
  70496. static="false" final="false" visibility="protected"
  70497. deprecated="not deprecated">
  70498. <param name="sqlDataType" type="int"/>
  70499. <doc>
  70500. <![CDATA[@return the DBSplitter implementation to use to divide the table/query into InputSplits.]]>
  70501. </doc>
  70502. </method>
  70503. <method name="createDBRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  70504. abstract="false" native="false" synchronized="false"
  70505. static="false" final="false" visibility="protected"
  70506. deprecated="not deprecated">
  70507. <param name="split" type="org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit"/>
  70508. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  70509. <exception name="IOException" type="java.io.IOException"/>
  70510. </method>
  70511. <doc>
  70512. <![CDATA[A InputFormat that reads input data from an SQL table in an Oracle db.]]>
  70513. </doc>
  70514. </class>
  70515. <!-- end class org.apache.hadoop.mapreduce.lib.db.OracleDataDrivenDBInputFormat -->
  70516. <!-- start class org.apache.hadoop.mapreduce.lib.db.OracleDataDrivenDBRecordReader -->
  70517. <class name="OracleDataDrivenDBRecordReader" extends="org.apache.hadoop.mapreduce.lib.db.DataDrivenDBRecordReader"
  70518. abstract="false"
  70519. static="false" final="false" visibility="public"
  70520. deprecated="not deprecated">
  70521. <constructor name="OracleDataDrivenDBRecordReader" type="org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit, java.lang.Class, org.apache.hadoop.conf.Configuration, java.sql.Connection, org.apache.hadoop.mapreduce.lib.db.DBConfiguration, java.lang.String, java.lang.String[], java.lang.String"
  70522. static="false" final="false" visibility="public"
  70523. deprecated="not deprecated">
  70524. <exception name="SQLException" type="java.sql.SQLException"/>
  70525. </constructor>
  70526. <doc>
  70527. <![CDATA[A RecordReader that reads records from a Oracle table via DataDrivenDBRecordReader]]>
  70528. </doc>
  70529. </class>
  70530. <!-- end class org.apache.hadoop.mapreduce.lib.db.OracleDataDrivenDBRecordReader -->
  70531. <!-- start class org.apache.hadoop.mapreduce.lib.db.OracleDateSplitter -->
  70532. <class name="OracleDateSplitter" extends="org.apache.hadoop.mapreduce.lib.db.DateSplitter"
  70533. abstract="false"
  70534. static="false" final="false" visibility="public"
  70535. deprecated="not deprecated">
  70536. <constructor name="OracleDateSplitter"
  70537. static="false" final="false" visibility="public"
  70538. deprecated="not deprecated">
  70539. </constructor>
  70540. <method name="dateToString" return="java.lang.String"
  70541. abstract="false" native="false" synchronized="false"
  70542. static="false" final="false" visibility="protected"
  70543. deprecated="not deprecated">
  70544. <param name="d" type="java.util.Date"/>
  70545. </method>
  70546. <doc>
  70547. <![CDATA[Implement DBSplitter over date/time values returned by an Oracle db.
  70548. Make use of logic from DateSplitter, since this just needs to use
  70549. some Oracle-specific functions on the formatting end when generating
  70550. InputSplits.]]>
  70551. </doc>
  70552. </class>
  70553. <!-- end class org.apache.hadoop.mapreduce.lib.db.OracleDateSplitter -->
  70554. <!-- start class org.apache.hadoop.mapreduce.lib.db.OracleDBRecordReader -->
  70555. <class name="OracleDBRecordReader" extends="org.apache.hadoop.mapreduce.lib.db.DBRecordReader"
  70556. abstract="false"
  70557. static="false" final="false" visibility="public"
  70558. deprecated="not deprecated">
  70559. <constructor name="OracleDBRecordReader" type="org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit, java.lang.Class, org.apache.hadoop.conf.Configuration, java.sql.Connection, org.apache.hadoop.mapreduce.lib.db.DBConfiguration, java.lang.String, java.lang.String[], java.lang.String"
  70560. static="false" final="false" visibility="public"
  70561. deprecated="not deprecated">
  70562. <exception name="SQLException" type="java.sql.SQLException"/>
  70563. </constructor>
  70564. <method name="getSelectQuery" return="java.lang.String"
  70565. abstract="false" native="false" synchronized="false"
  70566. static="false" final="false" visibility="protected"
  70567. deprecated="not deprecated">
  70568. <doc>
  70569. <![CDATA[Returns the query for selecting the records from an Oracle DB.]]>
  70570. </doc>
  70571. </method>
  70572. <method name="setSessionTimeZone"
  70573. abstract="false" native="false" synchronized="false"
  70574. static="true" final="false" visibility="public"
  70575. deprecated="not deprecated">
  70576. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  70577. <param name="conn" type="java.sql.Connection"/>
  70578. <exception name="SQLException" type="java.sql.SQLException"/>
  70579. <doc>
  70580. <![CDATA[Set session time zone
  70581. @param conf The current configuration.
  70582. We read the 'oracle.sessionTimeZone' property from here.
  70583. @param conn The connection to alter the timezone properties of.]]>
  70584. </doc>
  70585. </method>
  70586. <field name="SESSION_TIMEZONE_KEY" type="java.lang.String"
  70587. transient="false" volatile="false"
  70588. static="true" final="true" visibility="public"
  70589. deprecated="not deprecated">
  70590. <doc>
  70591. <![CDATA[Configuration key to set to a timezone string.]]>
  70592. </doc>
  70593. </field>
  70594. <doc>
  70595. <![CDATA[A RecordReader that reads records from an Oracle SQL table.]]>
  70596. </doc>
  70597. </class>
  70598. <!-- end class org.apache.hadoop.mapreduce.lib.db.OracleDBRecordReader -->
  70599. <!-- start class org.apache.hadoop.mapreduce.lib.db.TextSplitter -->
  70600. <class name="TextSplitter" extends="org.apache.hadoop.mapreduce.lib.db.BigDecimalSplitter"
  70601. abstract="false"
  70602. static="false" final="false" visibility="public"
  70603. deprecated="not deprecated">
  70604. <constructor name="TextSplitter"
  70605. static="false" final="false" visibility="public"
  70606. deprecated="not deprecated">
  70607. </constructor>
  70608. <method name="split" return="java.util.List"
  70609. abstract="false" native="false" synchronized="false"
  70610. static="false" final="false" visibility="public"
  70611. deprecated="not deprecated">
  70612. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  70613. <param name="results" type="java.sql.ResultSet"/>
  70614. <param name="colName" type="java.lang.String"/>
  70615. <exception name="SQLException" type="java.sql.SQLException"/>
  70616. <doc>
  70617. <![CDATA[This method needs to determine the splits between two user-provided strings.
  70618. In the case where the user's strings are 'A' and 'Z', this is not hard; we
  70619. could create two splits from ['A', 'M') and ['M', 'Z'], 26 splits for strings
  70620. beginning with each letter, etc.
  70621. If a user has provided us with the strings "Ham" and "Haze", however, we need
  70622. to create splits that differ in the third letter.
  70623. The algorithm used is as follows:
  70624. Since there are 2**16 unicode characters, we interpret characters as digits in
  70625. base 65536. Given a string 's' containing characters s_0, s_1 .. s_n, we interpret
  70626. the string as the number: 0.s_0 s_1 s_2.. s_n in base 65536. Having mapped the
  70627. low and high strings into floating-point values, we then use the BigDecimalSplitter
  70628. to establish the even split points, then map the resulting floating point values
  70629. back into strings.]]>
  70630. </doc>
  70631. </method>
  70632. <doc>
  70633. <![CDATA[Implement DBSplitter over text strings.]]>
  70634. </doc>
  70635. </class>
  70636. <!-- end class org.apache.hadoop.mapreduce.lib.db.TextSplitter -->
  70637. </package>
  70638. <package name="org.apache.hadoop.mapreduce.lib.fieldsel">
  70639. <!-- start class org.apache.hadoop.mapreduce.lib.fieldsel.FieldSelectionHelper -->
  70640. <class name="FieldSelectionHelper" extends="java.lang.Object"
  70641. abstract="false"
  70642. static="false" final="false" visibility="public"
  70643. deprecated="not deprecated">
  70644. <constructor name="FieldSelectionHelper"
  70645. static="false" final="false" visibility="public"
  70646. deprecated="not deprecated">
  70647. </constructor>
  70648. <constructor name="FieldSelectionHelper" type="org.apache.hadoop.io.Text, org.apache.hadoop.io.Text"
  70649. static="false" final="false" visibility="public"
  70650. deprecated="not deprecated">
  70651. </constructor>
  70652. <method name="parseOutputKeyValueSpec" return="int"
  70653. abstract="false" native="false" synchronized="false"
  70654. static="true" final="false" visibility="public"
  70655. deprecated="not deprecated">
  70656. <param name="keyValueSpec" type="java.lang.String"/>
  70657. <param name="keyFieldList" type="java.util.List"/>
  70658. <param name="valueFieldList" type="java.util.List"/>
  70659. </method>
  70660. <method name="specToString" return="java.lang.String"
  70661. abstract="false" native="false" synchronized="false"
  70662. static="true" final="false" visibility="public"
  70663. deprecated="not deprecated">
  70664. <param name="fieldSeparator" type="java.lang.String"/>
  70665. <param name="keyValueSpec" type="java.lang.String"/>
  70666. <param name="allValueFieldsFrom" type="int"/>
  70667. <param name="keyFieldList" type="java.util.List"/>
  70668. <param name="valueFieldList" type="java.util.List"/>
  70669. </method>
  70670. <method name="getKey" return="org.apache.hadoop.io.Text"
  70671. abstract="false" native="false" synchronized="false"
  70672. static="false" final="false" visibility="public"
  70673. deprecated="not deprecated">
  70674. </method>
  70675. <method name="getValue" return="org.apache.hadoop.io.Text"
  70676. abstract="false" native="false" synchronized="false"
  70677. static="false" final="false" visibility="public"
  70678. deprecated="not deprecated">
  70679. </method>
  70680. <method name="extractOutputKeyValue"
  70681. abstract="false" native="false" synchronized="false"
  70682. static="false" final="false" visibility="public"
  70683. deprecated="not deprecated">
  70684. <param name="key" type="java.lang.String"/>
  70685. <param name="val" type="java.lang.String"/>
  70686. <param name="fieldSep" type="java.lang.String"/>
  70687. <param name="keyFieldList" type="java.util.List"/>
  70688. <param name="valFieldList" type="java.util.List"/>
  70689. <param name="allValueFieldsFrom" type="int"/>
  70690. <param name="ignoreKey" type="boolean"/>
  70691. <param name="isMap" type="boolean"/>
  70692. </method>
  70693. <field name="emptyText" type="org.apache.hadoop.io.Text"
  70694. transient="false" volatile="false"
  70695. static="true" final="false" visibility="public"
  70696. deprecated="not deprecated">
  70697. </field>
  70698. <field name="DATA_FIELD_SEPERATOR" type="java.lang.String"
  70699. transient="false" volatile="false"
  70700. static="true" final="true" visibility="public"
  70701. deprecated="not deprecated">
  70702. </field>
  70703. <field name="MAP_OUTPUT_KEY_VALUE_SPEC" type="java.lang.String"
  70704. transient="false" volatile="false"
  70705. static="true" final="true" visibility="public"
  70706. deprecated="not deprecated">
  70707. </field>
  70708. <field name="REDUCE_OUTPUT_KEY_VALUE_SPEC" type="java.lang.String"
  70709. transient="false" volatile="false"
  70710. static="true" final="true" visibility="public"
  70711. deprecated="not deprecated">
  70712. </field>
  70713. <doc>
  70714. <![CDATA[This class implements a mapper/reducer class that can be used to perform
  70715. field selections in a manner similar to unix cut. The input data is treated
  70716. as fields separated by a user specified separator (the default value is
  70717. "\t"). The user can specify a list of fields that form the map output keys,
  70718. and a list of fields that form the map output values. If the inputformat is
  70719. TextInputFormat, the mapper will ignore the key to the map function. and the
  70720. fields are from the value only. Otherwise, the fields are the union of those
  70721. from the key and those from the value.
  70722. The field separator is under attribute "mapreduce.fieldsel.data.field.separator"
  70723. The map output field list spec is under attribute
  70724. "mapreduce.fieldsel.map.output.key.value.fields.spec".
  70725. The value is expected to be like "keyFieldsSpec:valueFieldsSpec"
  70726. key/valueFieldsSpec are comma (,) separated field spec: fieldSpec,fieldSpec,fieldSpec ...
  70727. Each field spec can be a simple number (e.g. 5) specifying a specific field, or a range
  70728. (like 2-5) to specify a range of fields, or an open range (like 3-) specifying all
  70729. the fields starting from field 3. The open range field spec applies value fields only.
  70730. They have no effect on the key fields.
  70731. 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,
  70732. and use fields 6,5,1,2,3,7 and above for values.
  70733. The reduce output field list spec is under attribute
  70734. "mapreduce.fieldsel.reduce.output.key.value.fields.spec".
  70735. The reducer extracts output key/value pairs in a similar manner, except that
  70736. the key is never ignored.]]>
  70737. </doc>
  70738. </class>
  70739. <!-- end class org.apache.hadoop.mapreduce.lib.fieldsel.FieldSelectionHelper -->
  70740. <!-- start class org.apache.hadoop.mapreduce.lib.fieldsel.FieldSelectionMapper -->
  70741. <class name="FieldSelectionMapper" extends="org.apache.hadoop.mapreduce.Mapper"
  70742. abstract="false"
  70743. static="false" final="false" visibility="public"
  70744. deprecated="not deprecated">
  70745. <constructor name="FieldSelectionMapper"
  70746. static="false" final="false" visibility="public"
  70747. deprecated="not deprecated">
  70748. </constructor>
  70749. <method name="setup"
  70750. abstract="false" native="false" synchronized="false"
  70751. static="false" final="false" visibility="public"
  70752. deprecated="not deprecated">
  70753. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  70754. <exception name="IOException" type="java.io.IOException"/>
  70755. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70756. </method>
  70757. <method name="map"
  70758. abstract="false" native="false" synchronized="false"
  70759. static="false" final="false" visibility="public"
  70760. deprecated="not deprecated">
  70761. <param name="key" type="java.lang.Object"/>
  70762. <param name="val" type="java.lang.Object"/>
  70763. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  70764. <exception name="IOException" type="java.io.IOException"/>
  70765. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70766. <doc>
  70767. <![CDATA[The identify function. Input key/value pair is written directly to output.]]>
  70768. </doc>
  70769. </method>
  70770. <field name="LOG" type="org.apache.commons.logging.Log"
  70771. transient="false" volatile="false"
  70772. static="true" final="true" visibility="public"
  70773. deprecated="not deprecated">
  70774. </field>
  70775. <doc>
  70776. <![CDATA[This class implements a mapper class that can be used to perform
  70777. field selections in a manner similar to unix cut. The input data is treated
  70778. as fields separated by a user specified separator (the default value is
  70779. "\t"). The user can specify a list of fields that form the map output keys,
  70780. and a list of fields that form the map output values. If the inputformat is
  70781. TextInputFormat, the mapper will ignore the key to the map function. and the
  70782. fields are from the value only. Otherwise, the fields are the union of those
  70783. from the key and those from the value.
  70784. The field separator is under attribute "mapreduce.fieldsel.data.field.separator"
  70785. The map output field list spec is under attribute
  70786. "mapreduce.fieldsel.map.output.key.value.fields.spec".
  70787. The value is expected to be like
  70788. "keyFieldsSpec:valueFieldsSpec" key/valueFieldsSpec are comma (,) separated
  70789. field spec: fieldSpec,fieldSpec,fieldSpec ... Each field spec can be a
  70790. simple number (e.g. 5) specifying a specific field, or a range (like 2-5)
  70791. to specify a range of fields, or an open range (like 3-) specifying all
  70792. the fields starting from field 3. The open range field spec applies value
  70793. fields only. They have no effect on the key fields.
  70794. Here is an example: "4,3,0,1:6,5,1-3,7-". It specifies to use fields
  70795. 4,3,0 and 1 for keys, and use fields 6,5,1,2,3,7 and above for values.]]>
  70796. </doc>
  70797. </class>
  70798. <!-- end class org.apache.hadoop.mapreduce.lib.fieldsel.FieldSelectionMapper -->
  70799. <!-- start class org.apache.hadoop.mapreduce.lib.fieldsel.FieldSelectionReducer -->
  70800. <class name="FieldSelectionReducer" extends="org.apache.hadoop.mapreduce.Reducer"
  70801. abstract="false"
  70802. static="false" final="false" visibility="public"
  70803. deprecated="not deprecated">
  70804. <constructor name="FieldSelectionReducer"
  70805. static="false" final="false" visibility="public"
  70806. deprecated="not deprecated">
  70807. </constructor>
  70808. <method name="setup"
  70809. abstract="false" native="false" synchronized="false"
  70810. static="false" final="false" visibility="public"
  70811. deprecated="not deprecated">
  70812. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  70813. <exception name="IOException" type="java.io.IOException"/>
  70814. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70815. </method>
  70816. <method name="reduce"
  70817. abstract="false" native="false" synchronized="false"
  70818. static="false" final="false" visibility="public"
  70819. deprecated="not deprecated">
  70820. <param name="key" type="org.apache.hadoop.io.Text"/>
  70821. <param name="values" type="java.lang.Iterable"/>
  70822. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  70823. <exception name="IOException" type="java.io.IOException"/>
  70824. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70825. </method>
  70826. <field name="LOG" type="org.apache.commons.logging.Log"
  70827. transient="false" volatile="false"
  70828. static="true" final="true" visibility="public"
  70829. deprecated="not deprecated">
  70830. </field>
  70831. <doc>
  70832. <![CDATA[This class implements a reducer class that can be used to perform field
  70833. selections in a manner similar to unix cut.
  70834. The input data is treated as fields separated by a user specified
  70835. separator (the default value is "\t"). The user can specify a list of
  70836. fields that form the reduce output keys, and a list of fields that form
  70837. the reduce output values. The fields are the union of those from the key
  70838. and those from the value.
  70839. The field separator is under attribute "mapreduce.fieldsel.data.field.separator"
  70840. The reduce output field list spec is under attribute
  70841. "mapreduce.fieldsel.reduce.output.key.value.fields.spec".
  70842. The value is expected to be like
  70843. "keyFieldsSpec:valueFieldsSpec" key/valueFieldsSpec are comma (,)
  70844. separated field spec: fieldSpec,fieldSpec,fieldSpec ... Each field spec
  70845. can be a simple number (e.g. 5) specifying a specific field, or a range
  70846. (like 2-5) to specify a range of fields, or an open range (like 3-)
  70847. specifying all the fields starting from field 3. The open range field
  70848. spec applies value fields only. They have no effect on the key fields.
  70849. Here is an example: "4,3,0,1:6,5,1-3,7-". It specifies to use fields
  70850. 4,3,0 and 1 for keys, and use fields 6,5,1,2,3,7 and above for values.]]>
  70851. </doc>
  70852. </class>
  70853. <!-- end class org.apache.hadoop.mapreduce.lib.fieldsel.FieldSelectionReducer -->
  70854. </package>
  70855. <package name="org.apache.hadoop.mapreduce.lib.input">
  70856. <!-- start class org.apache.hadoop.mapreduce.lib.input.CombineFileInputFormat -->
  70857. <class name="CombineFileInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.FileInputFormat"
  70858. abstract="true"
  70859. static="false" final="false" visibility="public"
  70860. deprecated="not deprecated">
  70861. <constructor name="CombineFileInputFormat"
  70862. static="false" final="false" visibility="public"
  70863. deprecated="not deprecated">
  70864. <doc>
  70865. <![CDATA[default constructor]]>
  70866. </doc>
  70867. </constructor>
  70868. <method name="setMaxSplitSize"
  70869. abstract="false" native="false" synchronized="false"
  70870. static="false" final="false" visibility="protected"
  70871. deprecated="not deprecated">
  70872. <param name="maxSplitSize" type="long"/>
  70873. <doc>
  70874. <![CDATA[Specify the maximum size (in bytes) of each split. Each split is
  70875. approximately equal to the specified size.]]>
  70876. </doc>
  70877. </method>
  70878. <method name="setMinSplitSizeNode"
  70879. abstract="false" native="false" synchronized="false"
  70880. static="false" final="false" visibility="protected"
  70881. deprecated="not deprecated">
  70882. <param name="minSplitSizeNode" type="long"/>
  70883. <doc>
  70884. <![CDATA[Specify the minimum size (in bytes) of each split per node.
  70885. This applies to data that is left over after combining data on a single
  70886. node into splits that are of maximum size specified by maxSplitSize.
  70887. This leftover data will be combined into its own split if its size
  70888. exceeds minSplitSizeNode.]]>
  70889. </doc>
  70890. </method>
  70891. <method name="setMinSplitSizeRack"
  70892. abstract="false" native="false" synchronized="false"
  70893. static="false" final="false" visibility="protected"
  70894. deprecated="not deprecated">
  70895. <param name="minSplitSizeRack" type="long"/>
  70896. <doc>
  70897. <![CDATA[Specify the minimum size (in bytes) of each split per rack.
  70898. This applies to data that is left over after combining data on a single
  70899. rack into splits that are of maximum size specified by maxSplitSize.
  70900. This leftover data will be combined into its own split if its size
  70901. exceeds minSplitSizeRack.]]>
  70902. </doc>
  70903. </method>
  70904. <method name="createPool"
  70905. abstract="false" native="false" synchronized="false"
  70906. static="false" final="false" visibility="protected"
  70907. deprecated="not deprecated">
  70908. <param name="filters" type="java.util.List"/>
  70909. <doc>
  70910. <![CDATA[Create a new pool and add the filters to it.
  70911. A split cannot have files from different pools.]]>
  70912. </doc>
  70913. </method>
  70914. <method name="createPool"
  70915. abstract="false" native="false" synchronized="false"
  70916. static="false" final="false" visibility="protected"
  70917. deprecated="not deprecated">
  70918. <param name="filters" type="org.apache.hadoop.fs.PathFilter[]"/>
  70919. <doc>
  70920. <![CDATA[Create a new pool and add the filters to it.
  70921. A pathname can satisfy any one of the specified filters.
  70922. A split cannot have files from different pools.]]>
  70923. </doc>
  70924. </method>
  70925. <method name="isSplitable" return="boolean"
  70926. abstract="false" native="false" synchronized="false"
  70927. static="false" final="false" visibility="protected"
  70928. deprecated="not deprecated">
  70929. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  70930. <param name="file" type="org.apache.hadoop.fs.Path"/>
  70931. </method>
  70932. <method name="getSplits" return="java.util.List"
  70933. abstract="false" native="false" synchronized="false"
  70934. static="false" final="false" visibility="public"
  70935. deprecated="not deprecated">
  70936. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  70937. <exception name="IOException" type="java.io.IOException"/>
  70938. </method>
  70939. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  70940. abstract="true" native="false" synchronized="false"
  70941. static="false" final="false" visibility="public"
  70942. deprecated="not deprecated">
  70943. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  70944. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  70945. <exception name="IOException" type="java.io.IOException"/>
  70946. <doc>
  70947. <![CDATA[This is not implemented yet.]]>
  70948. </doc>
  70949. </method>
  70950. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  70951. abstract="false" native="false" synchronized="false"
  70952. static="false" final="false" visibility="protected"
  70953. deprecated="not deprecated">
  70954. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  70955. <param name="stat" type="org.apache.hadoop.fs.FileStatus"/>
  70956. <exception name="IOException" type="java.io.IOException"/>
  70957. </method>
  70958. <field name="SPLIT_MINSIZE_PERNODE" type="java.lang.String"
  70959. transient="false" volatile="false"
  70960. static="true" final="true" visibility="public"
  70961. deprecated="not deprecated">
  70962. </field>
  70963. <field name="SPLIT_MINSIZE_PERRACK" type="java.lang.String"
  70964. transient="false" volatile="false"
  70965. static="true" final="true" visibility="public"
  70966. deprecated="not deprecated">
  70967. </field>
  70968. <doc>
  70969. <![CDATA[An abstract {@link InputFormat} that returns {@link CombineFileSplit}'s in
  70970. {@link InputFormat#getSplits(JobContext)} method.
  70971. Splits are constructed from the files under the input paths.
  70972. A split cannot have files from different pools.
  70973. Each split returned may contain blocks from different files.
  70974. If a maxSplitSize is specified, then blocks on the same node are
  70975. combined to form a single split. Blocks that are left over are
  70976. then combined with other blocks in the same rack.
  70977. If maxSplitSize is not specified, then blocks from the same rack
  70978. are combined in a single split; no attempt is made to create
  70979. node-local splits.
  70980. If the maxSplitSize is equal to the block size, then this class
  70981. is similar to the default splitting behavior in Hadoop: each
  70982. block is a locally processed split.
  70983. Subclasses implement
  70984. {@link InputFormat#createRecordReader(InputSplit, TaskAttemptContext)}
  70985. to construct <code>RecordReader</code>'s for
  70986. <code>CombineFileSplit</code>'s.
  70987. @see CombineFileSplit]]>
  70988. </doc>
  70989. </class>
  70990. <!-- end class org.apache.hadoop.mapreduce.lib.input.CombineFileInputFormat -->
  70991. <!-- start class org.apache.hadoop.mapreduce.lib.input.CombineFileRecordReader -->
  70992. <class name="CombineFileRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  70993. abstract="false"
  70994. static="false" final="false" visibility="public"
  70995. deprecated="not deprecated">
  70996. <constructor name="CombineFileRecordReader" type="org.apache.hadoop.mapreduce.lib.input.CombineFileSplit, org.apache.hadoop.mapreduce.TaskAttemptContext, java.lang.Class"
  70997. static="false" final="false" visibility="public"
  70998. deprecated="not deprecated">
  70999. <exception name="IOException" type="java.io.IOException"/>
  71000. <doc>
  71001. <![CDATA[A generic RecordReader that can hand out different recordReaders
  71002. for each chunk in the CombineFileSplit.]]>
  71003. </doc>
  71004. </constructor>
  71005. <method name="initialize"
  71006. abstract="false" native="false" synchronized="false"
  71007. static="false" final="false" visibility="public"
  71008. deprecated="not deprecated">
  71009. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  71010. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  71011. <exception name="IOException" type="java.io.IOException"/>
  71012. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71013. </method>
  71014. <method name="nextKeyValue" return="boolean"
  71015. abstract="false" native="false" synchronized="false"
  71016. static="false" final="false" visibility="public"
  71017. deprecated="not deprecated">
  71018. <exception name="IOException" type="java.io.IOException"/>
  71019. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71020. </method>
  71021. <method name="getCurrentKey" return="java.lang.Object"
  71022. abstract="false" native="false" synchronized="false"
  71023. static="false" final="false" visibility="public"
  71024. deprecated="not deprecated">
  71025. <exception name="IOException" type="java.io.IOException"/>
  71026. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71027. </method>
  71028. <method name="getCurrentValue" return="java.lang.Object"
  71029. abstract="false" native="false" synchronized="false"
  71030. static="false" final="false" visibility="public"
  71031. deprecated="not deprecated">
  71032. <exception name="IOException" type="java.io.IOException"/>
  71033. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71034. </method>
  71035. <method name="close"
  71036. abstract="false" native="false" synchronized="false"
  71037. static="false" final="false" visibility="public"
  71038. deprecated="not deprecated">
  71039. <exception name="IOException" type="java.io.IOException"/>
  71040. </method>
  71041. <method name="getProgress" return="float"
  71042. abstract="false" native="false" synchronized="false"
  71043. static="false" final="false" visibility="public"
  71044. deprecated="not deprecated">
  71045. <exception name="IOException" type="java.io.IOException"/>
  71046. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71047. <doc>
  71048. <![CDATA[return progress based on the amount of data processed so far.]]>
  71049. </doc>
  71050. </method>
  71051. <method name="initNextRecordReader" return="boolean"
  71052. abstract="false" native="false" synchronized="false"
  71053. static="false" final="false" visibility="protected"
  71054. deprecated="not deprecated">
  71055. <exception name="IOException" type="java.io.IOException"/>
  71056. <doc>
  71057. <![CDATA[Get the record reader for the next chunk in this CombineFileSplit.]]>
  71058. </doc>
  71059. </method>
  71060. <field name="split" type="org.apache.hadoop.mapreduce.lib.input.CombineFileSplit"
  71061. transient="false" volatile="false"
  71062. static="false" final="false" visibility="protected"
  71063. deprecated="not deprecated">
  71064. </field>
  71065. <field name="rrClass" type="java.lang.Class"
  71066. transient="false" volatile="false"
  71067. static="false" final="false" visibility="protected"
  71068. deprecated="not deprecated">
  71069. </field>
  71070. <field name="rrConstructor" type="java.lang.reflect.Constructor"
  71071. transient="false" volatile="false"
  71072. static="false" final="false" visibility="protected"
  71073. deprecated="not deprecated">
  71074. </field>
  71075. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  71076. transient="false" volatile="false"
  71077. static="false" final="false" visibility="protected"
  71078. deprecated="not deprecated">
  71079. </field>
  71080. <field name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"
  71081. transient="false" volatile="false"
  71082. static="false" final="false" visibility="protected"
  71083. deprecated="not deprecated">
  71084. </field>
  71085. <field name="idx" type="int"
  71086. transient="false" volatile="false"
  71087. static="false" final="false" visibility="protected"
  71088. deprecated="not deprecated">
  71089. </field>
  71090. <field name="progress" type="long"
  71091. transient="false" volatile="false"
  71092. static="false" final="false" visibility="protected"
  71093. deprecated="not deprecated">
  71094. </field>
  71095. <field name="curReader" type="org.apache.hadoop.mapreduce.RecordReader"
  71096. transient="false" volatile="false"
  71097. static="false" final="false" visibility="protected"
  71098. deprecated="not deprecated">
  71099. </field>
  71100. <doc>
  71101. <![CDATA[A generic RecordReader that can hand out different recordReaders
  71102. for each chunk in a {@link CombineFileSplit}.
  71103. A CombineFileSplit can combine data chunks from multiple files.
  71104. This class allows using different RecordReaders for processing
  71105. these data chunks from different files.
  71106. @see CombineFileSplit]]>
  71107. </doc>
  71108. </class>
  71109. <!-- end class org.apache.hadoop.mapreduce.lib.input.CombineFileRecordReader -->
  71110. <!-- start class org.apache.hadoop.mapreduce.lib.input.CombineFileSplit -->
  71111. <class name="CombineFileSplit" extends="org.apache.hadoop.mapreduce.InputSplit"
  71112. abstract="false"
  71113. static="false" final="false" visibility="public"
  71114. deprecated="not deprecated">
  71115. <implements name="org.apache.hadoop.io.Writable"/>
  71116. <constructor name="CombineFileSplit"
  71117. static="false" final="false" visibility="public"
  71118. deprecated="not deprecated">
  71119. <doc>
  71120. <![CDATA[default constructor]]>
  71121. </doc>
  71122. </constructor>
  71123. <constructor name="CombineFileSplit" type="org.apache.hadoop.fs.Path[], long[], long[], java.lang.String[]"
  71124. static="false" final="false" visibility="public"
  71125. deprecated="not deprecated">
  71126. </constructor>
  71127. <constructor name="CombineFileSplit" type="org.apache.hadoop.fs.Path[], long[]"
  71128. static="false" final="false" visibility="public"
  71129. deprecated="not deprecated">
  71130. </constructor>
  71131. <constructor name="CombineFileSplit" type="org.apache.hadoop.mapreduce.lib.input.CombineFileSplit"
  71132. static="false" final="false" visibility="public"
  71133. deprecated="not deprecated">
  71134. <exception name="IOException" type="java.io.IOException"/>
  71135. <doc>
  71136. <![CDATA[Copy constructor]]>
  71137. </doc>
  71138. </constructor>
  71139. <method name="getLength" return="long"
  71140. abstract="false" native="false" synchronized="false"
  71141. static="false" final="false" visibility="public"
  71142. deprecated="not deprecated">
  71143. </method>
  71144. <method name="getStartOffsets" return="long[]"
  71145. abstract="false" native="false" synchronized="false"
  71146. static="false" final="false" visibility="public"
  71147. deprecated="not deprecated">
  71148. <doc>
  71149. <![CDATA[Returns an array containing the start offsets of the files in the split]]>
  71150. </doc>
  71151. </method>
  71152. <method name="getLengths" return="long[]"
  71153. abstract="false" native="false" synchronized="false"
  71154. static="false" final="false" visibility="public"
  71155. deprecated="not deprecated">
  71156. <doc>
  71157. <![CDATA[Returns an array containing the lengths of the files in the split]]>
  71158. </doc>
  71159. </method>
  71160. <method name="getOffset" return="long"
  71161. abstract="false" native="false" synchronized="false"
  71162. static="false" final="false" visibility="public"
  71163. deprecated="not deprecated">
  71164. <param name="i" type="int"/>
  71165. <doc>
  71166. <![CDATA[Returns the start offset of the i<sup>th</sup> Path]]>
  71167. </doc>
  71168. </method>
  71169. <method name="getLength" return="long"
  71170. abstract="false" native="false" synchronized="false"
  71171. static="false" final="false" visibility="public"
  71172. deprecated="not deprecated">
  71173. <param name="i" type="int"/>
  71174. <doc>
  71175. <![CDATA[Returns the length of the i<sup>th</sup> Path]]>
  71176. </doc>
  71177. </method>
  71178. <method name="getNumPaths" return="int"
  71179. abstract="false" native="false" synchronized="false"
  71180. static="false" final="false" visibility="public"
  71181. deprecated="not deprecated">
  71182. <doc>
  71183. <![CDATA[Returns the number of Paths in the split]]>
  71184. </doc>
  71185. </method>
  71186. <method name="getPath" return="org.apache.hadoop.fs.Path"
  71187. abstract="false" native="false" synchronized="false"
  71188. static="false" final="false" visibility="public"
  71189. deprecated="not deprecated">
  71190. <param name="i" type="int"/>
  71191. <doc>
  71192. <![CDATA[Returns the i<sup>th</sup> Path]]>
  71193. </doc>
  71194. </method>
  71195. <method name="getPaths" return="org.apache.hadoop.fs.Path[]"
  71196. abstract="false" native="false" synchronized="false"
  71197. static="false" final="false" visibility="public"
  71198. deprecated="not deprecated">
  71199. <doc>
  71200. <![CDATA[Returns all the Paths in the split]]>
  71201. </doc>
  71202. </method>
  71203. <method name="getLocations" return="java.lang.String[]"
  71204. abstract="false" native="false" synchronized="false"
  71205. static="false" final="false" visibility="public"
  71206. deprecated="not deprecated">
  71207. <exception name="IOException" type="java.io.IOException"/>
  71208. <doc>
  71209. <![CDATA[Returns all the Paths where this input-split resides]]>
  71210. </doc>
  71211. </method>
  71212. <method name="readFields"
  71213. abstract="false" native="false" synchronized="false"
  71214. static="false" final="false" visibility="public"
  71215. deprecated="not deprecated">
  71216. <param name="in" type="java.io.DataInput"/>
  71217. <exception name="IOException" type="java.io.IOException"/>
  71218. </method>
  71219. <method name="write"
  71220. abstract="false" native="false" synchronized="false"
  71221. static="false" final="false" visibility="public"
  71222. deprecated="not deprecated">
  71223. <param name="out" type="java.io.DataOutput"/>
  71224. <exception name="IOException" type="java.io.IOException"/>
  71225. </method>
  71226. <method name="toString" return="java.lang.String"
  71227. abstract="false" native="false" synchronized="false"
  71228. static="false" final="false" visibility="public"
  71229. deprecated="not deprecated">
  71230. </method>
  71231. <doc>
  71232. <![CDATA[A sub-collection of input files.
  71233. Unlike {@link FileSplit}, CombineFileSplit class does not represent
  71234. a split of a file, but a split of input files into smaller sets.
  71235. A split may contain blocks from different file but all
  71236. the blocks in the same split are probably local to some rack <br>
  71237. CombineFileSplit can be used to implement {@link RecordReader}'s,
  71238. with reading one record per file.
  71239. @see FileSplit
  71240. @see CombineFileInputFormat]]>
  71241. </doc>
  71242. </class>
  71243. <!-- end class org.apache.hadoop.mapreduce.lib.input.CombineFileSplit -->
  71244. <!-- start class org.apache.hadoop.mapreduce.lib.input.DelegatingInputFormat -->
  71245. <class name="DelegatingInputFormat" extends="org.apache.hadoop.mapreduce.InputFormat"
  71246. abstract="false"
  71247. static="false" final="false" visibility="public"
  71248. deprecated="not deprecated">
  71249. <constructor name="DelegatingInputFormat"
  71250. static="false" final="false" visibility="public"
  71251. deprecated="not deprecated">
  71252. </constructor>
  71253. <method name="getSplits" return="java.util.List"
  71254. abstract="false" native="false" synchronized="false"
  71255. static="false" final="false" visibility="public"
  71256. deprecated="not deprecated">
  71257. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  71258. <exception name="IOException" type="java.io.IOException"/>
  71259. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71260. </method>
  71261. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  71262. abstract="false" native="false" synchronized="false"
  71263. static="false" final="false" visibility="public"
  71264. deprecated="not deprecated">
  71265. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  71266. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  71267. <exception name="IOException" type="java.io.IOException"/>
  71268. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71269. </method>
  71270. <doc>
  71271. <![CDATA[An {@link InputFormat} that delegates behavior of paths to multiple other
  71272. InputFormats.
  71273. @see MultipleInputs#addInputPath(Job, Path, Class, Class)]]>
  71274. </doc>
  71275. </class>
  71276. <!-- end class org.apache.hadoop.mapreduce.lib.input.DelegatingInputFormat -->
  71277. <!-- start class org.apache.hadoop.mapreduce.lib.input.DelegatingMapper -->
  71278. <class name="DelegatingMapper" extends="org.apache.hadoop.mapreduce.Mapper"
  71279. abstract="false"
  71280. static="false" final="false" visibility="public"
  71281. deprecated="not deprecated">
  71282. <constructor name="DelegatingMapper"
  71283. static="false" final="false" visibility="public"
  71284. deprecated="not deprecated">
  71285. </constructor>
  71286. <method name="setup"
  71287. abstract="false" native="false" synchronized="false"
  71288. static="false" final="false" visibility="protected"
  71289. deprecated="not deprecated">
  71290. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  71291. <exception name="IOException" type="java.io.IOException"/>
  71292. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71293. </method>
  71294. <method name="run"
  71295. abstract="false" native="false" synchronized="false"
  71296. static="false" final="false" visibility="public"
  71297. deprecated="not deprecated">
  71298. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  71299. <exception name="IOException" type="java.io.IOException"/>
  71300. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71301. </method>
  71302. <doc>
  71303. <![CDATA[An {@link Mapper} that delegates behavior of paths to multiple other
  71304. mappers.
  71305. @see MultipleInputs#addInputPath(Job, Path, Class, Class)]]>
  71306. </doc>
  71307. </class>
  71308. <!-- end class org.apache.hadoop.mapreduce.lib.input.DelegatingMapper -->
  71309. <!-- start class org.apache.hadoop.mapreduce.lib.input.DelegatingRecordReader -->
  71310. <class name="DelegatingRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  71311. abstract="false"
  71312. static="false" final="false" visibility="public"
  71313. deprecated="not deprecated">
  71314. <constructor name="DelegatingRecordReader" type="org.apache.hadoop.mapreduce.InputSplit, org.apache.hadoop.mapreduce.TaskAttemptContext"
  71315. static="false" final="false" visibility="public"
  71316. deprecated="not deprecated">
  71317. <exception name="IOException" type="java.io.IOException"/>
  71318. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71319. <doc>
  71320. <![CDATA[Constructs the DelegatingRecordReader.
  71321. @param split TaggegInputSplit object
  71322. @param context TaskAttemptContext object
  71323. @throws IOException
  71324. @throws InterruptedException]]>
  71325. </doc>
  71326. </constructor>
  71327. <method name="close"
  71328. abstract="false" native="false" synchronized="false"
  71329. static="false" final="false" visibility="public"
  71330. deprecated="not deprecated">
  71331. <exception name="IOException" type="java.io.IOException"/>
  71332. </method>
  71333. <method name="getCurrentKey" return="java.lang.Object"
  71334. abstract="false" native="false" synchronized="false"
  71335. static="false" final="false" visibility="public"
  71336. deprecated="not deprecated">
  71337. <exception name="IOException" type="java.io.IOException"/>
  71338. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71339. </method>
  71340. <method name="getCurrentValue" return="java.lang.Object"
  71341. abstract="false" native="false" synchronized="false"
  71342. static="false" final="false" visibility="public"
  71343. deprecated="not deprecated">
  71344. <exception name="IOException" type="java.io.IOException"/>
  71345. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71346. </method>
  71347. <method name="getProgress" return="float"
  71348. abstract="false" native="false" synchronized="false"
  71349. static="false" final="false" visibility="public"
  71350. deprecated="not deprecated">
  71351. <exception name="IOException" type="java.io.IOException"/>
  71352. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71353. </method>
  71354. <method name="initialize"
  71355. abstract="false" native="false" synchronized="false"
  71356. static="false" final="false" visibility="public"
  71357. deprecated="not deprecated">
  71358. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  71359. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  71360. <exception name="IOException" type="java.io.IOException"/>
  71361. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71362. </method>
  71363. <method name="nextKeyValue" return="boolean"
  71364. abstract="false" native="false" synchronized="false"
  71365. static="false" final="false" visibility="public"
  71366. deprecated="not deprecated">
  71367. <exception name="IOException" type="java.io.IOException"/>
  71368. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71369. </method>
  71370. <doc>
  71371. <![CDATA[This is a delegating RecordReader, which delegates the functionality to the
  71372. underlying record reader in {@link TaggedInputSplit}]]>
  71373. </doc>
  71374. </class>
  71375. <!-- end class org.apache.hadoop.mapreduce.lib.input.DelegatingRecordReader -->
  71376. <!-- start class org.apache.hadoop.mapreduce.lib.input.FileInputFormat -->
  71377. <class name="FileInputFormat" extends="org.apache.hadoop.mapreduce.InputFormat"
  71378. abstract="true"
  71379. static="false" final="false" visibility="public"
  71380. deprecated="not deprecated">
  71381. <constructor name="FileInputFormat"
  71382. static="false" final="false" visibility="public"
  71383. deprecated="not deprecated">
  71384. </constructor>
  71385. <method name="getFormatMinSplitSize" return="long"
  71386. abstract="false" native="false" synchronized="false"
  71387. static="false" final="false" visibility="protected"
  71388. deprecated="not deprecated">
  71389. <doc>
  71390. <![CDATA[Get the lower bound on split size imposed by the format.
  71391. @return the number of bytes of the minimal split for this format]]>
  71392. </doc>
  71393. </method>
  71394. <method name="isSplitable" return="boolean"
  71395. abstract="false" native="false" synchronized="false"
  71396. static="false" final="false" visibility="protected"
  71397. deprecated="not deprecated">
  71398. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  71399. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  71400. <doc>
  71401. <![CDATA[Is the given filename splitable? Usually, true, but if the file is
  71402. stream compressed, it will not be.
  71403. <code>FileInputFormat</code> implementations can override this and return
  71404. <code>false</code> to ensure that individual input files are never split-up
  71405. so that {@link Mapper}s process entire files.
  71406. @param context the job context
  71407. @param filename the file name to check
  71408. @return is this file splitable?]]>
  71409. </doc>
  71410. </method>
  71411. <method name="setInputPathFilter"
  71412. abstract="false" native="false" synchronized="false"
  71413. static="true" final="false" visibility="public"
  71414. deprecated="not deprecated">
  71415. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  71416. <param name="filter" type="java.lang.Class"/>
  71417. <doc>
  71418. <![CDATA[Set a PathFilter to be applied to the input paths for the map-reduce job.
  71419. @param job the job to modify
  71420. @param filter the PathFilter class use for filtering the input paths.]]>
  71421. </doc>
  71422. </method>
  71423. <method name="setMinInputSplitSize"
  71424. abstract="false" native="false" synchronized="false"
  71425. static="true" final="false" visibility="public"
  71426. deprecated="not deprecated">
  71427. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  71428. <param name="size" type="long"/>
  71429. <doc>
  71430. <![CDATA[Set the minimum input split size
  71431. @param job the job to modify
  71432. @param size the minimum size]]>
  71433. </doc>
  71434. </method>
  71435. <method name="getMinSplitSize" return="long"
  71436. abstract="false" native="false" synchronized="false"
  71437. static="true" final="false" visibility="public"
  71438. deprecated="not deprecated">
  71439. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  71440. <doc>
  71441. <![CDATA[Get the minimum split size
  71442. @param job the job
  71443. @return the minimum number of bytes that can be in a split]]>
  71444. </doc>
  71445. </method>
  71446. <method name="setMaxInputSplitSize"
  71447. abstract="false" native="false" synchronized="false"
  71448. static="true" final="false" visibility="public"
  71449. deprecated="not deprecated">
  71450. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  71451. <param name="size" type="long"/>
  71452. <doc>
  71453. <![CDATA[Set the maximum split size
  71454. @param job the job to modify
  71455. @param size the maximum split size]]>
  71456. </doc>
  71457. </method>
  71458. <method name="getMaxSplitSize" return="long"
  71459. abstract="false" native="false" synchronized="false"
  71460. static="true" final="false" visibility="public"
  71461. deprecated="not deprecated">
  71462. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  71463. <doc>
  71464. <![CDATA[Get the maximum split size.
  71465. @param context the job to look at.
  71466. @return the maximum number of bytes a split can include]]>
  71467. </doc>
  71468. </method>
  71469. <method name="getInputPathFilter" return="org.apache.hadoop.fs.PathFilter"
  71470. abstract="false" native="false" synchronized="false"
  71471. static="true" final="false" visibility="public"
  71472. deprecated="not deprecated">
  71473. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  71474. <doc>
  71475. <![CDATA[Get a PathFilter instance of the filter set for the input paths.
  71476. @return the PathFilter instance set for the job, NULL if none has been set.]]>
  71477. </doc>
  71478. </method>
  71479. <method name="listStatus" return="java.util.List"
  71480. abstract="false" native="false" synchronized="false"
  71481. static="false" final="false" visibility="protected"
  71482. deprecated="not deprecated">
  71483. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  71484. <exception name="IOException" type="java.io.IOException"/>
  71485. <doc>
  71486. <![CDATA[List input directories.
  71487. Subclasses may override to, e.g., select only files matching a regular
  71488. expression.
  71489. @param job the job to list input paths for
  71490. @return array of FileStatus objects
  71491. @throws IOException if zero items.]]>
  71492. </doc>
  71493. </method>
  71494. <method name="getSplits" return="java.util.List"
  71495. abstract="false" native="false" synchronized="false"
  71496. static="false" final="false" visibility="public"
  71497. deprecated="not deprecated">
  71498. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  71499. <exception name="IOException" type="java.io.IOException"/>
  71500. <doc>
  71501. <![CDATA[Generate the list of files and make them into FileSplits.]]>
  71502. </doc>
  71503. </method>
  71504. <method name="computeSplitSize" return="long"
  71505. abstract="false" native="false" synchronized="false"
  71506. static="false" final="false" visibility="protected"
  71507. deprecated="not deprecated">
  71508. <param name="blockSize" type="long"/>
  71509. <param name="minSize" type="long"/>
  71510. <param name="maxSize" type="long"/>
  71511. </method>
  71512. <method name="getBlockIndex" return="int"
  71513. abstract="false" native="false" synchronized="false"
  71514. static="false" final="false" visibility="protected"
  71515. deprecated="not deprecated">
  71516. <param name="blkLocations" type="org.apache.hadoop.fs.BlockLocation[]"/>
  71517. <param name="offset" type="long"/>
  71518. </method>
  71519. <method name="setInputPaths"
  71520. abstract="false" native="false" synchronized="false"
  71521. static="true" final="false" visibility="public"
  71522. deprecated="not deprecated">
  71523. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  71524. <param name="commaSeparatedPaths" type="java.lang.String"/>
  71525. <exception name="IOException" type="java.io.IOException"/>
  71526. <doc>
  71527. <![CDATA[Sets the given comma separated paths as the list of inputs
  71528. for the map-reduce job.
  71529. @param job the job
  71530. @param commaSeparatedPaths Comma separated paths to be set as
  71531. the list of inputs for the map-reduce job.]]>
  71532. </doc>
  71533. </method>
  71534. <method name="addInputPaths"
  71535. abstract="false" native="false" synchronized="false"
  71536. static="true" final="false" visibility="public"
  71537. deprecated="not deprecated">
  71538. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  71539. <param name="commaSeparatedPaths" type="java.lang.String"/>
  71540. <exception name="IOException" type="java.io.IOException"/>
  71541. <doc>
  71542. <![CDATA[Add the given comma separated paths to the list of inputs for
  71543. the map-reduce job.
  71544. @param job The job to modify
  71545. @param commaSeparatedPaths Comma separated paths to be added to
  71546. the list of inputs for the map-reduce job.]]>
  71547. </doc>
  71548. </method>
  71549. <method name="setInputPaths"
  71550. abstract="false" native="false" synchronized="false"
  71551. static="true" final="false" visibility="public"
  71552. deprecated="not deprecated">
  71553. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  71554. <param name="inputPaths" type="org.apache.hadoop.fs.Path[]"/>
  71555. <exception name="IOException" type="java.io.IOException"/>
  71556. <doc>
  71557. <![CDATA[Set the array of {@link Path}s as the list of inputs
  71558. for the map-reduce job.
  71559. @param job The job to modify
  71560. @param inputPaths the {@link Path}s of the input directories/files
  71561. for the map-reduce job.]]>
  71562. </doc>
  71563. </method>
  71564. <method name="addInputPath"
  71565. abstract="false" native="false" synchronized="false"
  71566. static="true" final="false" visibility="public"
  71567. deprecated="not deprecated">
  71568. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  71569. <param name="path" type="org.apache.hadoop.fs.Path"/>
  71570. <exception name="IOException" type="java.io.IOException"/>
  71571. <doc>
  71572. <![CDATA[Add a {@link Path} to the list of inputs for the map-reduce job.
  71573. @param job The {@link Job} to modify
  71574. @param path {@link Path} to be added to the list of inputs for
  71575. the map-reduce job.]]>
  71576. </doc>
  71577. </method>
  71578. <method name="getInputPaths" return="org.apache.hadoop.fs.Path[]"
  71579. abstract="false" native="false" synchronized="false"
  71580. static="true" final="false" visibility="public"
  71581. deprecated="not deprecated">
  71582. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  71583. <doc>
  71584. <![CDATA[Get the list of input {@link Path}s for the map-reduce job.
  71585. @param context The job
  71586. @return the list of input {@link Path}s for the map-reduce job.]]>
  71587. </doc>
  71588. </method>
  71589. <doc>
  71590. <![CDATA[A base class for file-based {@link InputFormat}s.
  71591. <p><code>FileInputFormat</code> is the base class for all file-based
  71592. <code>InputFormat</code>s. This provides a generic implementation of
  71593. {@link #getSplits(JobContext)}.
  71594. Subclasses of <code>FileInputFormat</code> can also override the
  71595. {@link #isSplitable(JobContext, Path)} method to ensure input-files are
  71596. not split-up and are processed as a whole by {@link Mapper}s.]]>
  71597. </doc>
  71598. </class>
  71599. <!-- end class org.apache.hadoop.mapreduce.lib.input.FileInputFormat -->
  71600. <!-- start class org.apache.hadoop.mapreduce.lib.input.FileInputFormat.Counter -->
  71601. <class name="FileInputFormat.Counter" extends="java.lang.Enum"
  71602. abstract="false"
  71603. static="true" final="true" visibility="public"
  71604. deprecated="not deprecated">
  71605. <method name="values" return="org.apache.hadoop.mapreduce.lib.input.FileInputFormat.Counter[]"
  71606. abstract="false" native="false" synchronized="false"
  71607. static="true" final="false" visibility="public"
  71608. deprecated="not deprecated">
  71609. </method>
  71610. <method name="valueOf" return="org.apache.hadoop.mapreduce.lib.input.FileInputFormat.Counter"
  71611. abstract="false" native="false" synchronized="false"
  71612. static="true" final="false" visibility="public"
  71613. deprecated="not deprecated">
  71614. <param name="name" type="java.lang.String"/>
  71615. </method>
  71616. <field name="BYTES_READ" type="org.apache.hadoop.mapreduce.lib.input.FileInputFormat.Counter"
  71617. transient="false" volatile="false"
  71618. static="true" final="true" visibility="public"
  71619. deprecated="not deprecated">
  71620. </field>
  71621. </class>
  71622. <!-- end class org.apache.hadoop.mapreduce.lib.input.FileInputFormat.Counter -->
  71623. <!-- start class org.apache.hadoop.mapreduce.lib.input.FileSplit -->
  71624. <class name="FileSplit" extends="org.apache.hadoop.mapreduce.InputSplit"
  71625. abstract="false"
  71626. static="false" final="false" visibility="public"
  71627. deprecated="not deprecated">
  71628. <implements name="org.apache.hadoop.io.Writable"/>
  71629. <constructor name="FileSplit" type="org.apache.hadoop.fs.Path, long, long, java.lang.String[]"
  71630. static="false" final="false" visibility="public"
  71631. deprecated="not deprecated">
  71632. <doc>
  71633. <![CDATA[Constructs a split with host information
  71634. @param file the file name
  71635. @param start the position of the first byte in the file to process
  71636. @param length the number of bytes in the file to process
  71637. @param hosts the list of hosts containing the block, possibly null]]>
  71638. </doc>
  71639. </constructor>
  71640. <method name="getPath" return="org.apache.hadoop.fs.Path"
  71641. abstract="false" native="false" synchronized="false"
  71642. static="false" final="false" visibility="public"
  71643. deprecated="not deprecated">
  71644. <doc>
  71645. <![CDATA[The file containing this split's data.]]>
  71646. </doc>
  71647. </method>
  71648. <method name="getStart" return="long"
  71649. abstract="false" native="false" synchronized="false"
  71650. static="false" final="false" visibility="public"
  71651. deprecated="not deprecated">
  71652. <doc>
  71653. <![CDATA[The position of the first byte in the file to process.]]>
  71654. </doc>
  71655. </method>
  71656. <method name="getLength" return="long"
  71657. abstract="false" native="false" synchronized="false"
  71658. static="false" final="false" visibility="public"
  71659. deprecated="not deprecated">
  71660. <doc>
  71661. <![CDATA[The number of bytes in the file to process.]]>
  71662. </doc>
  71663. </method>
  71664. <method name="toString" return="java.lang.String"
  71665. abstract="false" native="false" synchronized="false"
  71666. static="false" final="false" visibility="public"
  71667. deprecated="not deprecated">
  71668. </method>
  71669. <method name="write"
  71670. abstract="false" native="false" synchronized="false"
  71671. static="false" final="false" visibility="public"
  71672. deprecated="not deprecated">
  71673. <param name="out" type="java.io.DataOutput"/>
  71674. <exception name="IOException" type="java.io.IOException"/>
  71675. </method>
  71676. <method name="readFields"
  71677. abstract="false" native="false" synchronized="false"
  71678. static="false" final="false" visibility="public"
  71679. deprecated="not deprecated">
  71680. <param name="in" type="java.io.DataInput"/>
  71681. <exception name="IOException" type="java.io.IOException"/>
  71682. </method>
  71683. <method name="getLocations" return="java.lang.String[]"
  71684. abstract="false" native="false" synchronized="false"
  71685. static="false" final="false" visibility="public"
  71686. deprecated="not deprecated">
  71687. <exception name="IOException" type="java.io.IOException"/>
  71688. </method>
  71689. <doc>
  71690. <![CDATA[A section of an input file. Returned by {@link
  71691. InputFormat#getSplits(JobContext)} and passed to
  71692. {@link InputFormat#createRecordReader(InputSplit,TaskAttemptContext)}.]]>
  71693. </doc>
  71694. </class>
  71695. <!-- end class org.apache.hadoop.mapreduce.lib.input.FileSplit -->
  71696. <!-- start class org.apache.hadoop.mapreduce.lib.input.InvalidInputException -->
  71697. <class name="InvalidInputException" extends="java.io.IOException"
  71698. abstract="false"
  71699. static="false" final="false" visibility="public"
  71700. deprecated="not deprecated">
  71701. <constructor name="InvalidInputException" type="java.util.List"
  71702. static="false" final="false" visibility="public"
  71703. deprecated="not deprecated">
  71704. <doc>
  71705. <![CDATA[Create the exception with the given list.
  71706. @param probs the list of problems to report. this list is not copied.]]>
  71707. </doc>
  71708. </constructor>
  71709. <method name="getProblems" return="java.util.List"
  71710. abstract="false" native="false" synchronized="false"
  71711. static="false" final="false" visibility="public"
  71712. deprecated="not deprecated">
  71713. <doc>
  71714. <![CDATA[Get the complete list of the problems reported.
  71715. @return the list of problems, which must not be modified]]>
  71716. </doc>
  71717. </method>
  71718. <method name="getMessage" return="java.lang.String"
  71719. abstract="false" native="false" synchronized="false"
  71720. static="false" final="false" visibility="public"
  71721. deprecated="not deprecated">
  71722. <doc>
  71723. <![CDATA[Get a summary message of the problems found.
  71724. @return the concatenated messages from all of the problems.]]>
  71725. </doc>
  71726. </method>
  71727. <doc>
  71728. <![CDATA[This class wraps a list of problems with the input, so that the user
  71729. can get a list of problems together instead of finding and fixing them one
  71730. by one.]]>
  71731. </doc>
  71732. </class>
  71733. <!-- end class org.apache.hadoop.mapreduce.lib.input.InvalidInputException -->
  71734. <!-- start class org.apache.hadoop.mapreduce.lib.input.KeyValueLineRecordReader -->
  71735. <class name="KeyValueLineRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  71736. abstract="false"
  71737. static="false" final="false" visibility="public"
  71738. deprecated="not deprecated">
  71739. <constructor name="KeyValueLineRecordReader" type="org.apache.hadoop.conf.Configuration"
  71740. static="false" final="false" visibility="public"
  71741. deprecated="not deprecated">
  71742. <exception name="IOException" type="java.io.IOException"/>
  71743. </constructor>
  71744. <method name="getKeyClass" return="java.lang.Class"
  71745. abstract="false" native="false" synchronized="false"
  71746. static="false" final="false" visibility="public"
  71747. deprecated="not deprecated">
  71748. </method>
  71749. <method name="initialize"
  71750. abstract="false" native="false" synchronized="false"
  71751. static="false" final="false" visibility="public"
  71752. deprecated="not deprecated">
  71753. <param name="genericSplit" type="org.apache.hadoop.mapreduce.InputSplit"/>
  71754. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  71755. <exception name="IOException" type="java.io.IOException"/>
  71756. </method>
  71757. <method name="findSeparator" return="int"
  71758. abstract="false" native="false" synchronized="false"
  71759. static="true" final="false" visibility="public"
  71760. deprecated="not deprecated">
  71761. <param name="utf" type="byte[]"/>
  71762. <param name="start" type="int"/>
  71763. <param name="length" type="int"/>
  71764. <param name="sep" type="byte"/>
  71765. </method>
  71766. <method name="setKeyValue"
  71767. abstract="false" native="false" synchronized="false"
  71768. static="true" final="false" visibility="public"
  71769. deprecated="not deprecated">
  71770. <param name="key" type="org.apache.hadoop.io.Text"/>
  71771. <param name="value" type="org.apache.hadoop.io.Text"/>
  71772. <param name="line" type="byte[]"/>
  71773. <param name="lineLen" type="int"/>
  71774. <param name="pos" type="int"/>
  71775. </method>
  71776. <method name="nextKeyValue" return="boolean"
  71777. abstract="false" native="false" synchronized="true"
  71778. static="false" final="false" visibility="public"
  71779. deprecated="not deprecated">
  71780. <exception name="IOException" type="java.io.IOException"/>
  71781. <doc>
  71782. <![CDATA[Read key/value pair in a line.]]>
  71783. </doc>
  71784. </method>
  71785. <method name="getCurrentKey" return="org.apache.hadoop.io.Text"
  71786. abstract="false" native="false" synchronized="false"
  71787. static="false" final="false" visibility="public"
  71788. deprecated="not deprecated">
  71789. </method>
  71790. <method name="getCurrentValue" return="org.apache.hadoop.io.Text"
  71791. abstract="false" native="false" synchronized="false"
  71792. static="false" final="false" visibility="public"
  71793. deprecated="not deprecated">
  71794. </method>
  71795. <method name="getProgress" return="float"
  71796. abstract="false" native="false" synchronized="false"
  71797. static="false" final="false" visibility="public"
  71798. deprecated="not deprecated">
  71799. <exception name="IOException" type="java.io.IOException"/>
  71800. </method>
  71801. <method name="close"
  71802. abstract="false" native="false" synchronized="true"
  71803. static="false" final="false" visibility="public"
  71804. deprecated="not deprecated">
  71805. <exception name="IOException" type="java.io.IOException"/>
  71806. </method>
  71807. <field name="KEY_VALUE_SEPERATOR" type="java.lang.String"
  71808. transient="false" volatile="false"
  71809. static="true" final="true" visibility="public"
  71810. deprecated="not deprecated">
  71811. </field>
  71812. <doc>
  71813. <![CDATA[This class treats a line in the input as a key/value pair separated by a
  71814. separator character. The separator can be specified in config file
  71815. under the attribute name mapreduce.input.keyvaluelinerecordreader.key.value.separator. The default
  71816. separator is the tab character ('\t').]]>
  71817. </doc>
  71818. </class>
  71819. <!-- end class org.apache.hadoop.mapreduce.lib.input.KeyValueLineRecordReader -->
  71820. <!-- start class org.apache.hadoop.mapreduce.lib.input.KeyValueTextInputFormat -->
  71821. <class name="KeyValueTextInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.FileInputFormat"
  71822. abstract="false"
  71823. static="false" final="false" visibility="public"
  71824. deprecated="not deprecated">
  71825. <constructor name="KeyValueTextInputFormat"
  71826. static="false" final="false" visibility="public"
  71827. deprecated="not deprecated">
  71828. </constructor>
  71829. <method name="isSplitable" return="boolean"
  71830. abstract="false" native="false" synchronized="false"
  71831. static="false" final="false" visibility="protected"
  71832. deprecated="not deprecated">
  71833. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  71834. <param name="file" type="org.apache.hadoop.fs.Path"/>
  71835. </method>
  71836. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  71837. abstract="false" native="false" synchronized="false"
  71838. static="false" final="false" visibility="public"
  71839. deprecated="not deprecated">
  71840. <param name="genericSplit" type="org.apache.hadoop.mapreduce.InputSplit"/>
  71841. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  71842. <exception name="IOException" type="java.io.IOException"/>
  71843. </method>
  71844. <doc>
  71845. <![CDATA[An {@link InputFormat} for plain text files. Files are broken into lines.
  71846. Either line feed or carriage-return are used to signal end of line.
  71847. Each line is divided into key and value parts by a separator byte. If no
  71848. such a byte exists, the key will be the entire line and value will be empty.]]>
  71849. </doc>
  71850. </class>
  71851. <!-- end class org.apache.hadoop.mapreduce.lib.input.KeyValueTextInputFormat -->
  71852. <!-- start class org.apache.hadoop.mapreduce.lib.input.LineRecordReader -->
  71853. <class name="LineRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  71854. abstract="false"
  71855. static="false" final="false" visibility="public"
  71856. deprecated="not deprecated">
  71857. <constructor name="LineRecordReader"
  71858. static="false" final="false" visibility="public"
  71859. deprecated="not deprecated">
  71860. </constructor>
  71861. <method name="initialize"
  71862. abstract="false" native="false" synchronized="false"
  71863. static="false" final="false" visibility="public"
  71864. deprecated="not deprecated">
  71865. <param name="genericSplit" type="org.apache.hadoop.mapreduce.InputSplit"/>
  71866. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  71867. <exception name="IOException" type="java.io.IOException"/>
  71868. </method>
  71869. <method name="nextKeyValue" return="boolean"
  71870. abstract="false" native="false" synchronized="false"
  71871. static="false" final="false" visibility="public"
  71872. deprecated="not deprecated">
  71873. <exception name="IOException" type="java.io.IOException"/>
  71874. </method>
  71875. <method name="getCurrentKey" return="org.apache.hadoop.io.LongWritable"
  71876. abstract="false" native="false" synchronized="false"
  71877. static="false" final="false" visibility="public"
  71878. deprecated="not deprecated">
  71879. </method>
  71880. <method name="getCurrentValue" return="org.apache.hadoop.io.Text"
  71881. abstract="false" native="false" synchronized="false"
  71882. static="false" final="false" visibility="public"
  71883. deprecated="not deprecated">
  71884. </method>
  71885. <method name="getProgress" return="float"
  71886. abstract="false" native="false" synchronized="false"
  71887. static="false" final="false" visibility="public"
  71888. deprecated="not deprecated">
  71889. <exception name="IOException" type="java.io.IOException"/>
  71890. <doc>
  71891. <![CDATA[Get the progress within the split]]>
  71892. </doc>
  71893. </method>
  71894. <method name="close"
  71895. abstract="false" native="false" synchronized="true"
  71896. static="false" final="false" visibility="public"
  71897. deprecated="not deprecated">
  71898. <exception name="IOException" type="java.io.IOException"/>
  71899. </method>
  71900. <doc>
  71901. <![CDATA[Treats keys as offset in file and value as line.]]>
  71902. </doc>
  71903. </class>
  71904. <!-- end class org.apache.hadoop.mapreduce.lib.input.LineRecordReader -->
  71905. <!-- start class org.apache.hadoop.mapreduce.lib.input.MultipleInputs -->
  71906. <class name="MultipleInputs" extends="java.lang.Object"
  71907. abstract="false"
  71908. static="false" final="false" visibility="public"
  71909. deprecated="not deprecated">
  71910. <constructor name="MultipleInputs"
  71911. static="false" final="false" visibility="public"
  71912. deprecated="not deprecated">
  71913. </constructor>
  71914. <method name="addInputPath"
  71915. abstract="false" native="false" synchronized="false"
  71916. static="true" final="false" visibility="public"
  71917. deprecated="not deprecated">
  71918. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  71919. <param name="path" type="org.apache.hadoop.fs.Path"/>
  71920. <param name="inputFormatClass" type="java.lang.Class"/>
  71921. <doc>
  71922. <![CDATA[Add a {@link Path} with a custom {@link InputFormat} to the list of
  71923. inputs for the map-reduce job.
  71924. @param job The {@link Job}
  71925. @param path {@link Path} to be added to the list of inputs for the job
  71926. @param inputFormatClass {@link InputFormat} class to use for this path]]>
  71927. </doc>
  71928. </method>
  71929. <method name="addInputPath"
  71930. abstract="false" native="false" synchronized="false"
  71931. static="true" final="false" visibility="public"
  71932. deprecated="not deprecated">
  71933. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  71934. <param name="path" type="org.apache.hadoop.fs.Path"/>
  71935. <param name="inputFormatClass" type="java.lang.Class"/>
  71936. <param name="mapperClass" type="java.lang.Class"/>
  71937. <doc>
  71938. <![CDATA[Add a {@link Path} with a custom {@link InputFormat} and
  71939. {@link Mapper} to the list of inputs for the map-reduce job.
  71940. @param job The {@link Job}
  71941. @param path {@link Path} to be added to the list of inputs for the job
  71942. @param inputFormatClass {@link InputFormat} class to use for this path
  71943. @param mapperClass {@link Mapper} class to use for this path]]>
  71944. </doc>
  71945. </method>
  71946. <field name="DIR_FORMATS" type="java.lang.String"
  71947. transient="false" volatile="false"
  71948. static="true" final="true" visibility="public"
  71949. deprecated="not deprecated">
  71950. </field>
  71951. <field name="DIR_MAPPERS" type="java.lang.String"
  71952. transient="false" volatile="false"
  71953. static="true" final="true" visibility="public"
  71954. deprecated="not deprecated">
  71955. </field>
  71956. <doc>
  71957. <![CDATA[This class supports MapReduce jobs that have multiple input paths with
  71958. a different {@link InputFormat} and {@link Mapper} for each path]]>
  71959. </doc>
  71960. </class>
  71961. <!-- end class org.apache.hadoop.mapreduce.lib.input.MultipleInputs -->
  71962. <!-- start class org.apache.hadoop.mapreduce.lib.input.NLineInputFormat -->
  71963. <class name="NLineInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.FileInputFormat"
  71964. abstract="false"
  71965. static="false" final="false" visibility="public"
  71966. deprecated="not deprecated">
  71967. <constructor name="NLineInputFormat"
  71968. static="false" final="false" visibility="public"
  71969. deprecated="not deprecated">
  71970. </constructor>
  71971. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  71972. abstract="false" native="false" synchronized="false"
  71973. static="false" final="false" visibility="public"
  71974. deprecated="not deprecated">
  71975. <param name="genericSplit" type="org.apache.hadoop.mapreduce.InputSplit"/>
  71976. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  71977. <exception name="IOException" type="java.io.IOException"/>
  71978. </method>
  71979. <method name="getSplits" return="java.util.List"
  71980. abstract="false" native="false" synchronized="false"
  71981. static="false" final="false" visibility="public"
  71982. deprecated="not deprecated">
  71983. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  71984. <exception name="IOException" type="java.io.IOException"/>
  71985. <doc>
  71986. <![CDATA[Logically splits the set of input files for the job, splits N lines
  71987. of the input as one split.
  71988. @see FileInputFormat#getSplits(JobContext)]]>
  71989. </doc>
  71990. </method>
  71991. <method name="getSplitsForFile" return="java.util.List"
  71992. abstract="false" native="false" synchronized="false"
  71993. static="true" final="false" visibility="public"
  71994. deprecated="not deprecated">
  71995. <param name="status" type="org.apache.hadoop.fs.FileStatus"/>
  71996. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  71997. <param name="numLinesPerSplit" type="int"/>
  71998. <exception name="IOException" type="java.io.IOException"/>
  71999. </method>
  72000. <method name="createFileSplit" return="org.apache.hadoop.mapreduce.lib.input.FileSplit"
  72001. abstract="false" native="false" synchronized="false"
  72002. static="true" final="false" visibility="protected"
  72003. deprecated="not deprecated">
  72004. <param name="fileName" type="org.apache.hadoop.fs.Path"/>
  72005. <param name="begin" type="long"/>
  72006. <param name="length" type="long"/>
  72007. <doc>
  72008. <![CDATA[NLineInputFormat uses LineRecordReader, which always reads
  72009. (and consumes) at least one character out of its upper split
  72010. boundary. So to make sure that each mapper gets N lines, we
  72011. move back the upper split limits of each split
  72012. by one character here.
  72013. @param fileName Path of file
  72014. @param begin the position of the first byte in the file to process
  72015. @param length number of bytes in InputSplit
  72016. @return FileSplit]]>
  72017. </doc>
  72018. </method>
  72019. <method name="setNumLinesPerSplit"
  72020. abstract="false" native="false" synchronized="false"
  72021. static="true" final="false" visibility="public"
  72022. deprecated="not deprecated">
  72023. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  72024. <param name="numLines" type="int"/>
  72025. <doc>
  72026. <![CDATA[Set the number of lines per split
  72027. @param job the job to modify
  72028. @param numLines the number of lines per split]]>
  72029. </doc>
  72030. </method>
  72031. <method name="getNumLinesPerSplit" return="int"
  72032. abstract="false" native="false" synchronized="false"
  72033. static="true" final="false" visibility="public"
  72034. deprecated="not deprecated">
  72035. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  72036. <doc>
  72037. <![CDATA[Get the number of lines per split
  72038. @param job the job
  72039. @return the number of lines per split]]>
  72040. </doc>
  72041. </method>
  72042. <field name="LINES_PER_MAP" type="java.lang.String"
  72043. transient="false" volatile="false"
  72044. static="true" final="true" visibility="public"
  72045. deprecated="not deprecated">
  72046. </field>
  72047. <doc>
  72048. <![CDATA[NLineInputFormat which splits N lines of input as one split.
  72049. In many "pleasantly" parallel applications, each process/mapper
  72050. processes the same input file (s), but with computations are
  72051. controlled by different parameters.(Referred to as "parameter sweeps").
  72052. One way to achieve this, is to specify a set of parameters
  72053. (one set per line) as input in a control file
  72054. (which is the input path to the map-reduce application,
  72055. where as the input dataset is specified
  72056. via a config variable in JobConf.).
  72057. The NLineInputFormat can be used in such applications, that splits
  72058. the input file such that by default, one line is fed as
  72059. a value to one map task, and key is the offset.
  72060. i.e. (k,v) is (LongWritable, Text).
  72061. The location hints will span the whole mapred cluster.]]>
  72062. </doc>
  72063. </class>
  72064. <!-- end class org.apache.hadoop.mapreduce.lib.input.NLineInputFormat -->
  72065. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsBinaryInputFormat -->
  72066. <class name="SequenceFileAsBinaryInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFormat"
  72067. abstract="false"
  72068. static="false" final="false" visibility="public"
  72069. deprecated="not deprecated">
  72070. <constructor name="SequenceFileAsBinaryInputFormat"
  72071. static="false" final="false" visibility="public"
  72072. deprecated="not deprecated">
  72073. </constructor>
  72074. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  72075. abstract="false" native="false" synchronized="false"
  72076. static="false" final="false" visibility="public"
  72077. deprecated="not deprecated">
  72078. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  72079. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  72080. <exception name="IOException" type="java.io.IOException"/>
  72081. </method>
  72082. <doc>
  72083. <![CDATA[InputFormat reading keys, values from SequenceFiles in binary (raw)
  72084. format.]]>
  72085. </doc>
  72086. </class>
  72087. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsBinaryInputFormat -->
  72088. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader -->
  72089. <class name="SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  72090. abstract="false"
  72091. static="true" final="false" visibility="public"
  72092. deprecated="not deprecated">
  72093. <constructor name="SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader"
  72094. static="false" final="false" visibility="public"
  72095. deprecated="not deprecated">
  72096. </constructor>
  72097. <method name="initialize"
  72098. abstract="false" native="false" synchronized="false"
  72099. static="false" final="false" visibility="public"
  72100. deprecated="not deprecated">
  72101. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  72102. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  72103. <exception name="IOException" type="java.io.IOException"/>
  72104. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72105. </method>
  72106. <method name="getCurrentKey" return="org.apache.hadoop.io.BytesWritable"
  72107. abstract="false" native="false" synchronized="false"
  72108. static="false" final="false" visibility="public"
  72109. deprecated="not deprecated">
  72110. <exception name="IOException" type="java.io.IOException"/>
  72111. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72112. </method>
  72113. <method name="getCurrentValue" return="org.apache.hadoop.io.BytesWritable"
  72114. abstract="false" native="false" synchronized="false"
  72115. static="false" final="false" visibility="public"
  72116. deprecated="not deprecated">
  72117. <exception name="IOException" type="java.io.IOException"/>
  72118. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72119. </method>
  72120. <method name="getKeyClassName" return="java.lang.String"
  72121. abstract="false" native="false" synchronized="false"
  72122. static="false" final="false" visibility="public"
  72123. deprecated="not deprecated">
  72124. <doc>
  72125. <![CDATA[Retrieve the name of the key class for this SequenceFile.
  72126. @see org.apache.hadoop.io.SequenceFile.Reader#getKeyClassName]]>
  72127. </doc>
  72128. </method>
  72129. <method name="getValueClassName" return="java.lang.String"
  72130. abstract="false" native="false" synchronized="false"
  72131. static="false" final="false" visibility="public"
  72132. deprecated="not deprecated">
  72133. <doc>
  72134. <![CDATA[Retrieve the name of the value class for this SequenceFile.
  72135. @see org.apache.hadoop.io.SequenceFile.Reader#getValueClassName]]>
  72136. </doc>
  72137. </method>
  72138. <method name="nextKeyValue" return="boolean"
  72139. abstract="false" native="false" synchronized="true"
  72140. static="false" final="false" visibility="public"
  72141. deprecated="not deprecated">
  72142. <exception name="IOException" type="java.io.IOException"/>
  72143. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72144. <doc>
  72145. <![CDATA[Read raw bytes from a SequenceFile.]]>
  72146. </doc>
  72147. </method>
  72148. <method name="close"
  72149. abstract="false" native="false" synchronized="false"
  72150. static="false" final="false" visibility="public"
  72151. deprecated="not deprecated">
  72152. <exception name="IOException" type="java.io.IOException"/>
  72153. </method>
  72154. <method name="getProgress" return="float"
  72155. abstract="false" native="false" synchronized="false"
  72156. static="false" final="false" visibility="public"
  72157. deprecated="not deprecated">
  72158. <exception name="IOException" type="java.io.IOException"/>
  72159. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72160. <doc>
  72161. <![CDATA[Return the progress within the input split
  72162. @return 0.0 to 1.0 of the input byte range]]>
  72163. </doc>
  72164. </method>
  72165. <doc>
  72166. <![CDATA[Read records from a SequenceFile as binary (raw) bytes.]]>
  72167. </doc>
  72168. </class>
  72169. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader -->
  72170. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsTextInputFormat -->
  72171. <class name="SequenceFileAsTextInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFormat"
  72172. abstract="false"
  72173. static="false" final="false" visibility="public"
  72174. deprecated="not deprecated">
  72175. <constructor name="SequenceFileAsTextInputFormat"
  72176. static="false" final="false" visibility="public"
  72177. deprecated="not deprecated">
  72178. </constructor>
  72179. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  72180. abstract="false" native="false" synchronized="false"
  72181. static="false" final="false" visibility="public"
  72182. deprecated="not deprecated">
  72183. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  72184. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  72185. <exception name="IOException" type="java.io.IOException"/>
  72186. </method>
  72187. <doc>
  72188. <![CDATA[This class is similar to SequenceFileInputFormat, except it generates
  72189. SequenceFileAsTextRecordReader which converts the input keys and values
  72190. to their String forms by calling toString() method.]]>
  72191. </doc>
  72192. </class>
  72193. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsTextInputFormat -->
  72194. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsTextRecordReader -->
  72195. <class name="SequenceFileAsTextRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  72196. abstract="false"
  72197. static="false" final="false" visibility="public"
  72198. deprecated="not deprecated">
  72199. <constructor name="SequenceFileAsTextRecordReader"
  72200. static="false" final="false" visibility="public"
  72201. deprecated="not deprecated">
  72202. <exception name="IOException" type="java.io.IOException"/>
  72203. </constructor>
  72204. <method name="initialize"
  72205. abstract="false" native="false" synchronized="false"
  72206. static="false" final="false" visibility="public"
  72207. deprecated="not deprecated">
  72208. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  72209. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  72210. <exception name="IOException" type="java.io.IOException"/>
  72211. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72212. </method>
  72213. <method name="getCurrentKey" return="org.apache.hadoop.io.Text"
  72214. abstract="false" native="false" synchronized="false"
  72215. static="false" final="false" visibility="public"
  72216. deprecated="not deprecated">
  72217. <exception name="IOException" type="java.io.IOException"/>
  72218. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72219. </method>
  72220. <method name="getCurrentValue" return="org.apache.hadoop.io.Text"
  72221. abstract="false" native="false" synchronized="false"
  72222. static="false" final="false" visibility="public"
  72223. deprecated="not deprecated">
  72224. <exception name="IOException" type="java.io.IOException"/>
  72225. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72226. </method>
  72227. <method name="nextKeyValue" return="boolean"
  72228. abstract="false" native="false" synchronized="true"
  72229. static="false" final="false" visibility="public"
  72230. deprecated="not deprecated">
  72231. <exception name="IOException" type="java.io.IOException"/>
  72232. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72233. <doc>
  72234. <![CDATA[Read key/value pair in a line.]]>
  72235. </doc>
  72236. </method>
  72237. <method name="getProgress" return="float"
  72238. abstract="false" native="false" synchronized="false"
  72239. static="false" final="false" visibility="public"
  72240. deprecated="not deprecated">
  72241. <exception name="IOException" type="java.io.IOException"/>
  72242. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72243. </method>
  72244. <method name="close"
  72245. abstract="false" native="false" synchronized="true"
  72246. static="false" final="false" visibility="public"
  72247. deprecated="not deprecated">
  72248. <exception name="IOException" type="java.io.IOException"/>
  72249. </method>
  72250. <doc>
  72251. <![CDATA[This class converts the input keys and values to their String forms by
  72252. calling toString() method. This class to SequenceFileAsTextInputFormat
  72253. class is as LineRecordReader class to TextInputFormat class.]]>
  72254. </doc>
  72255. </class>
  72256. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsTextRecordReader -->
  72257. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter -->
  72258. <class name="SequenceFileInputFilter" extends="org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFormat"
  72259. abstract="false"
  72260. static="false" final="false" visibility="public"
  72261. deprecated="not deprecated">
  72262. <constructor name="SequenceFileInputFilter"
  72263. static="false" final="false" visibility="public"
  72264. deprecated="not deprecated">
  72265. </constructor>
  72266. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  72267. abstract="false" native="false" synchronized="false"
  72268. static="false" final="false" visibility="public"
  72269. deprecated="not deprecated">
  72270. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  72271. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  72272. <exception name="IOException" type="java.io.IOException"/>
  72273. <doc>
  72274. <![CDATA[Create a record reader for the given split
  72275. @param split file split
  72276. @param context the task-attempt context
  72277. @return RecordReader]]>
  72278. </doc>
  72279. </method>
  72280. <method name="setFilterClass"
  72281. abstract="false" native="false" synchronized="false"
  72282. static="true" final="false" visibility="public"
  72283. deprecated="not deprecated">
  72284. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  72285. <param name="filterClass" type="java.lang.Class"/>
  72286. <doc>
  72287. <![CDATA[set the filter class
  72288. @param job The job
  72289. @param filterClass filter class]]>
  72290. </doc>
  72291. </method>
  72292. <field name="LOG" type="org.apache.commons.logging.Log"
  72293. transient="false" volatile="false"
  72294. static="true" final="true" visibility="public"
  72295. deprecated="not deprecated">
  72296. </field>
  72297. <field name="FILTER_CLASS" type="java.lang.String"
  72298. transient="false" volatile="false"
  72299. static="true" final="true" visibility="public"
  72300. deprecated="not deprecated">
  72301. </field>
  72302. <field name="FILTER_FREQUENCY" type="java.lang.String"
  72303. transient="false" volatile="false"
  72304. static="true" final="true" visibility="public"
  72305. deprecated="not deprecated">
  72306. </field>
  72307. <field name="FILTER_REGEX" type="java.lang.String"
  72308. transient="false" volatile="false"
  72309. static="true" final="true" visibility="public"
  72310. deprecated="not deprecated">
  72311. </field>
  72312. <doc>
  72313. <![CDATA[A class that allows a map/red job to work on a sample of sequence files.
  72314. The sample is decided by the filter class set by the job.]]>
  72315. </doc>
  72316. </class>
  72317. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter -->
  72318. <!-- start interface org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.Filter -->
  72319. <interface name="SequenceFileInputFilter.Filter" abstract="true"
  72320. static="true" final="false" visibility="public"
  72321. deprecated="not deprecated">
  72322. <implements name="org.apache.hadoop.conf.Configurable"/>
  72323. <method name="accept" return="boolean"
  72324. abstract="false" native="false" synchronized="false"
  72325. static="false" final="false" visibility="public"
  72326. deprecated="not deprecated">
  72327. <param name="key" type="java.lang.Object"/>
  72328. <doc>
  72329. <![CDATA[filter function
  72330. Decide if a record should be filtered or not
  72331. @param key record key
  72332. @return true if a record is accepted; return false otherwise]]>
  72333. </doc>
  72334. </method>
  72335. <doc>
  72336. <![CDATA[filter interface]]>
  72337. </doc>
  72338. </interface>
  72339. <!-- end interface org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.Filter -->
  72340. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.FilterBase -->
  72341. <class name="SequenceFileInputFilter.FilterBase" extends="java.lang.Object"
  72342. abstract="true"
  72343. static="true" final="false" visibility="public"
  72344. deprecated="not deprecated">
  72345. <implements name="org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.Filter"/>
  72346. <constructor name="SequenceFileInputFilter.FilterBase"
  72347. static="false" final="false" visibility="public"
  72348. deprecated="not deprecated">
  72349. </constructor>
  72350. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  72351. abstract="false" native="false" synchronized="false"
  72352. static="false" final="false" visibility="public"
  72353. deprecated="not deprecated">
  72354. </method>
  72355. <doc>
  72356. <![CDATA[base class for Filters]]>
  72357. </doc>
  72358. </class>
  72359. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.FilterBase -->
  72360. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.MD5Filter -->
  72361. <class name="SequenceFileInputFilter.MD5Filter" extends="org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.FilterBase"
  72362. abstract="false"
  72363. static="true" final="false" visibility="public"
  72364. deprecated="not deprecated">
  72365. <constructor name="SequenceFileInputFilter.MD5Filter"
  72366. static="false" final="false" visibility="public"
  72367. deprecated="not deprecated">
  72368. </constructor>
  72369. <method name="setFrequency"
  72370. abstract="false" native="false" synchronized="false"
  72371. static="true" final="false" visibility="public"
  72372. deprecated="not deprecated">
  72373. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  72374. <param name="frequency" type="int"/>
  72375. <doc>
  72376. <![CDATA[set the filtering frequency in configuration
  72377. @param conf configuration
  72378. @param frequency filtering frequency]]>
  72379. </doc>
  72380. </method>
  72381. <method name="setConf"
  72382. abstract="false" native="false" synchronized="false"
  72383. static="false" final="false" visibility="public"
  72384. deprecated="not deprecated">
  72385. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  72386. <doc>
  72387. <![CDATA[configure the filter according to configuration
  72388. @param conf configuration]]>
  72389. </doc>
  72390. </method>
  72391. <method name="accept" return="boolean"
  72392. abstract="false" native="false" synchronized="false"
  72393. static="false" final="false" visibility="public"
  72394. deprecated="not deprecated">
  72395. <param name="key" type="java.lang.Object"/>
  72396. <doc>
  72397. <![CDATA[Filtering method
  72398. If MD5(key) % frequency==0, return true; otherwise return false
  72399. @see Filter#accept(Object)]]>
  72400. </doc>
  72401. </method>
  72402. <field name="MD5_LEN" type="int"
  72403. transient="false" volatile="false"
  72404. static="true" final="true" visibility="public"
  72405. deprecated="not deprecated">
  72406. </field>
  72407. <doc>
  72408. <![CDATA[This class returns a set of records by examing the MD5 digest of its
  72409. key against a filtering frequency <i>f</i>. The filtering criteria is
  72410. MD5(key) % f == 0.]]>
  72411. </doc>
  72412. </class>
  72413. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.MD5Filter -->
  72414. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.PercentFilter -->
  72415. <class name="SequenceFileInputFilter.PercentFilter" extends="org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.FilterBase"
  72416. abstract="false"
  72417. static="true" final="false" visibility="public"
  72418. deprecated="not deprecated">
  72419. <constructor name="SequenceFileInputFilter.PercentFilter"
  72420. static="false" final="false" visibility="public"
  72421. deprecated="not deprecated">
  72422. </constructor>
  72423. <method name="setFrequency"
  72424. abstract="false" native="false" synchronized="false"
  72425. static="true" final="false" visibility="public"
  72426. deprecated="not deprecated">
  72427. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  72428. <param name="frequency" type="int"/>
  72429. <doc>
  72430. <![CDATA[set the frequency and stores it in conf
  72431. @param conf configuration
  72432. @param frequency filtering frequencey]]>
  72433. </doc>
  72434. </method>
  72435. <method name="setConf"
  72436. abstract="false" native="false" synchronized="false"
  72437. static="false" final="false" visibility="public"
  72438. deprecated="not deprecated">
  72439. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  72440. <doc>
  72441. <![CDATA[configure the filter by checking the configuration
  72442. @param conf configuration]]>
  72443. </doc>
  72444. </method>
  72445. <method name="accept" return="boolean"
  72446. abstract="false" native="false" synchronized="false"
  72447. static="false" final="false" visibility="public"
  72448. deprecated="not deprecated">
  72449. <param name="key" type="java.lang.Object"/>
  72450. <doc>
  72451. <![CDATA[Filtering method
  72452. If record# % frequency==0, return true; otherwise return false
  72453. @see Filter#accept(Object)]]>
  72454. </doc>
  72455. </method>
  72456. <doc>
  72457. <![CDATA[This class returns a percentage of records
  72458. The percentage is determined by a filtering frequency <i>f</i> using
  72459. the criteria record# % f == 0.
  72460. For example, if the frequency is 10, one out of 10 records is returned.]]>
  72461. </doc>
  72462. </class>
  72463. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.PercentFilter -->
  72464. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.RegexFilter -->
  72465. <class name="SequenceFileInputFilter.RegexFilter" extends="org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.FilterBase"
  72466. abstract="false"
  72467. static="true" final="false" visibility="public"
  72468. deprecated="not deprecated">
  72469. <constructor name="SequenceFileInputFilter.RegexFilter"
  72470. static="false" final="false" visibility="public"
  72471. deprecated="not deprecated">
  72472. </constructor>
  72473. <method name="setPattern"
  72474. abstract="false" native="false" synchronized="false"
  72475. static="true" final="false" visibility="public"
  72476. deprecated="not deprecated">
  72477. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  72478. <param name="regex" type="java.lang.String"/>
  72479. <exception name="PatternSyntaxException" type="java.util.regex.PatternSyntaxException"/>
  72480. <doc>
  72481. <![CDATA[Define the filtering regex and stores it in conf
  72482. @param conf where the regex is set
  72483. @param regex regex used as a filter]]>
  72484. </doc>
  72485. </method>
  72486. <method name="setConf"
  72487. abstract="false" native="false" synchronized="false"
  72488. static="false" final="false" visibility="public"
  72489. deprecated="not deprecated">
  72490. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  72491. <doc>
  72492. <![CDATA[configure the Filter by checking the configuration]]>
  72493. </doc>
  72494. </method>
  72495. <method name="accept" return="boolean"
  72496. abstract="false" native="false" synchronized="false"
  72497. static="false" final="false" visibility="public"
  72498. deprecated="not deprecated">
  72499. <param name="key" type="java.lang.Object"/>
  72500. <doc>
  72501. <![CDATA[Filtering method
  72502. If key matches the regex, return true; otherwise return false
  72503. @see Filter#accept(Object)]]>
  72504. </doc>
  72505. </method>
  72506. <doc>
  72507. <![CDATA[Records filter by matching key to regex]]>
  72508. </doc>
  72509. </class>
  72510. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.RegexFilter -->
  72511. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFormat -->
  72512. <class name="SequenceFileInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.FileInputFormat"
  72513. abstract="false"
  72514. static="false" final="false" visibility="public"
  72515. deprecated="not deprecated">
  72516. <constructor name="SequenceFileInputFormat"
  72517. static="false" final="false" visibility="public"
  72518. deprecated="not deprecated">
  72519. </constructor>
  72520. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  72521. abstract="false" native="false" synchronized="false"
  72522. static="false" final="false" visibility="public"
  72523. deprecated="not deprecated">
  72524. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  72525. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  72526. <exception name="IOException" type="java.io.IOException"/>
  72527. </method>
  72528. <method name="getFormatMinSplitSize" return="long"
  72529. abstract="false" native="false" synchronized="false"
  72530. static="false" final="false" visibility="protected"
  72531. deprecated="not deprecated">
  72532. </method>
  72533. <method name="listStatus" return="java.util.List"
  72534. abstract="false" native="false" synchronized="false"
  72535. static="false" final="false" visibility="protected"
  72536. deprecated="not deprecated">
  72537. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  72538. <exception name="IOException" type="java.io.IOException"/>
  72539. </method>
  72540. <doc>
  72541. <![CDATA[An {@link InputFormat} for {@link SequenceFile}s.]]>
  72542. </doc>
  72543. </class>
  72544. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFormat -->
  72545. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileRecordReader -->
  72546. <class name="SequenceFileRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  72547. abstract="false"
  72548. static="false" final="false" visibility="public"
  72549. deprecated="not deprecated">
  72550. <constructor name="SequenceFileRecordReader"
  72551. static="false" final="false" visibility="public"
  72552. deprecated="not deprecated">
  72553. </constructor>
  72554. <method name="initialize"
  72555. abstract="false" native="false" synchronized="false"
  72556. static="false" final="false" visibility="public"
  72557. deprecated="not deprecated">
  72558. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  72559. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  72560. <exception name="IOException" type="java.io.IOException"/>
  72561. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72562. </method>
  72563. <method name="nextKeyValue" return="boolean"
  72564. abstract="false" native="false" synchronized="false"
  72565. static="false" final="false" visibility="public"
  72566. deprecated="not deprecated">
  72567. <exception name="IOException" type="java.io.IOException"/>
  72568. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72569. </method>
  72570. <method name="getCurrentKey" return="java.lang.Object"
  72571. abstract="false" native="false" synchronized="false"
  72572. static="false" final="false" visibility="public"
  72573. deprecated="not deprecated">
  72574. </method>
  72575. <method name="getCurrentValue" return="java.lang.Object"
  72576. abstract="false" native="false" synchronized="false"
  72577. static="false" final="false" visibility="public"
  72578. deprecated="not deprecated">
  72579. </method>
  72580. <method name="getProgress" return="float"
  72581. abstract="false" native="false" synchronized="false"
  72582. static="false" final="false" visibility="public"
  72583. deprecated="not deprecated">
  72584. <exception name="IOException" type="java.io.IOException"/>
  72585. <doc>
  72586. <![CDATA[Return the progress within the input split
  72587. @return 0.0 to 1.0 of the input byte range]]>
  72588. </doc>
  72589. </method>
  72590. <method name="close"
  72591. abstract="false" native="false" synchronized="true"
  72592. static="false" final="false" visibility="public"
  72593. deprecated="not deprecated">
  72594. <exception name="IOException" type="java.io.IOException"/>
  72595. </method>
  72596. <field name="conf" type="org.apache.hadoop.conf.Configuration"
  72597. transient="false" volatile="false"
  72598. static="false" final="false" visibility="protected"
  72599. deprecated="not deprecated">
  72600. </field>
  72601. <doc>
  72602. <![CDATA[An {@link RecordReader} for {@link SequenceFile}s.]]>
  72603. </doc>
  72604. </class>
  72605. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileRecordReader -->
  72606. <!-- start class org.apache.hadoop.mapreduce.lib.input.TextInputFormat -->
  72607. <class name="TextInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.FileInputFormat"
  72608. abstract="false"
  72609. static="false" final="false" visibility="public"
  72610. deprecated="not deprecated">
  72611. <constructor name="TextInputFormat"
  72612. static="false" final="false" visibility="public"
  72613. deprecated="not deprecated">
  72614. </constructor>
  72615. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  72616. abstract="false" native="false" synchronized="false"
  72617. static="false" final="false" visibility="public"
  72618. deprecated="not deprecated">
  72619. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  72620. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  72621. </method>
  72622. <method name="isSplitable" return="boolean"
  72623. abstract="false" native="false" synchronized="false"
  72624. static="false" final="false" visibility="protected"
  72625. deprecated="not deprecated">
  72626. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  72627. <param name="file" type="org.apache.hadoop.fs.Path"/>
  72628. </method>
  72629. <doc>
  72630. <![CDATA[An {@link InputFormat} for plain text files. Files are broken into lines.
  72631. Either linefeed or carriage-return are used to signal end of line. Keys are
  72632. the position in the file, and values are the line of text..]]>
  72633. </doc>
  72634. </class>
  72635. <!-- end class org.apache.hadoop.mapreduce.lib.input.TextInputFormat -->
  72636. </package>
  72637. <package name="org.apache.hadoop.mapreduce.lib.jobcontrol">
  72638. <!-- start class org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob -->
  72639. <class name="ControlledJob" extends="java.lang.Object"
  72640. abstract="false"
  72641. static="false" final="false" visibility="public"
  72642. deprecated="not deprecated">
  72643. <constructor name="ControlledJob" type="org.apache.hadoop.mapreduce.Job, java.util.List"
  72644. static="false" final="false" visibility="public"
  72645. deprecated="not deprecated">
  72646. <exception name="IOException" type="java.io.IOException"/>
  72647. <doc>
  72648. <![CDATA[Construct a job.
  72649. @param job a mapreduce job to be executed.
  72650. @param dependingJobs an array of jobs the current job depends on]]>
  72651. </doc>
  72652. </constructor>
  72653. <constructor name="ControlledJob" type="org.apache.hadoop.conf.Configuration"
  72654. static="false" final="false" visibility="public"
  72655. deprecated="not deprecated">
  72656. <exception name="IOException" type="java.io.IOException"/>
  72657. <doc>
  72658. <![CDATA[Construct a job.
  72659. @param conf mapred job configuration representing a job to be executed.
  72660. @throws IOException]]>
  72661. </doc>
  72662. </constructor>
  72663. <method name="toString" return="java.lang.String"
  72664. abstract="false" native="false" synchronized="false"
  72665. static="false" final="false" visibility="public"
  72666. deprecated="not deprecated">
  72667. </method>
  72668. <method name="getJobName" return="java.lang.String"
  72669. abstract="false" native="false" synchronized="false"
  72670. static="false" final="false" visibility="public"
  72671. deprecated="not deprecated">
  72672. <doc>
  72673. <![CDATA[@return the job name of this job]]>
  72674. </doc>
  72675. </method>
  72676. <method name="setJobName"
  72677. abstract="false" native="false" synchronized="false"
  72678. static="false" final="false" visibility="public"
  72679. deprecated="not deprecated">
  72680. <param name="jobName" type="java.lang.String"/>
  72681. <doc>
  72682. <![CDATA[Set the job name for this job.
  72683. @param jobName the job name]]>
  72684. </doc>
  72685. </method>
  72686. <method name="getJobID" return="java.lang.String"
  72687. abstract="false" native="false" synchronized="false"
  72688. static="false" final="false" visibility="public"
  72689. deprecated="not deprecated">
  72690. <doc>
  72691. <![CDATA[@return the job ID of this job assigned by JobControl]]>
  72692. </doc>
  72693. </method>
  72694. <method name="setJobID"
  72695. abstract="false" native="false" synchronized="false"
  72696. static="false" final="false" visibility="public"
  72697. deprecated="not deprecated">
  72698. <param name="id" type="java.lang.String"/>
  72699. <doc>
  72700. <![CDATA[Set the job ID for this job.
  72701. @param id the job ID]]>
  72702. </doc>
  72703. </method>
  72704. <method name="getMapredJobID" return="org.apache.hadoop.mapreduce.JobID"
  72705. abstract="false" native="false" synchronized="false"
  72706. static="false" final="false" visibility="public"
  72707. deprecated="not deprecated">
  72708. <doc>
  72709. <![CDATA[@return the mapred ID of this job as assigned by the
  72710. mapred framework.]]>
  72711. </doc>
  72712. </method>
  72713. <method name="getJob" return="org.apache.hadoop.mapreduce.Job"
  72714. abstract="false" native="false" synchronized="true"
  72715. static="false" final="false" visibility="public"
  72716. deprecated="not deprecated">
  72717. <doc>
  72718. <![CDATA[@return the mapreduce job]]>
  72719. </doc>
  72720. </method>
  72721. <method name="setJob"
  72722. abstract="false" native="false" synchronized="true"
  72723. static="false" final="false" visibility="public"
  72724. deprecated="not deprecated">
  72725. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  72726. <doc>
  72727. <![CDATA[Set the mapreduce job
  72728. @param job the mapreduce job for this job.]]>
  72729. </doc>
  72730. </method>
  72731. <method name="getJobState" return="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  72732. abstract="false" native="false" synchronized="true"
  72733. static="false" final="false" visibility="public"
  72734. deprecated="not deprecated">
  72735. <doc>
  72736. <![CDATA[@return the state of this job]]>
  72737. </doc>
  72738. </method>
  72739. <method name="setJobState"
  72740. abstract="false" native="false" synchronized="true"
  72741. static="false" final="false" visibility="protected"
  72742. deprecated="not deprecated">
  72743. <param name="state" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"/>
  72744. <doc>
  72745. <![CDATA[Set the state for this job.
  72746. @param state the new state for this job.]]>
  72747. </doc>
  72748. </method>
  72749. <method name="getMessage" return="java.lang.String"
  72750. abstract="false" native="false" synchronized="true"
  72751. static="false" final="false" visibility="public"
  72752. deprecated="not deprecated">
  72753. <doc>
  72754. <![CDATA[@return the message of this job]]>
  72755. </doc>
  72756. </method>
  72757. <method name="setMessage"
  72758. abstract="false" native="false" synchronized="true"
  72759. static="false" final="false" visibility="public"
  72760. deprecated="not deprecated">
  72761. <param name="message" type="java.lang.String"/>
  72762. <doc>
  72763. <![CDATA[Set the message for this job.
  72764. @param message the message for this job.]]>
  72765. </doc>
  72766. </method>
  72767. <method name="getDependentJobs" return="java.util.List"
  72768. abstract="false" native="false" synchronized="false"
  72769. static="false" final="false" visibility="public"
  72770. deprecated="not deprecated">
  72771. <doc>
  72772. <![CDATA[@return the depending jobs of this job]]>
  72773. </doc>
  72774. </method>
  72775. <method name="addDependingJob" return="boolean"
  72776. abstract="false" native="false" synchronized="true"
  72777. static="false" final="false" visibility="public"
  72778. deprecated="not deprecated">
  72779. <param name="dependingJob" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob"/>
  72780. <doc>
  72781. <![CDATA[Add a job to this jobs' dependency list.
  72782. Dependent jobs can only be added while a Job
  72783. is waiting to run, not during or afterwards.
  72784. @param dependingJob Job that this Job depends on.
  72785. @return <tt>true</tt> if the Job was added.]]>
  72786. </doc>
  72787. </method>
  72788. <method name="isCompleted" return="boolean"
  72789. abstract="false" native="false" synchronized="true"
  72790. static="false" final="false" visibility="public"
  72791. deprecated="not deprecated">
  72792. <doc>
  72793. <![CDATA[@return true if this job is in a complete state]]>
  72794. </doc>
  72795. </method>
  72796. <method name="isReady" return="boolean"
  72797. abstract="false" native="false" synchronized="true"
  72798. static="false" final="false" visibility="public"
  72799. deprecated="not deprecated">
  72800. <doc>
  72801. <![CDATA[@return true if this job is in READY state]]>
  72802. </doc>
  72803. </method>
  72804. <method name="killJob"
  72805. abstract="false" native="false" synchronized="false"
  72806. static="false" final="false" visibility="public"
  72807. deprecated="not deprecated">
  72808. <exception name="IOException" type="java.io.IOException"/>
  72809. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72810. </method>
  72811. <method name="failJob"
  72812. abstract="false" native="false" synchronized="true"
  72813. static="false" final="false" visibility="public"
  72814. deprecated="not deprecated">
  72815. <param name="message" type="java.lang.String"/>
  72816. <exception name="IOException" type="java.io.IOException"/>
  72817. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72818. </method>
  72819. <method name="submit"
  72820. abstract="false" native="false" synchronized="true"
  72821. static="false" final="false" visibility="protected"
  72822. deprecated="not deprecated">
  72823. <doc>
  72824. <![CDATA[Submit this job to mapred. The state becomes RUNNING if submission
  72825. is successful, FAILED otherwise.]]>
  72826. </doc>
  72827. </method>
  72828. <field name="CREATE_DIR" type="java.lang.String"
  72829. transient="false" volatile="false"
  72830. static="true" final="true" visibility="public"
  72831. deprecated="not deprecated">
  72832. </field>
  72833. <doc>
  72834. <![CDATA[This class encapsulates a MapReduce job and its dependency. It monitors
  72835. the states of the depending jobs and updates the state of this job.
  72836. A job starts in the WAITING state. If it does not have any depending jobs,
  72837. or all of the depending jobs are in SUCCESS state, then the job state
  72838. will become READY. If any depending jobs fail, the job will fail too.
  72839. When in READY state, the job can be submitted to Hadoop for execution, with
  72840. the state changing into RUNNING state. From RUNNING state, the job
  72841. can get into SUCCESS or FAILED state, depending
  72842. the status of the job execution.]]>
  72843. </doc>
  72844. </class>
  72845. <!-- end class org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob -->
  72846. <!-- start class org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State -->
  72847. <class name="ControlledJob.State" extends="java.lang.Enum"
  72848. abstract="false"
  72849. static="true" final="true" visibility="public"
  72850. deprecated="not deprecated">
  72851. <method name="values" return="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State[]"
  72852. abstract="false" native="false" synchronized="false"
  72853. static="true" final="false" visibility="public"
  72854. deprecated="not deprecated">
  72855. </method>
  72856. <method name="valueOf" return="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  72857. abstract="false" native="false" synchronized="false"
  72858. static="true" final="false" visibility="public"
  72859. deprecated="not deprecated">
  72860. <param name="name" type="java.lang.String"/>
  72861. </method>
  72862. <field name="SUCCESS" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  72863. transient="false" volatile="false"
  72864. static="true" final="true" visibility="public"
  72865. deprecated="not deprecated">
  72866. </field>
  72867. <field name="WAITING" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  72868. transient="false" volatile="false"
  72869. static="true" final="true" visibility="public"
  72870. deprecated="not deprecated">
  72871. </field>
  72872. <field name="RUNNING" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  72873. transient="false" volatile="false"
  72874. static="true" final="true" visibility="public"
  72875. deprecated="not deprecated">
  72876. </field>
  72877. <field name="READY" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  72878. transient="false" volatile="false"
  72879. static="true" final="true" visibility="public"
  72880. deprecated="not deprecated">
  72881. </field>
  72882. <field name="FAILED" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  72883. transient="false" volatile="false"
  72884. static="true" final="true" visibility="public"
  72885. deprecated="not deprecated">
  72886. </field>
  72887. <field name="DEPENDENT_FAILED" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  72888. transient="false" volatile="false"
  72889. static="true" final="true" visibility="public"
  72890. deprecated="not deprecated">
  72891. </field>
  72892. </class>
  72893. <!-- end class org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State -->
  72894. <!-- start class org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl -->
  72895. <class name="JobControl" extends="java.lang.Object"
  72896. abstract="false"
  72897. static="false" final="false" visibility="public"
  72898. deprecated="not deprecated">
  72899. <implements name="java.lang.Runnable"/>
  72900. <constructor name="JobControl" type="java.lang.String"
  72901. static="false" final="false" visibility="public"
  72902. deprecated="not deprecated">
  72903. <doc>
  72904. <![CDATA[Construct a job control for a group of jobs.
  72905. @param groupName a name identifying this group]]>
  72906. </doc>
  72907. </constructor>
  72908. <method name="getWaitingJobList" return="java.util.List"
  72909. abstract="false" native="false" synchronized="false"
  72910. static="false" final="false" visibility="public"
  72911. deprecated="not deprecated">
  72912. <doc>
  72913. <![CDATA[@return the jobs in the waiting state]]>
  72914. </doc>
  72915. </method>
  72916. <method name="getRunningJobList" return="java.util.List"
  72917. abstract="false" native="false" synchronized="false"
  72918. static="false" final="false" visibility="public"
  72919. deprecated="not deprecated">
  72920. <doc>
  72921. <![CDATA[@return the jobs in the running state]]>
  72922. </doc>
  72923. </method>
  72924. <method name="getReadyJobsList" return="java.util.List"
  72925. abstract="false" native="false" synchronized="false"
  72926. static="false" final="false" visibility="public"
  72927. deprecated="not deprecated">
  72928. <doc>
  72929. <![CDATA[@return the jobs in the ready state]]>
  72930. </doc>
  72931. </method>
  72932. <method name="getSuccessfulJobList" return="java.util.List"
  72933. abstract="false" native="false" synchronized="false"
  72934. static="false" final="false" visibility="public"
  72935. deprecated="not deprecated">
  72936. <doc>
  72937. <![CDATA[@return the jobs in the success state]]>
  72938. </doc>
  72939. </method>
  72940. <method name="getFailedJobList" return="java.util.List"
  72941. abstract="false" native="false" synchronized="false"
  72942. static="false" final="false" visibility="public"
  72943. deprecated="not deprecated">
  72944. </method>
  72945. <method name="addJob" return="java.lang.String"
  72946. abstract="false" native="false" synchronized="true"
  72947. static="false" final="false" visibility="public"
  72948. deprecated="not deprecated">
  72949. <param name="aJob" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob"/>
  72950. <doc>
  72951. <![CDATA[Add a new job.
  72952. @param aJob the new job]]>
  72953. </doc>
  72954. </method>
  72955. <method name="addJobCollection"
  72956. abstract="false" native="false" synchronized="false"
  72957. static="false" final="false" visibility="public"
  72958. deprecated="not deprecated">
  72959. <param name="jobs" type="java.util.Collection"/>
  72960. <doc>
  72961. <![CDATA[Add a collection of jobs
  72962. @param jobs]]>
  72963. </doc>
  72964. </method>
  72965. <method name="getThreadState" return="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState"
  72966. abstract="false" native="false" synchronized="false"
  72967. static="false" final="false" visibility="public"
  72968. deprecated="not deprecated">
  72969. <doc>
  72970. <![CDATA[@return the thread state]]>
  72971. </doc>
  72972. </method>
  72973. <method name="stop"
  72974. abstract="false" native="false" synchronized="false"
  72975. static="false" final="false" visibility="public"
  72976. deprecated="not deprecated">
  72977. <doc>
  72978. <![CDATA[set the thread state to STOPPING so that the
  72979. thread will stop when it wakes up.]]>
  72980. </doc>
  72981. </method>
  72982. <method name="suspend"
  72983. abstract="false" native="false" synchronized="false"
  72984. static="false" final="false" visibility="public"
  72985. deprecated="not deprecated">
  72986. <doc>
  72987. <![CDATA[suspend the running thread]]>
  72988. </doc>
  72989. </method>
  72990. <method name="resume"
  72991. abstract="false" native="false" synchronized="false"
  72992. static="false" final="false" visibility="public"
  72993. deprecated="not deprecated">
  72994. <doc>
  72995. <![CDATA[resume the suspended thread]]>
  72996. </doc>
  72997. </method>
  72998. <method name="allFinished" return="boolean"
  72999. abstract="false" native="false" synchronized="true"
  73000. static="false" final="false" visibility="public"
  73001. deprecated="not deprecated">
  73002. </method>
  73003. <method name="run"
  73004. abstract="false" native="false" synchronized="false"
  73005. static="false" final="false" visibility="public"
  73006. deprecated="not deprecated">
  73007. <doc>
  73008. <![CDATA[The main loop for the thread.
  73009. The loop does the following:
  73010. Check the states of the running jobs
  73011. Update the states of waiting jobs
  73012. Submit the jobs in ready state]]>
  73013. </doc>
  73014. </method>
  73015. <doc>
  73016. <![CDATA[This class encapsulates a set of MapReduce jobs and its dependency.
  73017. It tracks the states of the jobs by placing them into different tables
  73018. according to their states.
  73019. This class provides APIs for the client app to add a job to the group
  73020. and to get the jobs in the group in different states. When a job is
  73021. added, an ID unique to the group is assigned to the job.
  73022. This class has a thread that submits jobs when they become ready,
  73023. monitors the states of the running jobs, and updates the states of jobs
  73024. based on the state changes of their depending jobs states. The class
  73025. provides APIs for suspending/resuming the thread, and
  73026. for stopping the thread.]]>
  73027. </doc>
  73028. </class>
  73029. <!-- end class org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl -->
  73030. <!-- start class org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState -->
  73031. <class name="JobControl.ThreadState" extends="java.lang.Enum"
  73032. abstract="false"
  73033. static="true" final="true" visibility="public"
  73034. deprecated="not deprecated">
  73035. <method name="values" return="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState[]"
  73036. abstract="false" native="false" synchronized="false"
  73037. static="true" final="false" visibility="public"
  73038. deprecated="not deprecated">
  73039. </method>
  73040. <method name="valueOf" return="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState"
  73041. abstract="false" native="false" synchronized="false"
  73042. static="true" final="false" visibility="public"
  73043. deprecated="not deprecated">
  73044. <param name="name" type="java.lang.String"/>
  73045. </method>
  73046. <field name="RUNNING" type="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState"
  73047. transient="false" volatile="false"
  73048. static="true" final="true" visibility="public"
  73049. deprecated="not deprecated">
  73050. </field>
  73051. <field name="SUSPENDED" type="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState"
  73052. transient="false" volatile="false"
  73053. static="true" final="true" visibility="public"
  73054. deprecated="not deprecated">
  73055. </field>
  73056. <field name="STOPPED" type="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState"
  73057. transient="false" volatile="false"
  73058. static="true" final="true" visibility="public"
  73059. deprecated="not deprecated">
  73060. </field>
  73061. <field name="STOPPING" type="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState"
  73062. transient="false" volatile="false"
  73063. static="true" final="true" visibility="public"
  73064. deprecated="not deprecated">
  73065. </field>
  73066. <field name="READY" type="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState"
  73067. transient="false" volatile="false"
  73068. static="true" final="true" visibility="public"
  73069. deprecated="not deprecated">
  73070. </field>
  73071. </class>
  73072. <!-- end class org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState -->
  73073. </package>
  73074. <package name="org.apache.hadoop.mapreduce.lib.map">
  73075. <!-- start class org.apache.hadoop.mapreduce.lib.map.InverseMapper -->
  73076. <class name="InverseMapper" extends="org.apache.hadoop.mapreduce.Mapper"
  73077. abstract="false"
  73078. static="false" final="false" visibility="public"
  73079. deprecated="not deprecated">
  73080. <constructor name="InverseMapper"
  73081. static="false" final="false" visibility="public"
  73082. deprecated="not deprecated">
  73083. </constructor>
  73084. <method name="map"
  73085. abstract="false" native="false" synchronized="false"
  73086. static="false" final="false" visibility="public"
  73087. deprecated="not deprecated">
  73088. <param name="key" type="java.lang.Object"/>
  73089. <param name="value" type="java.lang.Object"/>
  73090. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  73091. <exception name="IOException" type="java.io.IOException"/>
  73092. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73093. <doc>
  73094. <![CDATA[The inverse function. Input keys and values are swapped.]]>
  73095. </doc>
  73096. </method>
  73097. <doc>
  73098. <![CDATA[A {@link Mapper} that swaps keys and values.]]>
  73099. </doc>
  73100. </class>
  73101. <!-- end class org.apache.hadoop.mapreduce.lib.map.InverseMapper -->
  73102. <!-- start class org.apache.hadoop.mapreduce.lib.map.MultithreadedMapper -->
  73103. <class name="MultithreadedMapper" extends="org.apache.hadoop.mapreduce.Mapper"
  73104. abstract="false"
  73105. static="false" final="false" visibility="public"
  73106. deprecated="not deprecated">
  73107. <constructor name="MultithreadedMapper"
  73108. static="false" final="false" visibility="public"
  73109. deprecated="not deprecated">
  73110. </constructor>
  73111. <method name="getNumberOfThreads" return="int"
  73112. abstract="false" native="false" synchronized="false"
  73113. static="true" final="false" visibility="public"
  73114. deprecated="not deprecated">
  73115. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  73116. <doc>
  73117. <![CDATA[The number of threads in the thread pool that will run the map function.
  73118. @param job the job
  73119. @return the number of threads]]>
  73120. </doc>
  73121. </method>
  73122. <method name="setNumberOfThreads"
  73123. abstract="false" native="false" synchronized="false"
  73124. static="true" final="false" visibility="public"
  73125. deprecated="not deprecated">
  73126. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  73127. <param name="threads" type="int"/>
  73128. <doc>
  73129. <![CDATA[Set the number of threads in the pool for running maps.
  73130. @param job the job to modify
  73131. @param threads the new number of threads]]>
  73132. </doc>
  73133. </method>
  73134. <method name="getMapperClass" return="java.lang.Class"
  73135. abstract="false" native="false" synchronized="false"
  73136. static="true" final="false" visibility="public"
  73137. deprecated="not deprecated">
  73138. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  73139. <doc>
  73140. <![CDATA[Get the application's mapper class.
  73141. @param <K1> the map's input key type
  73142. @param <V1> the map's input value type
  73143. @param <K2> the map's output key type
  73144. @param <V2> the map's output value type
  73145. @param job the job
  73146. @return the mapper class to run]]>
  73147. </doc>
  73148. </method>
  73149. <method name="setMapperClass"
  73150. abstract="false" native="false" synchronized="false"
  73151. static="true" final="false" visibility="public"
  73152. deprecated="not deprecated">
  73153. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  73154. <param name="cls" type="java.lang.Class"/>
  73155. <doc>
  73156. <![CDATA[Set the application's mapper class.
  73157. @param <K1> the map input key type
  73158. @param <V1> the map input value type
  73159. @param <K2> the map output key type
  73160. @param <V2> the map output value type
  73161. @param job the job to modify
  73162. @param cls the class to use as the mapper]]>
  73163. </doc>
  73164. </method>
  73165. <method name="run"
  73166. abstract="false" native="false" synchronized="false"
  73167. static="false" final="false" visibility="public"
  73168. deprecated="not deprecated">
  73169. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  73170. <exception name="IOException" type="java.io.IOException"/>
  73171. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73172. <doc>
  73173. <![CDATA[Run the application's maps using a thread pool.]]>
  73174. </doc>
  73175. </method>
  73176. <doc>
  73177. <![CDATA[Multithreaded implementation for @link org.apache.hadoop.mapreduce.Mapper.
  73178. <p>
  73179. It can be used instead of the default implementation,
  73180. @link org.apache.hadoop.mapred.MapRunner, when the Map operation is not CPU
  73181. bound in order to improve throughput.
  73182. <p>
  73183. Mapper implementations using this MapRunnable must be thread-safe.
  73184. <p>
  73185. The Map-Reduce job has to be configured with the mapper to use via
  73186. {@link #setMapperClass(Configuration, Class)} and
  73187. the number of thread the thread-pool can use with the
  73188. {@link #getNumberOfThreads(Configuration) method. The default
  73189. value is 10 threads.
  73190. <p>]]>
  73191. </doc>
  73192. </class>
  73193. <!-- end class org.apache.hadoop.mapreduce.lib.map.MultithreadedMapper -->
  73194. <!-- start class org.apache.hadoop.mapreduce.lib.map.TokenCounterMapper -->
  73195. <class name="TokenCounterMapper" extends="org.apache.hadoop.mapreduce.Mapper"
  73196. abstract="false"
  73197. static="false" final="false" visibility="public"
  73198. deprecated="not deprecated">
  73199. <constructor name="TokenCounterMapper"
  73200. static="false" final="false" visibility="public"
  73201. deprecated="not deprecated">
  73202. </constructor>
  73203. <method name="map"
  73204. abstract="false" native="false" synchronized="false"
  73205. static="false" final="false" visibility="public"
  73206. deprecated="not deprecated">
  73207. <param name="key" type="java.lang.Object"/>
  73208. <param name="value" type="org.apache.hadoop.io.Text"/>
  73209. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  73210. <exception name="IOException" type="java.io.IOException"/>
  73211. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73212. </method>
  73213. <doc>
  73214. <![CDATA[Tokenize the input values and emit each word with a count of 1.]]>
  73215. </doc>
  73216. </class>
  73217. <!-- end class org.apache.hadoop.mapreduce.lib.map.TokenCounterMapper -->
  73218. </package>
  73219. <package name="org.apache.hadoop.mapreduce.lib.output">
  73220. <!-- start class org.apache.hadoop.mapreduce.lib.output.FileOutputCommitter -->
  73221. <class name="FileOutputCommitter" extends="org.apache.hadoop.mapreduce.OutputCommitter"
  73222. abstract="false"
  73223. static="false" final="false" visibility="public"
  73224. deprecated="not deprecated">
  73225. <constructor name="FileOutputCommitter" type="org.apache.hadoop.fs.Path, org.apache.hadoop.mapreduce.TaskAttemptContext"
  73226. static="false" final="false" visibility="public"
  73227. deprecated="not deprecated">
  73228. <exception name="IOException" type="java.io.IOException"/>
  73229. <doc>
  73230. <![CDATA[Create a file output committer
  73231. @param outputPath the job's output path
  73232. @param context the task's context
  73233. @throws IOException]]>
  73234. </doc>
  73235. </constructor>
  73236. <method name="setupJob"
  73237. abstract="false" native="false" synchronized="false"
  73238. static="false" final="false" visibility="public"
  73239. deprecated="not deprecated">
  73240. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  73241. <exception name="IOException" type="java.io.IOException"/>
  73242. <doc>
  73243. <![CDATA[Create the temporary directory that is the root of all of the task
  73244. work directories.
  73245. @param context the job's context]]>
  73246. </doc>
  73247. </method>
  73248. <method name="commitJob"
  73249. abstract="false" native="false" synchronized="false"
  73250. static="false" final="false" visibility="public"
  73251. deprecated="not deprecated">
  73252. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  73253. <exception name="IOException" type="java.io.IOException"/>
  73254. <doc>
  73255. <![CDATA[Delete the temporary directory, including all of the work directories.
  73256. This is called for all jobs whose final run state is SUCCEEDED
  73257. @param context the job's context.]]>
  73258. </doc>
  73259. </method>
  73260. <method name="cleanupJob"
  73261. abstract="false" native="false" synchronized="false"
  73262. static="false" final="false" visibility="public"
  73263. deprecated="not deprecated">
  73264. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  73265. <exception name="IOException" type="java.io.IOException"/>
  73266. </method>
  73267. <method name="abortJob"
  73268. abstract="false" native="false" synchronized="false"
  73269. static="false" final="false" visibility="public"
  73270. deprecated="not deprecated">
  73271. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  73272. <param name="state" type="org.apache.hadoop.mapreduce.JobStatus.State"/>
  73273. <exception name="IOException" type="java.io.IOException"/>
  73274. <doc>
  73275. <![CDATA[Delete the temporary directory, including all of the work directories.
  73276. @param context the job's context
  73277. @param state final run state of the job, should be FAILED or KILLED]]>
  73278. </doc>
  73279. </method>
  73280. <method name="setupTask"
  73281. abstract="false" native="false" synchronized="false"
  73282. static="false" final="false" visibility="public"
  73283. deprecated="not deprecated">
  73284. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73285. <exception name="IOException" type="java.io.IOException"/>
  73286. <doc>
  73287. <![CDATA[No task setup required.]]>
  73288. </doc>
  73289. </method>
  73290. <method name="commitTask"
  73291. abstract="false" native="false" synchronized="false"
  73292. static="false" final="false" visibility="public"
  73293. deprecated="not deprecated">
  73294. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73295. <exception name="IOException" type="java.io.IOException"/>
  73296. <doc>
  73297. <![CDATA[Move the files from the work directory to the job output directory
  73298. @param context the task context]]>
  73299. </doc>
  73300. </method>
  73301. <method name="abortTask"
  73302. abstract="false" native="false" synchronized="false"
  73303. static="false" final="false" visibility="public"
  73304. deprecated="not deprecated">
  73305. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73306. <doc>
  73307. <![CDATA[Delete the work directory]]>
  73308. </doc>
  73309. </method>
  73310. <method name="needsTaskCommit" return="boolean"
  73311. abstract="false" native="false" synchronized="false"
  73312. static="false" final="false" visibility="public"
  73313. deprecated="not deprecated">
  73314. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73315. <exception name="IOException" type="java.io.IOException"/>
  73316. <doc>
  73317. <![CDATA[Did this task write any files in the work directory?
  73318. @param context the task's context]]>
  73319. </doc>
  73320. </method>
  73321. <method name="getWorkPath" return="org.apache.hadoop.fs.Path"
  73322. abstract="false" native="false" synchronized="false"
  73323. static="false" final="false" visibility="public"
  73324. deprecated="not deprecated">
  73325. <exception name="IOException" type="java.io.IOException"/>
  73326. <doc>
  73327. <![CDATA[Get the directory that the task should write results into
  73328. @return the work directory
  73329. @throws IOException]]>
  73330. </doc>
  73331. </method>
  73332. <field name="TEMP_DIR_NAME" type="java.lang.String"
  73333. transient="false" volatile="false"
  73334. static="true" final="true" visibility="protected"
  73335. deprecated="not deprecated">
  73336. <doc>
  73337. <![CDATA[Temporary directory name]]>
  73338. </doc>
  73339. </field>
  73340. <field name="SUCCEEDED_FILE_NAME" type="java.lang.String"
  73341. transient="false" volatile="false"
  73342. static="true" final="true" visibility="public"
  73343. deprecated="not deprecated">
  73344. </field>
  73345. <doc>
  73346. <![CDATA[An {@link OutputCommitter} that commits files specified
  73347. in job output directory i.e. ${mapred.output.dir}.]]>
  73348. </doc>
  73349. </class>
  73350. <!-- end class org.apache.hadoop.mapreduce.lib.output.FileOutputCommitter -->
  73351. <!-- start class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat -->
  73352. <class name="FileOutputFormat" extends="org.apache.hadoop.mapreduce.OutputFormat"
  73353. abstract="true"
  73354. static="false" final="false" visibility="public"
  73355. deprecated="not deprecated">
  73356. <constructor name="FileOutputFormat"
  73357. static="false" final="false" visibility="public"
  73358. deprecated="not deprecated">
  73359. </constructor>
  73360. <method name="setCompressOutput"
  73361. abstract="false" native="false" synchronized="false"
  73362. static="true" final="false" visibility="public"
  73363. deprecated="not deprecated">
  73364. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  73365. <param name="compress" type="boolean"/>
  73366. <doc>
  73367. <![CDATA[Set whether the output of the job is compressed.
  73368. @param job the job to modify
  73369. @param compress should the output of the job be compressed?]]>
  73370. </doc>
  73371. </method>
  73372. <method name="getCompressOutput" return="boolean"
  73373. abstract="false" native="false" synchronized="false"
  73374. static="true" final="false" visibility="public"
  73375. deprecated="not deprecated">
  73376. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  73377. <doc>
  73378. <![CDATA[Is the job output compressed?
  73379. @param job the Job to look in
  73380. @return <code>true</code> if the job output should be compressed,
  73381. <code>false</code> otherwise]]>
  73382. </doc>
  73383. </method>
  73384. <method name="setOutputCompressorClass"
  73385. abstract="false" native="false" synchronized="false"
  73386. static="true" final="false" visibility="public"
  73387. deprecated="not deprecated">
  73388. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  73389. <param name="codecClass" type="java.lang.Class"/>
  73390. <doc>
  73391. <![CDATA[Set the {@link CompressionCodec} to be used to compress job outputs.
  73392. @param job the job to modify
  73393. @param codecClass the {@link CompressionCodec} to be used to
  73394. compress the job outputs]]>
  73395. </doc>
  73396. </method>
  73397. <method name="getOutputCompressorClass" return="java.lang.Class"
  73398. abstract="false" native="false" synchronized="false"
  73399. static="true" final="false" visibility="public"
  73400. deprecated="not deprecated">
  73401. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  73402. <param name="defaultValue" type="java.lang.Class"/>
  73403. <doc>
  73404. <![CDATA[Get the {@link CompressionCodec} for compressing the job outputs.
  73405. @param job the {@link Job} to look in
  73406. @param defaultValue the {@link CompressionCodec} to return if not set
  73407. @return the {@link CompressionCodec} to be used to compress the
  73408. job outputs
  73409. @throws IllegalArgumentException if the class was specified, but not found]]>
  73410. </doc>
  73411. </method>
  73412. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  73413. abstract="true" native="false" synchronized="false"
  73414. static="false" final="false" visibility="public"
  73415. deprecated="not deprecated">
  73416. <param name="job" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73417. <exception name="IOException" type="java.io.IOException"/>
  73418. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73419. </method>
  73420. <method name="checkOutputSpecs"
  73421. abstract="false" native="false" synchronized="false"
  73422. static="false" final="false" visibility="public"
  73423. deprecated="not deprecated">
  73424. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  73425. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.mapred.FileAlreadyExistsException"/>
  73426. <exception name="IOException" type="java.io.IOException"/>
  73427. </method>
  73428. <method name="setOutputPath"
  73429. abstract="false" native="false" synchronized="false"
  73430. static="true" final="false" visibility="public"
  73431. deprecated="not deprecated">
  73432. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  73433. <param name="outputDir" type="org.apache.hadoop.fs.Path"/>
  73434. <doc>
  73435. <![CDATA[Set the {@link Path} of the output directory for the map-reduce job.
  73436. @param job The job to modify
  73437. @param outputDir the {@link Path} of the output directory for
  73438. the map-reduce job.]]>
  73439. </doc>
  73440. </method>
  73441. <method name="getOutputPath" return="org.apache.hadoop.fs.Path"
  73442. abstract="false" native="false" synchronized="false"
  73443. static="true" final="false" visibility="public"
  73444. deprecated="not deprecated">
  73445. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  73446. <doc>
  73447. <![CDATA[Get the {@link Path} to the output directory for the map-reduce job.
  73448. @return the {@link Path} to the output directory for the map-reduce job.
  73449. @see FileOutputFormat#getWorkOutputPath(TaskInputOutputContext)]]>
  73450. </doc>
  73451. </method>
  73452. <method name="getWorkOutputPath" return="org.apache.hadoop.fs.Path"
  73453. abstract="false" native="false" synchronized="false"
  73454. static="true" final="false" visibility="public"
  73455. deprecated="not deprecated">
  73456. <param name="context" type="org.apache.hadoop.mapreduce.TaskInputOutputContext"/>
  73457. <exception name="IOException" type="java.io.IOException"/>
  73458. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73459. <doc>
  73460. <![CDATA[Get the {@link Path} to the task's temporary output directory
  73461. for the map-reduce job
  73462. <h4 id="SideEffectFiles">Tasks' Side-Effect Files</h4>
  73463. <p>Some applications need to create/write-to side-files, which differ from
  73464. the actual job-outputs.
  73465. <p>In such cases there could be issues with 2 instances of the same TIP
  73466. (running simultaneously e.g. speculative tasks) trying to open/write-to the
  73467. same file (path) on HDFS. Hence the application-writer will have to pick
  73468. unique names per task-attempt (e.g. using the attemptid, say
  73469. <tt>attempt_200709221812_0001_m_000000_0</tt>), not just per TIP.</p>
  73470. <p>To get around this the Map-Reduce framework helps the application-writer
  73471. out by maintaining a special
  73472. <tt>${mapred.output.dir}/_temporary/_${taskid}</tt>
  73473. sub-directory for each task-attempt on HDFS where the output of the
  73474. task-attempt goes. On successful completion of the task-attempt the files
  73475. in the <tt>${mapred.output.dir}/_temporary/_${taskid}</tt> (only)
  73476. are <i>promoted</i> to <tt>${mapred.output.dir}</tt>. Of course, the
  73477. framework discards the sub-directory of unsuccessful task-attempts. This
  73478. is completely transparent to the application.</p>
  73479. <p>The application-writer can take advantage of this by creating any
  73480. side-files required in a work directory during execution
  73481. of his task i.e. via
  73482. {@link #getWorkOutputPath(TaskInputOutputContext)}, and
  73483. the framework will move them out similarly - thus she doesn't have to pick
  73484. unique paths per task-attempt.</p>
  73485. <p>The entire discussion holds true for maps of jobs with
  73486. reducer=NONE (i.e. 0 reduces) since output of the map, in that case,
  73487. goes directly to HDFS.</p>
  73488. @return the {@link Path} to the task's temporary output directory
  73489. for the map-reduce job.]]>
  73490. </doc>
  73491. </method>
  73492. <method name="getPathForWorkFile" return="org.apache.hadoop.fs.Path"
  73493. abstract="false" native="false" synchronized="false"
  73494. static="true" final="false" visibility="public"
  73495. deprecated="not deprecated">
  73496. <param name="context" type="org.apache.hadoop.mapreduce.TaskInputOutputContext"/>
  73497. <param name="name" type="java.lang.String"/>
  73498. <param name="extension" type="java.lang.String"/>
  73499. <exception name="IOException" type="java.io.IOException"/>
  73500. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73501. <doc>
  73502. <![CDATA[Helper function to generate a {@link Path} for a file that is unique for
  73503. the task within the job output directory.
  73504. <p>The path can be used to create custom files from within the map and
  73505. reduce tasks. The path name will be unique for each task. The path parent
  73506. will be the job output directory.</p>ls
  73507. <p>This method uses the {@link #getUniqueFile} method to make the file name
  73508. unique for the task.</p>
  73509. @param context the context for the task.
  73510. @param name the name for the file.
  73511. @param extension the extension for the file
  73512. @return a unique path accross all tasks of the job.]]>
  73513. </doc>
  73514. </method>
  73515. <method name="getUniqueFile" return="java.lang.String"
  73516. abstract="false" native="false" synchronized="true"
  73517. static="true" final="false" visibility="public"
  73518. deprecated="not deprecated">
  73519. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73520. <param name="name" type="java.lang.String"/>
  73521. <param name="extension" type="java.lang.String"/>
  73522. <doc>
  73523. <![CDATA[Generate a unique filename, based on the task id, name, and extension
  73524. @param context the task that is calling this
  73525. @param name the base filename
  73526. @param extension the filename extension
  73527. @return a string like $name-[mr]-$id$extension]]>
  73528. </doc>
  73529. </method>
  73530. <method name="getDefaultWorkFile" return="org.apache.hadoop.fs.Path"
  73531. abstract="false" native="false" synchronized="false"
  73532. static="false" final="false" visibility="public"
  73533. deprecated="not deprecated">
  73534. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73535. <param name="extension" type="java.lang.String"/>
  73536. <exception name="IOException" type="java.io.IOException"/>
  73537. <doc>
  73538. <![CDATA[Get the default path and filename for the output format.
  73539. @param context the task context
  73540. @param extension an extension to add to the filename
  73541. @return a full path $output/_temporary/$taskid/part-[mr]-$id
  73542. @throws IOException]]>
  73543. </doc>
  73544. </method>
  73545. <method name="getOutputName" return="java.lang.String"
  73546. abstract="false" native="false" synchronized="false"
  73547. static="true" final="false" visibility="protected"
  73548. deprecated="not deprecated">
  73549. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  73550. <doc>
  73551. <![CDATA[Get the base output name for the output file.]]>
  73552. </doc>
  73553. </method>
  73554. <method name="setOutputName"
  73555. abstract="false" native="false" synchronized="false"
  73556. static="true" final="false" visibility="protected"
  73557. deprecated="not deprecated">
  73558. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  73559. <param name="name" type="java.lang.String"/>
  73560. <doc>
  73561. <![CDATA[Set the base output name for output file to be created.]]>
  73562. </doc>
  73563. </method>
  73564. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  73565. abstract="false" native="false" synchronized="true"
  73566. static="false" final="false" visibility="public"
  73567. deprecated="not deprecated">
  73568. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73569. <exception name="IOException" type="java.io.IOException"/>
  73570. </method>
  73571. <field name="BASE_OUTPUT_NAME" type="java.lang.String"
  73572. transient="false" volatile="false"
  73573. static="true" final="true" visibility="protected"
  73574. deprecated="not deprecated">
  73575. </field>
  73576. <field name="PART" type="java.lang.String"
  73577. transient="false" volatile="false"
  73578. static="true" final="true" visibility="protected"
  73579. deprecated="not deprecated">
  73580. </field>
  73581. <doc>
  73582. <![CDATA[A base class for {@link OutputFormat}s that read from {@link FileSystem}s.]]>
  73583. </doc>
  73584. </class>
  73585. <!-- end class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat -->
  73586. <!-- start class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.Counter -->
  73587. <class name="FileOutputFormat.Counter" extends="java.lang.Enum"
  73588. abstract="false"
  73589. static="true" final="true" visibility="public"
  73590. deprecated="not deprecated">
  73591. <method name="values" return="org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.Counter[]"
  73592. abstract="false" native="false" synchronized="false"
  73593. static="true" final="false" visibility="public"
  73594. deprecated="not deprecated">
  73595. </method>
  73596. <method name="valueOf" return="org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.Counter"
  73597. abstract="false" native="false" synchronized="false"
  73598. static="true" final="false" visibility="public"
  73599. deprecated="not deprecated">
  73600. <param name="name" type="java.lang.String"/>
  73601. </method>
  73602. <field name="BYTES_WRITTEN" type="org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.Counter"
  73603. transient="false" volatile="false"
  73604. static="true" final="true" visibility="public"
  73605. deprecated="not deprecated">
  73606. </field>
  73607. </class>
  73608. <!-- end class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.Counter -->
  73609. <!-- start class org.apache.hadoop.mapreduce.lib.output.FilterOutputFormat -->
  73610. <class name="FilterOutputFormat" extends="org.apache.hadoop.mapreduce.OutputFormat"
  73611. abstract="false"
  73612. static="false" final="false" visibility="public"
  73613. deprecated="not deprecated">
  73614. <constructor name="FilterOutputFormat"
  73615. static="false" final="false" visibility="public"
  73616. deprecated="not deprecated">
  73617. </constructor>
  73618. <constructor name="FilterOutputFormat" type="org.apache.hadoop.mapreduce.OutputFormat"
  73619. static="false" final="false" visibility="public"
  73620. deprecated="not deprecated">
  73621. <doc>
  73622. <![CDATA[Create a FilterOutputFormat based on the underlying output format.
  73623. @param baseOut the underlying OutputFormat]]>
  73624. </doc>
  73625. </constructor>
  73626. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  73627. abstract="false" native="false" synchronized="false"
  73628. static="false" final="false" visibility="public"
  73629. deprecated="not deprecated">
  73630. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73631. <exception name="IOException" type="java.io.IOException"/>
  73632. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73633. </method>
  73634. <method name="checkOutputSpecs"
  73635. abstract="false" native="false" synchronized="false"
  73636. static="false" final="false" visibility="public"
  73637. deprecated="not deprecated">
  73638. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  73639. <exception name="IOException" type="java.io.IOException"/>
  73640. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73641. </method>
  73642. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  73643. abstract="false" native="false" synchronized="false"
  73644. static="false" final="false" visibility="public"
  73645. deprecated="not deprecated">
  73646. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73647. <exception name="IOException" type="java.io.IOException"/>
  73648. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73649. </method>
  73650. <field name="baseOut" type="org.apache.hadoop.mapreduce.OutputFormat"
  73651. transient="false" volatile="false"
  73652. static="false" final="false" visibility="protected"
  73653. deprecated="not deprecated">
  73654. </field>
  73655. <doc>
  73656. <![CDATA[FilterOutputFormat is a convenience class that wraps OutputFormat.]]>
  73657. </doc>
  73658. </class>
  73659. <!-- end class org.apache.hadoop.mapreduce.lib.output.FilterOutputFormat -->
  73660. <!-- start class org.apache.hadoop.mapreduce.lib.output.FilterOutputFormat.FilterRecordWriter -->
  73661. <class name="FilterOutputFormat.FilterRecordWriter" extends="org.apache.hadoop.mapreduce.RecordWriter"
  73662. abstract="false"
  73663. static="true" final="false" visibility="public"
  73664. deprecated="not deprecated">
  73665. <constructor name="FilterOutputFormat.FilterRecordWriter"
  73666. static="false" final="false" visibility="public"
  73667. deprecated="not deprecated">
  73668. </constructor>
  73669. <constructor name="FilterOutputFormat.FilterRecordWriter" type="org.apache.hadoop.mapreduce.RecordWriter"
  73670. static="false" final="false" visibility="public"
  73671. deprecated="not deprecated">
  73672. </constructor>
  73673. <method name="write"
  73674. abstract="false" native="false" synchronized="false"
  73675. static="false" final="false" visibility="public"
  73676. deprecated="not deprecated">
  73677. <param name="key" type="java.lang.Object"/>
  73678. <param name="value" type="java.lang.Object"/>
  73679. <exception name="IOException" type="java.io.IOException"/>
  73680. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73681. </method>
  73682. <method name="close"
  73683. abstract="false" native="false" synchronized="false"
  73684. static="false" final="false" visibility="public"
  73685. deprecated="not deprecated">
  73686. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73687. <exception name="IOException" type="java.io.IOException"/>
  73688. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73689. </method>
  73690. <field name="rawWriter" type="org.apache.hadoop.mapreduce.RecordWriter"
  73691. transient="false" volatile="false"
  73692. static="false" final="false" visibility="protected"
  73693. deprecated="not deprecated">
  73694. </field>
  73695. <doc>
  73696. <![CDATA[<code>FilterRecordWriter</code> is a convenience wrapper
  73697. class that extends the {@link RecordWriter}.]]>
  73698. </doc>
  73699. </class>
  73700. <!-- end class org.apache.hadoop.mapreduce.lib.output.FilterOutputFormat.FilterRecordWriter -->
  73701. <!-- start class org.apache.hadoop.mapreduce.lib.output.LazyOutputFormat -->
  73702. <class name="LazyOutputFormat" extends="org.apache.hadoop.mapreduce.lib.output.FilterOutputFormat"
  73703. abstract="false"
  73704. static="false" final="false" visibility="public"
  73705. deprecated="not deprecated">
  73706. <constructor name="LazyOutputFormat"
  73707. static="false" final="false" visibility="public"
  73708. deprecated="not deprecated">
  73709. </constructor>
  73710. <method name="setOutputFormatClass"
  73711. abstract="false" native="false" synchronized="false"
  73712. static="true" final="false" visibility="public"
  73713. deprecated="not deprecated">
  73714. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  73715. <param name="theClass" type="java.lang.Class"/>
  73716. <doc>
  73717. <![CDATA[Set the underlying output format for LazyOutputFormat.
  73718. @param job the {@link Job} to modify
  73719. @param theClass the underlying class]]>
  73720. </doc>
  73721. </method>
  73722. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  73723. abstract="false" native="false" synchronized="false"
  73724. static="false" final="false" visibility="public"
  73725. deprecated="not deprecated">
  73726. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73727. <exception name="IOException" type="java.io.IOException"/>
  73728. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73729. </method>
  73730. <method name="checkOutputSpecs"
  73731. abstract="false" native="false" synchronized="false"
  73732. static="false" final="false" visibility="public"
  73733. deprecated="not deprecated">
  73734. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  73735. <exception name="IOException" type="java.io.IOException"/>
  73736. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73737. </method>
  73738. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  73739. abstract="false" native="false" synchronized="false"
  73740. static="false" final="false" visibility="public"
  73741. deprecated="not deprecated">
  73742. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73743. <exception name="IOException" type="java.io.IOException"/>
  73744. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73745. </method>
  73746. <field name="OUTPUT_FORMAT" type="java.lang.String"
  73747. transient="false" volatile="false"
  73748. static="true" final="false" visibility="public"
  73749. deprecated="not deprecated">
  73750. </field>
  73751. <doc>
  73752. <![CDATA[A Convenience class that creates output lazily.]]>
  73753. </doc>
  73754. </class>
  73755. <!-- end class org.apache.hadoop.mapreduce.lib.output.LazyOutputFormat -->
  73756. <!-- start class org.apache.hadoop.mapreduce.lib.output.MultipleOutputs -->
  73757. <class name="MultipleOutputs" extends="java.lang.Object"
  73758. abstract="false"
  73759. static="false" final="false" visibility="public"
  73760. deprecated="not deprecated">
  73761. <constructor name="MultipleOutputs" type="org.apache.hadoop.mapreduce.TaskInputOutputContext"
  73762. static="false" final="false" visibility="public"
  73763. deprecated="not deprecated">
  73764. <doc>
  73765. <![CDATA[Creates and initializes multiple outputs support,
  73766. it should be instantiated in the Mapper/Reducer setup method.
  73767. @param context the TaskInputOutputContext object]]>
  73768. </doc>
  73769. </constructor>
  73770. <method name="addNamedOutput"
  73771. abstract="false" native="false" synchronized="false"
  73772. static="true" final="false" visibility="public"
  73773. deprecated="not deprecated">
  73774. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  73775. <param name="namedOutput" type="java.lang.String"/>
  73776. <param name="outputFormatClass" type="java.lang.Class"/>
  73777. <param name="keyClass" type="java.lang.Class"/>
  73778. <param name="valueClass" type="java.lang.Class"/>
  73779. <doc>
  73780. <![CDATA[Adds a named output for the job.
  73781. <p/>
  73782. @param job job to add the named output
  73783. @param namedOutput named output name, it has to be a word, letters
  73784. and numbers only, cannot be the word 'part' as
  73785. that is reserved for the default output.
  73786. @param outputFormatClass OutputFormat class.
  73787. @param keyClass key class
  73788. @param valueClass value class]]>
  73789. </doc>
  73790. </method>
  73791. <method name="setCountersEnabled"
  73792. abstract="false" native="false" synchronized="false"
  73793. static="true" final="false" visibility="public"
  73794. deprecated="not deprecated">
  73795. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  73796. <param name="enabled" type="boolean"/>
  73797. <doc>
  73798. <![CDATA[Enables or disables counters for the named outputs.
  73799. The counters group is the {@link MultipleOutputs} class name.
  73800. The names of the counters are the same as the named outputs. These
  73801. counters count the number records written to each output name.
  73802. By default these counters are disabled.
  73803. @param job job to enable counters
  73804. @param enabled indicates if the counters will be enabled or not.]]>
  73805. </doc>
  73806. </method>
  73807. <method name="getCountersEnabled" return="boolean"
  73808. abstract="false" native="false" synchronized="false"
  73809. static="true" final="false" visibility="public"
  73810. deprecated="not deprecated">
  73811. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  73812. <doc>
  73813. <![CDATA[Returns if the counters for the named outputs are enabled or not.
  73814. By default these counters are disabled.
  73815. @param job the job
  73816. @return TRUE if the counters are enabled, FALSE if they are disabled.]]>
  73817. </doc>
  73818. </method>
  73819. <method name="write"
  73820. abstract="false" native="false" synchronized="false"
  73821. static="false" final="false" visibility="public"
  73822. deprecated="not deprecated">
  73823. <param name="namedOutput" type="java.lang.String"/>
  73824. <param name="key" type="java.lang.Object"/>
  73825. <param name="value" type="java.lang.Object"/>
  73826. <exception name="IOException" type="java.io.IOException"/>
  73827. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73828. <doc>
  73829. <![CDATA[Write key and value to the namedOutput.
  73830. Output path is a unique file generated for the namedOutput.
  73831. For example, {namedOutput}-(m|r)-{part-number}
  73832. @param namedOutput the named output name
  73833. @param key the key
  73834. @param value the value]]>
  73835. </doc>
  73836. </method>
  73837. <method name="write"
  73838. abstract="false" native="false" synchronized="false"
  73839. static="false" final="false" visibility="public"
  73840. deprecated="not deprecated">
  73841. <param name="namedOutput" type="java.lang.String"/>
  73842. <param name="key" type="java.lang.Object"/>
  73843. <param name="value" type="java.lang.Object"/>
  73844. <param name="baseOutputPath" type="java.lang.String"/>
  73845. <exception name="IOException" type="java.io.IOException"/>
  73846. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73847. <doc>
  73848. <![CDATA[Write key and value to baseOutputPath using the namedOutput.
  73849. @param namedOutput the named output name
  73850. @param key the key
  73851. @param value the value
  73852. @param baseOutputPath base-output path to write the record to.
  73853. Note: Framework will generate unique filename for the baseOutputPath]]>
  73854. </doc>
  73855. </method>
  73856. <method name="write"
  73857. abstract="false" native="false" synchronized="false"
  73858. static="false" final="false" visibility="public"
  73859. deprecated="not deprecated">
  73860. <param name="key" type="java.lang.Object"/>
  73861. <param name="value" type="java.lang.Object"/>
  73862. <param name="baseOutputPath" type="java.lang.String"/>
  73863. <exception name="IOException" type="java.io.IOException"/>
  73864. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73865. <doc>
  73866. <![CDATA[Write key value to an output file name.
  73867. Gets the record writer from job's output format.
  73868. Job's output format should be a FileOutputFormat.
  73869. @param key the key
  73870. @param value the value
  73871. @param baseOutputPath base-output path to write the record to.
  73872. Note: Framework will generate unique filename for the baseOutputPath]]>
  73873. </doc>
  73874. </method>
  73875. <method name="close"
  73876. abstract="false" native="false" synchronized="false"
  73877. static="false" final="false" visibility="public"
  73878. deprecated="not deprecated">
  73879. <exception name="IOException" type="java.io.IOException"/>
  73880. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73881. <doc>
  73882. <![CDATA[Closes all the opened outputs.
  73883. This should be called from cleanup method of map/reduce task.
  73884. If overridden subclasses must invoke <code>super.close()</code> at the
  73885. end of their <code>close()</code>]]>
  73886. </doc>
  73887. </method>
  73888. <doc>
  73889. <![CDATA[The MultipleOutputs class simplifies writing output data
  73890. to multiple outputs
  73891. <p>
  73892. Case one: writing to additional outputs other than the job default output.
  73893. Each additional output, or named output, may be configured with its own
  73894. <code>OutputFormat</code>, with its own key class and with its own value
  73895. class.
  73896. <p>
  73897. Case two: to write data to different files provided by user
  73898. </p>
  73899. <p>
  73900. MultipleOutputs supports counters, by default they are disabled. The
  73901. counters group is the {@link MultipleOutputs} class name. The names of the
  73902. counters are the same as the output name. These count the number records
  73903. written to each output name.
  73904. </p>
  73905. Usage pattern for job submission:
  73906. <pre>
  73907. Job job = new Job();
  73908. FileInputFormat.setInputPath(job, inDir);
  73909. FileOutputFormat.setOutputPath(job, outDir);
  73910. job.setMapperClass(MOMap.class);
  73911. job.setReducerClass(MOReduce.class);
  73912. ...
  73913. // Defines additional single text based output 'text' for the job
  73914. MultipleOutputs.addNamedOutput(job, "text", TextOutputFormat.class,
  73915. LongWritable.class, Text.class);
  73916. // Defines additional sequence-file based output 'sequence' for the job
  73917. MultipleOutputs.addNamedOutput(job, "seq",
  73918. SequenceFileOutputFormat.class,
  73919. LongWritable.class, Text.class);
  73920. ...
  73921. job.waitForCompletion(true);
  73922. ...
  73923. </pre>
  73924. <p>
  73925. Usage in Reducer:
  73926. <pre>
  73927. <K, V> String generateFileName(K k, V v) {
  73928. return k.toString() + "_" + v.toString();
  73929. }
  73930. public class MOReduce extends
  73931. Reducer&lt;WritableComparable, Writable,WritableComparable, Writable&gt; {
  73932. private MultipleOutputs mos;
  73933. public void setup(Context context) {
  73934. ...
  73935. mos = new MultipleOutputs(context);
  73936. }
  73937. public void reduce(WritableComparable key, Iterator&lt;Writable&gt; values,
  73938. Context context)
  73939. throws IOException {
  73940. ...
  73941. mos.write("text", , key, new Text("Hello"));
  73942. mos.write("seq", LongWritable(1), new Text("Bye"), "seq_a");
  73943. mos.write("seq", LongWritable(2), key, new Text("Chau"), "seq_b");
  73944. mos.write(key, new Text("value"), generateFileName(key, new Text("value")));
  73945. ...
  73946. }
  73947. public void cleanup(Context) throws IOException {
  73948. mos.close();
  73949. ...
  73950. }
  73951. }
  73952. </pre>]]>
  73953. </doc>
  73954. </class>
  73955. <!-- end class org.apache.hadoop.mapreduce.lib.output.MultipleOutputs -->
  73956. <!-- start class org.apache.hadoop.mapreduce.lib.output.NullOutputFormat -->
  73957. <class name="NullOutputFormat" extends="org.apache.hadoop.mapreduce.OutputFormat"
  73958. abstract="false"
  73959. static="false" final="false" visibility="public"
  73960. deprecated="not deprecated">
  73961. <constructor name="NullOutputFormat"
  73962. static="false" final="false" visibility="public"
  73963. deprecated="not deprecated">
  73964. </constructor>
  73965. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  73966. abstract="false" native="false" synchronized="false"
  73967. static="false" final="false" visibility="public"
  73968. deprecated="not deprecated">
  73969. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73970. </method>
  73971. <method name="checkOutputSpecs"
  73972. abstract="false" native="false" synchronized="false"
  73973. static="false" final="false" visibility="public"
  73974. deprecated="not deprecated">
  73975. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  73976. </method>
  73977. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  73978. abstract="false" native="false" synchronized="false"
  73979. static="false" final="false" visibility="public"
  73980. deprecated="not deprecated">
  73981. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73982. </method>
  73983. <doc>
  73984. <![CDATA[Consume all outputs and put them in /dev/null.]]>
  73985. </doc>
  73986. </class>
  73987. <!-- end class org.apache.hadoop.mapreduce.lib.output.NullOutputFormat -->
  73988. <!-- start class org.apache.hadoop.mapreduce.lib.output.SequenceFileAsBinaryOutputFormat -->
  73989. <class name="SequenceFileAsBinaryOutputFormat" extends="org.apache.hadoop.mapreduce.lib.output.SequenceFileOutputFormat"
  73990. abstract="false"
  73991. static="false" final="false" visibility="public"
  73992. deprecated="not deprecated">
  73993. <constructor name="SequenceFileAsBinaryOutputFormat"
  73994. static="false" final="false" visibility="public"
  73995. deprecated="not deprecated">
  73996. </constructor>
  73997. <method name="setSequenceFileOutputKeyClass"
  73998. abstract="false" native="false" synchronized="false"
  73999. static="true" final="false" visibility="public"
  74000. deprecated="not deprecated">
  74001. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  74002. <param name="theClass" type="java.lang.Class"/>
  74003. <doc>
  74004. <![CDATA[Set the key class for the {@link SequenceFile}
  74005. <p>This allows the user to specify the key class to be different
  74006. from the actual class ({@link BytesWritable}) used for writing </p>
  74007. @param job the {@link Job} to modify
  74008. @param theClass the SequenceFile output key class.]]>
  74009. </doc>
  74010. </method>
  74011. <method name="setSequenceFileOutputValueClass"
  74012. abstract="false" native="false" synchronized="false"
  74013. static="true" final="false" visibility="public"
  74014. deprecated="not deprecated">
  74015. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  74016. <param name="theClass" type="java.lang.Class"/>
  74017. <doc>
  74018. <![CDATA[Set the value class for the {@link SequenceFile}
  74019. <p>This allows the user to specify the value class to be different
  74020. from the actual class ({@link BytesWritable}) used for writing </p>
  74021. @param job the {@link Job} to modify
  74022. @param theClass the SequenceFile output key class.]]>
  74023. </doc>
  74024. </method>
  74025. <method name="getSequenceFileOutputKeyClass" return="java.lang.Class"
  74026. abstract="false" native="false" synchronized="false"
  74027. static="true" final="false" visibility="public"
  74028. deprecated="not deprecated">
  74029. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  74030. <doc>
  74031. <![CDATA[Get the key class for the {@link SequenceFile}
  74032. @return the key class of the {@link SequenceFile}]]>
  74033. </doc>
  74034. </method>
  74035. <method name="getSequenceFileOutputValueClass" return="java.lang.Class"
  74036. abstract="false" native="false" synchronized="false"
  74037. static="true" final="false" visibility="public"
  74038. deprecated="not deprecated">
  74039. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  74040. <doc>
  74041. <![CDATA[Get the value class for the {@link SequenceFile}
  74042. @return the value class of the {@link SequenceFile}]]>
  74043. </doc>
  74044. </method>
  74045. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  74046. abstract="false" native="false" synchronized="false"
  74047. static="false" final="false" visibility="public"
  74048. deprecated="not deprecated">
  74049. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  74050. <exception name="IOException" type="java.io.IOException"/>
  74051. </method>
  74052. <method name="getSequenceWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  74053. abstract="false" native="false" synchronized="false"
  74054. static="false" final="false" visibility="protected"
  74055. deprecated="not deprecated">
  74056. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  74057. <param name="keyClass" type="java.lang.Class"/>
  74058. <param name="valueClass" type="java.lang.Class"/>
  74059. <exception name="IOException" type="java.io.IOException"/>
  74060. </method>
  74061. <method name="checkOutputSpecs"
  74062. abstract="false" native="false" synchronized="false"
  74063. static="false" final="false" visibility="public"
  74064. deprecated="not deprecated">
  74065. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  74066. <exception name="IOException" type="java.io.IOException"/>
  74067. </method>
  74068. <field name="KEY_CLASS" type="java.lang.String"
  74069. transient="false" volatile="false"
  74070. static="true" final="false" visibility="public"
  74071. deprecated="not deprecated">
  74072. </field>
  74073. <field name="VALUE_CLASS" type="java.lang.String"
  74074. transient="false" volatile="false"
  74075. static="true" final="false" visibility="public"
  74076. deprecated="not deprecated">
  74077. </field>
  74078. <doc>
  74079. <![CDATA[An {@link org.apache.hadoop.mapreduce.OutputFormat} that writes keys,
  74080. values to {@link SequenceFile}s in binary(raw) format]]>
  74081. </doc>
  74082. </class>
  74083. <!-- end class org.apache.hadoop.mapreduce.lib.output.SequenceFileAsBinaryOutputFormat -->
  74084. <!-- start class org.apache.hadoop.mapreduce.lib.output.SequenceFileAsBinaryOutputFormat.WritableValueBytes -->
  74085. <class name="SequenceFileAsBinaryOutputFormat.WritableValueBytes" extends="java.lang.Object"
  74086. abstract="false"
  74087. static="true" final="false" visibility="public"
  74088. deprecated="not deprecated">
  74089. <implements name="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  74090. <constructor name="SequenceFileAsBinaryOutputFormat.WritableValueBytes"
  74091. static="false" final="false" visibility="public"
  74092. deprecated="not deprecated">
  74093. </constructor>
  74094. <constructor name="SequenceFileAsBinaryOutputFormat.WritableValueBytes" type="org.apache.hadoop.io.BytesWritable"
  74095. static="false" final="false" visibility="public"
  74096. deprecated="not deprecated">
  74097. </constructor>
  74098. <method name="reset"
  74099. abstract="false" native="false" synchronized="false"
  74100. static="false" final="false" visibility="public"
  74101. deprecated="not deprecated">
  74102. <param name="value" type="org.apache.hadoop.io.BytesWritable"/>
  74103. </method>
  74104. <method name="writeUncompressedBytes"
  74105. abstract="false" native="false" synchronized="false"
  74106. static="false" final="false" visibility="public"
  74107. deprecated="not deprecated">
  74108. <param name="outStream" type="java.io.DataOutputStream"/>
  74109. <exception name="IOException" type="java.io.IOException"/>
  74110. </method>
  74111. <method name="writeCompressedBytes"
  74112. abstract="false" native="false" synchronized="false"
  74113. static="false" final="false" visibility="public"
  74114. deprecated="not deprecated">
  74115. <param name="outStream" type="java.io.DataOutputStream"/>
  74116. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  74117. <exception name="IOException" type="java.io.IOException"/>
  74118. </method>
  74119. <method name="getSize" return="int"
  74120. abstract="false" native="false" synchronized="false"
  74121. static="false" final="false" visibility="public"
  74122. deprecated="not deprecated">
  74123. </method>
  74124. <doc>
  74125. <![CDATA[Inner class used for appendRaw]]>
  74126. </doc>
  74127. </class>
  74128. <!-- end class org.apache.hadoop.mapreduce.lib.output.SequenceFileAsBinaryOutputFormat.WritableValueBytes -->
  74129. <!-- start class org.apache.hadoop.mapreduce.lib.output.SequenceFileOutputFormat -->
  74130. <class name="SequenceFileOutputFormat" extends="org.apache.hadoop.mapreduce.lib.output.FileOutputFormat"
  74131. abstract="false"
  74132. static="false" final="false" visibility="public"
  74133. deprecated="not deprecated">
  74134. <constructor name="SequenceFileOutputFormat"
  74135. static="false" final="false" visibility="public"
  74136. deprecated="not deprecated">
  74137. </constructor>
  74138. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  74139. abstract="false" native="false" synchronized="false"
  74140. static="false" final="false" visibility="public"
  74141. deprecated="not deprecated">
  74142. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  74143. <exception name="IOException" type="java.io.IOException"/>
  74144. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74145. </method>
  74146. <method name="getOutputCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  74147. abstract="false" native="false" synchronized="false"
  74148. static="true" final="false" visibility="public"
  74149. deprecated="not deprecated">
  74150. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  74151. <doc>
  74152. <![CDATA[Get the {@link CompressionType} for the output {@link SequenceFile}.
  74153. @param job the {@link Job}
  74154. @return the {@link CompressionType} for the output {@link SequenceFile},
  74155. defaulting to {@link CompressionType#RECORD}]]>
  74156. </doc>
  74157. </method>
  74158. <method name="setOutputCompressionType"
  74159. abstract="false" native="false" synchronized="false"
  74160. static="true" final="false" visibility="public"
  74161. deprecated="not deprecated">
  74162. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  74163. <param name="style" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  74164. <doc>
  74165. <![CDATA[Set the {@link CompressionType} for the output {@link SequenceFile}.
  74166. @param job the {@link Job} to modify
  74167. @param style the {@link CompressionType} for the output
  74168. {@link SequenceFile}]]>
  74169. </doc>
  74170. </method>
  74171. <doc>
  74172. <![CDATA[An {@link OutputFormat} that writes {@link SequenceFile}s.]]>
  74173. </doc>
  74174. </class>
  74175. <!-- end class org.apache.hadoop.mapreduce.lib.output.SequenceFileOutputFormat -->
  74176. <!-- start class org.apache.hadoop.mapreduce.lib.output.TextOutputFormat -->
  74177. <class name="TextOutputFormat" extends="org.apache.hadoop.mapreduce.lib.output.FileOutputFormat"
  74178. abstract="false"
  74179. static="false" final="false" visibility="public"
  74180. deprecated="not deprecated">
  74181. <constructor name="TextOutputFormat"
  74182. static="false" final="false" visibility="public"
  74183. deprecated="not deprecated">
  74184. </constructor>
  74185. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  74186. abstract="false" native="false" synchronized="false"
  74187. static="false" final="false" visibility="public"
  74188. deprecated="not deprecated">
  74189. <param name="job" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  74190. <exception name="IOException" type="java.io.IOException"/>
  74191. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74192. </method>
  74193. <doc>
  74194. <![CDATA[An {@link OutputFormat} that writes plain text files.]]>
  74195. </doc>
  74196. </class>
  74197. <!-- end class org.apache.hadoop.mapreduce.lib.output.TextOutputFormat -->
  74198. <!-- start class org.apache.hadoop.mapreduce.lib.output.TextOutputFormat.LineRecordWriter -->
  74199. <class name="TextOutputFormat.LineRecordWriter" extends="org.apache.hadoop.mapreduce.RecordWriter"
  74200. abstract="false"
  74201. static="true" final="false" visibility="protected"
  74202. deprecated="not deprecated">
  74203. <constructor name="TextOutputFormat.LineRecordWriter" type="java.io.DataOutputStream, java.lang.String"
  74204. static="false" final="false" visibility="public"
  74205. deprecated="not deprecated">
  74206. </constructor>
  74207. <constructor name="TextOutputFormat.LineRecordWriter" type="java.io.DataOutputStream"
  74208. static="false" final="false" visibility="public"
  74209. deprecated="not deprecated">
  74210. </constructor>
  74211. <method name="write"
  74212. abstract="false" native="false" synchronized="true"
  74213. static="false" final="false" visibility="public"
  74214. deprecated="not deprecated">
  74215. <param name="key" type="java.lang.Object"/>
  74216. <param name="value" type="java.lang.Object"/>
  74217. <exception name="IOException" type="java.io.IOException"/>
  74218. </method>
  74219. <method name="close"
  74220. abstract="false" native="false" synchronized="true"
  74221. static="false" final="false" visibility="public"
  74222. deprecated="not deprecated">
  74223. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  74224. <exception name="IOException" type="java.io.IOException"/>
  74225. </method>
  74226. <field name="out" type="java.io.DataOutputStream"
  74227. transient="false" volatile="false"
  74228. static="false" final="false" visibility="protected"
  74229. deprecated="not deprecated">
  74230. </field>
  74231. </class>
  74232. <!-- end class org.apache.hadoop.mapreduce.lib.output.TextOutputFormat.LineRecordWriter -->
  74233. </package>
  74234. <package name="org.apache.hadoop.mapreduce.lib.partition">
  74235. <!-- start class org.apache.hadoop.mapreduce.lib.partition.BinaryPartitioner -->
  74236. <class name="BinaryPartitioner" extends="org.apache.hadoop.mapreduce.Partitioner"
  74237. abstract="false"
  74238. static="false" final="false" visibility="public"
  74239. deprecated="not deprecated">
  74240. <implements name="org.apache.hadoop.conf.Configurable"/>
  74241. <constructor name="BinaryPartitioner"
  74242. static="false" final="false" visibility="public"
  74243. deprecated="not deprecated">
  74244. </constructor>
  74245. <method name="setOffsets"
  74246. abstract="false" native="false" synchronized="false"
  74247. static="true" final="false" visibility="public"
  74248. deprecated="not deprecated">
  74249. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  74250. <param name="left" type="int"/>
  74251. <param name="right" type="int"/>
  74252. <doc>
  74253. <![CDATA[Set the subarray to be used for partitioning to
  74254. <code>bytes[left:(right+1)]</code> in Python syntax.
  74255. @param conf configuration object
  74256. @param left left Python-style offset
  74257. @param right right Python-style offset]]>
  74258. </doc>
  74259. </method>
  74260. <method name="setLeftOffset"
  74261. abstract="false" native="false" synchronized="false"
  74262. static="true" final="false" visibility="public"
  74263. deprecated="not deprecated">
  74264. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  74265. <param name="offset" type="int"/>
  74266. <doc>
  74267. <![CDATA[Set the subarray to be used for partitioning to
  74268. <code>bytes[offset:]</code> in Python syntax.
  74269. @param conf configuration object
  74270. @param offset left Python-style offset]]>
  74271. </doc>
  74272. </method>
  74273. <method name="setRightOffset"
  74274. abstract="false" native="false" synchronized="false"
  74275. static="true" final="false" visibility="public"
  74276. deprecated="not deprecated">
  74277. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  74278. <param name="offset" type="int"/>
  74279. <doc>
  74280. <![CDATA[Set the subarray to be used for partitioning to
  74281. <code>bytes[:(offset+1)]</code> in Python syntax.
  74282. @param conf configuration object
  74283. @param offset right Python-style offset]]>
  74284. </doc>
  74285. </method>
  74286. <method name="setConf"
  74287. abstract="false" native="false" synchronized="false"
  74288. static="false" final="false" visibility="public"
  74289. deprecated="not deprecated">
  74290. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  74291. </method>
  74292. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  74293. abstract="false" native="false" synchronized="false"
  74294. static="false" final="false" visibility="public"
  74295. deprecated="not deprecated">
  74296. </method>
  74297. <method name="getPartition" return="int"
  74298. abstract="false" native="false" synchronized="false"
  74299. static="false" final="false" visibility="public"
  74300. deprecated="not deprecated">
  74301. <param name="key" type="org.apache.hadoop.io.BinaryComparable"/>
  74302. <param name="value" type="java.lang.Object"/>
  74303. <param name="numPartitions" type="int"/>
  74304. <doc>
  74305. <![CDATA[Use (the specified slice of the array returned by)
  74306. {@link BinaryComparable#getBytes()} to partition.]]>
  74307. </doc>
  74308. </method>
  74309. <doc>
  74310. <![CDATA[<p>Partition {@link BinaryComparable} keys using a configurable part of
  74311. the bytes array returned by {@link BinaryComparable#getBytes()}.</p>
  74312. <p>The subarray to be used for the partitioning can be defined by means
  74313. of the following properties:
  74314. <ul>
  74315. <li>
  74316. <i>mapred.binary.partitioner.left.offset</i>:
  74317. left offset in array (0 by default)
  74318. </li>
  74319. <li>
  74320. <i>mapred.binary.partitioner.right.offset</i>:
  74321. right offset in array (-1 by default)
  74322. </li>
  74323. </ul>
  74324. Like in Python, both negative and positive offsets are allowed, but
  74325. the meaning is slightly different. In case of an array of length 5,
  74326. for instance, the possible offsets are:
  74327. <pre><code>
  74328. +---+---+---+---+---+
  74329. | B | B | B | B | B |
  74330. +---+---+---+---+---+
  74331. 0 1 2 3 4
  74332. -5 -4 -3 -2 -1
  74333. </code></pre>
  74334. The first row of numbers gives the position of the offsets 0...5 in
  74335. the array; the second row gives the corresponding negative offsets.
  74336. Contrary to Python, the specified subarray has byte <code>i</code>
  74337. and <code>j</code> as first and last element, repectively, when
  74338. <code>i</code> and <code>j</code> are the left and right offset.
  74339. <p>For Hadoop programs written in Java, it is advisable to use one of
  74340. the following static convenience methods for setting the offsets:
  74341. <ul>
  74342. <li>{@link #setOffsets}</li>
  74343. <li>{@link #setLeftOffset}</li>
  74344. <li>{@link #setRightOffset}</li>
  74345. </ul></p>]]>
  74346. </doc>
  74347. </class>
  74348. <!-- end class org.apache.hadoop.mapreduce.lib.partition.BinaryPartitioner -->
  74349. <!-- start class org.apache.hadoop.mapreduce.lib.partition.HashPartitioner -->
  74350. <class name="HashPartitioner" extends="org.apache.hadoop.mapreduce.Partitioner"
  74351. abstract="false"
  74352. static="false" final="false" visibility="public"
  74353. deprecated="not deprecated">
  74354. <constructor name="HashPartitioner"
  74355. static="false" final="false" visibility="public"
  74356. deprecated="not deprecated">
  74357. </constructor>
  74358. <method name="getPartition" return="int"
  74359. abstract="false" native="false" synchronized="false"
  74360. static="false" final="false" visibility="public"
  74361. deprecated="not deprecated">
  74362. <param name="key" type="java.lang.Object"/>
  74363. <param name="value" type="java.lang.Object"/>
  74364. <param name="numReduceTasks" type="int"/>
  74365. <doc>
  74366. <![CDATA[Use {@link Object#hashCode()} to partition.]]>
  74367. </doc>
  74368. </method>
  74369. <doc>
  74370. <![CDATA[Partition keys by their {@link Object#hashCode()}.]]>
  74371. </doc>
  74372. </class>
  74373. <!-- end class org.apache.hadoop.mapreduce.lib.partition.HashPartitioner -->
  74374. <!-- start class org.apache.hadoop.mapreduce.lib.partition.InputSampler -->
  74375. <class name="InputSampler" extends="org.apache.hadoop.conf.Configured"
  74376. abstract="false"
  74377. static="false" final="false" visibility="public"
  74378. deprecated="not deprecated">
  74379. <implements name="org.apache.hadoop.util.Tool"/>
  74380. <constructor name="InputSampler" type="org.apache.hadoop.conf.Configuration"
  74381. static="false" final="false" visibility="public"
  74382. deprecated="not deprecated">
  74383. </constructor>
  74384. <method name="writePartitionFile"
  74385. abstract="false" native="false" synchronized="false"
  74386. static="true" final="false" visibility="public"
  74387. deprecated="not deprecated">
  74388. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  74389. <param name="sampler" type="org.apache.hadoop.mapreduce.lib.partition.InputSampler.Sampler"/>
  74390. <exception name="IOException" type="java.io.IOException"/>
  74391. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  74392. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74393. <doc>
  74394. <![CDATA[Write a partition file for the given job, using the Sampler provided.
  74395. Queries the sampler for a sample keyset, sorts by the output key
  74396. comparator, selects the keys for each rank, and writes to the destination
  74397. returned from {@link TotalOrderPartitioner#getPartitionFile}.]]>
  74398. </doc>
  74399. </method>
  74400. <method name="run" return="int"
  74401. abstract="false" native="false" synchronized="false"
  74402. static="false" final="false" visibility="public"
  74403. deprecated="not deprecated">
  74404. <param name="args" type="java.lang.String[]"/>
  74405. <exception name="Exception" type="java.lang.Exception"/>
  74406. <doc>
  74407. <![CDATA[Driver for InputSampler from the command line.
  74408. Configures a JobConf instance and calls {@link #writePartitionFile}.]]>
  74409. </doc>
  74410. </method>
  74411. <method name="main"
  74412. abstract="false" native="false" synchronized="false"
  74413. static="true" final="false" visibility="public"
  74414. deprecated="not deprecated">
  74415. <param name="args" type="java.lang.String[]"/>
  74416. <exception name="Exception" type="java.lang.Exception"/>
  74417. </method>
  74418. <doc>
  74419. <![CDATA[Utility for collecting samples and writing a partition file for
  74420. {@link TotalOrderPartitioner}.]]>
  74421. </doc>
  74422. </class>
  74423. <!-- end class org.apache.hadoop.mapreduce.lib.partition.InputSampler -->
  74424. <!-- start class org.apache.hadoop.mapreduce.lib.partition.InputSampler.IntervalSampler -->
  74425. <class name="InputSampler.IntervalSampler" extends="java.lang.Object"
  74426. abstract="false"
  74427. static="true" final="false" visibility="public"
  74428. deprecated="not deprecated">
  74429. <implements name="org.apache.hadoop.mapreduce.lib.partition.InputSampler.Sampler"/>
  74430. <constructor name="InputSampler.IntervalSampler" type="double"
  74431. static="false" final="false" visibility="public"
  74432. deprecated="not deprecated">
  74433. <doc>
  74434. <![CDATA[Create a new IntervalSampler sampling <em>all</em> splits.
  74435. @param freq The frequency with which records will be emitted.]]>
  74436. </doc>
  74437. </constructor>
  74438. <constructor name="InputSampler.IntervalSampler" type="double, int"
  74439. static="false" final="false" visibility="public"
  74440. deprecated="not deprecated">
  74441. <doc>
  74442. <![CDATA[Create a new IntervalSampler.
  74443. @param freq The frequency with which records will be emitted.
  74444. @param maxSplitsSampled The maximum number of splits to examine.
  74445. @see #getSample]]>
  74446. </doc>
  74447. </constructor>
  74448. <method name="getSample" return="java.lang.Object[]"
  74449. abstract="false" native="false" synchronized="false"
  74450. static="false" final="false" visibility="public"
  74451. deprecated="not deprecated">
  74452. <param name="inf" type="org.apache.hadoop.mapreduce.InputFormat"/>
  74453. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  74454. <exception name="IOException" type="java.io.IOException"/>
  74455. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74456. <doc>
  74457. <![CDATA[For each split sampled, emit when the ratio of the number of records
  74458. retained to the total record count is less than the specified
  74459. frequency.]]>
  74460. </doc>
  74461. </method>
  74462. <doc>
  74463. <![CDATA[Sample from s splits at regular intervals.
  74464. Useful for sorted data.]]>
  74465. </doc>
  74466. </class>
  74467. <!-- end class org.apache.hadoop.mapreduce.lib.partition.InputSampler.IntervalSampler -->
  74468. <!-- start class org.apache.hadoop.mapreduce.lib.partition.InputSampler.RandomSampler -->
  74469. <class name="InputSampler.RandomSampler" extends="java.lang.Object"
  74470. abstract="false"
  74471. static="true" final="false" visibility="public"
  74472. deprecated="not deprecated">
  74473. <implements name="org.apache.hadoop.mapreduce.lib.partition.InputSampler.Sampler"/>
  74474. <constructor name="InputSampler.RandomSampler" type="double, int"
  74475. static="false" final="false" visibility="public"
  74476. deprecated="not deprecated">
  74477. <doc>
  74478. <![CDATA[Create a new RandomSampler sampling <em>all</em> splits.
  74479. This will read every split at the client, which is very expensive.
  74480. @param freq Probability with which a key will be chosen.
  74481. @param numSamples Total number of samples to obtain from all selected
  74482. splits.]]>
  74483. </doc>
  74484. </constructor>
  74485. <constructor name="InputSampler.RandomSampler" type="double, int, int"
  74486. static="false" final="false" visibility="public"
  74487. deprecated="not deprecated">
  74488. <doc>
  74489. <![CDATA[Create a new RandomSampler.
  74490. @param freq Probability with which a key will be chosen.
  74491. @param numSamples Total number of samples to obtain from all selected
  74492. splits.
  74493. @param maxSplitsSampled The maximum number of splits to examine.]]>
  74494. </doc>
  74495. </constructor>
  74496. <method name="getSample" return="java.lang.Object[]"
  74497. abstract="false" native="false" synchronized="false"
  74498. static="false" final="false" visibility="public"
  74499. deprecated="not deprecated">
  74500. <param name="inf" type="org.apache.hadoop.mapreduce.InputFormat"/>
  74501. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  74502. <exception name="IOException" type="java.io.IOException"/>
  74503. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74504. <doc>
  74505. <![CDATA[Randomize the split order, then take the specified number of keys from
  74506. each split sampled, where each key is selected with the specified
  74507. probability and possibly replaced by a subsequently selected key when
  74508. the quota of keys from that split is satisfied.]]>
  74509. </doc>
  74510. </method>
  74511. <doc>
  74512. <![CDATA[Sample from random points in the input.
  74513. General-purpose sampler. Takes numSamples / maxSplitsSampled inputs from
  74514. each split.]]>
  74515. </doc>
  74516. </class>
  74517. <!-- end class org.apache.hadoop.mapreduce.lib.partition.InputSampler.RandomSampler -->
  74518. <!-- start interface org.apache.hadoop.mapreduce.lib.partition.InputSampler.Sampler -->
  74519. <interface name="InputSampler.Sampler" abstract="true"
  74520. static="true" final="false" visibility="public"
  74521. deprecated="not deprecated">
  74522. <method name="getSample" return="java.lang.Object[]"
  74523. abstract="false" native="false" synchronized="false"
  74524. static="false" final="false" visibility="public"
  74525. deprecated="not deprecated">
  74526. <param name="inf" type="org.apache.hadoop.mapreduce.InputFormat"/>
  74527. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  74528. <exception name="IOException" type="java.io.IOException"/>
  74529. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74530. <doc>
  74531. <![CDATA[For a given job, collect and return a subset of the keys from the
  74532. input data.]]>
  74533. </doc>
  74534. </method>
  74535. <doc>
  74536. <![CDATA[Interface to sample using an
  74537. {@link org.apache.hadoop.mapreduce.InputFormat}.]]>
  74538. </doc>
  74539. </interface>
  74540. <!-- end interface org.apache.hadoop.mapreduce.lib.partition.InputSampler.Sampler -->
  74541. <!-- start class org.apache.hadoop.mapreduce.lib.partition.InputSampler.SplitSampler -->
  74542. <class name="InputSampler.SplitSampler" extends="java.lang.Object"
  74543. abstract="false"
  74544. static="true" final="false" visibility="public"
  74545. deprecated="not deprecated">
  74546. <implements name="org.apache.hadoop.mapreduce.lib.partition.InputSampler.Sampler"/>
  74547. <constructor name="InputSampler.SplitSampler" type="int"
  74548. static="false" final="false" visibility="public"
  74549. deprecated="not deprecated">
  74550. <doc>
  74551. <![CDATA[Create a SplitSampler sampling <em>all</em> splits.
  74552. Takes the first numSamples / numSplits records from each split.
  74553. @param numSamples Total number of samples to obtain from all selected
  74554. splits.]]>
  74555. </doc>
  74556. </constructor>
  74557. <constructor name="InputSampler.SplitSampler" type="int, int"
  74558. static="false" final="false" visibility="public"
  74559. deprecated="not deprecated">
  74560. <doc>
  74561. <![CDATA[Create a new SplitSampler.
  74562. @param numSamples Total number of samples to obtain from all selected
  74563. splits.
  74564. @param maxSplitsSampled The maximum number of splits to examine.]]>
  74565. </doc>
  74566. </constructor>
  74567. <method name="getSample" return="java.lang.Object[]"
  74568. abstract="false" native="false" synchronized="false"
  74569. static="false" final="false" visibility="public"
  74570. deprecated="not deprecated">
  74571. <param name="inf" type="org.apache.hadoop.mapreduce.InputFormat"/>
  74572. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  74573. <exception name="IOException" type="java.io.IOException"/>
  74574. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74575. <doc>
  74576. <![CDATA[From each split sampled, take the first numSamples / numSplits records.]]>
  74577. </doc>
  74578. </method>
  74579. <doc>
  74580. <![CDATA[Samples the first n records from s splits.
  74581. Inexpensive way to sample random data.]]>
  74582. </doc>
  74583. </class>
  74584. <!-- end class org.apache.hadoop.mapreduce.lib.partition.InputSampler.SplitSampler -->
  74585. <!-- start class org.apache.hadoop.mapreduce.lib.partition.KeyFieldBasedComparator -->
  74586. <class name="KeyFieldBasedComparator" extends="org.apache.hadoop.io.WritableComparator"
  74587. abstract="false"
  74588. static="false" final="false" visibility="public"
  74589. deprecated="not deprecated">
  74590. <implements name="org.apache.hadoop.conf.Configurable"/>
  74591. <constructor name="KeyFieldBasedComparator"
  74592. static="false" final="false" visibility="public"
  74593. deprecated="not deprecated">
  74594. </constructor>
  74595. <method name="setConf"
  74596. abstract="false" native="false" synchronized="false"
  74597. static="false" final="false" visibility="public"
  74598. deprecated="not deprecated">
  74599. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  74600. </method>
  74601. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  74602. abstract="false" native="false" synchronized="false"
  74603. static="false" final="false" visibility="public"
  74604. deprecated="not deprecated">
  74605. </method>
  74606. <method name="compare" return="int"
  74607. abstract="false" native="false" synchronized="false"
  74608. static="false" final="false" visibility="public"
  74609. deprecated="not deprecated">
  74610. <param name="b1" type="byte[]"/>
  74611. <param name="s1" type="int"/>
  74612. <param name="l1" type="int"/>
  74613. <param name="b2" type="byte[]"/>
  74614. <param name="s2" type="int"/>
  74615. <param name="l2" type="int"/>
  74616. </method>
  74617. <method name="setKeyFieldComparatorOptions"
  74618. abstract="false" native="false" synchronized="false"
  74619. static="true" final="false" visibility="public"
  74620. deprecated="not deprecated">
  74621. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  74622. <param name="keySpec" type="java.lang.String"/>
  74623. <doc>
  74624. <![CDATA[Set the {@link KeyFieldBasedComparator} options used to compare keys.
  74625. @param keySpec the key specification of the form -k pos1[,pos2], where,
  74626. pos is of the form f[.c][opts], where f is the number
  74627. of the key field to use, and c is the number of the first character from
  74628. the beginning of the field. Fields and character posns are numbered
  74629. starting with 1; a character position of zero in pos2 indicates the
  74630. field's last character. If '.c' is omitted from pos1, it defaults to 1
  74631. (the beginning of the field); if omitted from pos2, it defaults to 0
  74632. (the end of the field). opts are ordering options. The supported options
  74633. are:
  74634. -n, (Sort numerically)
  74635. -r, (Reverse the result of comparison)]]>
  74636. </doc>
  74637. </method>
  74638. <method name="getKeyFieldComparatorOption" return="java.lang.String"
  74639. abstract="false" native="false" synchronized="false"
  74640. static="true" final="false" visibility="public"
  74641. deprecated="not deprecated">
  74642. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  74643. <doc>
  74644. <![CDATA[Get the {@link KeyFieldBasedComparator} options]]>
  74645. </doc>
  74646. </method>
  74647. <field name="COMPARATOR_OPTIONS" type="java.lang.String"
  74648. transient="false" volatile="false"
  74649. static="true" final="false" visibility="public"
  74650. deprecated="not deprecated">
  74651. </field>
  74652. <doc>
  74653. <![CDATA[This comparator implementation provides a subset of the features provided
  74654. by the Unix/GNU Sort. In particular, the supported features are:
  74655. -n, (Sort numerically)
  74656. -r, (Reverse the result of comparison)
  74657. -k pos1[,pos2], where pos is of the form f[.c][opts], where f is the number
  74658. of the field to use, and c is the number of the first character from the
  74659. beginning of the field. Fields and character posns are numbered starting
  74660. with 1; a character position of zero in pos2 indicates the field's last
  74661. character. If '.c' is omitted from pos1, it defaults to 1 (the beginning
  74662. of the field); if omitted from pos2, it defaults to 0 (the end of the
  74663. field). opts are ordering options (any of 'nr' as described above).
  74664. We assume that the fields in the key are separated by
  74665. mapreduce.map.output.key.field.separator.]]>
  74666. </doc>
  74667. </class>
  74668. <!-- end class org.apache.hadoop.mapreduce.lib.partition.KeyFieldBasedComparator -->
  74669. <!-- start class org.apache.hadoop.mapreduce.lib.partition.KeyFieldBasedPartitioner -->
  74670. <class name="KeyFieldBasedPartitioner" extends="org.apache.hadoop.mapreduce.Partitioner"
  74671. abstract="false"
  74672. static="false" final="false" visibility="public"
  74673. deprecated="not deprecated">
  74674. <implements name="org.apache.hadoop.conf.Configurable"/>
  74675. <constructor name="KeyFieldBasedPartitioner"
  74676. static="false" final="false" visibility="public"
  74677. deprecated="not deprecated">
  74678. </constructor>
  74679. <method name="setConf"
  74680. abstract="false" native="false" synchronized="false"
  74681. static="false" final="false" visibility="public"
  74682. deprecated="not deprecated">
  74683. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  74684. </method>
  74685. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  74686. abstract="false" native="false" synchronized="false"
  74687. static="false" final="false" visibility="public"
  74688. deprecated="not deprecated">
  74689. </method>
  74690. <method name="getPartition" return="int"
  74691. abstract="false" native="false" synchronized="false"
  74692. static="false" final="false" visibility="public"
  74693. deprecated="not deprecated">
  74694. <param name="key" type="java.lang.Object"/>
  74695. <param name="value" type="java.lang.Object"/>
  74696. <param name="numReduceTasks" type="int"/>
  74697. </method>
  74698. <method name="hashCode" return="int"
  74699. abstract="false" native="false" synchronized="false"
  74700. static="false" final="false" visibility="protected"
  74701. deprecated="not deprecated">
  74702. <param name="b" type="byte[]"/>
  74703. <param name="start" type="int"/>
  74704. <param name="end" type="int"/>
  74705. <param name="currentHash" type="int"/>
  74706. </method>
  74707. <method name="getPartition" return="int"
  74708. abstract="false" native="false" synchronized="false"
  74709. static="false" final="false" visibility="protected"
  74710. deprecated="not deprecated">
  74711. <param name="hash" type="int"/>
  74712. <param name="numReduceTasks" type="int"/>
  74713. </method>
  74714. <method name="setKeyFieldPartitionerOptions"
  74715. abstract="false" native="false" synchronized="false"
  74716. static="false" final="false" visibility="public"
  74717. deprecated="not deprecated">
  74718. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  74719. <param name="keySpec" type="java.lang.String"/>
  74720. <doc>
  74721. <![CDATA[Set the {@link KeyFieldBasedPartitioner} options used for
  74722. {@link Partitioner}
  74723. @param keySpec the key specification of the form -k pos1[,pos2], where,
  74724. pos is of the form f[.c][opts], where f is the number
  74725. of the key field to use, and c is the number of the first character from
  74726. the beginning of the field. Fields and character posns are numbered
  74727. starting with 1; a character position of zero in pos2 indicates the
  74728. field's last character. If '.c' is omitted from pos1, it defaults to 1
  74729. (the beginning of the field); if omitted from pos2, it defaults to 0
  74730. (the end of the field).]]>
  74731. </doc>
  74732. </method>
  74733. <method name="getKeyFieldPartitionerOption" return="java.lang.String"
  74734. abstract="false" native="false" synchronized="false"
  74735. static="false" final="false" visibility="public"
  74736. deprecated="not deprecated">
  74737. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  74738. <doc>
  74739. <![CDATA[Get the {@link KeyFieldBasedPartitioner} options]]>
  74740. </doc>
  74741. </method>
  74742. <field name="PARTITIONER_OPTIONS" type="java.lang.String"
  74743. transient="false" volatile="false"
  74744. static="true" final="false" visibility="public"
  74745. deprecated="not deprecated">
  74746. </field>
  74747. <doc>
  74748. <![CDATA[Defines a way to partition keys based on certain key fields (also see
  74749. {@link KeyFieldBasedComparator}.
  74750. The key specification supported is of the form -k pos1[,pos2], where,
  74751. pos is of the form f[.c][opts], where f is the number
  74752. of the key field to use, and c is the number of the first character from
  74753. the beginning of the field. Fields and character posns are numbered
  74754. starting with 1; a character position of zero in pos2 indicates the
  74755. field's last character. If '.c' is omitted from pos1, it defaults to 1
  74756. (the beginning of the field); if omitted from pos2, it defaults to 0
  74757. (the end of the field).]]>
  74758. </doc>
  74759. </class>
  74760. <!-- end class org.apache.hadoop.mapreduce.lib.partition.KeyFieldBasedPartitioner -->
  74761. <!-- start class org.apache.hadoop.mapreduce.lib.partition.TotalOrderPartitioner -->
  74762. <class name="TotalOrderPartitioner" extends="org.apache.hadoop.mapreduce.Partitioner"
  74763. abstract="false"
  74764. static="false" final="false" visibility="public"
  74765. deprecated="not deprecated">
  74766. <implements name="org.apache.hadoop.conf.Configurable"/>
  74767. <constructor name="TotalOrderPartitioner"
  74768. static="false" final="false" visibility="public"
  74769. deprecated="not deprecated">
  74770. </constructor>
  74771. <method name="setConf"
  74772. abstract="false" native="false" synchronized="false"
  74773. static="false" final="false" visibility="public"
  74774. deprecated="not deprecated">
  74775. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  74776. <doc>
  74777. <![CDATA[Read in the partition file and build indexing data structures.
  74778. If the keytype is {@link org.apache.hadoop.io.BinaryComparable} and
  74779. <tt>total.order.partitioner.natural.order</tt> is not false, a trie
  74780. of the first <tt>total.order.partitioner.max.trie.depth</tt>(2) + 1 bytes
  74781. will be built. Otherwise, keys will be located using a binary search of
  74782. the partition keyset using the {@link org.apache.hadoop.io.RawComparator}
  74783. defined for this job. The input file must be sorted with the same
  74784. comparator and contain {@link Job#getNumReduceTasks()} - 1 keys.]]>
  74785. </doc>
  74786. </method>
  74787. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  74788. abstract="false" native="false" synchronized="false"
  74789. static="false" final="false" visibility="public"
  74790. deprecated="not deprecated">
  74791. </method>
  74792. <method name="getPartition" return="int"
  74793. abstract="false" native="false" synchronized="false"
  74794. static="false" final="false" visibility="public"
  74795. deprecated="not deprecated">
  74796. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  74797. <param name="value" type="java.lang.Object"/>
  74798. <param name="numPartitions" type="int"/>
  74799. </method>
  74800. <method name="setPartitionFile"
  74801. abstract="false" native="false" synchronized="false"
  74802. static="true" final="false" visibility="public"
  74803. deprecated="not deprecated">
  74804. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  74805. <param name="p" type="org.apache.hadoop.fs.Path"/>
  74806. <doc>
  74807. <![CDATA[Set the path to the SequenceFile storing the sorted partition keyset.
  74808. It must be the case that for <tt>R</tt> reduces, there are <tt>R-1</tt>
  74809. keys in the SequenceFile.]]>
  74810. </doc>
  74811. </method>
  74812. <method name="getPartitionFile" return="java.lang.String"
  74813. abstract="false" native="false" synchronized="false"
  74814. static="true" final="false" visibility="public"
  74815. deprecated="not deprecated">
  74816. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  74817. <doc>
  74818. <![CDATA[Get the path to the SequenceFile storing the sorted partition keyset.
  74819. @see #setPartitionFile(Configuration, Path)]]>
  74820. </doc>
  74821. </method>
  74822. <field name="DEFAULT_PATH" type="java.lang.String"
  74823. transient="false" volatile="false"
  74824. static="true" final="true" visibility="public"
  74825. deprecated="not deprecated">
  74826. </field>
  74827. <field name="PARTITIONER_PATH" type="java.lang.String"
  74828. transient="false" volatile="false"
  74829. static="true" final="true" visibility="public"
  74830. deprecated="not deprecated">
  74831. </field>
  74832. <field name="MAX_TRIE_DEPTH" type="java.lang.String"
  74833. transient="false" volatile="false"
  74834. static="true" final="true" visibility="public"
  74835. deprecated="not deprecated">
  74836. </field>
  74837. <field name="NATURAL_ORDER" type="java.lang.String"
  74838. transient="false" volatile="false"
  74839. static="true" final="true" visibility="public"
  74840. deprecated="not deprecated">
  74841. </field>
  74842. <doc>
  74843. <![CDATA[Partitioner effecting a total order by reading split points from
  74844. an externally generated source.]]>
  74845. </doc>
  74846. </class>
  74847. <!-- end class org.apache.hadoop.mapreduce.lib.partition.TotalOrderPartitioner -->
  74848. </package>
  74849. <package name="org.apache.hadoop.mapreduce.lib.reduce">
  74850. <!-- start class org.apache.hadoop.mapreduce.lib.reduce.IntSumReducer -->
  74851. <class name="IntSumReducer" extends="org.apache.hadoop.mapreduce.Reducer"
  74852. abstract="false"
  74853. static="false" final="false" visibility="public"
  74854. deprecated="not deprecated">
  74855. <constructor name="IntSumReducer"
  74856. static="false" final="false" visibility="public"
  74857. deprecated="not deprecated">
  74858. </constructor>
  74859. <method name="reduce"
  74860. abstract="false" native="false" synchronized="false"
  74861. static="false" final="false" visibility="public"
  74862. deprecated="not deprecated">
  74863. <param name="key" type="java.lang.Object"/>
  74864. <param name="values" type="java.lang.Iterable"/>
  74865. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  74866. <exception name="IOException" type="java.io.IOException"/>
  74867. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74868. </method>
  74869. </class>
  74870. <!-- end class org.apache.hadoop.mapreduce.lib.reduce.IntSumReducer -->
  74871. <!-- start class org.apache.hadoop.mapreduce.lib.reduce.LongSumReducer -->
  74872. <class name="LongSumReducer" extends="org.apache.hadoop.mapreduce.Reducer"
  74873. abstract="false"
  74874. static="false" final="false" visibility="public"
  74875. deprecated="not deprecated">
  74876. <constructor name="LongSumReducer"
  74877. static="false" final="false" visibility="public"
  74878. deprecated="not deprecated">
  74879. </constructor>
  74880. <method name="reduce"
  74881. abstract="false" native="false" synchronized="false"
  74882. static="false" final="false" visibility="public"
  74883. deprecated="not deprecated">
  74884. <param name="key" type="java.lang.Object"/>
  74885. <param name="values" type="java.lang.Iterable"/>
  74886. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  74887. <exception name="IOException" type="java.io.IOException"/>
  74888. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74889. </method>
  74890. </class>
  74891. <!-- end class org.apache.hadoop.mapreduce.lib.reduce.LongSumReducer -->
  74892. </package>
  74893. <package name="org.apache.hadoop.mapreduce.security">
  74894. <!-- start class org.apache.hadoop.mapreduce.security.SecureShuffleUtils -->
  74895. <class name="SecureShuffleUtils" extends="java.lang.Object"
  74896. abstract="false"
  74897. static="false" final="false" visibility="public"
  74898. deprecated="not deprecated">
  74899. <constructor name="SecureShuffleUtils"
  74900. static="false" final="false" visibility="public"
  74901. deprecated="not deprecated">
  74902. </constructor>
  74903. <method name="generateHash" return="java.lang.String"
  74904. abstract="false" native="false" synchronized="false"
  74905. static="true" final="false" visibility="public"
  74906. deprecated="not deprecated">
  74907. <param name="msg" type="byte[]"/>
  74908. <param name="key" type="javax.crypto.SecretKey"/>
  74909. <doc>
  74910. <![CDATA[Base64 encoded hash of msg
  74911. @param msg]]>
  74912. </doc>
  74913. </method>
  74914. <method name="hashFromString" return="java.lang.String"
  74915. abstract="false" native="false" synchronized="false"
  74916. static="true" final="false" visibility="public"
  74917. deprecated="not deprecated">
  74918. <param name="enc_str" type="java.lang.String"/>
  74919. <param name="key" type="javax.crypto.SecretKey"/>
  74920. <exception name="IOException" type="java.io.IOException"/>
  74921. <doc>
  74922. <![CDATA[Aux util to calculate hash of a String
  74923. @param enc_str
  74924. @param key
  74925. @return Base64 encodedHash
  74926. @throws IOException]]>
  74927. </doc>
  74928. </method>
  74929. <method name="verifyReply"
  74930. abstract="false" native="false" synchronized="false"
  74931. static="true" final="false" visibility="public"
  74932. deprecated="not deprecated">
  74933. <param name="base64Hash" type="java.lang.String"/>
  74934. <param name="msg" type="java.lang.String"/>
  74935. <param name="key" type="javax.crypto.SecretKey"/>
  74936. <exception name="IOException" type="java.io.IOException"/>
  74937. <doc>
  74938. <![CDATA[verify that base64Hash is same as HMacHash(msg)
  74939. @param base64Hash (Base64 encoded hash)
  74940. @param msg
  74941. @throws IOException if not the same]]>
  74942. </doc>
  74943. </method>
  74944. <method name="buildMsgFrom" return="java.lang.String"
  74945. abstract="false" native="false" synchronized="false"
  74946. static="true" final="false" visibility="public"
  74947. deprecated="not deprecated">
  74948. <param name="url" type="java.net.URL"/>
  74949. <doc>
  74950. <![CDATA[Shuffle specific utils - build string for encoding from URL
  74951. @param url
  74952. @return string for encoding]]>
  74953. </doc>
  74954. </method>
  74955. <method name="buildMsgFrom" return="java.lang.String"
  74956. abstract="false" native="false" synchronized="false"
  74957. static="true" final="false" visibility="public"
  74958. deprecated="not deprecated">
  74959. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  74960. <doc>
  74961. <![CDATA[Shuffle specific utils - build string for encoding from URL
  74962. @param request
  74963. @return string for encoding]]>
  74964. </doc>
  74965. </method>
  74966. <method name="toHex" return="java.lang.String"
  74967. abstract="false" native="false" synchronized="false"
  74968. static="true" final="false" visibility="public"
  74969. deprecated="not deprecated">
  74970. <param name="ba" type="byte[]"/>
  74971. <doc>
  74972. <![CDATA[byte array to Hex String
  74973. @param ba
  74974. @return string with HEX value of the key]]>
  74975. </doc>
  74976. </method>
  74977. <field name="HTTP_HEADER_URL_HASH" type="java.lang.String"
  74978. transient="false" volatile="false"
  74979. static="true" final="true" visibility="public"
  74980. deprecated="not deprecated">
  74981. </field>
  74982. <field name="HTTP_HEADER_REPLY_URL_HASH" type="java.lang.String"
  74983. transient="false" volatile="false"
  74984. static="true" final="true" visibility="public"
  74985. deprecated="not deprecated">
  74986. </field>
  74987. <doc>
  74988. <![CDATA[utilities for generating kyes, hashes and verifying them for shuffle]]>
  74989. </doc>
  74990. </class>
  74991. <!-- end class org.apache.hadoop.mapreduce.security.SecureShuffleUtils -->
  74992. <!-- start class org.apache.hadoop.mapreduce.security.TokenCache -->
  74993. <class name="TokenCache" extends="java.lang.Object"
  74994. abstract="false"
  74995. static="false" final="false" visibility="public"
  74996. deprecated="not deprecated">
  74997. <constructor name="TokenCache"
  74998. static="false" final="false" visibility="public"
  74999. deprecated="not deprecated">
  75000. </constructor>
  75001. <method name="getSecretKey" return="byte[]"
  75002. abstract="false" native="false" synchronized="false"
  75003. static="true" final="false" visibility="public"
  75004. deprecated="not deprecated">
  75005. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  75006. <param name="alias" type="org.apache.hadoop.io.Text"/>
  75007. <doc>
  75008. <![CDATA[auxiliary method to get user's secret keys..
  75009. @param alias
  75010. @return secret key from the storage]]>
  75011. </doc>
  75012. </method>
  75013. <method name="obtainTokensForNamenodes"
  75014. abstract="false" native="false" synchronized="false"
  75015. static="true" final="false" visibility="public"
  75016. deprecated="not deprecated">
  75017. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  75018. <param name="ps" type="org.apache.hadoop.fs.Path[]"/>
  75019. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  75020. <exception name="IOException" type="java.io.IOException"/>
  75021. <doc>
  75022. <![CDATA[Convenience method to obtain delegation tokens from namenodes
  75023. corresponding to the paths passed.
  75024. @param ps array of paths
  75025. @param conf configuration
  75026. @throws IOException]]>
  75027. </doc>
  75028. </method>
  75029. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  75030. abstract="false" native="false" synchronized="false"
  75031. static="true" final="false" visibility="public"
  75032. deprecated="not deprecated">
  75033. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  75034. <param name="namenode" type="java.lang.String"/>
  75035. <doc>
  75036. <![CDATA[@param namenode
  75037. @return delegation token]]>
  75038. </doc>
  75039. </method>
  75040. <method name="loadTokens" return="org.apache.hadoop.security.Credentials"
  75041. abstract="false" native="false" synchronized="false"
  75042. static="true" final="false" visibility="public"
  75043. deprecated="not deprecated">
  75044. <param name="jobTokenFile" type="java.lang.String"/>
  75045. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  75046. <exception name="IOException" type="java.io.IOException"/>
  75047. <doc>
  75048. <![CDATA[load job token from a file
  75049. @param conf
  75050. @throws IOException]]>
  75051. </doc>
  75052. </method>
  75053. <method name="setJobToken"
  75054. abstract="false" native="false" synchronized="false"
  75055. static="true" final="false" visibility="public"
  75056. deprecated="not deprecated">
  75057. <param name="t" type="org.apache.hadoop.security.token.Token"/>
  75058. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  75059. <doc>
  75060. <![CDATA[store job token
  75061. @param t]]>
  75062. </doc>
  75063. </method>
  75064. <method name="getJobToken" return="org.apache.hadoop.security.token.Token"
  75065. abstract="false" native="false" synchronized="false"
  75066. static="true" final="false" visibility="public"
  75067. deprecated="not deprecated">
  75068. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  75069. <doc>
  75070. <![CDATA[@return job token]]>
  75071. </doc>
  75072. </method>
  75073. <field name="JOB_TOKEN_HDFS_FILE" type="java.lang.String"
  75074. transient="false" volatile="false"
  75075. static="true" final="true" visibility="public"
  75076. deprecated="not deprecated">
  75077. <doc>
  75078. <![CDATA[file name used on HDFS for generated job token]]>
  75079. </doc>
  75080. </field>
  75081. <field name="JOB_TOKENS_FILENAME" type="java.lang.String"
  75082. transient="false" volatile="false"
  75083. static="true" final="true" visibility="public"
  75084. deprecated="not deprecated">
  75085. <doc>
  75086. <![CDATA[conf setting for job tokens cache file name]]>
  75087. </doc>
  75088. </field>
  75089. <doc>
  75090. <![CDATA[This class provides user facing APIs for transferring secrets from
  75091. the job client to the tasks.
  75092. The secrets can be stored just before submission of jobs and read during
  75093. the task execution.]]>
  75094. </doc>
  75095. </class>
  75096. <!-- end class org.apache.hadoop.mapreduce.security.TokenCache -->
  75097. </package>
  75098. <package name="org.apache.hadoop.mapreduce.security.token">
  75099. <!-- start class org.apache.hadoop.mapreduce.security.token.DelegationTokenRenewal -->
  75100. <class name="DelegationTokenRenewal" extends="java.lang.Object"
  75101. abstract="false"
  75102. static="false" final="false" visibility="public"
  75103. deprecated="not deprecated">
  75104. <constructor name="DelegationTokenRenewal"
  75105. static="false" final="false" visibility="public"
  75106. deprecated="not deprecated">
  75107. </constructor>
  75108. <method name="registerDelegationTokensForRenewal"
  75109. abstract="false" native="false" synchronized="true"
  75110. static="true" final="false" visibility="public"
  75111. deprecated="not deprecated">
  75112. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  75113. <param name="ts" type="org.apache.hadoop.security.Credentials"/>
  75114. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  75115. <exception name="IOException" type="java.io.IOException"/>
  75116. </method>
  75117. <method name="close"
  75118. abstract="false" native="false" synchronized="false"
  75119. static="true" final="false" visibility="public"
  75120. deprecated="not deprecated">
  75121. <doc>
  75122. <![CDATA[removing all tokens renewals]]>
  75123. </doc>
  75124. </method>
  75125. <method name="removeDelegationTokenRenewalForJob"
  75126. abstract="false" native="false" synchronized="false"
  75127. static="true" final="false" visibility="public"
  75128. deprecated="not deprecated">
  75129. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  75130. <doc>
  75131. <![CDATA[removing DT for completed jobs
  75132. @param jobId]]>
  75133. </doc>
  75134. </method>
  75135. <field name="SCHEME" type="java.lang.String"
  75136. transient="false" volatile="false"
  75137. static="true" final="true" visibility="public"
  75138. deprecated="not deprecated">
  75139. </field>
  75140. </class>
  75141. <!-- end class org.apache.hadoop.mapreduce.security.token.DelegationTokenRenewal -->
  75142. <!-- start class org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier -->
  75143. <class name="JobTokenIdentifier" extends="org.apache.hadoop.security.token.TokenIdentifier"
  75144. abstract="false"
  75145. static="false" final="false" visibility="public"
  75146. deprecated="not deprecated">
  75147. <constructor name="JobTokenIdentifier"
  75148. static="false" final="false" visibility="public"
  75149. deprecated="not deprecated">
  75150. <doc>
  75151. <![CDATA[Default constructor]]>
  75152. </doc>
  75153. </constructor>
  75154. <constructor name="JobTokenIdentifier" type="org.apache.hadoop.io.Text"
  75155. static="false" final="false" visibility="public"
  75156. deprecated="not deprecated">
  75157. <doc>
  75158. <![CDATA[Create a job token identifier from a jobid
  75159. @param jobid the jobid to use]]>
  75160. </doc>
  75161. </constructor>
  75162. <method name="getKind" return="org.apache.hadoop.io.Text"
  75163. abstract="false" native="false" synchronized="false"
  75164. static="false" final="false" visibility="public"
  75165. deprecated="not deprecated">
  75166. <doc>
  75167. <![CDATA[{@inheritDoc}]]>
  75168. </doc>
  75169. </method>
  75170. <method name="getUser" return="org.apache.hadoop.security.UserGroupInformation"
  75171. abstract="false" native="false" synchronized="false"
  75172. static="false" final="false" visibility="public"
  75173. deprecated="not deprecated">
  75174. <doc>
  75175. <![CDATA[{@inheritDoc}]]>
  75176. </doc>
  75177. </method>
  75178. <method name="getJobId" return="org.apache.hadoop.io.Text"
  75179. abstract="false" native="false" synchronized="false"
  75180. static="false" final="false" visibility="public"
  75181. deprecated="not deprecated">
  75182. <doc>
  75183. <![CDATA[Get the jobid
  75184. @return the jobid]]>
  75185. </doc>
  75186. </method>
  75187. <method name="readFields"
  75188. abstract="false" native="false" synchronized="false"
  75189. static="false" final="false" visibility="public"
  75190. deprecated="not deprecated">
  75191. <param name="in" type="java.io.DataInput"/>
  75192. <exception name="IOException" type="java.io.IOException"/>
  75193. <doc>
  75194. <![CDATA[{@inheritDoc}]]>
  75195. </doc>
  75196. </method>
  75197. <method name="write"
  75198. abstract="false" native="false" synchronized="false"
  75199. static="false" final="false" visibility="public"
  75200. deprecated="not deprecated">
  75201. <param name="out" type="java.io.DataOutput"/>
  75202. <exception name="IOException" type="java.io.IOException"/>
  75203. <doc>
  75204. <![CDATA[{@inheritDoc}]]>
  75205. </doc>
  75206. </method>
  75207. <field name="KIND_NAME" type="org.apache.hadoop.io.Text"
  75208. transient="false" volatile="false"
  75209. static="true" final="true" visibility="public"
  75210. deprecated="not deprecated">
  75211. </field>
  75212. <doc>
  75213. <![CDATA[The token identifier for job token]]>
  75214. </doc>
  75215. </class>
  75216. <!-- end class org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier -->
  75217. <!-- start class org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier.Renewer -->
  75218. <class name="JobTokenIdentifier.Renewer" extends="org.apache.hadoop.security.token.Token.TrivialRenewer"
  75219. abstract="false"
  75220. static="true" final="false" visibility="public"
  75221. deprecated="not deprecated">
  75222. <constructor name="JobTokenIdentifier.Renewer"
  75223. static="false" final="false" visibility="public"
  75224. deprecated="not deprecated">
  75225. </constructor>
  75226. <method name="getKind" return="org.apache.hadoop.io.Text"
  75227. abstract="false" native="false" synchronized="false"
  75228. static="false" final="false" visibility="protected"
  75229. deprecated="not deprecated">
  75230. </method>
  75231. </class>
  75232. <!-- end class org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier.Renewer -->
  75233. <!-- start class org.apache.hadoop.mapreduce.security.token.JobTokenSecretManager -->
  75234. <class name="JobTokenSecretManager" extends="org.apache.hadoop.security.token.SecretManager"
  75235. abstract="false"
  75236. static="false" final="false" visibility="public"
  75237. deprecated="not deprecated">
  75238. <constructor name="JobTokenSecretManager"
  75239. static="false" final="false" visibility="public"
  75240. deprecated="not deprecated">
  75241. <doc>
  75242. <![CDATA[Default constructor]]>
  75243. </doc>
  75244. </constructor>
  75245. <method name="createSecretKey" return="javax.crypto.SecretKey"
  75246. abstract="false" native="false" synchronized="false"
  75247. static="true" final="false" visibility="public"
  75248. deprecated="not deprecated">
  75249. <param name="key" type="byte[]"/>
  75250. <doc>
  75251. <![CDATA[Convert the byte[] to a secret key
  75252. @param key the byte[] to create the secret key from
  75253. @return the secret key]]>
  75254. </doc>
  75255. </method>
  75256. <method name="computeHash" return="byte[]"
  75257. abstract="false" native="false" synchronized="false"
  75258. static="true" final="false" visibility="public"
  75259. deprecated="not deprecated">
  75260. <param name="msg" type="byte[]"/>
  75261. <param name="key" type="javax.crypto.SecretKey"/>
  75262. <doc>
  75263. <![CDATA[Compute the HMAC hash of the message using the key
  75264. @param msg the message to hash
  75265. @param key the key to use
  75266. @return the computed hash]]>
  75267. </doc>
  75268. </method>
  75269. <method name="createPassword" return="byte[]"
  75270. abstract="false" native="false" synchronized="false"
  75271. static="false" final="false" visibility="public"
  75272. deprecated="not deprecated">
  75273. <param name="identifier" type="org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier"/>
  75274. <doc>
  75275. <![CDATA[Create a new password/secret for the given job token identifier.
  75276. @param identifier the job token identifier
  75277. @return token password/secret]]>
  75278. </doc>
  75279. </method>
  75280. <method name="addTokenForJob"
  75281. abstract="false" native="false" synchronized="false"
  75282. static="false" final="false" visibility="public"
  75283. deprecated="not deprecated">
  75284. <param name="jobId" type="java.lang.String"/>
  75285. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  75286. <doc>
  75287. <![CDATA[Add the job token of a job to cache
  75288. @param jobId the job that owns the token
  75289. @param token the job token]]>
  75290. </doc>
  75291. </method>
  75292. <method name="removeTokenForJob"
  75293. abstract="false" native="false" synchronized="false"
  75294. static="false" final="false" visibility="public"
  75295. deprecated="not deprecated">
  75296. <param name="jobId" type="java.lang.String"/>
  75297. <doc>
  75298. <![CDATA[Remove the cached job token of a job from cache
  75299. @param jobId the job whose token is to be removed]]>
  75300. </doc>
  75301. </method>
  75302. <method name="retrieveTokenSecret" return="javax.crypto.SecretKey"
  75303. abstract="false" native="false" synchronized="false"
  75304. static="false" final="false" visibility="public"
  75305. deprecated="not deprecated">
  75306. <param name="jobId" type="java.lang.String"/>
  75307. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  75308. <doc>
  75309. <![CDATA[Look up the token password/secret for the given jobId.
  75310. @param jobId the jobId to look up
  75311. @return token password/secret as SecretKey
  75312. @throws InvalidToken]]>
  75313. </doc>
  75314. </method>
  75315. <method name="retrievePassword" return="byte[]"
  75316. abstract="false" native="false" synchronized="false"
  75317. static="false" final="false" visibility="public"
  75318. deprecated="not deprecated">
  75319. <param name="identifier" type="org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier"/>
  75320. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  75321. <doc>
  75322. <![CDATA[Look up the token password/secret for the given job token identifier.
  75323. @param identifier the job token identifier to look up
  75324. @return token password/secret as byte[]
  75325. @throws InvalidToken]]>
  75326. </doc>
  75327. </method>
  75328. <method name="createIdentifier" return="org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier"
  75329. abstract="false" native="false" synchronized="false"
  75330. static="false" final="false" visibility="public"
  75331. deprecated="not deprecated">
  75332. <doc>
  75333. <![CDATA[Create an empty job token identifier
  75334. @return a newly created empty job token identifier]]>
  75335. </doc>
  75336. </method>
  75337. <doc>
  75338. <![CDATA[SecretManager for job token. It can be used to cache generated job tokens.]]>
  75339. </doc>
  75340. </class>
  75341. <!-- end class org.apache.hadoop.mapreduce.security.token.JobTokenSecretManager -->
  75342. <!-- start class org.apache.hadoop.mapreduce.security.token.JobTokenSelector -->
  75343. <class name="JobTokenSelector" extends="java.lang.Object"
  75344. abstract="false"
  75345. static="false" final="false" visibility="public"
  75346. deprecated="not deprecated">
  75347. <implements name="org.apache.hadoop.security.token.TokenSelector"/>
  75348. <constructor name="JobTokenSelector"
  75349. static="false" final="false" visibility="public"
  75350. deprecated="not deprecated">
  75351. </constructor>
  75352. <method name="selectToken" return="org.apache.hadoop.security.token.Token"
  75353. abstract="false" native="false" synchronized="false"
  75354. static="false" final="false" visibility="public"
  75355. deprecated="not deprecated">
  75356. <param name="service" type="org.apache.hadoop.io.Text"/>
  75357. <param name="tokens" type="java.util.Collection"/>
  75358. </method>
  75359. <doc>
  75360. <![CDATA[Look through tokens to find the first job token that matches the service
  75361. and return it.]]>
  75362. </doc>
  75363. </class>
  75364. <!-- end class org.apache.hadoop.mapreduce.security.token.JobTokenSelector -->
  75365. </package>
  75366. <package name="org.apache.hadoop.mapreduce.security.token.delegation">
  75367. <!-- start class org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenIdentifier -->
  75368. <class name="DelegationTokenIdentifier" extends="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier"
  75369. abstract="false"
  75370. static="false" final="false" visibility="public"
  75371. deprecated="not deprecated">
  75372. <constructor name="DelegationTokenIdentifier"
  75373. static="false" final="false" visibility="public"
  75374. deprecated="not deprecated">
  75375. <doc>
  75376. <![CDATA[Create an empty delegation token identifier for reading into.]]>
  75377. </doc>
  75378. </constructor>
  75379. <constructor name="DelegationTokenIdentifier" type="org.apache.hadoop.io.Text, org.apache.hadoop.io.Text, org.apache.hadoop.io.Text"
  75380. static="false" final="false" visibility="public"
  75381. deprecated="not deprecated">
  75382. <doc>
  75383. <![CDATA[Create a new delegation token identifier
  75384. @param owner the effective username of the token owner
  75385. @param renewer the username of the renewer
  75386. @param realUser the real username of the token owner]]>
  75387. </doc>
  75388. </constructor>
  75389. <method name="getKind" return="org.apache.hadoop.io.Text"
  75390. abstract="false" native="false" synchronized="false"
  75391. static="false" final="false" visibility="public"
  75392. deprecated="not deprecated">
  75393. </method>
  75394. <field name="MAPREDUCE_DELEGATION_KIND" type="org.apache.hadoop.io.Text"
  75395. transient="false" volatile="false"
  75396. static="true" final="true" visibility="public"
  75397. deprecated="not deprecated">
  75398. </field>
  75399. <doc>
  75400. <![CDATA[A delegation token identifier that is specific to MapReduce.]]>
  75401. </doc>
  75402. </class>
  75403. <!-- end class org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenIdentifier -->
  75404. <!-- start class org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenSecretManager -->
  75405. <class name="DelegationTokenSecretManager" extends="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager"
  75406. abstract="false"
  75407. static="false" final="false" visibility="public"
  75408. deprecated="not deprecated">
  75409. <constructor name="DelegationTokenSecretManager" type="long, long, long, long"
  75410. static="false" final="false" visibility="public"
  75411. deprecated="not deprecated">
  75412. <doc>
  75413. <![CDATA[Create a secret manager
  75414. @param delegationKeyUpdateInterval the number of seconds for rolling new
  75415. secret keys.
  75416. @param delegationTokenMaxLifetime the maximum lifetime of the delegation
  75417. tokens
  75418. @param delegationTokenRenewInterval how often the tokens must be renewed
  75419. @param delegationTokenRemoverScanInterval how often the tokens are scanned
  75420. for expired tokens]]>
  75421. </doc>
  75422. </constructor>
  75423. <method name="createIdentifier" return="org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenIdentifier"
  75424. abstract="false" native="false" synchronized="false"
  75425. static="false" final="false" visibility="public"
  75426. deprecated="not deprecated">
  75427. </method>
  75428. <doc>
  75429. <![CDATA[A MapReduce specific delegation token secret manager.
  75430. The secret manager is responsible for generating and accepting the password
  75431. for each token.]]>
  75432. </doc>
  75433. </class>
  75434. <!-- end class org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenSecretManager -->
  75435. <!-- start class org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenSelector -->
  75436. <class name="DelegationTokenSelector" extends="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSelector"
  75437. abstract="false"
  75438. static="false" final="false" visibility="public"
  75439. deprecated="not deprecated">
  75440. <constructor name="DelegationTokenSelector"
  75441. static="false" final="false" visibility="public"
  75442. deprecated="not deprecated">
  75443. </constructor>
  75444. <doc>
  75445. <![CDATA[A delegation token that is specialized for MapReduce]]>
  75446. </doc>
  75447. </class>
  75448. <!-- end class org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenSelector -->
  75449. </package>
  75450. <package name="org.apache.hadoop.mapreduce.server.jobtracker">
  75451. <!-- start class org.apache.hadoop.mapreduce.server.jobtracker.TaskTracker -->
  75452. <class name="TaskTracker" extends="java.lang.Object"
  75453. abstract="false"
  75454. static="false" final="false" visibility="public"
  75455. deprecated="not deprecated">
  75456. <constructor name="TaskTracker" type="java.lang.String"
  75457. static="false" final="false" visibility="public"
  75458. deprecated="not deprecated">
  75459. <doc>
  75460. <![CDATA[Create a new {@link TaskTracker}.
  75461. @param trackerName Unique identifier for the <code>TaskTracker</code>]]>
  75462. </doc>
  75463. </constructor>
  75464. <method name="getTrackerName" return="java.lang.String"
  75465. abstract="false" native="false" synchronized="false"
  75466. static="false" final="false" visibility="public"
  75467. deprecated="not deprecated">
  75468. <doc>
  75469. <![CDATA[Get the unique identifier for the {@link TaskTracker}
  75470. @return the unique identifier for the <code>TaskTracker</code>]]>
  75471. </doc>
  75472. </method>
  75473. <method name="getStatus" return="org.apache.hadoop.mapred.TaskTrackerStatus"
  75474. abstract="false" native="false" synchronized="false"
  75475. static="false" final="false" visibility="public"
  75476. deprecated="not deprecated">
  75477. <doc>
  75478. <![CDATA[Get the current {@link TaskTrackerStatus} of the <code>TaskTracker</code>.
  75479. @return the current <code>TaskTrackerStatus</code> of the
  75480. <code>TaskTracker</code>]]>
  75481. </doc>
  75482. </method>
  75483. <method name="setStatus"
  75484. abstract="false" native="false" synchronized="false"
  75485. static="false" final="false" visibility="public"
  75486. deprecated="not deprecated">
  75487. <param name="status" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  75488. <doc>
  75489. <![CDATA[Set the current {@link TaskTrackerStatus} of the <code>TaskTracker</code>.
  75490. @param status the current <code>TaskTrackerStatus</code> of the
  75491. <code>TaskTracker</code>]]>
  75492. </doc>
  75493. </method>
  75494. <method name="getAvailableSlots" return="int"
  75495. abstract="false" native="false" synchronized="false"
  75496. static="false" final="false" visibility="public"
  75497. deprecated="not deprecated">
  75498. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  75499. <doc>
  75500. <![CDATA[Get the number of currently available slots on this tasktracker for the
  75501. given type of the task.
  75502. @param taskType the {@link TaskType} to check for number of available slots
  75503. @return the number of currently available slots for the given
  75504. <code>taskType</code>]]>
  75505. </doc>
  75506. </method>
  75507. <method name="getJobForFallowSlot" return="org.apache.hadoop.mapred.JobInProgress"
  75508. abstract="false" native="false" synchronized="false"
  75509. static="false" final="false" visibility="public"
  75510. deprecated="not deprecated">
  75511. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  75512. <doc>
  75513. <![CDATA[Get the {@link JobInProgress} for which the fallow slot(s) are held.
  75514. @param taskType {@link TaskType} of the task
  75515. @return the task for which the fallow slot(s) are held,
  75516. <code>null</code> if there are no fallow slots]]>
  75517. </doc>
  75518. </method>
  75519. <method name="reserveSlots"
  75520. abstract="false" native="false" synchronized="false"
  75521. static="false" final="false" visibility="public"
  75522. deprecated="not deprecated">
  75523. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  75524. <param name="job" type="org.apache.hadoop.mapred.JobInProgress"/>
  75525. <param name="numSlots" type="int"/>
  75526. <doc>
  75527. <![CDATA[Reserve specified number of slots for a given <code>job</code>.
  75528. @param taskType {@link TaskType} of the task
  75529. @param job the job for which slots on this <code>TaskTracker</code>
  75530. are to be reserved
  75531. @param numSlots number of slots to be reserved]]>
  75532. </doc>
  75533. </method>
  75534. <method name="unreserveSlots"
  75535. abstract="false" native="false" synchronized="false"
  75536. static="false" final="false" visibility="public"
  75537. deprecated="not deprecated">
  75538. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  75539. <param name="job" type="org.apache.hadoop.mapred.JobInProgress"/>
  75540. <doc>
  75541. <![CDATA[Free map slots on this <code>TaskTracker</code> which were reserved for
  75542. <code>taskType</code>.
  75543. @param taskType {@link TaskType} of the task
  75544. @param job job whose slots are being un-reserved]]>
  75545. </doc>
  75546. </method>
  75547. <method name="cancelAllReservations"
  75548. abstract="false" native="false" synchronized="false"
  75549. static="false" final="false" visibility="public"
  75550. deprecated="not deprecated">
  75551. <doc>
  75552. <![CDATA[Cleanup when the {@link TaskTracker} is declared as 'lost/blacklisted'
  75553. by the JobTracker.
  75554. The method assumes that the lock on the {@link JobTracker} is obtained
  75555. by the caller.]]>
  75556. </doc>
  75557. </method>
  75558. <doc>
  75559. <![CDATA[The representation of a single <code>TaskTracker</code> as seen by
  75560. the {@link JobTracker}.]]>
  75561. </doc>
  75562. </class>
  75563. <!-- end class org.apache.hadoop.mapreduce.server.jobtracker.TaskTracker -->
  75564. </package>
  75565. <package name="org.apache.hadoop.mapreduce.server.tasktracker">
  75566. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.JVMInfo -->
  75567. <class name="JVMInfo" extends="java.lang.Object"
  75568. abstract="false"
  75569. static="false" final="false" visibility="public"
  75570. deprecated="not deprecated">
  75571. <constructor name="JVMInfo" type="java.io.File, java.util.List"
  75572. static="false" final="false" visibility="public"
  75573. deprecated="not deprecated">
  75574. </constructor>
  75575. <method name="getLogLocation" return="java.io.File"
  75576. abstract="false" native="false" synchronized="false"
  75577. static="false" final="false" visibility="public"
  75578. deprecated="not deprecated">
  75579. </method>
  75580. <method name="getAllAttempts" return="java.util.List"
  75581. abstract="false" native="false" synchronized="false"
  75582. static="false" final="false" visibility="public"
  75583. deprecated="not deprecated">
  75584. </method>
  75585. </class>
  75586. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.JVMInfo -->
  75587. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.Localizer -->
  75588. <class name="Localizer" extends="java.lang.Object"
  75589. abstract="false"
  75590. static="false" final="false" visibility="public"
  75591. deprecated="not deprecated">
  75592. <constructor name="Localizer" type="org.apache.hadoop.fs.FileSystem, java.lang.String[]"
  75593. static="false" final="false" visibility="public"
  75594. deprecated="not deprecated">
  75595. <doc>
  75596. <![CDATA[Create a Localizer instance
  75597. @param fileSys
  75598. @param lDirs]]>
  75599. </doc>
  75600. </constructor>
  75601. <method name="initializeUserDirs"
  75602. abstract="false" native="false" synchronized="false"
  75603. static="false" final="false" visibility="public"
  75604. deprecated="not deprecated">
  75605. <param name="user" type="java.lang.String"/>
  75606. <exception name="IOException" type="java.io.IOException"/>
  75607. <doc>
  75608. <![CDATA[Initialize the local directories for a particular user on this TT. This
  75609. involves creation and setting permissions of the following directories
  75610. <ul>
  75611. <li>$mapred.local.dir/taskTracker/$user</li>
  75612. <li>$mapred.local.dir/taskTracker/$user/jobcache</li>
  75613. <li>$mapred.local.dir/taskTracker/$user/distcache</li>
  75614. </ul>
  75615. @param user
  75616. @throws IOException]]>
  75617. </doc>
  75618. </method>
  75619. <method name="initializeAttemptDirs"
  75620. abstract="false" native="false" synchronized="false"
  75621. static="false" final="false" visibility="public"
  75622. deprecated="not deprecated">
  75623. <param name="user" type="java.lang.String"/>
  75624. <param name="jobId" type="java.lang.String"/>
  75625. <param name="attemptId" type="java.lang.String"/>
  75626. <exception name="IOException" type="java.io.IOException"/>
  75627. <doc>
  75628. <![CDATA[Create taskDirs on all the disks. Otherwise, in some cases, like when
  75629. LinuxTaskController is in use, child might wish to balance load across
  75630. disks but cannot itself create attempt directory because of the fact that
  75631. job directory is writable only by the TT.
  75632. @param user
  75633. @param jobId
  75634. @param attemptId
  75635. @throws IOException]]>
  75636. </doc>
  75637. </method>
  75638. <doc>
  75639. <![CDATA[NOTE: This class is internal only and not intended for users!!]]>
  75640. </doc>
  75641. </class>
  75642. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.Localizer -->
  75643. </package>
  75644. <package name="org.apache.hadoop.mapreduce.server.tasktracker.userlogs">
  75645. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.DeleteJobEvent -->
  75646. <class name="DeleteJobEvent" extends="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent"
  75647. abstract="false"
  75648. static="false" final="false" visibility="public"
  75649. deprecated="not deprecated">
  75650. <constructor name="DeleteJobEvent" type="org.apache.hadoop.mapreduce.JobID"
  75651. static="false" final="false" visibility="public"
  75652. deprecated="not deprecated">
  75653. <doc>
  75654. <![CDATA[Create the event to delete job log directory.
  75655. @param jobid
  75656. The {@link JobID} whose logs should be deleted.]]>
  75657. </doc>
  75658. </constructor>
  75659. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  75660. abstract="false" native="false" synchronized="false"
  75661. static="false" final="false" visibility="public"
  75662. deprecated="not deprecated">
  75663. <doc>
  75664. <![CDATA[Get the jobid.
  75665. @return object of {@link JobID}]]>
  75666. </doc>
  75667. </method>
  75668. <doc>
  75669. <![CDATA[This is an {@link UserLogEvent} sent when job logs should be deleted.]]>
  75670. </doc>
  75671. </class>
  75672. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.DeleteJobEvent -->
  75673. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JobCompletedEvent -->
  75674. <class name="JobCompletedEvent" extends="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent"
  75675. abstract="false"
  75676. static="false" final="false" visibility="public"
  75677. deprecated="not deprecated">
  75678. <constructor name="JobCompletedEvent" type="org.apache.hadoop.mapreduce.JobID, long, int"
  75679. static="false" final="false" visibility="public"
  75680. deprecated="not deprecated">
  75681. <doc>
  75682. <![CDATA[Create the event for job completion.
  75683. @param jobid
  75684. The completed {@link JobID} .
  75685. @param jobCompletionTime
  75686. The job completion time.
  75687. @param retainHours
  75688. The number of hours for which the job logs should be retained]]>
  75689. </doc>
  75690. </constructor>
  75691. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  75692. abstract="false" native="false" synchronized="false"
  75693. static="false" final="false" visibility="public"
  75694. deprecated="not deprecated">
  75695. <doc>
  75696. <![CDATA[Get the job id.
  75697. @return object of {@link JobID}]]>
  75698. </doc>
  75699. </method>
  75700. <method name="getJobCompletionTime" return="long"
  75701. abstract="false" native="false" synchronized="false"
  75702. static="false" final="false" visibility="public"
  75703. deprecated="not deprecated">
  75704. <doc>
  75705. <![CDATA[Get the job completion time-stamp in milli-seconds.
  75706. @return job completion time.]]>
  75707. </doc>
  75708. </method>
  75709. <method name="getRetainHours" return="int"
  75710. abstract="false" native="false" synchronized="false"
  75711. static="false" final="false" visibility="public"
  75712. deprecated="not deprecated">
  75713. <doc>
  75714. <![CDATA[Get the number of hours for which job logs should be retained.
  75715. @return retainHours]]>
  75716. </doc>
  75717. </method>
  75718. <doc>
  75719. <![CDATA[This is an {@link UserLogEvent} sent when the job completes]]>
  75720. </doc>
  75721. </class>
  75722. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JobCompletedEvent -->
  75723. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JobStartedEvent -->
  75724. <class name="JobStartedEvent" extends="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent"
  75725. abstract="false"
  75726. static="false" final="false" visibility="public"
  75727. deprecated="not deprecated">
  75728. <constructor name="JobStartedEvent" type="org.apache.hadoop.mapreduce.JobID"
  75729. static="false" final="false" visibility="public"
  75730. deprecated="not deprecated">
  75731. <doc>
  75732. <![CDATA[Create the event to inform the job has started.
  75733. @param jobid
  75734. The {@link JobID} which started]]>
  75735. </doc>
  75736. </constructor>
  75737. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  75738. abstract="false" native="false" synchronized="false"
  75739. static="false" final="false" visibility="public"
  75740. deprecated="not deprecated">
  75741. <doc>
  75742. <![CDATA[Get the job id.
  75743. @return object of {@link JobID}]]>
  75744. </doc>
  75745. </method>
  75746. <doc>
  75747. <![CDATA[This is an {@link UserLogEvent} sent when the job starts.]]>
  75748. </doc>
  75749. </class>
  75750. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JobStartedEvent -->
  75751. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JvmFinishedEvent -->
  75752. <class name="JvmFinishedEvent" extends="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent"
  75753. abstract="false"
  75754. static="false" final="false" visibility="public"
  75755. deprecated="not deprecated">
  75756. <constructor name="JvmFinishedEvent" type="org.apache.hadoop.mapreduce.server.tasktracker.JVMInfo"
  75757. static="false" final="false" visibility="public"
  75758. deprecated="not deprecated">
  75759. <doc>
  75760. <![CDATA[Create the event to inform that the jvm has finished.
  75761. @param jvmInfo
  75762. The finished {@link JVMInfo}]]>
  75763. </doc>
  75764. </constructor>
  75765. <method name="getJvmInfo" return="org.apache.hadoop.mapreduce.server.tasktracker.JVMInfo"
  75766. abstract="false" native="false" synchronized="false"
  75767. static="false" final="false" visibility="public"
  75768. deprecated="not deprecated">
  75769. <doc>
  75770. <![CDATA[Get the jvm info.
  75771. @return object of {@link JVMInfo}]]>
  75772. </doc>
  75773. </method>
  75774. <doc>
  75775. <![CDATA[This is an {@link UserLogEvent} sent when the jvm finishes.]]>
  75776. </doc>
  75777. </class>
  75778. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JvmFinishedEvent -->
  75779. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent -->
  75780. <class name="UserLogEvent" extends="java.lang.Object"
  75781. abstract="true"
  75782. static="false" final="false" visibility="public"
  75783. deprecated="not deprecated">
  75784. <constructor name="UserLogEvent" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  75785. static="false" final="false" visibility="protected"
  75786. deprecated="not deprecated">
  75787. </constructor>
  75788. <method name="getEventType" return="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  75789. abstract="false" native="false" synchronized="false"
  75790. static="false" final="false" visibility="public"
  75791. deprecated="not deprecated">
  75792. <doc>
  75793. <![CDATA[Return the {@link EventType}.
  75794. @return the {@link EventType}.]]>
  75795. </doc>
  75796. </method>
  75797. <doc>
  75798. <![CDATA[A directive from the various components of {@link TaskTracker} to the
  75799. {@link UserLogManager} to inform about an event.]]>
  75800. </doc>
  75801. </class>
  75802. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent -->
  75803. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType -->
  75804. <class name="UserLogEvent.EventType" extends="java.lang.Enum"
  75805. abstract="false"
  75806. static="true" final="true" visibility="public"
  75807. deprecated="not deprecated">
  75808. <method name="values" return="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType[]"
  75809. abstract="false" native="false" synchronized="false"
  75810. static="true" final="false" visibility="public"
  75811. deprecated="not deprecated">
  75812. </method>
  75813. <method name="valueOf" return="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  75814. abstract="false" native="false" synchronized="false"
  75815. static="true" final="false" visibility="public"
  75816. deprecated="not deprecated">
  75817. <param name="name" type="java.lang.String"/>
  75818. </method>
  75819. <field name="JVM_FINISHED" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  75820. transient="false" volatile="false"
  75821. static="true" final="true" visibility="public"
  75822. deprecated="not deprecated">
  75823. </field>
  75824. <field name="JOB_STARTED" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  75825. transient="false" volatile="false"
  75826. static="true" final="true" visibility="public"
  75827. deprecated="not deprecated">
  75828. </field>
  75829. <field name="JOB_COMPLETED" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  75830. transient="false" volatile="false"
  75831. static="true" final="true" visibility="public"
  75832. deprecated="not deprecated">
  75833. </field>
  75834. <field name="DELETE_JOB" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  75835. transient="false" volatile="false"
  75836. static="true" final="true" visibility="public"
  75837. deprecated="not deprecated">
  75838. </field>
  75839. </class>
  75840. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType -->
  75841. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogManager -->
  75842. <class name="UserLogManager" extends="java.lang.Object"
  75843. abstract="false"
  75844. static="false" final="false" visibility="public"
  75845. deprecated="not deprecated">
  75846. <constructor name="UserLogManager" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.TaskController"
  75847. static="false" final="false" visibility="public"
  75848. deprecated="not deprecated">
  75849. <exception name="IOException" type="java.io.IOException"/>
  75850. <doc>
  75851. <![CDATA[Create the user log manager to manage user logs on {@link TaskTracker}.
  75852. It should be explicitly started using {@link #start()} to start functioning
  75853. @param conf The {@link Configuration}
  75854. @param taskController The task controller to delete the log files
  75855. @throws IOException]]>
  75856. </doc>
  75857. </constructor>
  75858. <constructor name="UserLogManager" type="org.apache.hadoop.conf.Configuration"
  75859. static="false" final="false" visibility="public"
  75860. deprecated="not deprecated">
  75861. <exception name="IOException" type="java.io.IOException"/>
  75862. <doc>
  75863. <![CDATA[Create the user log manager to manage user logs on {@link TaskTracker}.
  75864. This constructor is there mainly for unit tests.
  75865. @param conf The {@link Configuration}
  75866. @throws IOException]]>
  75867. </doc>
  75868. </constructor>
  75869. <method name="getTaskController" return="org.apache.hadoop.mapred.TaskController"
  75870. abstract="false" native="false" synchronized="false"
  75871. static="false" final="false" visibility="public"
  75872. deprecated="not deprecated">
  75873. <doc>
  75874. <![CDATA[Get the taskController for deleting logs.
  75875. @return the TaskController]]>
  75876. </doc>
  75877. </method>
  75878. <method name="start"
  75879. abstract="false" native="false" synchronized="false"
  75880. static="false" final="false" visibility="public"
  75881. deprecated="not deprecated">
  75882. <doc>
  75883. <![CDATA[Starts managing the logs]]>
  75884. </doc>
  75885. </method>
  75886. <method name="monitor"
  75887. abstract="false" native="false" synchronized="false"
  75888. static="false" final="false" visibility="protected"
  75889. deprecated="not deprecated">
  75890. <exception name="Exception" type="java.lang.Exception"/>
  75891. </method>
  75892. <method name="processEvent"
  75893. abstract="false" native="false" synchronized="false"
  75894. static="false" final="false" visibility="protected"
  75895. deprecated="not deprecated">
  75896. <param name="event" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent"/>
  75897. <exception name="IOException" type="java.io.IOException"/>
  75898. </method>
  75899. <method name="clearOldUserLogs"
  75900. abstract="false" native="false" synchronized="false"
  75901. static="false" final="false" visibility="public"
  75902. deprecated="not deprecated">
  75903. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  75904. <exception name="IOException" type="java.io.IOException"/>
  75905. <doc>
  75906. <![CDATA[Called during TaskTracker restart/re-init.
  75907. @param conf
  75908. TT's conf
  75909. @throws IOException]]>
  75910. </doc>
  75911. </method>
  75912. <method name="addLogEvent"
  75913. abstract="false" native="false" synchronized="false"
  75914. static="false" final="false" visibility="public"
  75915. deprecated="not deprecated">
  75916. <param name="event" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent"/>
  75917. <doc>
  75918. <![CDATA[Add the {@link UserLogEvent} for processing.
  75919. @param event]]>
  75920. </doc>
  75921. </method>
  75922. <method name="getUserLogCleaner" return="org.apache.hadoop.mapred.UserLogCleaner"
  75923. abstract="false" native="false" synchronized="false"
  75924. static="false" final="false" visibility="public"
  75925. deprecated="not deprecated">
  75926. <doc>
  75927. <![CDATA[Get {@link UserLogCleaner}.
  75928. This method is called only from unit tests.
  75929. @return {@link UserLogCleaner}]]>
  75930. </doc>
  75931. </method>
  75932. <doc>
  75933. <![CDATA[This manages user logs on the {@link TaskTracker}.]]>
  75934. </doc>
  75935. </class>
  75936. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogManager -->
  75937. </package>
  75938. <package name="org.apache.hadoop.mapreduce.split">
  75939. <!-- start class org.apache.hadoop.mapreduce.split.JobSplit -->
  75940. <class name="JobSplit" extends="java.lang.Object"
  75941. abstract="false"
  75942. static="false" final="false" visibility="public"
  75943. deprecated="not deprecated">
  75944. <constructor name="JobSplit"
  75945. static="false" final="false" visibility="public"
  75946. deprecated="not deprecated">
  75947. </constructor>
  75948. <field name="EMPTY_TASK_SPLIT" type="org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitMetaInfo"
  75949. transient="false" volatile="false"
  75950. static="true" final="true" visibility="public"
  75951. deprecated="not deprecated">
  75952. </field>
  75953. <doc>
  75954. <![CDATA[This class groups the fundamental classes associated with
  75955. reading/writing splits. The split information is divided into
  75956. two parts based on the consumer of the information. The two
  75957. parts are the split meta information, and the raw split
  75958. information. The first part is consumed by the JobTracker to
  75959. create the tasks' locality data structures. The second part is
  75960. used by the maps at runtime to know what to do!
  75961. These pieces of information are written to two separate files.
  75962. The metainformation file is slurped by the JobTracker during
  75963. job initialization. A map task gets the meta information during
  75964. the launch and it reads the raw split bytes directly from the
  75965. file.]]>
  75966. </doc>
  75967. </class>
  75968. <!-- end class org.apache.hadoop.mapreduce.split.JobSplit -->
  75969. <!-- start class org.apache.hadoop.mapreduce.split.JobSplit.SplitMetaInfo -->
  75970. <class name="JobSplit.SplitMetaInfo" extends="java.lang.Object"
  75971. abstract="false"
  75972. static="true" final="false" visibility="public"
  75973. deprecated="not deprecated">
  75974. <implements name="org.apache.hadoop.io.Writable"/>
  75975. <constructor name="JobSplit.SplitMetaInfo"
  75976. static="false" final="false" visibility="public"
  75977. deprecated="not deprecated">
  75978. </constructor>
  75979. <constructor name="JobSplit.SplitMetaInfo" type="java.lang.String[], long, long"
  75980. static="false" final="false" visibility="public"
  75981. deprecated="not deprecated">
  75982. </constructor>
  75983. <constructor name="JobSplit.SplitMetaInfo" type="org.apache.hadoop.mapreduce.InputSplit, long"
  75984. static="false" final="false" visibility="public"
  75985. deprecated="not deprecated">
  75986. <exception name="IOException" type="java.io.IOException"/>
  75987. </constructor>
  75988. <method name="getLocations" return="java.lang.String[]"
  75989. abstract="false" native="false" synchronized="false"
  75990. static="false" final="false" visibility="public"
  75991. deprecated="not deprecated">
  75992. </method>
  75993. <method name="getStartOffset" return="long"
  75994. abstract="false" native="false" synchronized="false"
  75995. static="false" final="false" visibility="public"
  75996. deprecated="not deprecated">
  75997. </method>
  75998. <method name="getInputDataLength" return="long"
  75999. abstract="false" native="false" synchronized="false"
  76000. static="false" final="false" visibility="public"
  76001. deprecated="not deprecated">
  76002. </method>
  76003. <method name="setInputDataLocations"
  76004. abstract="false" native="false" synchronized="false"
  76005. static="false" final="false" visibility="public"
  76006. deprecated="not deprecated">
  76007. <param name="locations" type="java.lang.String[]"/>
  76008. </method>
  76009. <method name="setInputDataLength"
  76010. abstract="false" native="false" synchronized="false"
  76011. static="false" final="false" visibility="public"
  76012. deprecated="not deprecated">
  76013. <param name="length" type="long"/>
  76014. </method>
  76015. <method name="readFields"
  76016. abstract="false" native="false" synchronized="false"
  76017. static="false" final="false" visibility="public"
  76018. deprecated="not deprecated">
  76019. <param name="in" type="java.io.DataInput"/>
  76020. <exception name="IOException" type="java.io.IOException"/>
  76021. </method>
  76022. <method name="write"
  76023. abstract="false" native="false" synchronized="false"
  76024. static="false" final="false" visibility="public"
  76025. deprecated="not deprecated">
  76026. <param name="out" type="java.io.DataOutput"/>
  76027. <exception name="IOException" type="java.io.IOException"/>
  76028. </method>
  76029. <method name="toString" return="java.lang.String"
  76030. abstract="false" native="false" synchronized="false"
  76031. static="false" final="false" visibility="public"
  76032. deprecated="not deprecated">
  76033. </method>
  76034. <doc>
  76035. <![CDATA[This represents the meta information about the task split.
  76036. The main fields are
  76037. - start offset in actual split
  76038. - data length that will be processed in this split
  76039. - hosts on which this split is local]]>
  76040. </doc>
  76041. </class>
  76042. <!-- end class org.apache.hadoop.mapreduce.split.JobSplit.SplitMetaInfo -->
  76043. <!-- start class org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitIndex -->
  76044. <class name="JobSplit.TaskSplitIndex" extends="java.lang.Object"
  76045. abstract="false"
  76046. static="true" final="false" visibility="public"
  76047. deprecated="not deprecated">
  76048. <constructor name="JobSplit.TaskSplitIndex"
  76049. static="false" final="false" visibility="public"
  76050. deprecated="not deprecated">
  76051. </constructor>
  76052. <constructor name="JobSplit.TaskSplitIndex" type="java.lang.String, long"
  76053. static="false" final="false" visibility="public"
  76054. deprecated="not deprecated">
  76055. </constructor>
  76056. <method name="getStartOffset" return="long"
  76057. abstract="false" native="false" synchronized="false"
  76058. static="false" final="false" visibility="public"
  76059. deprecated="not deprecated">
  76060. </method>
  76061. <method name="getSplitLocation" return="java.lang.String"
  76062. abstract="false" native="false" synchronized="false"
  76063. static="false" final="false" visibility="public"
  76064. deprecated="not deprecated">
  76065. </method>
  76066. <method name="readFields"
  76067. abstract="false" native="false" synchronized="false"
  76068. static="false" final="false" visibility="public"
  76069. deprecated="not deprecated">
  76070. <param name="in" type="java.io.DataInput"/>
  76071. <exception name="IOException" type="java.io.IOException"/>
  76072. </method>
  76073. <method name="write"
  76074. abstract="false" native="false" synchronized="false"
  76075. static="false" final="false" visibility="public"
  76076. deprecated="not deprecated">
  76077. <param name="out" type="java.io.DataOutput"/>
  76078. <exception name="IOException" type="java.io.IOException"/>
  76079. </method>
  76080. <doc>
  76081. <![CDATA[This represents the meta information about the task split that the
  76082. task gets]]>
  76083. </doc>
  76084. </class>
  76085. <!-- end class org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitIndex -->
  76086. <!-- start class org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitMetaInfo -->
  76087. <class name="JobSplit.TaskSplitMetaInfo" extends="java.lang.Object"
  76088. abstract="false"
  76089. static="true" final="false" visibility="public"
  76090. deprecated="not deprecated">
  76091. <constructor name="JobSplit.TaskSplitMetaInfo"
  76092. static="false" final="false" visibility="public"
  76093. deprecated="not deprecated">
  76094. </constructor>
  76095. <constructor name="JobSplit.TaskSplitMetaInfo" type="org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitIndex, java.lang.String[], long"
  76096. static="false" final="false" visibility="public"
  76097. deprecated="not deprecated">
  76098. </constructor>
  76099. <constructor name="JobSplit.TaskSplitMetaInfo" type="org.apache.hadoop.mapreduce.InputSplit, long"
  76100. static="false" final="false" visibility="public"
  76101. deprecated="not deprecated">
  76102. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  76103. <exception name="IOException" type="java.io.IOException"/>
  76104. </constructor>
  76105. <constructor name="JobSplit.TaskSplitMetaInfo" type="java.lang.String[], long, long"
  76106. static="false" final="false" visibility="public"
  76107. deprecated="not deprecated">
  76108. </constructor>
  76109. <method name="getSplitIndex" return="org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitIndex"
  76110. abstract="false" native="false" synchronized="false"
  76111. static="false" final="false" visibility="public"
  76112. deprecated="not deprecated">
  76113. </method>
  76114. <method name="getSplitLocation" return="java.lang.String"
  76115. abstract="false" native="false" synchronized="false"
  76116. static="false" final="false" visibility="public"
  76117. deprecated="not deprecated">
  76118. </method>
  76119. <method name="getInputDataLength" return="long"
  76120. abstract="false" native="false" synchronized="false"
  76121. static="false" final="false" visibility="public"
  76122. deprecated="not deprecated">
  76123. </method>
  76124. <method name="getLocations" return="java.lang.String[]"
  76125. abstract="false" native="false" synchronized="false"
  76126. static="false" final="false" visibility="public"
  76127. deprecated="not deprecated">
  76128. </method>
  76129. <method name="getStartOffset" return="long"
  76130. abstract="false" native="false" synchronized="false"
  76131. static="false" final="false" visibility="public"
  76132. deprecated="not deprecated">
  76133. </method>
  76134. <doc>
  76135. <![CDATA[This represents the meta information about the task split that the
  76136. JobTracker creates]]>
  76137. </doc>
  76138. </class>
  76139. <!-- end class org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitMetaInfo -->
  76140. <!-- start class org.apache.hadoop.mapreduce.split.JobSplitWriter -->
  76141. <class name="JobSplitWriter" extends="java.lang.Object"
  76142. abstract="false"
  76143. static="false" final="false" visibility="public"
  76144. deprecated="not deprecated">
  76145. <constructor name="JobSplitWriter"
  76146. static="false" final="false" visibility="public"
  76147. deprecated="not deprecated">
  76148. </constructor>
  76149. <method name="createSplitFiles"
  76150. abstract="false" native="false" synchronized="false"
  76151. static="true" final="false" visibility="public"
  76152. deprecated="not deprecated">
  76153. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  76154. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  76155. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  76156. <param name="splits" type="java.util.List"/>
  76157. <exception name="IOException" type="java.io.IOException"/>
  76158. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  76159. </method>
  76160. <method name="createSplitFiles"
  76161. abstract="false" native="false" synchronized="false"
  76162. static="true" final="false" visibility="public"
  76163. deprecated="not deprecated">
  76164. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  76165. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  76166. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  76167. <param name="splits" type="org.apache.hadoop.mapreduce.InputSplit[]"/>
  76168. <exception name="IOException" type="java.io.IOException"/>
  76169. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  76170. </method>
  76171. <method name="createSplitFiles"
  76172. abstract="false" native="false" synchronized="false"
  76173. static="true" final="false" visibility="public"
  76174. deprecated="not deprecated">
  76175. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  76176. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  76177. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  76178. <param name="splits" type="org.apache.hadoop.mapred.InputSplit[]"/>
  76179. <exception name="IOException" type="java.io.IOException"/>
  76180. </method>
  76181. <doc>
  76182. <![CDATA[The class that is used by the Job clients to write splits (both the meta
  76183. and the raw bytes parts)]]>
  76184. </doc>
  76185. </class>
  76186. <!-- end class org.apache.hadoop.mapreduce.split.JobSplitWriter -->
  76187. <!-- start class org.apache.hadoop.mapreduce.split.SplitMetaInfoReader -->
  76188. <class name="SplitMetaInfoReader" extends="java.lang.Object"
  76189. abstract="false"
  76190. static="false" final="false" visibility="public"
  76191. deprecated="not deprecated">
  76192. <constructor name="SplitMetaInfoReader"
  76193. static="false" final="false" visibility="public"
  76194. deprecated="not deprecated">
  76195. </constructor>
  76196. <method name="readSplitMetaInfo" return="org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitMetaInfo[]"
  76197. abstract="false" native="false" synchronized="false"
  76198. static="true" final="false" visibility="public"
  76199. deprecated="not deprecated">
  76200. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  76201. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  76202. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  76203. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  76204. <exception name="IOException" type="java.io.IOException"/>
  76205. </method>
  76206. <doc>
  76207. <![CDATA[A (internal) utility that reads the split meta info and creates
  76208. split meta info objects]]>
  76209. </doc>
  76210. </class>
  76211. <!-- end class org.apache.hadoop.mapreduce.split.SplitMetaInfoReader -->
  76212. </package>
  76213. <package name="org.apache.hadoop.tools">
  76214. <!-- start class org.apache.hadoop.tools.DistCh -->
  76215. <class name="DistCh" extends="org.apache.hadoop.tools.DistTool"
  76216. abstract="false"
  76217. static="false" final="false" visibility="public"
  76218. deprecated="not deprecated">
  76219. <method name="run" return="int"
  76220. abstract="false" native="false" synchronized="false"
  76221. static="false" final="false" visibility="public"
  76222. deprecated="not deprecated">
  76223. <param name="args" type="java.lang.String[]"/>
  76224. <exception name="Exception" type="java.lang.Exception"/>
  76225. <doc>
  76226. <![CDATA[This is the main driver for recursively changing files properties.]]>
  76227. </doc>
  76228. </method>
  76229. <method name="main"
  76230. abstract="false" native="false" synchronized="false"
  76231. static="true" final="false" visibility="public"
  76232. deprecated="not deprecated">
  76233. <param name="args" type="java.lang.String[]"/>
  76234. <exception name="Exception" type="java.lang.Exception"/>
  76235. </method>
  76236. <doc>
  76237. <![CDATA[A Map-reduce program to recursively change files properties
  76238. such as owner, group and permission.]]>
  76239. </doc>
  76240. </class>
  76241. <!-- end class org.apache.hadoop.tools.DistCh -->
  76242. <!-- start class org.apache.hadoop.tools.DistCp -->
  76243. <class name="DistCp" extends="java.lang.Object"
  76244. abstract="false"
  76245. static="false" final="false" visibility="public"
  76246. deprecated="not deprecated">
  76247. <implements name="org.apache.hadoop.util.Tool"/>
  76248. <constructor name="DistCp" type="org.apache.hadoop.conf.Configuration"
  76249. static="false" final="false" visibility="public"
  76250. deprecated="not deprecated">
  76251. </constructor>
  76252. <method name="setConf"
  76253. abstract="false" native="false" synchronized="false"
  76254. static="false" final="false" visibility="public"
  76255. deprecated="not deprecated">
  76256. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  76257. </method>
  76258. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  76259. abstract="false" native="false" synchronized="false"
  76260. static="false" final="false" visibility="public"
  76261. deprecated="not deprecated">
  76262. </method>
  76263. <method name="copy"
  76264. abstract="false" native="false" synchronized="false"
  76265. static="true" final="false" visibility="public"
  76266. deprecated="not deprecated">
  76267. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  76268. <param name="srcPath" type="java.lang.String"/>
  76269. <param name="destPath" type="java.lang.String"/>
  76270. <param name="logPath" type="org.apache.hadoop.fs.Path"/>
  76271. <param name="srcAsList" type="boolean"/>
  76272. <param name="ignoreReadFailures" type="boolean"/>
  76273. <exception name="IOException" type="java.io.IOException"/>
  76274. </method>
  76275. <method name="run" return="int"
  76276. abstract="false" native="false" synchronized="false"
  76277. static="false" final="false" visibility="public"
  76278. deprecated="not deprecated">
  76279. <param name="args" type="java.lang.String[]"/>
  76280. <doc>
  76281. <![CDATA[This is the main driver for recursively copying directories
  76282. across file systems. It takes at least two cmdline parameters. A source
  76283. URL and a destination URL. It then essentially does an "ls -lR" on the
  76284. source URL, and writes the output in a round-robin manner to all the map
  76285. input files. The mapper actually copies the files allotted to it. The
  76286. reduce is empty.]]>
  76287. </doc>
  76288. </method>
  76289. <method name="main"
  76290. abstract="false" native="false" synchronized="false"
  76291. static="true" final="false" visibility="public"
  76292. deprecated="not deprecated">
  76293. <param name="args" type="java.lang.String[]"/>
  76294. <exception name="Exception" type="java.lang.Exception"/>
  76295. </method>
  76296. <method name="getRandomId" return="java.lang.String"
  76297. abstract="false" native="false" synchronized="false"
  76298. static="true" final="false" visibility="public"
  76299. deprecated="not deprecated">
  76300. </method>
  76301. <field name="LOG" type="org.apache.commons.logging.Log"
  76302. transient="false" volatile="false"
  76303. static="true" final="true" visibility="public"
  76304. deprecated="not deprecated">
  76305. </field>
  76306. <doc>
  76307. <![CDATA[A Map-reduce program to recursively copy directories between
  76308. different file-systems.]]>
  76309. </doc>
  76310. </class>
  76311. <!-- end class org.apache.hadoop.tools.DistCp -->
  76312. <!-- start class org.apache.hadoop.tools.DistCp.DuplicationException -->
  76313. <class name="DistCp.DuplicationException" extends="java.io.IOException"
  76314. abstract="false"
  76315. static="true" final="false" visibility="public"
  76316. deprecated="not deprecated">
  76317. <field name="ERROR_CODE" type="int"
  76318. transient="false" volatile="false"
  76319. static="true" final="true" visibility="public"
  76320. deprecated="not deprecated">
  76321. <doc>
  76322. <![CDATA[Error code for this exception]]>
  76323. </doc>
  76324. </field>
  76325. <doc>
  76326. <![CDATA[An exception class for duplicated source files.]]>
  76327. </doc>
  76328. </class>
  76329. <!-- end class org.apache.hadoop.tools.DistCp.DuplicationException -->
  76330. <!-- start class org.apache.hadoop.tools.HadoopArchives -->
  76331. <class name="HadoopArchives" extends="java.lang.Object"
  76332. abstract="false"
  76333. static="false" final="false" visibility="public"
  76334. deprecated="not deprecated">
  76335. <implements name="org.apache.hadoop.util.Tool"/>
  76336. <constructor name="HadoopArchives" type="org.apache.hadoop.conf.Configuration"
  76337. static="false" final="false" visibility="public"
  76338. deprecated="not deprecated">
  76339. </constructor>
  76340. <method name="setConf"
  76341. abstract="false" native="false" synchronized="false"
  76342. static="false" final="false" visibility="public"
  76343. deprecated="not deprecated">
  76344. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  76345. </method>
  76346. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  76347. abstract="false" native="false" synchronized="false"
  76348. static="false" final="false" visibility="public"
  76349. deprecated="not deprecated">
  76350. </method>
  76351. <method name="run" return="int"
  76352. abstract="false" native="false" synchronized="false"
  76353. static="false" final="false" visibility="public"
  76354. deprecated="not deprecated">
  76355. <param name="args" type="java.lang.String[]"/>
  76356. <exception name="Exception" type="java.lang.Exception"/>
  76357. <doc>
  76358. <![CDATA[the main driver for creating the archives
  76359. it takes at least three command line parameters. The parent path,
  76360. The src and the dest. It does an lsr on the source paths.
  76361. The mapper created archuves and the reducer creates
  76362. the archive index.]]>
  76363. </doc>
  76364. </method>
  76365. <method name="main"
  76366. abstract="false" native="false" synchronized="false"
  76367. static="true" final="false" visibility="public"
  76368. deprecated="not deprecated">
  76369. <param name="args" type="java.lang.String[]"/>
  76370. <doc>
  76371. <![CDATA[the main functions]]>
  76372. </doc>
  76373. </method>
  76374. <field name="VERSION" type="int"
  76375. transient="false" volatile="false"
  76376. static="true" final="true" visibility="public"
  76377. deprecated="not deprecated">
  76378. </field>
  76379. <doc>
  76380. <![CDATA[a archive creation utility.
  76381. This class provides methods that can be used
  76382. to create hadoop archives. For understanding of
  76383. Hadoop archives look at {@link HarFileSystem}.]]>
  76384. </doc>
  76385. </class>
  76386. <!-- end class org.apache.hadoop.tools.HadoopArchives -->
  76387. <!-- start class org.apache.hadoop.tools.Logalyzer -->
  76388. <class name="Logalyzer" extends="java.lang.Object"
  76389. abstract="false"
  76390. static="false" final="false" visibility="public"
  76391. deprecated="not deprecated">
  76392. <constructor name="Logalyzer"
  76393. static="false" final="false" visibility="public"
  76394. deprecated="not deprecated">
  76395. </constructor>
  76396. <method name="doArchive"
  76397. abstract="false" native="false" synchronized="false"
  76398. static="false" final="false" visibility="public"
  76399. deprecated="not deprecated">
  76400. <param name="logListURI" type="java.lang.String"/>
  76401. <param name="archiveDirectory" type="java.lang.String"/>
  76402. <exception name="IOException" type="java.io.IOException"/>
  76403. <doc>
  76404. <![CDATA[doArchive: Workhorse function to archive log-files.
  76405. @param logListURI : The uri which will serve list of log-files to archive.
  76406. @param archiveDirectory : The directory to store archived logfiles.
  76407. @throws IOException]]>
  76408. </doc>
  76409. </method>
  76410. <method name="doAnalyze"
  76411. abstract="false" native="false" synchronized="false"
  76412. static="false" final="false" visibility="public"
  76413. deprecated="not deprecated">
  76414. <param name="inputFilesDirectory" type="java.lang.String"/>
  76415. <param name="outputDirectory" type="java.lang.String"/>
  76416. <param name="grepPattern" type="java.lang.String"/>
  76417. <param name="sortColumns" type="java.lang.String"/>
  76418. <param name="columnSeparator" type="java.lang.String"/>
  76419. <exception name="IOException" type="java.io.IOException"/>
  76420. <doc>
  76421. <![CDATA[doAnalyze:
  76422. @param inputFilesDirectory : Directory containing the files to be analyzed.
  76423. @param outputDirectory : Directory to store analysis (output).
  76424. @param grepPattern : Pattern to *grep* for.
  76425. @param sortColumns : Sort specification for output.
  76426. @param columnSeparator : Column separator.
  76427. @throws IOException]]>
  76428. </doc>
  76429. </method>
  76430. <method name="main"
  76431. abstract="false" native="false" synchronized="false"
  76432. static="true" final="false" visibility="public"
  76433. deprecated="not deprecated">
  76434. <param name="args" type="java.lang.String[]"/>
  76435. </method>
  76436. <doc>
  76437. <![CDATA[Logalyzer: A utility tool for archiving and analyzing hadoop logs.
  76438. <p>
  76439. This tool supports archiving and anaylzing (sort/grep) of log-files.
  76440. It takes as input
  76441. a) Input uri which will serve uris of the logs to be archived.
  76442. b) Output directory (not mandatory).
  76443. b) Directory on dfs to archive the logs.
  76444. c) The sort/grep patterns for analyzing the files and separator for boundaries.
  76445. Usage:
  76446. Logalyzer -archive -archiveDir <directory to archive logs> -analysis <directory> -logs <log-list uri> -grep <pattern> -sort <col1, col2> -separator <separator>
  76447. <p>]]>
  76448. </doc>
  76449. </class>
  76450. <!-- end class org.apache.hadoop.tools.Logalyzer -->
  76451. <!-- start class org.apache.hadoop.tools.Logalyzer.LogComparator -->
  76452. <class name="Logalyzer.LogComparator" extends="org.apache.hadoop.io.Text.Comparator"
  76453. abstract="false"
  76454. static="true" final="false" visibility="public"
  76455. deprecated="not deprecated">
  76456. <implements name="org.apache.hadoop.conf.Configurable"/>
  76457. <constructor name="Logalyzer.LogComparator"
  76458. static="false" final="false" visibility="public"
  76459. deprecated="not deprecated">
  76460. </constructor>
  76461. <method name="setConf"
  76462. abstract="false" native="false" synchronized="false"
  76463. static="false" final="false" visibility="public"
  76464. deprecated="not deprecated">
  76465. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  76466. </method>
  76467. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  76468. abstract="false" native="false" synchronized="false"
  76469. static="false" final="false" visibility="public"
  76470. deprecated="not deprecated">
  76471. </method>
  76472. <method name="compare" return="int"
  76473. abstract="false" native="false" synchronized="false"
  76474. static="false" final="false" visibility="public"
  76475. deprecated="not deprecated">
  76476. <param name="b1" type="byte[]"/>
  76477. <param name="s1" type="int"/>
  76478. <param name="l1" type="int"/>
  76479. <param name="b2" type="byte[]"/>
  76480. <param name="s2" type="int"/>
  76481. <param name="l2" type="int"/>
  76482. </method>
  76483. <doc>
  76484. <![CDATA[A WritableComparator optimized for UTF8 keys of the logs.]]>
  76485. </doc>
  76486. </class>
  76487. <!-- end class org.apache.hadoop.tools.Logalyzer.LogComparator -->
  76488. <!-- start class org.apache.hadoop.tools.Logalyzer.LogRegexMapper -->
  76489. <class name="Logalyzer.LogRegexMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  76490. abstract="false"
  76491. static="true" final="false" visibility="public"
  76492. deprecated="not deprecated">
  76493. <implements name="org.apache.hadoop.mapred.Mapper"/>
  76494. <constructor name="Logalyzer.LogRegexMapper"
  76495. static="false" final="false" visibility="public"
  76496. deprecated="not deprecated">
  76497. </constructor>
  76498. <method name="configure"
  76499. abstract="false" native="false" synchronized="false"
  76500. static="false" final="false" visibility="public"
  76501. deprecated="not deprecated">
  76502. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  76503. </method>
  76504. <method name="map"
  76505. abstract="false" native="false" synchronized="false"
  76506. static="false" final="false" visibility="public"
  76507. deprecated="not deprecated">
  76508. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  76509. <param name="value" type="org.apache.hadoop.io.Text"/>
  76510. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  76511. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  76512. <exception name="IOException" type="java.io.IOException"/>
  76513. </method>
  76514. <doc>
  76515. <![CDATA[A {@link Mapper} that extracts text matching a regular expression.]]>
  76516. </doc>
  76517. </class>
  76518. <!-- end class org.apache.hadoop.tools.Logalyzer.LogRegexMapper -->
  76519. </package>
  76520. <package name="org.apache.hadoop.tools.rumen">
  76521. <!-- start class org.apache.hadoop.tools.rumen.AbstractClusterStory -->
  76522. <class name="AbstractClusterStory" extends="java.lang.Object"
  76523. abstract="true"
  76524. static="false" final="false" visibility="public"
  76525. deprecated="not deprecated">
  76526. <implements name="org.apache.hadoop.tools.rumen.ClusterStory"/>
  76527. <constructor name="AbstractClusterStory"
  76528. static="false" final="false" visibility="public"
  76529. deprecated="not deprecated">
  76530. </constructor>
  76531. <method name="getMachines" return="java.util.Set"
  76532. abstract="false" native="false" synchronized="false"
  76533. static="false" final="false" visibility="public"
  76534. deprecated="not deprecated">
  76535. </method>
  76536. <method name="getRacks" return="java.util.Set"
  76537. abstract="false" native="false" synchronized="true"
  76538. static="false" final="false" visibility="public"
  76539. deprecated="not deprecated">
  76540. </method>
  76541. <method name="getRandomMachines" return="org.apache.hadoop.tools.rumen.MachineNode[]"
  76542. abstract="false" native="false" synchronized="true"
  76543. static="false" final="false" visibility="public"
  76544. deprecated="not deprecated">
  76545. <param name="expected" type="int"/>
  76546. <param name="random" type="java.util.Random"/>
  76547. </method>
  76548. <method name="buildMachineNodeMap"
  76549. abstract="false" native="false" synchronized="true"
  76550. static="false" final="false" visibility="protected"
  76551. deprecated="not deprecated">
  76552. </method>
  76553. <method name="getMachineByName" return="org.apache.hadoop.tools.rumen.MachineNode"
  76554. abstract="false" native="false" synchronized="false"
  76555. static="false" final="false" visibility="public"
  76556. deprecated="not deprecated">
  76557. <param name="name" type="java.lang.String"/>
  76558. </method>
  76559. <method name="distance" return="int"
  76560. abstract="false" native="false" synchronized="false"
  76561. static="false" final="false" visibility="public"
  76562. deprecated="not deprecated">
  76563. <param name="a" type="org.apache.hadoop.tools.rumen.Node"/>
  76564. <param name="b" type="org.apache.hadoop.tools.rumen.Node"/>
  76565. </method>
  76566. <method name="buildRackNodeMap"
  76567. abstract="false" native="false" synchronized="true"
  76568. static="false" final="false" visibility="protected"
  76569. deprecated="not deprecated">
  76570. </method>
  76571. <method name="getRackByName" return="org.apache.hadoop.tools.rumen.RackNode"
  76572. abstract="false" native="false" synchronized="false"
  76573. static="false" final="false" visibility="public"
  76574. deprecated="not deprecated">
  76575. <param name="name" type="java.lang.String"/>
  76576. </method>
  76577. <method name="getMaximumDistance" return="int"
  76578. abstract="false" native="false" synchronized="false"
  76579. static="false" final="false" visibility="public"
  76580. deprecated="not deprecated">
  76581. </method>
  76582. <method name="parseTopologyTree"
  76583. abstract="false" native="false" synchronized="true"
  76584. static="false" final="false" visibility="protected"
  76585. deprecated="not deprecated">
  76586. </method>
  76587. <field name="machineNodes" type="java.util.Set"
  76588. transient="false" volatile="false"
  76589. static="false" final="false" visibility="protected"
  76590. deprecated="not deprecated">
  76591. </field>
  76592. <field name="rackNodes" type="java.util.Set"
  76593. transient="false" volatile="false"
  76594. static="false" final="false" visibility="protected"
  76595. deprecated="not deprecated">
  76596. </field>
  76597. <field name="mNodesFlattened" type="org.apache.hadoop.tools.rumen.MachineNode[]"
  76598. transient="false" volatile="false"
  76599. static="false" final="false" visibility="protected"
  76600. deprecated="not deprecated">
  76601. </field>
  76602. <field name="mNodeMap" type="java.util.Map"
  76603. transient="false" volatile="false"
  76604. static="false" final="false" visibility="protected"
  76605. deprecated="not deprecated">
  76606. </field>
  76607. <field name="rNodeMap" type="java.util.Map"
  76608. transient="false" volatile="false"
  76609. static="false" final="false" visibility="protected"
  76610. deprecated="not deprecated">
  76611. </field>
  76612. <field name="maximumDistance" type="int"
  76613. transient="false" volatile="false"
  76614. static="false" final="false" visibility="protected"
  76615. deprecated="not deprecated">
  76616. </field>
  76617. <doc>
  76618. <![CDATA[{@link AbstractClusterStory} provides a partial implementation of
  76619. {@link ClusterStory} by parsing the topology tree.]]>
  76620. </doc>
  76621. </class>
  76622. <!-- end class org.apache.hadoop.tools.rumen.AbstractClusterStory -->
  76623. <!-- start class org.apache.hadoop.tools.rumen.CDFPiecewiseLinearRandomGenerator -->
  76624. <class name="CDFPiecewiseLinearRandomGenerator" extends="org.apache.hadoop.tools.rumen.CDFRandomGenerator"
  76625. abstract="false"
  76626. static="false" final="false" visibility="public"
  76627. deprecated="not deprecated">
  76628. <constructor name="CDFPiecewiseLinearRandomGenerator" type="org.apache.hadoop.tools.rumen.LoggedDiscreteCDF"
  76629. static="false" final="false" visibility="public"
  76630. deprecated="not deprecated">
  76631. <doc>
  76632. <![CDATA[@param cdf
  76633. builds a CDFRandomValue engine around this
  76634. {@link LoggedDiscreteCDF}, with a defaultly seeded RNG]]>
  76635. </doc>
  76636. </constructor>
  76637. <constructor name="CDFPiecewiseLinearRandomGenerator" type="org.apache.hadoop.tools.rumen.LoggedDiscreteCDF, long"
  76638. static="false" final="false" visibility="public"
  76639. deprecated="not deprecated">
  76640. <doc>
  76641. <![CDATA[@param cdf
  76642. builds a CDFRandomValue engine around this
  76643. {@link LoggedDiscreteCDF}, with an explicitly seeded RNG
  76644. @param seed
  76645. the random number generator seed]]>
  76646. </doc>
  76647. </constructor>
  76648. <method name="valueAt" return="long"
  76649. abstract="false" native="false" synchronized="false"
  76650. static="false" final="false" visibility="public"
  76651. deprecated="not deprecated">
  76652. <param name="probability" type="double"/>
  76653. <doc>
  76654. <![CDATA[TODO This code assumes that the empirical minimum resp. maximum is the
  76655. epistomological minimum resp. maximum. This is probably okay for the
  76656. minimum, because that likely represents a task where everything went well,
  76657. but for the maximum we may want to develop a way of extrapolating past the
  76658. maximum.]]>
  76659. </doc>
  76660. </method>
  76661. </class>
  76662. <!-- end class org.apache.hadoop.tools.rumen.CDFPiecewiseLinearRandomGenerator -->
  76663. <!-- start class org.apache.hadoop.tools.rumen.CDFRandomGenerator -->
  76664. <class name="CDFRandomGenerator" extends="java.lang.Object"
  76665. abstract="true"
  76666. static="false" final="false" visibility="public"
  76667. deprecated="not deprecated">
  76668. <method name="initializeTables"
  76669. abstract="false" native="false" synchronized="false"
  76670. static="false" final="true" visibility="protected"
  76671. deprecated="not deprecated">
  76672. <param name="cdf" type="org.apache.hadoop.tools.rumen.LoggedDiscreteCDF"/>
  76673. </method>
  76674. <method name="floorIndex" return="int"
  76675. abstract="false" native="false" synchronized="false"
  76676. static="false" final="false" visibility="protected"
  76677. deprecated="not deprecated">
  76678. <param name="probe" type="double"/>
  76679. </method>
  76680. <method name="getRankingAt" return="double"
  76681. abstract="false" native="false" synchronized="false"
  76682. static="false" final="false" visibility="protected"
  76683. deprecated="not deprecated">
  76684. <param name="index" type="int"/>
  76685. </method>
  76686. <method name="getDatumAt" return="long"
  76687. abstract="false" native="false" synchronized="false"
  76688. static="false" final="false" visibility="protected"
  76689. deprecated="not deprecated">
  76690. <param name="index" type="int"/>
  76691. </method>
  76692. <method name="randomValue" return="long"
  76693. abstract="false" native="false" synchronized="false"
  76694. static="false" final="false" visibility="public"
  76695. deprecated="not deprecated">
  76696. </method>
  76697. <method name="valueAt" return="long"
  76698. abstract="true" native="false" synchronized="false"
  76699. static="false" final="false" visibility="public"
  76700. deprecated="not deprecated">
  76701. <param name="probability" type="double"/>
  76702. </method>
  76703. <doc>
  76704. <![CDATA[An instance of this class generates random values that confirm to the
  76705. embedded {@link LoggedDiscreteCDF} . The discrete CDF is a pointwise
  76706. approximation of the "real" CDF. We therefore have a choice of interpolation
  76707. rules.
  76708. A concrete subclass of this abstract class will implement valueAt(double)
  76709. using a class-dependent interpolation rule.]]>
  76710. </doc>
  76711. </class>
  76712. <!-- end class org.apache.hadoop.tools.rumen.CDFRandomGenerator -->
  76713. <!-- start interface org.apache.hadoop.tools.rumen.ClusterStory -->
  76714. <interface name="ClusterStory" abstract="true"
  76715. static="false" final="false" visibility="public"
  76716. deprecated="not deprecated">
  76717. <method name="getMachines" return="java.util.Set"
  76718. abstract="false" native="false" synchronized="false"
  76719. static="false" final="false" visibility="public"
  76720. deprecated="not deprecated">
  76721. <doc>
  76722. <![CDATA[Get all machines of the cluster.
  76723. @return A read-only set that contains all machines of the cluster.]]>
  76724. </doc>
  76725. </method>
  76726. <method name="getRacks" return="java.util.Set"
  76727. abstract="false" native="false" synchronized="false"
  76728. static="false" final="false" visibility="public"
  76729. deprecated="not deprecated">
  76730. <doc>
  76731. <![CDATA[Get all racks of the cluster.
  76732. @return A read-only set that contains all racks of the cluster.]]>
  76733. </doc>
  76734. </method>
  76735. <method name="getClusterTopology" return="org.apache.hadoop.tools.rumen.Node"
  76736. abstract="false" native="false" synchronized="false"
  76737. static="false" final="false" visibility="public"
  76738. deprecated="not deprecated">
  76739. <doc>
  76740. <![CDATA[Get the cluster topology tree.
  76741. @return The root node of the cluster topology tree.]]>
  76742. </doc>
  76743. </method>
  76744. <method name="getRandomMachines" return="org.apache.hadoop.tools.rumen.MachineNode[]"
  76745. abstract="false" native="false" synchronized="false"
  76746. static="false" final="false" visibility="public"
  76747. deprecated="not deprecated">
  76748. <param name="expected" type="int"/>
  76749. <param name="random" type="java.util.Random"/>
  76750. <doc>
  76751. <![CDATA[Select a random set of machines.
  76752. @param expected The expected sample size.
  76753. @param random Random number generator to use.
  76754. @return An array of up to expected number of {@link MachineNode}s.]]>
  76755. </doc>
  76756. </method>
  76757. <method name="getMachineByName" return="org.apache.hadoop.tools.rumen.MachineNode"
  76758. abstract="false" native="false" synchronized="false"
  76759. static="false" final="false" visibility="public"
  76760. deprecated="not deprecated">
  76761. <param name="name" type="java.lang.String"/>
  76762. <doc>
  76763. <![CDATA[Get {@link MachineNode} by its host name.
  76764. @return The {@link MachineNode} with the same name. Or null if not found.]]>
  76765. </doc>
  76766. </method>
  76767. <method name="getRackByName" return="org.apache.hadoop.tools.rumen.RackNode"
  76768. abstract="false" native="false" synchronized="false"
  76769. static="false" final="false" visibility="public"
  76770. deprecated="not deprecated">
  76771. <param name="name" type="java.lang.String"/>
  76772. <doc>
  76773. <![CDATA[Get {@link RackNode} by its name.
  76774. @return The {@link RackNode} with the same name. Or null if not found.]]>
  76775. </doc>
  76776. </method>
  76777. <method name="distance" return="int"
  76778. abstract="false" native="false" synchronized="false"
  76779. static="false" final="false" visibility="public"
  76780. deprecated="not deprecated">
  76781. <param name="a" type="org.apache.hadoop.tools.rumen.Node"/>
  76782. <param name="b" type="org.apache.hadoop.tools.rumen.Node"/>
  76783. <doc>
  76784. <![CDATA[Determine the distance between two {@link Node}s. Currently, the distance
  76785. is loosely defined as the length of the longer path for either a or b to
  76786. reach their common ancestor.
  76787. @param a
  76788. @param b
  76789. @return The distance between {@link Node} a and {@link Node} b.]]>
  76790. </doc>
  76791. </method>
  76792. <method name="getMaximumDistance" return="int"
  76793. abstract="false" native="false" synchronized="false"
  76794. static="false" final="false" visibility="public"
  76795. deprecated="not deprecated">
  76796. <doc>
  76797. <![CDATA[Get the maximum distance possible between any two nodes.
  76798. @return the maximum distance possible between any two nodes.]]>
  76799. </doc>
  76800. </method>
  76801. <doc>
  76802. <![CDATA[{@link ClusterStory} represents all configurations of a MapReduce cluster,
  76803. including nodes, network topology, and slot configurations.]]>
  76804. </doc>
  76805. </interface>
  76806. <!-- end interface org.apache.hadoop.tools.rumen.ClusterStory -->
  76807. <!-- start class org.apache.hadoop.tools.rumen.ClusterTopologyReader -->
  76808. <class name="ClusterTopologyReader" extends="java.lang.Object"
  76809. abstract="false"
  76810. static="false" final="false" visibility="public"
  76811. deprecated="not deprecated">
  76812. <constructor name="ClusterTopologyReader" type="org.apache.hadoop.fs.Path, org.apache.hadoop.conf.Configuration"
  76813. static="false" final="false" visibility="public"
  76814. deprecated="not deprecated">
  76815. <exception name="IOException" type="java.io.IOException"/>
  76816. <doc>
  76817. <![CDATA[Constructor.
  76818. @param path
  76819. Path to the JSON-encoded topology file, possibly compressed.
  76820. @param conf
  76821. @throws IOException]]>
  76822. </doc>
  76823. </constructor>
  76824. <constructor name="ClusterTopologyReader" type="java.io.InputStream"
  76825. static="false" final="false" visibility="public"
  76826. deprecated="not deprecated">
  76827. <exception name="IOException" type="java.io.IOException"/>
  76828. <doc>
  76829. <![CDATA[Constructor.
  76830. @param input
  76831. The input stream for the JSON-encoded topology data.]]>
  76832. </doc>
  76833. </constructor>
  76834. <method name="get" return="org.apache.hadoop.tools.rumen.LoggedNetworkTopology"
  76835. abstract="false" native="false" synchronized="false"
  76836. static="false" final="false" visibility="public"
  76837. deprecated="not deprecated">
  76838. <doc>
  76839. <![CDATA[Get the {@link LoggedNetworkTopology} object.
  76840. @return The {@link LoggedNetworkTopology} object parsed from the input.]]>
  76841. </doc>
  76842. </method>
  76843. <doc>
  76844. <![CDATA[Reading JSON-encoded cluster topology and produce the parsed
  76845. {@link LoggedNetworkTopology} object.]]>
  76846. </doc>
  76847. </class>
  76848. <!-- end class org.apache.hadoop.tools.rumen.ClusterTopologyReader -->
  76849. <!-- start interface org.apache.hadoop.tools.rumen.DeepCompare -->
  76850. <interface name="DeepCompare" abstract="true"
  76851. static="false" final="false" visibility="public"
  76852. deprecated="not deprecated">
  76853. <method name="deepCompare"
  76854. abstract="false" native="false" synchronized="false"
  76855. static="false" final="false" visibility="public"
  76856. deprecated="not deprecated">
  76857. <param name="other" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  76858. <param name="myLocation" type="org.apache.hadoop.tools.rumen.TreePath"/>
  76859. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  76860. <doc>
  76861. <![CDATA[@param other
  76862. the other comparand that's being compared to me
  76863. @param myLocation
  76864. the path that got to me. In the root, myLocation is null. To
  76865. process the scalar {@code foo} field of the root we will make a
  76866. recursive call with a {@link TreePath} whose {@code fieldName} is
  76867. {@code "bar"} and whose {@code index} is -1 and whose {@code
  76868. parent} is {@code null}. To process the plural {@code bar} field
  76869. of the root we will make a recursive call with a {@link TreePath}
  76870. whose fieldName is {@code "foo"} and whose {@code index} is -1 and
  76871. whose {@code parent} is also {@code null}.
  76872. @throws DeepInequalityException]]>
  76873. </doc>
  76874. </method>
  76875. <doc>
  76876. <![CDATA[Classes that implement this interface can deep-compare [for equality only,
  76877. not order] with another instance. They do a deep compare. If there is any
  76878. semantically significant difference, an implementer throws an Exception to be
  76879. thrown with a chain of causes describing the chain of field references and
  76880. indices that get you to the miscompared point.]]>
  76881. </doc>
  76882. </interface>
  76883. <!-- end interface org.apache.hadoop.tools.rumen.DeepCompare -->
  76884. <!-- start class org.apache.hadoop.tools.rumen.DeepInequalityException -->
  76885. <class name="DeepInequalityException" extends="java.lang.Exception"
  76886. abstract="false"
  76887. static="false" final="false" visibility="public"
  76888. deprecated="not deprecated">
  76889. <constructor name="DeepInequalityException" type="java.lang.String, org.apache.hadoop.tools.rumen.TreePath, java.lang.Throwable"
  76890. static="false" final="false" visibility="public"
  76891. deprecated="not deprecated">
  76892. <doc>
  76893. <![CDATA[@param message
  76894. an exception message
  76895. @param path
  76896. the path that gets from the root to the inequality
  76897. This is the constructor that I intend to have used for this
  76898. exception.]]>
  76899. </doc>
  76900. </constructor>
  76901. <constructor name="DeepInequalityException" type="java.lang.String, org.apache.hadoop.tools.rumen.TreePath"
  76902. static="false" final="false" visibility="public"
  76903. deprecated="not deprecated">
  76904. <doc>
  76905. <![CDATA[@param message
  76906. an exception message
  76907. @param path
  76908. the path that gets from the root to the inequality
  76909. This is the constructor that I intend to have used for this
  76910. exception.]]>
  76911. </doc>
  76912. </constructor>
  76913. <doc>
  76914. <![CDATA[We use this exception class in the unit test, and we do a deep comparison
  76915. when we run the]]>
  76916. </doc>
  76917. </class>
  76918. <!-- end class org.apache.hadoop.tools.rumen.DeepInequalityException -->
  76919. <!-- start class org.apache.hadoop.tools.rumen.DefaultInputDemuxer -->
  76920. <class name="DefaultInputDemuxer" extends="java.lang.Object"
  76921. abstract="false"
  76922. static="false" final="false" visibility="public"
  76923. deprecated="not deprecated">
  76924. <implements name="org.apache.hadoop.tools.rumen.InputDemuxer"/>
  76925. <constructor name="DefaultInputDemuxer"
  76926. static="false" final="false" visibility="public"
  76927. deprecated="not deprecated">
  76928. </constructor>
  76929. <method name="bindTo"
  76930. abstract="false" native="false" synchronized="false"
  76931. static="false" final="false" visibility="public"
  76932. deprecated="not deprecated">
  76933. <param name="path" type="org.apache.hadoop.fs.Path"/>
  76934. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  76935. <exception name="IOException" type="java.io.IOException"/>
  76936. </method>
  76937. <method name="getNext" return="org.apache.hadoop.tools.rumen.Pair"
  76938. abstract="false" native="false" synchronized="false"
  76939. static="false" final="false" visibility="public"
  76940. deprecated="not deprecated">
  76941. <exception name="IOException" type="java.io.IOException"/>
  76942. </method>
  76943. <method name="close"
  76944. abstract="false" native="false" synchronized="false"
  76945. static="false" final="false" visibility="public"
  76946. deprecated="not deprecated">
  76947. <exception name="IOException" type="java.io.IOException"/>
  76948. </method>
  76949. <doc>
  76950. <![CDATA[{@link DefaultInputDemuxer} acts as a pass-through demuxer. It just opens
  76951. each file and returns back the input stream. If the input is compressed, it
  76952. would return a decompression stream.]]>
  76953. </doc>
  76954. </class>
  76955. <!-- end class org.apache.hadoop.tools.rumen.DefaultInputDemuxer -->
  76956. <!-- start class org.apache.hadoop.tools.rumen.DefaultOutputter -->
  76957. <class name="DefaultOutputter" extends="java.lang.Object"
  76958. abstract="false"
  76959. static="false" final="false" visibility="public"
  76960. deprecated="not deprecated">
  76961. <implements name="org.apache.hadoop.tools.rumen.Outputter"/>
  76962. <constructor name="DefaultOutputter"
  76963. static="false" final="false" visibility="public"
  76964. deprecated="not deprecated">
  76965. </constructor>
  76966. <method name="init"
  76967. abstract="false" native="false" synchronized="false"
  76968. static="false" final="false" visibility="public"
  76969. deprecated="not deprecated">
  76970. <param name="path" type="org.apache.hadoop.fs.Path"/>
  76971. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  76972. <exception name="IOException" type="java.io.IOException"/>
  76973. </method>
  76974. <method name="output"
  76975. abstract="false" native="false" synchronized="false"
  76976. static="false" final="false" visibility="public"
  76977. deprecated="not deprecated">
  76978. <param name="object" type="java.lang.Object"/>
  76979. <exception name="IOException" type="java.io.IOException"/>
  76980. </method>
  76981. <method name="close"
  76982. abstract="false" native="false" synchronized="false"
  76983. static="false" final="false" visibility="public"
  76984. deprecated="not deprecated">
  76985. <exception name="IOException" type="java.io.IOException"/>
  76986. </method>
  76987. <doc>
  76988. <![CDATA[The default {@link Outputter} that outputs to a plain file. Compression
  76989. will be applied if the path has the right suffix.]]>
  76990. </doc>
  76991. </class>
  76992. <!-- end class org.apache.hadoop.tools.rumen.DefaultOutputter -->
  76993. <!-- start class org.apache.hadoop.tools.rumen.DeskewedJobTraceReader -->
  76994. <class name="DeskewedJobTraceReader" extends="java.lang.Object"
  76995. abstract="false"
  76996. static="false" final="false" visibility="public"
  76997. deprecated="not deprecated">
  76998. <implements name="java.io.Closeable"/>
  76999. <constructor name="DeskewedJobTraceReader" type="org.apache.hadoop.tools.rumen.JobTraceReader, int, boolean"
  77000. static="false" final="false" visibility="public"
  77001. deprecated="not deprecated">
  77002. <exception name="IOException" type="java.io.IOException"/>
  77003. <doc>
  77004. <![CDATA[Constructor.
  77005. @param reader
  77006. the {@link JobTraceReader} that's being protected
  77007. @param skewBufferLength
  77008. [the number of late jobs that can preced a later out-of-order
  77009. earlier job
  77010. @throws IOException]]>
  77011. </doc>
  77012. </constructor>
  77013. <constructor name="DeskewedJobTraceReader" type="org.apache.hadoop.tools.rumen.JobTraceReader"
  77014. static="false" final="false" visibility="public"
  77015. deprecated="not deprecated">
  77016. <exception name="IOException" type="java.io.IOException"/>
  77017. </constructor>
  77018. <method name="close"
  77019. abstract="false" native="false" synchronized="false"
  77020. static="false" final="false" visibility="public"
  77021. deprecated="not deprecated">
  77022. <exception name="IOException" type="java.io.IOException"/>
  77023. </method>
  77024. </class>
  77025. <!-- end class org.apache.hadoop.tools.rumen.DeskewedJobTraceReader -->
  77026. <!-- start class org.apache.hadoop.tools.rumen.EventType -->
  77027. <class name="EventType" extends="java.lang.Enum"
  77028. abstract="false"
  77029. static="false" final="true" visibility="public"
  77030. deprecated="not deprecated">
  77031. <method name="values" return="org.apache.hadoop.tools.rumen.EventType[]"
  77032. abstract="false" native="false" synchronized="false"
  77033. static="true" final="false" visibility="public"
  77034. deprecated="not deprecated">
  77035. </method>
  77036. <method name="valueOf" return="org.apache.hadoop.tools.rumen.EventType"
  77037. abstract="false" native="false" synchronized="false"
  77038. static="true" final="false" visibility="public"
  77039. deprecated="not deprecated">
  77040. <param name="name" type="java.lang.String"/>
  77041. </method>
  77042. <field name="JOB_SUBMITTED" type="org.apache.hadoop.tools.rumen.EventType"
  77043. transient="false" volatile="false"
  77044. static="true" final="true" visibility="public"
  77045. deprecated="not deprecated">
  77046. </field>
  77047. <field name="JOB_INITED" type="org.apache.hadoop.tools.rumen.EventType"
  77048. transient="false" volatile="false"
  77049. static="true" final="true" visibility="public"
  77050. deprecated="not deprecated">
  77051. </field>
  77052. <field name="JOB_FINISHED" type="org.apache.hadoop.tools.rumen.EventType"
  77053. transient="false" volatile="false"
  77054. static="true" final="true" visibility="public"
  77055. deprecated="not deprecated">
  77056. </field>
  77057. <field name="JOB_PRIORITY_CHANGED" type="org.apache.hadoop.tools.rumen.EventType"
  77058. transient="false" volatile="false"
  77059. static="true" final="true" visibility="public"
  77060. deprecated="not deprecated">
  77061. </field>
  77062. <field name="JOB_STATUS_CHANGED" type="org.apache.hadoop.tools.rumen.EventType"
  77063. transient="false" volatile="false"
  77064. static="true" final="true" visibility="public"
  77065. deprecated="not deprecated">
  77066. </field>
  77067. <field name="JOB_FAILED" type="org.apache.hadoop.tools.rumen.EventType"
  77068. transient="false" volatile="false"
  77069. static="true" final="true" visibility="public"
  77070. deprecated="not deprecated">
  77071. </field>
  77072. <field name="JOB_KILLED" type="org.apache.hadoop.tools.rumen.EventType"
  77073. transient="false" volatile="false"
  77074. static="true" final="true" visibility="public"
  77075. deprecated="not deprecated">
  77076. </field>
  77077. <field name="JOB_INFO_CHANGED" type="org.apache.hadoop.tools.rumen.EventType"
  77078. transient="false" volatile="false"
  77079. static="true" final="true" visibility="public"
  77080. deprecated="not deprecated">
  77081. </field>
  77082. <field name="TASK_STARTED" type="org.apache.hadoop.tools.rumen.EventType"
  77083. transient="false" volatile="false"
  77084. static="true" final="true" visibility="public"
  77085. deprecated="not deprecated">
  77086. </field>
  77087. <field name="TASK_FINISHED" type="org.apache.hadoop.tools.rumen.EventType"
  77088. transient="false" volatile="false"
  77089. static="true" final="true" visibility="public"
  77090. deprecated="not deprecated">
  77091. </field>
  77092. <field name="TASK_FAILED" type="org.apache.hadoop.tools.rumen.EventType"
  77093. transient="false" volatile="false"
  77094. static="true" final="true" visibility="public"
  77095. deprecated="not deprecated">
  77096. </field>
  77097. <field name="TASK_UPDATED" type="org.apache.hadoop.tools.rumen.EventType"
  77098. transient="false" volatile="false"
  77099. static="true" final="true" visibility="public"
  77100. deprecated="not deprecated">
  77101. </field>
  77102. <field name="MAP_ATTEMPT_STARTED" type="org.apache.hadoop.tools.rumen.EventType"
  77103. transient="false" volatile="false"
  77104. static="true" final="true" visibility="public"
  77105. deprecated="not deprecated">
  77106. </field>
  77107. <field name="MAP_ATTEMPT_FINISHED" type="org.apache.hadoop.tools.rumen.EventType"
  77108. transient="false" volatile="false"
  77109. static="true" final="true" visibility="public"
  77110. deprecated="not deprecated">
  77111. </field>
  77112. <field name="MAP_ATTEMPT_FAILED" type="org.apache.hadoop.tools.rumen.EventType"
  77113. transient="false" volatile="false"
  77114. static="true" final="true" visibility="public"
  77115. deprecated="not deprecated">
  77116. </field>
  77117. <field name="MAP_ATTEMPT_KILLED" type="org.apache.hadoop.tools.rumen.EventType"
  77118. transient="false" volatile="false"
  77119. static="true" final="true" visibility="public"
  77120. deprecated="not deprecated">
  77121. </field>
  77122. <field name="REDUCE_ATTEMPT_STARTED" type="org.apache.hadoop.tools.rumen.EventType"
  77123. transient="false" volatile="false"
  77124. static="true" final="true" visibility="public"
  77125. deprecated="not deprecated">
  77126. </field>
  77127. <field name="REDUCE_ATTEMPT_FINISHED" type="org.apache.hadoop.tools.rumen.EventType"
  77128. transient="false" volatile="false"
  77129. static="true" final="true" visibility="public"
  77130. deprecated="not deprecated">
  77131. </field>
  77132. <field name="REDUCE_ATTEMPT_FAILED" type="org.apache.hadoop.tools.rumen.EventType"
  77133. transient="false" volatile="false"
  77134. static="true" final="true" visibility="public"
  77135. deprecated="not deprecated">
  77136. </field>
  77137. <field name="REDUCE_ATTEMPT_KILLED" type="org.apache.hadoop.tools.rumen.EventType"
  77138. transient="false" volatile="false"
  77139. static="true" final="true" visibility="public"
  77140. deprecated="not deprecated">
  77141. </field>
  77142. <field name="SETUP_ATTEMPT_STARTED" type="org.apache.hadoop.tools.rumen.EventType"
  77143. transient="false" volatile="false"
  77144. static="true" final="true" visibility="public"
  77145. deprecated="not deprecated">
  77146. </field>
  77147. <field name="SETUP_ATTEMPT_FINISHED" type="org.apache.hadoop.tools.rumen.EventType"
  77148. transient="false" volatile="false"
  77149. static="true" final="true" visibility="public"
  77150. deprecated="not deprecated">
  77151. </field>
  77152. <field name="SETUP_ATTEMPT_FAILED" type="org.apache.hadoop.tools.rumen.EventType"
  77153. transient="false" volatile="false"
  77154. static="true" final="true" visibility="public"
  77155. deprecated="not deprecated">
  77156. </field>
  77157. <field name="SETUP_ATTEMPT_KILLED" type="org.apache.hadoop.tools.rumen.EventType"
  77158. transient="false" volatile="false"
  77159. static="true" final="true" visibility="public"
  77160. deprecated="not deprecated">
  77161. </field>
  77162. <field name="CLEANUP_ATTEMPT_STARTED" type="org.apache.hadoop.tools.rumen.EventType"
  77163. transient="false" volatile="false"
  77164. static="true" final="true" visibility="public"
  77165. deprecated="not deprecated">
  77166. </field>
  77167. <field name="CLEANUP_ATTEMPT_FINISHED" type="org.apache.hadoop.tools.rumen.EventType"
  77168. transient="false" volatile="false"
  77169. static="true" final="true" visibility="public"
  77170. deprecated="not deprecated">
  77171. </field>
  77172. <field name="CLEANUP_ATTEMPT_FAILED" type="org.apache.hadoop.tools.rumen.EventType"
  77173. transient="false" volatile="false"
  77174. static="true" final="true" visibility="public"
  77175. deprecated="not deprecated">
  77176. </field>
  77177. <field name="CLEANUP_ATTEMPT_KILLED" type="org.apache.hadoop.tools.rumen.EventType"
  77178. transient="false" volatile="false"
  77179. static="true" final="true" visibility="public"
  77180. deprecated="not deprecated">
  77181. </field>
  77182. </class>
  77183. <!-- end class org.apache.hadoop.tools.rumen.EventType -->
  77184. <!-- start class org.apache.hadoop.tools.rumen.Hadoop20JHParser -->
  77185. <class name="Hadoop20JHParser" extends="java.lang.Object"
  77186. abstract="false"
  77187. static="false" final="false" visibility="public"
  77188. deprecated="not deprecated">
  77189. <implements name="org.apache.hadoop.tools.rumen.JobHistoryParser"/>
  77190. <constructor name="Hadoop20JHParser" type="java.io.InputStream"
  77191. static="false" final="false" visibility="public"
  77192. deprecated="not deprecated">
  77193. <exception name="IOException" type="java.io.IOException"/>
  77194. </constructor>
  77195. <method name="canParse" return="boolean"
  77196. abstract="false" native="false" synchronized="false"
  77197. static="true" final="false" visibility="public"
  77198. deprecated="not deprecated">
  77199. <param name="input" type="java.io.InputStream"/>
  77200. <exception name="IOException" type="java.io.IOException"/>
  77201. <doc>
  77202. <![CDATA[Can this parser parse the input?
  77203. @param input
  77204. @return Whether this parser can parse the input.
  77205. @throws IOException
  77206. We will deem a stream to be a good 0.20 job history stream if the
  77207. first line is exactly "Meta VERSION=\"1\" ."]]>
  77208. </doc>
  77209. </method>
  77210. <method name="nextEvent" return="org.apache.hadoop.tools.rumen.HistoryEvent"
  77211. abstract="false" native="false" synchronized="false"
  77212. static="false" final="false" visibility="public"
  77213. deprecated="not deprecated">
  77214. </method>
  77215. <method name="close"
  77216. abstract="false" native="false" synchronized="false"
  77217. static="false" final="false" visibility="public"
  77218. deprecated="not deprecated">
  77219. <exception name="IOException" type="java.io.IOException"/>
  77220. </method>
  77221. <doc>
  77222. <![CDATA[{@link JobHistoryParser} to parse job histories for hadoop 0.20 (META=1).]]>
  77223. </doc>
  77224. </class>
  77225. <!-- end class org.apache.hadoop.tools.rumen.Hadoop20JHParser -->
  77226. <!-- start class org.apache.hadoop.tools.rumen.HadoopLogsAnalyzer -->
  77227. <class name="HadoopLogsAnalyzer" extends="org.apache.hadoop.conf.Configured"
  77228. abstract="false"
  77229. static="false" final="false" visibility="public"
  77230. deprecated="not deprecated">
  77231. <implements name="org.apache.hadoop.util.Tool"/>
  77232. <constructor name="HadoopLogsAnalyzer"
  77233. static="false" final="false" visibility="public"
  77234. deprecated="not deprecated">
  77235. </constructor>
  77236. <method name="run" return="int"
  77237. abstract="false" native="false" synchronized="false"
  77238. static="false" final="false" visibility="public"
  77239. deprecated="not deprecated">
  77240. <param name="args" type="java.lang.String[]"/>
  77241. <exception name="IOException" type="java.io.IOException"/>
  77242. </method>
  77243. <method name="main"
  77244. abstract="false" native="false" synchronized="false"
  77245. static="true" final="false" visibility="public"
  77246. deprecated="not deprecated">
  77247. <param name="args" type="java.lang.String[]"/>
  77248. <doc>
  77249. <![CDATA[@param args
  77250. Last arg is the input file. That file can be a directory, in which
  77251. case you get all the files in sorted order. We will decompress
  77252. files whose nmes end in .gz .
  77253. switches: -c collect line types.
  77254. -d debug mode
  77255. -delays print out the delays [interval between job submit time and
  77256. launch time]
  77257. -runtimes print out the job runtimes
  77258. -spreads print out the ratio of 10%ile and 90%ile, of both the
  77259. successful map task attempt run times and the the successful
  77260. reduce task attempt run times
  77261. -tasktimes prints out individual task time distributions
  77262. collects all the line types and prints the first example of each
  77263. one]]>
  77264. </doc>
  77265. </method>
  77266. <doc>
  77267. <![CDATA[This is the main class for rumen log mining functionality.
  77268. It reads a directory of job tracker logs, and computes various information
  77269. about it. See {@code usage()}, below.]]>
  77270. </doc>
  77271. </class>
  77272. <!-- end class org.apache.hadoop.tools.rumen.HadoopLogsAnalyzer -->
  77273. <!-- start interface org.apache.hadoop.tools.rumen.HistoryEvent -->
  77274. <interface name="HistoryEvent" abstract="true"
  77275. static="false" final="false" visibility="public"
  77276. deprecated="not deprecated">
  77277. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  77278. abstract="false" native="false" synchronized="false"
  77279. static="false" final="false" visibility="public"
  77280. deprecated="not deprecated">
  77281. <doc>
  77282. <![CDATA[Return this event's type.]]>
  77283. </doc>
  77284. </method>
  77285. </interface>
  77286. <!-- end interface org.apache.hadoop.tools.rumen.HistoryEvent -->
  77287. <!-- start interface org.apache.hadoop.tools.rumen.InputDemuxer -->
  77288. <interface name="InputDemuxer" abstract="true"
  77289. static="false" final="false" visibility="public"
  77290. deprecated="not deprecated">
  77291. <implements name="java.io.Closeable"/>
  77292. <method name="bindTo"
  77293. abstract="false" native="false" synchronized="false"
  77294. static="false" final="false" visibility="public"
  77295. deprecated="not deprecated">
  77296. <param name="path" type="org.apache.hadoop.fs.Path"/>
  77297. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  77298. <exception name="IOException" type="java.io.IOException"/>
  77299. <doc>
  77300. <![CDATA[Bind the {@link InputDemuxer} to a particular file.
  77301. @param path
  77302. The path to the find it should bind to.
  77303. @param conf
  77304. Configuration
  77305. @throws IOException
  77306. Returns true when the binding succeeds. If the file can be read
  77307. but is in the wrong format, returns false. IOException is
  77308. reserved for read errors.]]>
  77309. </doc>
  77310. </method>
  77311. <method name="getNext" return="org.apache.hadoop.tools.rumen.Pair"
  77312. abstract="false" native="false" synchronized="false"
  77313. static="false" final="false" visibility="public"
  77314. deprecated="not deprecated">
  77315. <exception name="IOException" type="java.io.IOException"/>
  77316. <doc>
  77317. <![CDATA[Get the next <name, input> pair. The name should preserve the original job
  77318. history file or job conf file name. The input object should be closed
  77319. before calling getNext() again. The old input object would be invalid after
  77320. calling getNext() again.
  77321. @return the next <name, input> pair.]]>
  77322. </doc>
  77323. </method>
  77324. <doc>
  77325. <![CDATA[{@link InputDemuxer} dem-ultiplexes the input files into individual input
  77326. streams.]]>
  77327. </doc>
  77328. </interface>
  77329. <!-- end interface org.apache.hadoop.tools.rumen.InputDemuxer -->
  77330. <!-- start class org.apache.hadoop.tools.rumen.JhCounter -->
  77331. <class name="JhCounter" extends="java.lang.Object"
  77332. abstract="false"
  77333. static="false" final="false" visibility="public"
  77334. deprecated="not deprecated">
  77335. <constructor name="JhCounter"
  77336. static="false" final="false" visibility="public"
  77337. deprecated="not deprecated">
  77338. </constructor>
  77339. <field name="name" type="java.lang.String"
  77340. transient="false" volatile="false"
  77341. static="false" final="false" visibility="public"
  77342. deprecated="not deprecated">
  77343. </field>
  77344. <field name="displayName" type="java.lang.String"
  77345. transient="false" volatile="false"
  77346. static="false" final="false" visibility="public"
  77347. deprecated="not deprecated">
  77348. </field>
  77349. <field name="value" type="long"
  77350. transient="false" volatile="false"
  77351. static="false" final="false" visibility="public"
  77352. deprecated="not deprecated">
  77353. </field>
  77354. </class>
  77355. <!-- end class org.apache.hadoop.tools.rumen.JhCounter -->
  77356. <!-- start class org.apache.hadoop.tools.rumen.JhCounterGroup -->
  77357. <class name="JhCounterGroup" extends="java.lang.Object"
  77358. abstract="false"
  77359. static="false" final="false" visibility="public"
  77360. deprecated="not deprecated">
  77361. <constructor name="JhCounterGroup"
  77362. static="false" final="false" visibility="public"
  77363. deprecated="not deprecated">
  77364. </constructor>
  77365. <field name="name" type="java.lang.String"
  77366. transient="false" volatile="false"
  77367. static="false" final="false" visibility="public"
  77368. deprecated="not deprecated">
  77369. </field>
  77370. <field name="displayName" type="java.lang.String"
  77371. transient="false" volatile="false"
  77372. static="false" final="false" visibility="public"
  77373. deprecated="not deprecated">
  77374. </field>
  77375. <field name="counts" type="java.util.List"
  77376. transient="false" volatile="false"
  77377. static="false" final="false" visibility="public"
  77378. deprecated="not deprecated">
  77379. </field>
  77380. </class>
  77381. <!-- end class org.apache.hadoop.tools.rumen.JhCounterGroup -->
  77382. <!-- start class org.apache.hadoop.tools.rumen.JhCounters -->
  77383. <class name="JhCounters" extends="java.lang.Object"
  77384. abstract="false"
  77385. static="false" final="false" visibility="public"
  77386. deprecated="not deprecated">
  77387. <field name="name" type="java.lang.String"
  77388. transient="false" volatile="false"
  77389. static="false" final="false" visibility="public"
  77390. deprecated="not deprecated">
  77391. </field>
  77392. <field name="groups" type="java.util.List"
  77393. transient="false" volatile="false"
  77394. static="false" final="false" visibility="public"
  77395. deprecated="not deprecated">
  77396. </field>
  77397. </class>
  77398. <!-- end class org.apache.hadoop.tools.rumen.JhCounters -->
  77399. <!-- start class org.apache.hadoop.tools.rumen.Job20LineHistoryEventEmitter -->
  77400. <class name="Job20LineHistoryEventEmitter" extends="org.apache.hadoop.tools.rumen.HistoryEventEmitter"
  77401. abstract="false"
  77402. static="false" final="false" visibility="public"
  77403. deprecated="not deprecated">
  77404. </class>
  77405. <!-- end class org.apache.hadoop.tools.rumen.Job20LineHistoryEventEmitter -->
  77406. <!-- start class org.apache.hadoop.tools.rumen.JobBuilder -->
  77407. <class name="JobBuilder" extends="java.lang.Object"
  77408. abstract="false"
  77409. static="false" final="false" visibility="public"
  77410. deprecated="not deprecated">
  77411. <constructor name="JobBuilder" type="java.lang.String"
  77412. static="false" final="false" visibility="public"
  77413. deprecated="not deprecated">
  77414. </constructor>
  77415. <method name="getJobID" return="java.lang.String"
  77416. abstract="false" native="false" synchronized="false"
  77417. static="false" final="false" visibility="public"
  77418. deprecated="not deprecated">
  77419. </method>
  77420. <method name="process"
  77421. abstract="false" native="false" synchronized="false"
  77422. static="false" final="false" visibility="public"
  77423. deprecated="not deprecated">
  77424. <param name="event" type="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  77425. <doc>
  77426. <![CDATA[Process one {@link HistoryEvent}
  77427. @param event
  77428. The {@link HistoryEvent} to be processed.]]>
  77429. </doc>
  77430. </method>
  77431. <method name="process"
  77432. abstract="false" native="false" synchronized="false"
  77433. static="false" final="false" visibility="public"
  77434. deprecated="not deprecated">
  77435. <param name="conf" type="java.util.Properties"/>
  77436. <doc>
  77437. <![CDATA[Process a collection of JobConf {@link Properties}. We do not restrict it
  77438. to be called once. It is okay to process a conf before, during or after the
  77439. events.
  77440. @param conf
  77441. The job conf properties to be added.]]>
  77442. </doc>
  77443. </method>
  77444. <method name="build" return="org.apache.hadoop.tools.rumen.ParsedJob"
  77445. abstract="false" native="false" synchronized="false"
  77446. static="false" final="false" visibility="public"
  77447. deprecated="not deprecated">
  77448. <doc>
  77449. <![CDATA[Request the builder to build the final object. Once called, the
  77450. {@link JobBuilder} would accept no more events or job-conf properties.
  77451. @return Parsed {@link ParsedJob} object.]]>
  77452. </doc>
  77453. </method>
  77454. <doc>
  77455. <![CDATA[{@link JobBuilder} builds one job. It processes a sequence of
  77456. {@link HistoryEvent}s.]]>
  77457. </doc>
  77458. </class>
  77459. <!-- end class org.apache.hadoop.tools.rumen.JobBuilder -->
  77460. <!-- start class org.apache.hadoop.tools.rumen.JobConfigurationParser -->
  77461. <class name="JobConfigurationParser" extends="java.lang.Object"
  77462. abstract="false"
  77463. static="false" final="false" visibility="public"
  77464. deprecated="not deprecated">
  77465. <constructor name="JobConfigurationParser"
  77466. static="false" final="false" visibility="public"
  77467. deprecated="not deprecated">
  77468. </constructor>
  77469. <doc>
  77470. <![CDATA[{@link JobConfigurationParser} parses the job configuration xml file, and
  77471. extracts configuration properties. It parses the file using a
  77472. stream-parser and thus is more memory efficient. [This optimization may be
  77473. postponed for a future release]]]>
  77474. </doc>
  77475. </class>
  77476. <!-- end class org.apache.hadoop.tools.rumen.JobConfigurationParser -->
  77477. <!-- start class org.apache.hadoop.tools.rumen.JobConfPropertyNames -->
  77478. <class name="JobConfPropertyNames" extends="java.lang.Enum"
  77479. abstract="false"
  77480. static="false" final="true" visibility="public"
  77481. deprecated="not deprecated">
  77482. <method name="values" return="org.apache.hadoop.tools.rumen.JobConfPropertyNames[]"
  77483. abstract="false" native="false" synchronized="false"
  77484. static="true" final="false" visibility="public"
  77485. deprecated="not deprecated">
  77486. </method>
  77487. <method name="valueOf" return="org.apache.hadoop.tools.rumen.JobConfPropertyNames"
  77488. abstract="false" native="false" synchronized="false"
  77489. static="true" final="false" visibility="public"
  77490. deprecated="not deprecated">
  77491. <param name="name" type="java.lang.String"/>
  77492. </method>
  77493. <method name="getCandidates" return="java.lang.String[]"
  77494. abstract="false" native="false" synchronized="false"
  77495. static="false" final="false" visibility="public"
  77496. deprecated="not deprecated">
  77497. </method>
  77498. <field name="QUEUE_NAMES" type="org.apache.hadoop.tools.rumen.JobConfPropertyNames"
  77499. transient="false" volatile="false"
  77500. static="true" final="true" visibility="public"
  77501. deprecated="not deprecated">
  77502. </field>
  77503. <field name="JOB_NAMES" type="org.apache.hadoop.tools.rumen.JobConfPropertyNames"
  77504. transient="false" volatile="false"
  77505. static="true" final="true" visibility="public"
  77506. deprecated="not deprecated">
  77507. </field>
  77508. <field name="TASK_JAVA_OPTS_S" type="org.apache.hadoop.tools.rumen.JobConfPropertyNames"
  77509. transient="false" volatile="false"
  77510. static="true" final="true" visibility="public"
  77511. deprecated="not deprecated">
  77512. </field>
  77513. <field name="MAP_JAVA_OPTS_S" type="org.apache.hadoop.tools.rumen.JobConfPropertyNames"
  77514. transient="false" volatile="false"
  77515. static="true" final="true" visibility="public"
  77516. deprecated="not deprecated">
  77517. </field>
  77518. <field name="REDUCE_JAVA_OPTS_S" type="org.apache.hadoop.tools.rumen.JobConfPropertyNames"
  77519. transient="false" volatile="false"
  77520. static="true" final="true" visibility="public"
  77521. deprecated="not deprecated">
  77522. </field>
  77523. </class>
  77524. <!-- end class org.apache.hadoop.tools.rumen.JobConfPropertyNames -->
  77525. <!-- start class org.apache.hadoop.tools.rumen.JobFinishedEvent -->
  77526. <class name="JobFinishedEvent" extends="java.lang.Object"
  77527. abstract="false"
  77528. static="false" final="false" visibility="public"
  77529. deprecated="not deprecated">
  77530. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  77531. <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"
  77532. static="false" final="false" visibility="public"
  77533. deprecated="not deprecated">
  77534. <doc>
  77535. <![CDATA[Create an event to record successful job completion
  77536. @param id Job ID
  77537. @param finishTime Finish time of the job
  77538. @param finishedMaps The number of finished maps
  77539. @param finishedReduces The number of finished reduces
  77540. @param failedMaps The number of failed maps
  77541. @param failedReduces The number of failed reduces
  77542. @param mapCounters Map Counters for the job
  77543. @param reduceCounters Reduce Counters for the job
  77544. @param totalCounters Total Counters for the job]]>
  77545. </doc>
  77546. </constructor>
  77547. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  77548. abstract="false" native="false" synchronized="false"
  77549. static="false" final="false" visibility="public"
  77550. deprecated="not deprecated">
  77551. </method>
  77552. <method name="getJobid" return="org.apache.hadoop.mapreduce.JobID"
  77553. abstract="false" native="false" synchronized="false"
  77554. static="false" final="false" visibility="public"
  77555. deprecated="not deprecated">
  77556. <doc>
  77557. <![CDATA[Get the Job ID]]>
  77558. </doc>
  77559. </method>
  77560. <method name="getFinishTime" return="long"
  77561. abstract="false" native="false" synchronized="false"
  77562. static="false" final="false" visibility="public"
  77563. deprecated="not deprecated">
  77564. <doc>
  77565. <![CDATA[Get the job finish time]]>
  77566. </doc>
  77567. </method>
  77568. <method name="getFinishedMaps" return="int"
  77569. abstract="false" native="false" synchronized="false"
  77570. static="false" final="false" visibility="public"
  77571. deprecated="not deprecated">
  77572. <doc>
  77573. <![CDATA[Get the number of finished maps for the job]]>
  77574. </doc>
  77575. </method>
  77576. <method name="getFinishedReduces" return="int"
  77577. abstract="false" native="false" synchronized="false"
  77578. static="false" final="false" visibility="public"
  77579. deprecated="not deprecated">
  77580. <doc>
  77581. <![CDATA[Get the number of finished reducers for the job]]>
  77582. </doc>
  77583. </method>
  77584. <method name="getFailedMaps" return="int"
  77585. abstract="false" native="false" synchronized="false"
  77586. static="false" final="false" visibility="public"
  77587. deprecated="not deprecated">
  77588. <doc>
  77589. <![CDATA[Get the number of failed maps for the job]]>
  77590. </doc>
  77591. </method>
  77592. <method name="getFailedReduces" return="int"
  77593. abstract="false" native="false" synchronized="false"
  77594. static="false" final="false" visibility="public"
  77595. deprecated="not deprecated">
  77596. <doc>
  77597. <![CDATA[Get the number of failed reducers for the job]]>
  77598. </doc>
  77599. </method>
  77600. <method name="getTotalCounters" return="org.apache.hadoop.mapreduce.Counters"
  77601. abstract="false" native="false" synchronized="false"
  77602. static="false" final="false" visibility="public"
  77603. deprecated="not deprecated">
  77604. <doc>
  77605. <![CDATA[Get the counters for the job]]>
  77606. </doc>
  77607. </method>
  77608. <method name="getMapCounters" return="org.apache.hadoop.mapreduce.Counters"
  77609. abstract="false" native="false" synchronized="false"
  77610. static="false" final="false" visibility="public"
  77611. deprecated="not deprecated">
  77612. <doc>
  77613. <![CDATA[Get the Map counters for the job]]>
  77614. </doc>
  77615. </method>
  77616. <method name="getReduceCounters" return="org.apache.hadoop.mapreduce.Counters"
  77617. abstract="false" native="false" synchronized="false"
  77618. static="false" final="false" visibility="public"
  77619. deprecated="not deprecated">
  77620. <doc>
  77621. <![CDATA[Get the reduce counters for the job]]>
  77622. </doc>
  77623. </method>
  77624. <doc>
  77625. <![CDATA[Event to record successful completion of job]]>
  77626. </doc>
  77627. </class>
  77628. <!-- end class org.apache.hadoop.tools.rumen.JobFinishedEvent -->
  77629. <!-- start interface org.apache.hadoop.tools.rumen.JobHistoryParser -->
  77630. <interface name="JobHistoryParser" abstract="true"
  77631. static="false" final="false" visibility="public"
  77632. deprecated="not deprecated">
  77633. <implements name="java.io.Closeable"/>
  77634. <method name="nextEvent" return="org.apache.hadoop.tools.rumen.HistoryEvent"
  77635. abstract="false" native="false" synchronized="false"
  77636. static="false" final="false" visibility="public"
  77637. deprecated="not deprecated">
  77638. <exception name="IOException" type="java.io.IOException"/>
  77639. <doc>
  77640. <![CDATA[Get the next {@link HistoryEvent}
  77641. @return the next {@link HistoryEvent}. If no more events left, return null.
  77642. @throws IOException]]>
  77643. </doc>
  77644. </method>
  77645. <doc>
  77646. <![CDATA[{@link JobHistoryParser} defines the interface of a Job History file parser.]]>
  77647. </doc>
  77648. </interface>
  77649. <!-- end interface org.apache.hadoop.tools.rumen.JobHistoryParser -->
  77650. <!-- start class org.apache.hadoop.tools.rumen.JobHistoryParserFactory -->
  77651. <class name="JobHistoryParserFactory" extends="java.lang.Object"
  77652. abstract="false"
  77653. static="false" final="false" visibility="public"
  77654. deprecated="not deprecated">
  77655. <constructor name="JobHistoryParserFactory"
  77656. static="false" final="false" visibility="public"
  77657. deprecated="not deprecated">
  77658. </constructor>
  77659. <method name="getParser" return="org.apache.hadoop.tools.rumen.JobHistoryParser"
  77660. abstract="false" native="false" synchronized="false"
  77661. static="true" final="false" visibility="public"
  77662. deprecated="not deprecated">
  77663. <param name="ris" type="org.apache.hadoop.tools.rumen.RewindableInputStream"/>
  77664. <exception name="IOException" type="java.io.IOException"/>
  77665. </method>
  77666. <doc>
  77667. <![CDATA[{@link JobHistoryParserFactory} is a singleton class that attempts to
  77668. determine the version of job history and return a proper parser.]]>
  77669. </doc>
  77670. </class>
  77671. <!-- end class org.apache.hadoop.tools.rumen.JobHistoryParserFactory -->
  77672. <!-- start class org.apache.hadoop.tools.rumen.JobHistoryParserFactory.VersionDetector -->
  77673. <class name="JobHistoryParserFactory.VersionDetector" extends="java.lang.Enum"
  77674. abstract="false"
  77675. static="true" final="false" visibility="public"
  77676. deprecated="not deprecated">
  77677. <method name="values" return="org.apache.hadoop.tools.rumen.JobHistoryParserFactory.VersionDetector[]"
  77678. abstract="false" native="false" synchronized="false"
  77679. static="true" final="false" visibility="public"
  77680. deprecated="not deprecated">
  77681. </method>
  77682. <method name="valueOf" return="org.apache.hadoop.tools.rumen.JobHistoryParserFactory.VersionDetector"
  77683. abstract="false" native="false" synchronized="false"
  77684. static="true" final="false" visibility="public"
  77685. deprecated="not deprecated">
  77686. <param name="name" type="java.lang.String"/>
  77687. </method>
  77688. <field name="Hadoop20" type="org.apache.hadoop.tools.rumen.JobHistoryParserFactory.VersionDetector"
  77689. transient="false" volatile="false"
  77690. static="true" final="true" visibility="public"
  77691. deprecated="not deprecated">
  77692. </field>
  77693. </class>
  77694. <!-- end class org.apache.hadoop.tools.rumen.JobHistoryParserFactory.VersionDetector -->
  77695. <!-- start class org.apache.hadoop.tools.rumen.JobHistoryUtils -->
  77696. <class name="JobHistoryUtils" extends="java.lang.Object"
  77697. abstract="false"
  77698. static="false" final="false" visibility="public"
  77699. deprecated="not deprecated">
  77700. <constructor name="JobHistoryUtils"
  77701. static="false" final="false" visibility="public"
  77702. deprecated="not deprecated">
  77703. </constructor>
  77704. </class>
  77705. <!-- end class org.apache.hadoop.tools.rumen.JobHistoryUtils -->
  77706. <!-- start class org.apache.hadoop.tools.rumen.JobInfoChangeEvent -->
  77707. <class name="JobInfoChangeEvent" extends="java.lang.Object"
  77708. abstract="false"
  77709. static="false" final="false" visibility="public"
  77710. deprecated="not deprecated">
  77711. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  77712. <constructor name="JobInfoChangeEvent" type="org.apache.hadoop.mapreduce.JobID, long, long"
  77713. static="false" final="false" visibility="public"
  77714. deprecated="not deprecated">
  77715. <doc>
  77716. <![CDATA[Create a event to record the submit and launch time of a job
  77717. @param id Job Id
  77718. @param submitTime Submit time of the job
  77719. @param launchTime Launch time of the job]]>
  77720. </doc>
  77721. </constructor>
  77722. <method name="getJobId" return="org.apache.hadoop.mapreduce.JobID"
  77723. abstract="false" native="false" synchronized="false"
  77724. static="false" final="false" visibility="public"
  77725. deprecated="not deprecated">
  77726. <doc>
  77727. <![CDATA[Get the Job ID]]>
  77728. </doc>
  77729. </method>
  77730. <method name="getSubmitTime" return="long"
  77731. abstract="false" native="false" synchronized="false"
  77732. static="false" final="false" visibility="public"
  77733. deprecated="not deprecated">
  77734. <doc>
  77735. <![CDATA[Get the Job submit time]]>
  77736. </doc>
  77737. </method>
  77738. <method name="getLaunchTime" return="long"
  77739. abstract="false" native="false" synchronized="false"
  77740. static="false" final="false" visibility="public"
  77741. deprecated="not deprecated">
  77742. <doc>
  77743. <![CDATA[Get the Job launch time]]>
  77744. </doc>
  77745. </method>
  77746. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  77747. abstract="false" native="false" synchronized="false"
  77748. static="false" final="false" visibility="public"
  77749. deprecated="not deprecated">
  77750. </method>
  77751. <doc>
  77752. <![CDATA[Event to record changes in the submit and launch time of
  77753. a job]]>
  77754. </doc>
  77755. </class>
  77756. <!-- end class org.apache.hadoop.tools.rumen.JobInfoChangeEvent -->
  77757. <!-- start class org.apache.hadoop.tools.rumen.JobInitedEvent -->
  77758. <class name="JobInitedEvent" extends="java.lang.Object"
  77759. abstract="false"
  77760. static="false" final="false" visibility="public"
  77761. deprecated="not deprecated">
  77762. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  77763. <constructor name="JobInitedEvent" type="org.apache.hadoop.mapreduce.JobID, long, int, int, java.lang.String"
  77764. static="false" final="false" visibility="public"
  77765. deprecated="not deprecated">
  77766. <doc>
  77767. <![CDATA[Create an event to record job initialization
  77768. @param id
  77769. @param launchTime
  77770. @param totalMaps
  77771. @param totalReduces
  77772. @param jobStatus]]>
  77773. </doc>
  77774. </constructor>
  77775. <method name="getJobId" return="org.apache.hadoop.mapreduce.JobID"
  77776. abstract="false" native="false" synchronized="false"
  77777. static="false" final="false" visibility="public"
  77778. deprecated="not deprecated">
  77779. <doc>
  77780. <![CDATA[Get the job ID]]>
  77781. </doc>
  77782. </method>
  77783. <method name="getLaunchTime" return="long"
  77784. abstract="false" native="false" synchronized="false"
  77785. static="false" final="false" visibility="public"
  77786. deprecated="not deprecated">
  77787. <doc>
  77788. <![CDATA[Get the launch time]]>
  77789. </doc>
  77790. </method>
  77791. <method name="getTotalMaps" return="int"
  77792. abstract="false" native="false" synchronized="false"
  77793. static="false" final="false" visibility="public"
  77794. deprecated="not deprecated">
  77795. <doc>
  77796. <![CDATA[Get the total number of maps]]>
  77797. </doc>
  77798. </method>
  77799. <method name="getTotalReduces" return="int"
  77800. abstract="false" native="false" synchronized="false"
  77801. static="false" final="false" visibility="public"
  77802. deprecated="not deprecated">
  77803. <doc>
  77804. <![CDATA[Get the total number of reduces]]>
  77805. </doc>
  77806. </method>
  77807. <method name="getStatus" return="java.lang.String"
  77808. abstract="false" native="false" synchronized="false"
  77809. static="false" final="false" visibility="public"
  77810. deprecated="not deprecated">
  77811. <doc>
  77812. <![CDATA[Get the status]]>
  77813. </doc>
  77814. </method>
  77815. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  77816. abstract="false" native="false" synchronized="false"
  77817. static="false" final="false" visibility="public"
  77818. deprecated="not deprecated">
  77819. <doc>
  77820. <![CDATA[Get the event type]]>
  77821. </doc>
  77822. </method>
  77823. <doc>
  77824. <![CDATA[Event to record the initialization of a job]]>
  77825. </doc>
  77826. </class>
  77827. <!-- end class org.apache.hadoop.tools.rumen.JobInitedEvent -->
  77828. <!-- start class org.apache.hadoop.tools.rumen.JobPriorityChangeEvent -->
  77829. <class name="JobPriorityChangeEvent" extends="java.lang.Object"
  77830. abstract="false"
  77831. static="false" final="false" visibility="public"
  77832. deprecated="not deprecated">
  77833. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  77834. <constructor name="JobPriorityChangeEvent" type="org.apache.hadoop.mapreduce.JobID, org.apache.hadoop.mapred.JobPriority"
  77835. static="false" final="false" visibility="public"
  77836. deprecated="not deprecated">
  77837. <doc>
  77838. <![CDATA[Generate an event to record changes in Job priority
  77839. @param id Job Id
  77840. @param priority The new priority of the job]]>
  77841. </doc>
  77842. </constructor>
  77843. <method name="getJobId" return="org.apache.hadoop.mapreduce.JobID"
  77844. abstract="false" native="false" synchronized="false"
  77845. static="false" final="false" visibility="public"
  77846. deprecated="not deprecated">
  77847. <doc>
  77848. <![CDATA[Get the Job ID]]>
  77849. </doc>
  77850. </method>
  77851. <method name="getPriority" return="org.apache.hadoop.mapred.JobPriority"
  77852. abstract="false" native="false" synchronized="false"
  77853. static="false" final="false" visibility="public"
  77854. deprecated="not deprecated">
  77855. <doc>
  77856. <![CDATA[Get the job priority]]>
  77857. </doc>
  77858. </method>
  77859. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  77860. abstract="false" native="false" synchronized="false"
  77861. static="false" final="false" visibility="public"
  77862. deprecated="not deprecated">
  77863. <doc>
  77864. <![CDATA[Get the event type]]>
  77865. </doc>
  77866. </method>
  77867. <doc>
  77868. <![CDATA[Event to record the change of priority of a job]]>
  77869. </doc>
  77870. </class>
  77871. <!-- end class org.apache.hadoop.tools.rumen.JobPriorityChangeEvent -->
  77872. <!-- start class org.apache.hadoop.tools.rumen.JobStatusChangedEvent -->
  77873. <class name="JobStatusChangedEvent" extends="java.lang.Object"
  77874. abstract="false"
  77875. static="false" final="false" visibility="public"
  77876. deprecated="not deprecated">
  77877. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  77878. <constructor name="JobStatusChangedEvent" type="org.apache.hadoop.mapreduce.JobID, java.lang.String"
  77879. static="false" final="false" visibility="public"
  77880. deprecated="not deprecated">
  77881. <doc>
  77882. <![CDATA[Create an event to record the change in the Job Status
  77883. @param id Job ID
  77884. @param jobStatus The new job status]]>
  77885. </doc>
  77886. </constructor>
  77887. <method name="getJobId" return="org.apache.hadoop.mapreduce.JobID"
  77888. abstract="false" native="false" synchronized="false"
  77889. static="false" final="false" visibility="public"
  77890. deprecated="not deprecated">
  77891. <doc>
  77892. <![CDATA[Get the Job Id]]>
  77893. </doc>
  77894. </method>
  77895. <method name="getStatus" return="java.lang.String"
  77896. abstract="false" native="false" synchronized="false"
  77897. static="false" final="false" visibility="public"
  77898. deprecated="not deprecated">
  77899. <doc>
  77900. <![CDATA[Get the event status]]>
  77901. </doc>
  77902. </method>
  77903. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  77904. abstract="false" native="false" synchronized="false"
  77905. static="false" final="false" visibility="public"
  77906. deprecated="not deprecated">
  77907. <doc>
  77908. <![CDATA[Get the event type]]>
  77909. </doc>
  77910. </method>
  77911. <doc>
  77912. <![CDATA[Event to record the change of status for a job]]>
  77913. </doc>
  77914. </class>
  77915. <!-- end class org.apache.hadoop.tools.rumen.JobStatusChangedEvent -->
  77916. <!-- start interface org.apache.hadoop.tools.rumen.JobStory -->
  77917. <interface name="JobStory" abstract="true"
  77918. static="false" final="false" visibility="public"
  77919. deprecated="not deprecated">
  77920. <method name="getJobConf" return="org.apache.hadoop.mapred.JobConf"
  77921. abstract="false" native="false" synchronized="false"
  77922. static="false" final="false" visibility="public"
  77923. deprecated="not deprecated">
  77924. <doc>
  77925. <![CDATA[Get the {@link JobConf} for the job.
  77926. @return the <code>JobConf</code> for the job]]>
  77927. </doc>
  77928. </method>
  77929. <method name="getName" return="java.lang.String"
  77930. abstract="false" native="false" synchronized="false"
  77931. static="false" final="false" visibility="public"
  77932. deprecated="not deprecated">
  77933. <doc>
  77934. <![CDATA[Get the job name.
  77935. @return the job name]]>
  77936. </doc>
  77937. </method>
  77938. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  77939. abstract="false" native="false" synchronized="false"
  77940. static="false" final="false" visibility="public"
  77941. deprecated="not deprecated">
  77942. <doc>
  77943. <![CDATA[Get the job ID
  77944. @return the job ID]]>
  77945. </doc>
  77946. </method>
  77947. <method name="getUser" return="java.lang.String"
  77948. abstract="false" native="false" synchronized="false"
  77949. static="false" final="false" visibility="public"
  77950. deprecated="not deprecated">
  77951. <doc>
  77952. <![CDATA[Get the user who ran the job.
  77953. @return the user who ran the job]]>
  77954. </doc>
  77955. </method>
  77956. <method name="getSubmissionTime" return="long"
  77957. abstract="false" native="false" synchronized="false"
  77958. static="false" final="false" visibility="public"
  77959. deprecated="not deprecated">
  77960. <doc>
  77961. <![CDATA[Get the job submission time.
  77962. @return the job submission time]]>
  77963. </doc>
  77964. </method>
  77965. <method name="getNumberMaps" return="int"
  77966. abstract="false" native="false" synchronized="false"
  77967. static="false" final="false" visibility="public"
  77968. deprecated="not deprecated">
  77969. <doc>
  77970. <![CDATA[Get the number of maps in the {@link JobStory}.
  77971. @return the number of maps in the <code>Job</code>]]>
  77972. </doc>
  77973. </method>
  77974. <method name="getNumberReduces" return="int"
  77975. abstract="false" native="false" synchronized="false"
  77976. static="false" final="false" visibility="public"
  77977. deprecated="not deprecated">
  77978. <doc>
  77979. <![CDATA[Get the number of reduce in the {@link JobStory}.
  77980. @return the number of reduces in the <code>Job</code>]]>
  77981. </doc>
  77982. </method>
  77983. <method name="getInputSplits" return="org.apache.hadoop.mapreduce.InputSplit[]"
  77984. abstract="false" native="false" synchronized="false"
  77985. static="false" final="false" visibility="public"
  77986. deprecated="not deprecated">
  77987. <doc>
  77988. <![CDATA[Get the input splits for the job.
  77989. @return the input splits for the job]]>
  77990. </doc>
  77991. </method>
  77992. <method name="getTaskInfo" return="org.apache.hadoop.tools.rumen.TaskInfo"
  77993. abstract="false" native="false" synchronized="false"
  77994. static="false" final="false" visibility="public"
  77995. deprecated="not deprecated">
  77996. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  77997. <param name="taskNumber" type="int"/>
  77998. <doc>
  77999. <![CDATA[Get {@link TaskInfo} for a given task.
  78000. @param taskType {@link TaskType} of the task
  78001. @param taskNumber Partition number of the task
  78002. @return the <code>TaskInfo</code> for the given task]]>
  78003. </doc>
  78004. </method>
  78005. <method name="getTaskAttemptInfo" return="org.apache.hadoop.tools.rumen.TaskAttemptInfo"
  78006. abstract="false" native="false" synchronized="false"
  78007. static="false" final="false" visibility="public"
  78008. deprecated="not deprecated">
  78009. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  78010. <param name="taskNumber" type="int"/>
  78011. <param name="taskAttemptNumber" type="int"/>
  78012. <doc>
  78013. <![CDATA[Get {@link TaskAttemptInfo} for a given task-attempt, without regard to
  78014. impact of locality (e.g. not needed to make scheduling decisions).
  78015. @param taskType {@link TaskType} of the task-attempt
  78016. @param taskNumber Partition number of the task-attempt
  78017. @param taskAttemptNumber Attempt number of the task
  78018. @return the <code>TaskAttemptInfo</code> for the given task-attempt]]>
  78019. </doc>
  78020. </method>
  78021. <method name="getMapTaskAttemptInfoAdjusted" return="org.apache.hadoop.tools.rumen.TaskAttemptInfo"
  78022. abstract="false" native="false" synchronized="false"
  78023. static="false" final="false" visibility="public"
  78024. deprecated="not deprecated">
  78025. <param name="taskNumber" type="int"/>
  78026. <param name="taskAttemptNumber" type="int"/>
  78027. <param name="locality" type="int"/>
  78028. <doc>
  78029. <![CDATA[Get {@link TaskAttemptInfo} for a given task-attempt, considering impact
  78030. of locality.
  78031. @param taskNumber Partition number of the task-attempt
  78032. @param taskAttemptNumber Attempt number of the task
  78033. @param locality Data locality of the task as scheduled in simulation
  78034. @return the <code>TaskAttemptInfo</code> for the given task-attempt]]>
  78035. </doc>
  78036. </method>
  78037. <method name="getOutcome" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  78038. abstract="false" native="false" synchronized="false"
  78039. static="false" final="false" visibility="public"
  78040. deprecated="not deprecated">
  78041. <doc>
  78042. <![CDATA[Get the outcome of the job execution.
  78043. @return The outcome of the job execution.]]>
  78044. </doc>
  78045. </method>
  78046. <method name="getQueueName" return="java.lang.String"
  78047. abstract="false" native="false" synchronized="false"
  78048. static="false" final="false" visibility="public"
  78049. deprecated="not deprecated">
  78050. <doc>
  78051. <![CDATA[Get the queue where the job is submitted.
  78052. @return the queue where the job is submitted.]]>
  78053. </doc>
  78054. </method>
  78055. <doc>
  78056. <![CDATA[{@link JobStory} represents the runtime information available for a
  78057. completed Map-Reduce job.]]>
  78058. </doc>
  78059. </interface>
  78060. <!-- end interface org.apache.hadoop.tools.rumen.JobStory -->
  78061. <!-- start interface org.apache.hadoop.tools.rumen.JobStoryProducer -->
  78062. <interface name="JobStoryProducer" abstract="true"
  78063. static="false" final="false" visibility="public"
  78064. deprecated="not deprecated">
  78065. <implements name="java.io.Closeable"/>
  78066. <method name="getNextJob" return="org.apache.hadoop.tools.rumen.JobStory"
  78067. abstract="false" native="false" synchronized="false"
  78068. static="false" final="false" visibility="public"
  78069. deprecated="not deprecated">
  78070. <exception name="IOException" type="java.io.IOException"/>
  78071. <doc>
  78072. <![CDATA[Get the next job.
  78073. @return The next job. Or null if no more job is available.
  78074. @throws IOException]]>
  78075. </doc>
  78076. </method>
  78077. <doc>
  78078. <![CDATA[{@link JobStoryProducer} produces the sequence of {@link JobStory}'s.]]>
  78079. </doc>
  78080. </interface>
  78081. <!-- end interface org.apache.hadoop.tools.rumen.JobStoryProducer -->
  78082. <!-- start class org.apache.hadoop.tools.rumen.JobSubmittedEvent -->
  78083. <class name="JobSubmittedEvent" extends="java.lang.Object"
  78084. abstract="false"
  78085. static="false" final="false" visibility="public"
  78086. deprecated="not deprecated">
  78087. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  78088. <constructor name="JobSubmittedEvent" type="org.apache.hadoop.mapreduce.JobID, java.lang.String, java.lang.String, long, java.lang.String"
  78089. static="false" final="false" visibility="public"
  78090. deprecated="Use
  78091. {@link #JobSubmittedEvent(JobID, String, String, long, String,
  78092. Map, String)}
  78093. instead.">
  78094. <doc>
  78095. <![CDATA[@deprecated Use
  78096. {@link #JobSubmittedEvent(JobID, String, String, long, String,
  78097. Map, String)}
  78098. instead.]]>
  78099. </doc>
  78100. </constructor>
  78101. <constructor name="JobSubmittedEvent" type="org.apache.hadoop.mapreduce.JobID, java.lang.String, java.lang.String, long, java.lang.String, java.util.Map"
  78102. static="false" final="false" visibility="public"
  78103. deprecated="Use
  78104. {@link #JobSubmittedEvent(JobID, String, String, long, String,
  78105. Map, String)}
  78106. instead.">
  78107. <doc>
  78108. <![CDATA[@deprecated Use
  78109. {@link #JobSubmittedEvent(JobID, String, String, long, String,
  78110. Map, String)}
  78111. instead.]]>
  78112. </doc>
  78113. </constructor>
  78114. <constructor name="JobSubmittedEvent" type="org.apache.hadoop.mapreduce.JobID, java.lang.String, java.lang.String, long, java.lang.String, java.util.Map, java.lang.String"
  78115. static="false" final="false" visibility="public"
  78116. deprecated="not deprecated">
  78117. <doc>
  78118. <![CDATA[Create an event to record job submission
  78119. @param id The job Id of the job
  78120. @param jobName Name of the job
  78121. @param userName Name of the user who submitted the job
  78122. @param submitTime Time of submission
  78123. @param jobConfPath Path of the Job Configuration file
  78124. @param jobACLs The configured acls for the job.
  78125. @param queue job queue name]]>
  78126. </doc>
  78127. </constructor>
  78128. <method name="getJobId" return="org.apache.hadoop.mapreduce.JobID"
  78129. abstract="false" native="false" synchronized="false"
  78130. static="false" final="false" visibility="public"
  78131. deprecated="not deprecated">
  78132. <doc>
  78133. <![CDATA[Get the Job Id]]>
  78134. </doc>
  78135. </method>
  78136. <method name="getJobName" return="java.lang.String"
  78137. abstract="false" native="false" synchronized="false"
  78138. static="false" final="false" visibility="public"
  78139. deprecated="not deprecated">
  78140. <doc>
  78141. <![CDATA[Get the Job name]]>
  78142. </doc>
  78143. </method>
  78144. <method name="getUserName" return="java.lang.String"
  78145. abstract="false" native="false" synchronized="false"
  78146. static="false" final="false" visibility="public"
  78147. deprecated="not deprecated">
  78148. <doc>
  78149. <![CDATA[Get the user name]]>
  78150. </doc>
  78151. </method>
  78152. <method name="getSubmitTime" return="long"
  78153. abstract="false" native="false" synchronized="false"
  78154. static="false" final="false" visibility="public"
  78155. deprecated="not deprecated">
  78156. <doc>
  78157. <![CDATA[Get the submit time]]>
  78158. </doc>
  78159. </method>
  78160. <method name="getJobConfPath" return="java.lang.String"
  78161. abstract="false" native="false" synchronized="false"
  78162. static="false" final="false" visibility="public"
  78163. deprecated="not deprecated">
  78164. <doc>
  78165. <![CDATA[Get the Path for the Job Configuration file]]>
  78166. </doc>
  78167. </method>
  78168. <method name="getJobAcls" return="java.util.Map"
  78169. abstract="false" native="false" synchronized="false"
  78170. static="false" final="false" visibility="public"
  78171. deprecated="not deprecated">
  78172. <doc>
  78173. <![CDATA[Get the acls configured for the job]]>
  78174. </doc>
  78175. </method>
  78176. <method name="getJobQueueName" return="java.lang.String"
  78177. abstract="false" native="false" synchronized="false"
  78178. static="false" final="false" visibility="public"
  78179. deprecated="not deprecated">
  78180. </method>
  78181. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  78182. abstract="false" native="false" synchronized="false"
  78183. static="false" final="false" visibility="public"
  78184. deprecated="not deprecated">
  78185. <doc>
  78186. <![CDATA[Get the event type]]>
  78187. </doc>
  78188. </method>
  78189. <doc>
  78190. <![CDATA[Event to record the submission of a job]]>
  78191. </doc>
  78192. </class>
  78193. <!-- end class org.apache.hadoop.tools.rumen.JobSubmittedEvent -->
  78194. <!-- start class org.apache.hadoop.tools.rumen.JobTraceReader -->
  78195. <class name="JobTraceReader" extends="org.apache.hadoop.tools.rumen.JsonObjectMapperParser"
  78196. abstract="false"
  78197. static="false" final="false" visibility="public"
  78198. deprecated="not deprecated">
  78199. <constructor name="JobTraceReader" type="org.apache.hadoop.fs.Path, org.apache.hadoop.conf.Configuration"
  78200. static="false" final="false" visibility="public"
  78201. deprecated="not deprecated">
  78202. <exception name="IOException" type="java.io.IOException"/>
  78203. <doc>
  78204. <![CDATA[Constructor.
  78205. @param path
  78206. Path to the JSON trace file, possibly compressed.
  78207. @param conf
  78208. @throws IOException]]>
  78209. </doc>
  78210. </constructor>
  78211. <constructor name="JobTraceReader" type="java.io.InputStream"
  78212. static="false" final="false" visibility="public"
  78213. deprecated="not deprecated">
  78214. <exception name="IOException" type="java.io.IOException"/>
  78215. <doc>
  78216. <![CDATA[Constructor.
  78217. @param input
  78218. The input stream for the JSON trace.]]>
  78219. </doc>
  78220. </constructor>
  78221. <doc>
  78222. <![CDATA[Reading JSON-encoded job traces and produce {@link LoggedJob} instances.]]>
  78223. </doc>
  78224. </class>
  78225. <!-- end class org.apache.hadoop.tools.rumen.JobTraceReader -->
  78226. <!-- start class org.apache.hadoop.tools.rumen.JobUnsuccessfulCompletionEvent -->
  78227. <class name="JobUnsuccessfulCompletionEvent" extends="java.lang.Object"
  78228. abstract="false"
  78229. static="false" final="false" visibility="public"
  78230. deprecated="not deprecated">
  78231. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  78232. <constructor name="JobUnsuccessfulCompletionEvent" type="org.apache.hadoop.mapreduce.JobID, long, int, int, java.lang.String"
  78233. static="false" final="false" visibility="public"
  78234. deprecated="not deprecated">
  78235. <doc>
  78236. <![CDATA[Create an event to record unsuccessful completion (killed/failed) of jobs
  78237. @param id Job ID
  78238. @param finishTime Finish time of the job
  78239. @param finishedMaps Number of finished maps
  78240. @param finishedReduces Number of finished reduces
  78241. @param status Status of the job]]>
  78242. </doc>
  78243. </constructor>
  78244. <method name="getJobId" return="org.apache.hadoop.mapreduce.JobID"
  78245. abstract="false" native="false" synchronized="false"
  78246. static="false" final="false" visibility="public"
  78247. deprecated="not deprecated">
  78248. <doc>
  78249. <![CDATA[Get the Job ID]]>
  78250. </doc>
  78251. </method>
  78252. <method name="getFinishTime" return="long"
  78253. abstract="false" native="false" synchronized="false"
  78254. static="false" final="false" visibility="public"
  78255. deprecated="not deprecated">
  78256. <doc>
  78257. <![CDATA[Get the job finish time]]>
  78258. </doc>
  78259. </method>
  78260. <method name="getFinishedMaps" return="int"
  78261. abstract="false" native="false" synchronized="false"
  78262. static="false" final="false" visibility="public"
  78263. deprecated="not deprecated">
  78264. <doc>
  78265. <![CDATA[Get the number of finished maps]]>
  78266. </doc>
  78267. </method>
  78268. <method name="getFinishedReduces" return="int"
  78269. abstract="false" native="false" synchronized="false"
  78270. static="false" final="false" visibility="public"
  78271. deprecated="not deprecated">
  78272. <doc>
  78273. <![CDATA[Get the number of finished reduces]]>
  78274. </doc>
  78275. </method>
  78276. <method name="getStatus" return="java.lang.String"
  78277. abstract="false" native="false" synchronized="false"
  78278. static="false" final="false" visibility="public"
  78279. deprecated="not deprecated">
  78280. <doc>
  78281. <![CDATA[Get the status]]>
  78282. </doc>
  78283. </method>
  78284. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  78285. abstract="false" native="false" synchronized="false"
  78286. static="false" final="false" visibility="public"
  78287. deprecated="not deprecated">
  78288. <doc>
  78289. <![CDATA[Get the event type]]>
  78290. </doc>
  78291. </method>
  78292. <doc>
  78293. <![CDATA[Event to record Failed and Killed completion of jobs]]>
  78294. </doc>
  78295. </class>
  78296. <!-- end class org.apache.hadoop.tools.rumen.JobUnsuccessfulCompletionEvent -->
  78297. <!-- start class org.apache.hadoop.tools.rumen.JsonObjectMapperWriter -->
  78298. <class name="JsonObjectMapperWriter" extends="java.lang.Object"
  78299. abstract="false"
  78300. static="false" final="false" visibility="public"
  78301. deprecated="not deprecated">
  78302. <implements name="java.io.Closeable"/>
  78303. <constructor name="JsonObjectMapperWriter" type="java.io.OutputStream, boolean"
  78304. static="false" final="false" visibility="public"
  78305. deprecated="not deprecated">
  78306. <exception name="IOException" type="java.io.IOException"/>
  78307. </constructor>
  78308. <method name="write"
  78309. abstract="false" native="false" synchronized="false"
  78310. static="false" final="false" visibility="public"
  78311. deprecated="not deprecated">
  78312. <param name="object" type="java.lang.Object"/>
  78313. <exception name="IOException" type="java.io.IOException"/>
  78314. </method>
  78315. <method name="close"
  78316. abstract="false" native="false" synchronized="false"
  78317. static="false" final="false" visibility="public"
  78318. deprecated="not deprecated">
  78319. <exception name="IOException" type="java.io.IOException"/>
  78320. </method>
  78321. <doc>
  78322. <![CDATA[Simple wrapper around {@link JsonGenerator} to write objects in JSON format.
  78323. @param <T> The type of the objects to be written.]]>
  78324. </doc>
  78325. </class>
  78326. <!-- end class org.apache.hadoop.tools.rumen.JsonObjectMapperWriter -->
  78327. <!-- start class org.apache.hadoop.tools.rumen.LoggedDiscreteCDF -->
  78328. <class name="LoggedDiscreteCDF" extends="java.lang.Object"
  78329. abstract="false"
  78330. static="false" final="false" visibility="public"
  78331. deprecated="not deprecated">
  78332. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  78333. <constructor name="LoggedDiscreteCDF"
  78334. static="false" final="false" visibility="public"
  78335. deprecated="not deprecated">
  78336. </constructor>
  78337. <method name="getMinimum" return="long"
  78338. abstract="false" native="false" synchronized="false"
  78339. static="false" final="false" visibility="public"
  78340. deprecated="not deprecated">
  78341. </method>
  78342. <method name="getRankings" return="java.util.List"
  78343. abstract="false" native="false" synchronized="false"
  78344. static="false" final="false" visibility="public"
  78345. deprecated="not deprecated">
  78346. </method>
  78347. <method name="getMaximum" return="long"
  78348. abstract="false" native="false" synchronized="false"
  78349. static="false" final="false" visibility="public"
  78350. deprecated="not deprecated">
  78351. </method>
  78352. <method name="getNumberValues" return="long"
  78353. abstract="false" native="false" synchronized="false"
  78354. static="false" final="false" visibility="public"
  78355. deprecated="not deprecated">
  78356. </method>
  78357. <method name="deepCompare"
  78358. abstract="false" native="false" synchronized="false"
  78359. static="false" final="false" visibility="public"
  78360. deprecated="not deprecated">
  78361. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  78362. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  78363. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  78364. </method>
  78365. <doc>
  78366. <![CDATA[A {@link LoggedDiscreteCDF} is a discrete approximation of a cumulative
  78367. distribution function, with this class set up to meet the requirements of the
  78368. Jackson JSON parser/generator.
  78369. All of the public methods are simply accessors for the instance variables we
  78370. want to write out in the JSON files.]]>
  78371. </doc>
  78372. </class>
  78373. <!-- end class org.apache.hadoop.tools.rumen.LoggedDiscreteCDF -->
  78374. <!-- start class org.apache.hadoop.tools.rumen.LoggedJob -->
  78375. <class name="LoggedJob" extends="java.lang.Object"
  78376. abstract="false"
  78377. static="false" final="false" visibility="public"
  78378. deprecated="not deprecated">
  78379. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  78380. <method name="getJobProperties" return="java.util.Properties"
  78381. abstract="false" native="false" synchronized="false"
  78382. static="false" final="false" visibility="public"
  78383. deprecated="not deprecated">
  78384. <doc>
  78385. <![CDATA[Get the configuration properties of the job.]]>
  78386. </doc>
  78387. </method>
  78388. <method name="setUnknownAttribute"
  78389. abstract="false" native="false" synchronized="false"
  78390. static="false" final="false" visibility="public"
  78391. deprecated="not deprecated">
  78392. <param name="attributeName" type="java.lang.String"/>
  78393. <param name="ignored" type="java.lang.Object"/>
  78394. </method>
  78395. <method name="getUser" return="java.lang.String"
  78396. abstract="false" native="false" synchronized="false"
  78397. static="false" final="false" visibility="public"
  78398. deprecated="not deprecated">
  78399. </method>
  78400. <method name="getJobID" return="java.lang.String"
  78401. abstract="false" native="false" synchronized="false"
  78402. static="false" final="false" visibility="public"
  78403. deprecated="not deprecated">
  78404. </method>
  78405. <method name="getPriority" return="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  78406. abstract="false" native="false" synchronized="false"
  78407. static="false" final="false" visibility="public"
  78408. deprecated="not deprecated">
  78409. </method>
  78410. <method name="getComputonsPerMapInputByte" return="long"
  78411. abstract="false" native="false" synchronized="false"
  78412. static="false" final="false" visibility="public"
  78413. deprecated="not deprecated">
  78414. </method>
  78415. <method name="getComputonsPerMapOutputByte" return="long"
  78416. abstract="false" native="false" synchronized="false"
  78417. static="false" final="false" visibility="public"
  78418. deprecated="not deprecated">
  78419. </method>
  78420. <method name="getComputonsPerReduceInputByte" return="long"
  78421. abstract="false" native="false" synchronized="false"
  78422. static="false" final="false" visibility="public"
  78423. deprecated="not deprecated">
  78424. </method>
  78425. <method name="getComputonsPerReduceOutputByte" return="long"
  78426. abstract="false" native="false" synchronized="false"
  78427. static="false" final="false" visibility="public"
  78428. deprecated="not deprecated">
  78429. </method>
  78430. <method name="getSubmitTime" return="long"
  78431. abstract="false" native="false" synchronized="false"
  78432. static="false" final="false" visibility="public"
  78433. deprecated="not deprecated">
  78434. </method>
  78435. <method name="getLaunchTime" return="long"
  78436. abstract="false" native="false" synchronized="false"
  78437. static="false" final="false" visibility="public"
  78438. deprecated="not deprecated">
  78439. </method>
  78440. <method name="getFinishTime" return="long"
  78441. abstract="false" native="false" synchronized="false"
  78442. static="false" final="false" visibility="public"
  78443. deprecated="not deprecated">
  78444. </method>
  78445. <method name="getHeapMegabytes" return="int"
  78446. abstract="false" native="false" synchronized="false"
  78447. static="false" final="false" visibility="public"
  78448. deprecated="not deprecated">
  78449. </method>
  78450. <method name="getTotalMaps" return="int"
  78451. abstract="false" native="false" synchronized="false"
  78452. static="false" final="false" visibility="public"
  78453. deprecated="not deprecated">
  78454. </method>
  78455. <method name="getTotalReduces" return="int"
  78456. abstract="false" native="false" synchronized="false"
  78457. static="false" final="false" visibility="public"
  78458. deprecated="not deprecated">
  78459. </method>
  78460. <method name="getOutcome" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  78461. abstract="false" native="false" synchronized="false"
  78462. static="false" final="false" visibility="public"
  78463. deprecated="not deprecated">
  78464. </method>
  78465. <method name="getJobtype" return="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  78466. abstract="false" native="false" synchronized="false"
  78467. static="false" final="false" visibility="public"
  78468. deprecated="not deprecated">
  78469. </method>
  78470. <method name="getDirectDependantJobs" return="java.util.List"
  78471. abstract="false" native="false" synchronized="false"
  78472. static="false" final="false" visibility="public"
  78473. deprecated="not deprecated">
  78474. </method>
  78475. <method name="getMapTasks" return="java.util.List"
  78476. abstract="false" native="false" synchronized="false"
  78477. static="false" final="false" visibility="public"
  78478. deprecated="not deprecated">
  78479. </method>
  78480. <method name="getReduceTasks" return="java.util.List"
  78481. abstract="false" native="false" synchronized="false"
  78482. static="false" final="false" visibility="public"
  78483. deprecated="not deprecated">
  78484. </method>
  78485. <method name="getOtherTasks" return="java.util.List"
  78486. abstract="false" native="false" synchronized="false"
  78487. static="false" final="false" visibility="public"
  78488. deprecated="not deprecated">
  78489. </method>
  78490. <method name="getSuccessfulMapAttemptCDFs" return="java.util.ArrayList"
  78491. abstract="false" native="false" synchronized="false"
  78492. static="false" final="false" visibility="public"
  78493. deprecated="not deprecated">
  78494. </method>
  78495. <method name="getFailedMapAttemptCDFs" return="java.util.ArrayList"
  78496. abstract="false" native="false" synchronized="false"
  78497. static="false" final="false" visibility="public"
  78498. deprecated="not deprecated">
  78499. </method>
  78500. <method name="getSuccessfulReduceAttemptCDF" return="org.apache.hadoop.tools.rumen.LoggedDiscreteCDF"
  78501. abstract="false" native="false" synchronized="false"
  78502. static="false" final="false" visibility="public"
  78503. deprecated="not deprecated">
  78504. </method>
  78505. <method name="getFailedReduceAttemptCDF" return="org.apache.hadoop.tools.rumen.LoggedDiscreteCDF"
  78506. abstract="false" native="false" synchronized="false"
  78507. static="false" final="false" visibility="public"
  78508. deprecated="not deprecated">
  78509. </method>
  78510. <method name="getMapperTriesToSucceed" return="double[]"
  78511. abstract="false" native="false" synchronized="false"
  78512. static="false" final="false" visibility="public"
  78513. deprecated="not deprecated">
  78514. </method>
  78515. <method name="getFailedMapperFraction" return="double"
  78516. abstract="false" native="false" synchronized="false"
  78517. static="false" final="false" visibility="public"
  78518. deprecated="not deprecated">
  78519. </method>
  78520. <method name="getRelativeTime" return="long"
  78521. abstract="false" native="false" synchronized="false"
  78522. static="false" final="false" visibility="public"
  78523. deprecated="not deprecated">
  78524. </method>
  78525. <method name="getQueue" return="java.lang.String"
  78526. abstract="false" native="false" synchronized="false"
  78527. static="false" final="false" visibility="public"
  78528. deprecated="not deprecated">
  78529. <doc>
  78530. <![CDATA[@return job queue name if it is available in job history file or
  78531. job history conf file. Returns null otherwise.]]>
  78532. </doc>
  78533. </method>
  78534. <method name="getJobName" return="java.lang.String"
  78535. abstract="false" native="false" synchronized="false"
  78536. static="false" final="false" visibility="public"
  78537. deprecated="not deprecated">
  78538. </method>
  78539. <method name="getClusterMapMB" return="int"
  78540. abstract="false" native="false" synchronized="false"
  78541. static="false" final="false" visibility="public"
  78542. deprecated="not deprecated">
  78543. </method>
  78544. <method name="getClusterReduceMB" return="int"
  78545. abstract="false" native="false" synchronized="false"
  78546. static="false" final="false" visibility="public"
  78547. deprecated="not deprecated">
  78548. </method>
  78549. <method name="getJobMapMB" return="int"
  78550. abstract="false" native="false" synchronized="false"
  78551. static="false" final="false" visibility="public"
  78552. deprecated="not deprecated">
  78553. </method>
  78554. <method name="getJobReduceMB" return="int"
  78555. abstract="false" native="false" synchronized="false"
  78556. static="false" final="false" visibility="public"
  78557. deprecated="not deprecated">
  78558. </method>
  78559. <method name="deepCompare"
  78560. abstract="false" native="false" synchronized="false"
  78561. static="false" final="false" visibility="public"
  78562. deprecated="not deprecated">
  78563. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  78564. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  78565. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  78566. </method>
  78567. <doc>
  78568. <![CDATA[A {@link LoggedDiscreteCDF} is a representation of an hadoop job, with the
  78569. details of this class set up to meet the requirements of the Jackson JSON
  78570. parser/generator.
  78571. All of the public methods are simply accessors for the instance variables we
  78572. want to write out in the JSON files.]]>
  78573. </doc>
  78574. </class>
  78575. <!-- end class org.apache.hadoop.tools.rumen.LoggedJob -->
  78576. <!-- start class org.apache.hadoop.tools.rumen.LoggedJob.JobPriority -->
  78577. <class name="LoggedJob.JobPriority" extends="java.lang.Enum"
  78578. abstract="false"
  78579. static="true" final="true" visibility="public"
  78580. deprecated="not deprecated">
  78581. <method name="values" return="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority[]"
  78582. abstract="false" native="false" synchronized="false"
  78583. static="true" final="false" visibility="public"
  78584. deprecated="not deprecated">
  78585. </method>
  78586. <method name="valueOf" return="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  78587. abstract="false" native="false" synchronized="false"
  78588. static="true" final="false" visibility="public"
  78589. deprecated="not deprecated">
  78590. <param name="name" type="java.lang.String"/>
  78591. </method>
  78592. <field name="VERY_LOW" type="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  78593. transient="false" volatile="false"
  78594. static="true" final="true" visibility="public"
  78595. deprecated="not deprecated">
  78596. </field>
  78597. <field name="LOW" type="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  78598. transient="false" volatile="false"
  78599. static="true" final="true" visibility="public"
  78600. deprecated="not deprecated">
  78601. </field>
  78602. <field name="NORMAL" type="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  78603. transient="false" volatile="false"
  78604. static="true" final="true" visibility="public"
  78605. deprecated="not deprecated">
  78606. </field>
  78607. <field name="HIGH" type="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  78608. transient="false" volatile="false"
  78609. static="true" final="true" visibility="public"
  78610. deprecated="not deprecated">
  78611. </field>
  78612. <field name="VERY_HIGH" type="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  78613. transient="false" volatile="false"
  78614. static="true" final="true" visibility="public"
  78615. deprecated="not deprecated">
  78616. </field>
  78617. </class>
  78618. <!-- end class org.apache.hadoop.tools.rumen.LoggedJob.JobPriority -->
  78619. <!-- start class org.apache.hadoop.tools.rumen.LoggedJob.JobType -->
  78620. <class name="LoggedJob.JobType" extends="java.lang.Enum"
  78621. abstract="false"
  78622. static="true" final="true" visibility="public"
  78623. deprecated="not deprecated">
  78624. <method name="values" return="org.apache.hadoop.tools.rumen.LoggedJob.JobType[]"
  78625. abstract="false" native="false" synchronized="false"
  78626. static="true" final="false" visibility="public"
  78627. deprecated="not deprecated">
  78628. </method>
  78629. <method name="valueOf" return="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  78630. abstract="false" native="false" synchronized="false"
  78631. static="true" final="false" visibility="public"
  78632. deprecated="not deprecated">
  78633. <param name="name" type="java.lang.String"/>
  78634. </method>
  78635. <field name="JAVA" type="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  78636. transient="false" volatile="false"
  78637. static="true" final="true" visibility="public"
  78638. deprecated="not deprecated">
  78639. </field>
  78640. <field name="PIG" type="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  78641. transient="false" volatile="false"
  78642. static="true" final="true" visibility="public"
  78643. deprecated="not deprecated">
  78644. </field>
  78645. <field name="STREAMING" type="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  78646. transient="false" volatile="false"
  78647. static="true" final="true" visibility="public"
  78648. deprecated="not deprecated">
  78649. </field>
  78650. <field name="PIPES" type="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  78651. transient="false" volatile="false"
  78652. static="true" final="true" visibility="public"
  78653. deprecated="not deprecated">
  78654. </field>
  78655. <field name="OVERALL" type="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  78656. transient="false" volatile="false"
  78657. static="true" final="true" visibility="public"
  78658. deprecated="not deprecated">
  78659. </field>
  78660. </class>
  78661. <!-- end class org.apache.hadoop.tools.rumen.LoggedJob.JobType -->
  78662. <!-- start class org.apache.hadoop.tools.rumen.LoggedLocation -->
  78663. <class name="LoggedLocation" extends="java.lang.Object"
  78664. abstract="false"
  78665. static="false" final="false" visibility="public"
  78666. deprecated="not deprecated">
  78667. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  78668. <constructor name="LoggedLocation"
  78669. static="false" final="false" visibility="public"
  78670. deprecated="not deprecated">
  78671. </constructor>
  78672. <method name="getLayers" return="java.util.List"
  78673. abstract="false" native="false" synchronized="false"
  78674. static="false" final="false" visibility="public"
  78675. deprecated="not deprecated">
  78676. </method>
  78677. <method name="setUnknownAttribute"
  78678. abstract="false" native="false" synchronized="false"
  78679. static="false" final="false" visibility="public"
  78680. deprecated="not deprecated">
  78681. <param name="attributeName" type="java.lang.String"/>
  78682. <param name="ignored" type="java.lang.Object"/>
  78683. </method>
  78684. <method name="deepCompare"
  78685. abstract="false" native="false" synchronized="false"
  78686. static="false" final="false" visibility="public"
  78687. deprecated="not deprecated">
  78688. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  78689. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  78690. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  78691. </method>
  78692. <doc>
  78693. <![CDATA[A {@link LoggedLocation} is a representation of a point in an hierarchical
  78694. network, represented as a series of membership names, broadest first.
  78695. For example, if your network has <i>hosts</i> grouped into <i>racks</i>, then
  78696. in onecluster you might have a node {@code node1} on rack {@code rack1}. This
  78697. would be represented with a ArrayList of two layers, with two {@link String}
  78698. s being {@code "rack1"} and {@code "node1"}.
  78699. The details of this class are set up to meet the requirements of the Jackson
  78700. JSON parser/generator.
  78701. All of the public methods are simply accessors for the instance variables we
  78702. want to write out in the JSON files.]]>
  78703. </doc>
  78704. </class>
  78705. <!-- end class org.apache.hadoop.tools.rumen.LoggedLocation -->
  78706. <!-- start class org.apache.hadoop.tools.rumen.LoggedNetworkTopology -->
  78707. <class name="LoggedNetworkTopology" extends="java.lang.Object"
  78708. abstract="false"
  78709. static="false" final="false" visibility="public"
  78710. deprecated="not deprecated">
  78711. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  78712. <constructor name="LoggedNetworkTopology"
  78713. static="false" final="false" visibility="public"
  78714. deprecated="not deprecated">
  78715. </constructor>
  78716. <method name="setUnknownAttribute"
  78717. abstract="false" native="false" synchronized="false"
  78718. static="false" final="false" visibility="public"
  78719. deprecated="not deprecated">
  78720. <param name="attributeName" type="java.lang.String"/>
  78721. <param name="ignored" type="java.lang.Object"/>
  78722. </method>
  78723. <method name="getName" return="java.lang.String"
  78724. abstract="false" native="false" synchronized="false"
  78725. static="false" final="false" visibility="public"
  78726. deprecated="not deprecated">
  78727. </method>
  78728. <method name="getChildren" return="java.util.List"
  78729. abstract="false" native="false" synchronized="false"
  78730. static="false" final="false" visibility="public"
  78731. deprecated="not deprecated">
  78732. </method>
  78733. <method name="deepCompare"
  78734. abstract="false" native="false" synchronized="false"
  78735. static="false" final="false" visibility="public"
  78736. deprecated="not deprecated">
  78737. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  78738. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  78739. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  78740. </method>
  78741. <doc>
  78742. <![CDATA[A {@link LoggedNetworkTopology} represents a tree that in turn represents a
  78743. hierarchy of hosts. The current version requires the tree to have all leaves
  78744. at the same level.
  78745. All of the public methods are simply accessors for the instance variables we
  78746. want to write out in the JSON files.]]>
  78747. </doc>
  78748. </class>
  78749. <!-- end class org.apache.hadoop.tools.rumen.LoggedNetworkTopology -->
  78750. <!-- start class org.apache.hadoop.tools.rumen.LoggedSingleRelativeRanking -->
  78751. <class name="LoggedSingleRelativeRanking" extends="java.lang.Object"
  78752. abstract="false"
  78753. static="false" final="false" visibility="public"
  78754. deprecated="not deprecated">
  78755. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  78756. <constructor name="LoggedSingleRelativeRanking"
  78757. static="false" final="false" visibility="public"
  78758. deprecated="not deprecated">
  78759. </constructor>
  78760. <method name="setUnknownAttribute"
  78761. abstract="false" native="false" synchronized="false"
  78762. static="false" final="false" visibility="public"
  78763. deprecated="not deprecated">
  78764. <param name="attributeName" type="java.lang.String"/>
  78765. <param name="ignored" type="java.lang.Object"/>
  78766. </method>
  78767. <method name="getRelativeRanking" return="double"
  78768. abstract="false" native="false" synchronized="false"
  78769. static="false" final="false" visibility="public"
  78770. deprecated="not deprecated">
  78771. </method>
  78772. <method name="getDatum" return="long"
  78773. abstract="false" native="false" synchronized="false"
  78774. static="false" final="false" visibility="public"
  78775. deprecated="not deprecated">
  78776. </method>
  78777. <method name="deepCompare"
  78778. abstract="false" native="false" synchronized="false"
  78779. static="false" final="false" visibility="public"
  78780. deprecated="not deprecated">
  78781. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  78782. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  78783. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  78784. </method>
  78785. <doc>
  78786. <![CDATA[A {@link LoggedSingleRelativeRanking} represents an X-Y coordinate of a
  78787. single point in a discrete CDF.
  78788. All of the public methods are simply accessors for the instance variables we
  78789. want to write out in the JSON files.]]>
  78790. </doc>
  78791. </class>
  78792. <!-- end class org.apache.hadoop.tools.rumen.LoggedSingleRelativeRanking -->
  78793. <!-- start class org.apache.hadoop.tools.rumen.LoggedTask -->
  78794. <class name="LoggedTask" extends="java.lang.Object"
  78795. abstract="false"
  78796. static="false" final="false" visibility="public"
  78797. deprecated="not deprecated">
  78798. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  78799. <method name="setUnknownAttribute"
  78800. abstract="false" native="false" synchronized="false"
  78801. static="false" final="false" visibility="public"
  78802. deprecated="not deprecated">
  78803. <param name="attributeName" type="java.lang.String"/>
  78804. <param name="ignored" type="java.lang.Object"/>
  78805. </method>
  78806. <method name="getInputBytes" return="long"
  78807. abstract="false" native="false" synchronized="false"
  78808. static="false" final="false" visibility="public"
  78809. deprecated="not deprecated">
  78810. </method>
  78811. <method name="getInputRecords" return="long"
  78812. abstract="false" native="false" synchronized="false"
  78813. static="false" final="false" visibility="public"
  78814. deprecated="not deprecated">
  78815. </method>
  78816. <method name="getOutputBytes" return="long"
  78817. abstract="false" native="false" synchronized="false"
  78818. static="false" final="false" visibility="public"
  78819. deprecated="not deprecated">
  78820. </method>
  78821. <method name="getOutputRecords" return="long"
  78822. abstract="false" native="false" synchronized="false"
  78823. static="false" final="false" visibility="public"
  78824. deprecated="not deprecated">
  78825. </method>
  78826. <method name="getTaskID" return="java.lang.String"
  78827. abstract="false" native="false" synchronized="false"
  78828. static="false" final="false" visibility="public"
  78829. deprecated="not deprecated">
  78830. </method>
  78831. <method name="getStartTime" return="long"
  78832. abstract="false" native="false" synchronized="false"
  78833. static="false" final="false" visibility="public"
  78834. deprecated="not deprecated">
  78835. </method>
  78836. <method name="getFinishTime" return="long"
  78837. abstract="false" native="false" synchronized="false"
  78838. static="false" final="false" visibility="public"
  78839. deprecated="not deprecated">
  78840. </method>
  78841. <method name="getAttempts" return="java.util.List"
  78842. abstract="false" native="false" synchronized="false"
  78843. static="false" final="false" visibility="public"
  78844. deprecated="not deprecated">
  78845. </method>
  78846. <method name="getPreferredLocations" return="java.util.List"
  78847. abstract="false" native="false" synchronized="false"
  78848. static="false" final="false" visibility="public"
  78849. deprecated="not deprecated">
  78850. </method>
  78851. <method name="getTaskStatus" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  78852. abstract="false" native="false" synchronized="false"
  78853. static="false" final="false" visibility="public"
  78854. deprecated="not deprecated">
  78855. </method>
  78856. <method name="getTaskType" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  78857. abstract="false" native="false" synchronized="false"
  78858. static="false" final="false" visibility="public"
  78859. deprecated="not deprecated">
  78860. </method>
  78861. <method name="incorporateCounters"
  78862. abstract="false" native="false" synchronized="false"
  78863. static="false" final="false" visibility="public"
  78864. deprecated="not deprecated">
  78865. <param name="counters" type="org.apache.hadoop.tools.rumen.JhCounters"/>
  78866. </method>
  78867. <method name="deepCompare"
  78868. abstract="false" native="false" synchronized="false"
  78869. static="false" final="false" visibility="public"
  78870. deprecated="not deprecated">
  78871. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  78872. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  78873. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  78874. </method>
  78875. <doc>
  78876. <![CDATA[A {@link LoggedTask} represents a [hadoop] task that is part of a hadoop job.
  78877. It knows about the [pssibly empty] sequence of attempts, its I/O footprint,
  78878. and its runtime.
  78879. All of the public methods are simply accessors for the instance variables we
  78880. want to write out in the JSON files.]]>
  78881. </doc>
  78882. </class>
  78883. <!-- end class org.apache.hadoop.tools.rumen.LoggedTask -->
  78884. <!-- start class org.apache.hadoop.tools.rumen.LoggedTaskAttempt -->
  78885. <class name="LoggedTaskAttempt" extends="java.lang.Object"
  78886. abstract="false"
  78887. static="false" final="false" visibility="public"
  78888. deprecated="not deprecated">
  78889. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  78890. <method name="setUnknownAttribute"
  78891. abstract="false" native="false" synchronized="false"
  78892. static="false" final="false" visibility="public"
  78893. deprecated="not deprecated">
  78894. <param name="attributeName" type="java.lang.String"/>
  78895. <param name="ignored" type="java.lang.Object"/>
  78896. </method>
  78897. <method name="getShuffleFinished" return="long"
  78898. abstract="false" native="false" synchronized="false"
  78899. static="false" final="false" visibility="public"
  78900. deprecated="not deprecated">
  78901. </method>
  78902. <method name="getSortFinished" return="long"
  78903. abstract="false" native="false" synchronized="false"
  78904. static="false" final="false" visibility="public"
  78905. deprecated="not deprecated">
  78906. </method>
  78907. <method name="getAttemptID" return="java.lang.String"
  78908. abstract="false" native="false" synchronized="false"
  78909. static="false" final="false" visibility="public"
  78910. deprecated="not deprecated">
  78911. </method>
  78912. <method name="getResult" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  78913. abstract="false" native="false" synchronized="false"
  78914. static="false" final="false" visibility="public"
  78915. deprecated="not deprecated">
  78916. </method>
  78917. <method name="getStartTime" return="long"
  78918. abstract="false" native="false" synchronized="false"
  78919. static="false" final="false" visibility="public"
  78920. deprecated="not deprecated">
  78921. </method>
  78922. <method name="getFinishTime" return="long"
  78923. abstract="false" native="false" synchronized="false"
  78924. static="false" final="false" visibility="public"
  78925. deprecated="not deprecated">
  78926. </method>
  78927. <method name="getHostName" return="java.lang.String"
  78928. abstract="false" native="false" synchronized="false"
  78929. static="false" final="false" visibility="public"
  78930. deprecated="not deprecated">
  78931. </method>
  78932. <method name="getHdfsBytesRead" return="long"
  78933. abstract="false" native="false" synchronized="false"
  78934. static="false" final="false" visibility="public"
  78935. deprecated="not deprecated">
  78936. </method>
  78937. <method name="getHdfsBytesWritten" return="long"
  78938. abstract="false" native="false" synchronized="false"
  78939. static="false" final="false" visibility="public"
  78940. deprecated="not deprecated">
  78941. </method>
  78942. <method name="getFileBytesRead" return="long"
  78943. abstract="false" native="false" synchronized="false"
  78944. static="false" final="false" visibility="public"
  78945. deprecated="not deprecated">
  78946. </method>
  78947. <method name="getFileBytesWritten" return="long"
  78948. abstract="false" native="false" synchronized="false"
  78949. static="false" final="false" visibility="public"
  78950. deprecated="not deprecated">
  78951. </method>
  78952. <method name="getMapInputRecords" return="long"
  78953. abstract="false" native="false" synchronized="false"
  78954. static="false" final="false" visibility="public"
  78955. deprecated="not deprecated">
  78956. </method>
  78957. <method name="getMapOutputBytes" return="long"
  78958. abstract="false" native="false" synchronized="false"
  78959. static="false" final="false" visibility="public"
  78960. deprecated="not deprecated">
  78961. </method>
  78962. <method name="getMapOutputRecords" return="long"
  78963. abstract="false" native="false" synchronized="false"
  78964. static="false" final="false" visibility="public"
  78965. deprecated="not deprecated">
  78966. </method>
  78967. <method name="getCombineInputRecords" return="long"
  78968. abstract="false" native="false" synchronized="false"
  78969. static="false" final="false" visibility="public"
  78970. deprecated="not deprecated">
  78971. </method>
  78972. <method name="getReduceInputGroups" return="long"
  78973. abstract="false" native="false" synchronized="false"
  78974. static="false" final="false" visibility="public"
  78975. deprecated="not deprecated">
  78976. </method>
  78977. <method name="getReduceInputRecords" return="long"
  78978. abstract="false" native="false" synchronized="false"
  78979. static="false" final="false" visibility="public"
  78980. deprecated="not deprecated">
  78981. </method>
  78982. <method name="getReduceShuffleBytes" return="long"
  78983. abstract="false" native="false" synchronized="false"
  78984. static="false" final="false" visibility="public"
  78985. deprecated="not deprecated">
  78986. </method>
  78987. <method name="getReduceOutputRecords" return="long"
  78988. abstract="false" native="false" synchronized="false"
  78989. static="false" final="false" visibility="public"
  78990. deprecated="not deprecated">
  78991. </method>
  78992. <method name="getSpilledRecords" return="long"
  78993. abstract="false" native="false" synchronized="false"
  78994. static="false" final="false" visibility="public"
  78995. deprecated="not deprecated">
  78996. </method>
  78997. <method name="getLocation" return="org.apache.hadoop.tools.rumen.LoggedLocation"
  78998. abstract="false" native="false" synchronized="false"
  78999. static="false" final="false" visibility="public"
  79000. deprecated="not deprecated">
  79001. </method>
  79002. <method name="getMapInputBytes" return="long"
  79003. abstract="false" native="false" synchronized="false"
  79004. static="false" final="false" visibility="public"
  79005. deprecated="not deprecated">
  79006. </method>
  79007. <method name="incorporateCounters"
  79008. abstract="false" native="false" synchronized="false"
  79009. static="false" final="false" visibility="public"
  79010. deprecated="not deprecated">
  79011. <param name="counters" type="org.apache.hadoop.tools.rumen.JhCounters"/>
  79012. </method>
  79013. <method name="getResourceUsageMetrics" return="org.apache.hadoop.tools.rumen.ResourceUsageMetrics"
  79014. abstract="false" native="false" synchronized="false"
  79015. static="false" final="false" visibility="public"
  79016. deprecated="not deprecated">
  79017. </method>
  79018. <method name="deepCompare"
  79019. abstract="false" native="false" synchronized="false"
  79020. static="false" final="false" visibility="public"
  79021. deprecated="not deprecated">
  79022. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  79023. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  79024. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  79025. </method>
  79026. <doc>
  79027. <![CDATA[A {@link LoggedTaskAttempt} represents an attempt to run an hadoop task in a
  79028. hadoop job. Note that a task can have several attempts.
  79029. All of the public methods are simply accessors for the instance variables we
  79030. want to write out in the JSON files.]]>
  79031. </doc>
  79032. </class>
  79033. <!-- end class org.apache.hadoop.tools.rumen.LoggedTaskAttempt -->
  79034. <!-- start class org.apache.hadoop.tools.rumen.MachineNode -->
  79035. <class name="MachineNode" extends="org.apache.hadoop.tools.rumen.Node"
  79036. abstract="false"
  79037. static="false" final="true" visibility="public"
  79038. deprecated="not deprecated">
  79039. <method name="equals" return="boolean"
  79040. abstract="false" native="false" synchronized="false"
  79041. static="false" final="false" visibility="public"
  79042. deprecated="not deprecated">
  79043. <param name="obj" type="java.lang.Object"/>
  79044. </method>
  79045. <method name="hashCode" return="int"
  79046. abstract="false" native="false" synchronized="false"
  79047. static="false" final="false" visibility="public"
  79048. deprecated="not deprecated">
  79049. </method>
  79050. <method name="getMemory" return="long"
  79051. abstract="false" native="false" synchronized="false"
  79052. static="false" final="false" visibility="public"
  79053. deprecated="not deprecated">
  79054. <doc>
  79055. <![CDATA[Get the available physical RAM of the node.
  79056. @return The available physical RAM of the node, in KB.]]>
  79057. </doc>
  79058. </method>
  79059. <method name="getMapSlots" return="int"
  79060. abstract="false" native="false" synchronized="false"
  79061. static="false" final="false" visibility="public"
  79062. deprecated="not deprecated">
  79063. <doc>
  79064. <![CDATA[Get the number of map slots of the node.
  79065. @return The number of map slots of the node.]]>
  79066. </doc>
  79067. </method>
  79068. <method name="getReduceSlots" return="int"
  79069. abstract="false" native="false" synchronized="false"
  79070. static="false" final="false" visibility="public"
  79071. deprecated="not deprecated">
  79072. <doc>
  79073. <![CDATA[Get the number of reduce slots of the node.
  79074. @return The number of reduce slots fo the node.]]>
  79075. </doc>
  79076. </method>
  79077. <method name="getMemoryPerMapSlot" return="long"
  79078. abstract="false" native="false" synchronized="false"
  79079. static="false" final="false" visibility="public"
  79080. deprecated="not deprecated">
  79081. <doc>
  79082. <![CDATA[Get the amount of RAM reserved for each map slot.
  79083. @return the amount of RAM reserved for each map slot, in KB.]]>
  79084. </doc>
  79085. </method>
  79086. <method name="getMemoryPerReduceSlot" return="long"
  79087. abstract="false" native="false" synchronized="false"
  79088. static="false" final="false" visibility="public"
  79089. deprecated="not deprecated">
  79090. <doc>
  79091. <![CDATA[Get the amount of RAM reserved for each reduce slot.
  79092. @return the amount of RAM reserved for each reduce slot, in KB.]]>
  79093. </doc>
  79094. </method>
  79095. <method name="getNumCores" return="int"
  79096. abstract="false" native="false" synchronized="false"
  79097. static="false" final="false" visibility="public"
  79098. deprecated="not deprecated">
  79099. <doc>
  79100. <![CDATA[Get the number of cores of the node.
  79101. @return the number of cores of the node.]]>
  79102. </doc>
  79103. </method>
  79104. <method name="getRackNode" return="org.apache.hadoop.tools.rumen.RackNode"
  79105. abstract="false" native="false" synchronized="false"
  79106. static="false" final="false" visibility="public"
  79107. deprecated="not deprecated">
  79108. <doc>
  79109. <![CDATA[Get the rack node that the machine belongs to.
  79110. @return The rack node that the machine belongs to. Returns null if the
  79111. machine does not belong to any rack.]]>
  79112. </doc>
  79113. </method>
  79114. <method name="addChild" return="boolean"
  79115. abstract="false" native="false" synchronized="true"
  79116. static="false" final="false" visibility="public"
  79117. deprecated="not deprecated">
  79118. <param name="child" type="org.apache.hadoop.tools.rumen.Node"/>
  79119. </method>
  79120. <doc>
  79121. <![CDATA[{@link MachineNode} represents the configuration of a cluster node.
  79122. {@link MachineNode} should be constructed by {@link MachineNode.Builder}.]]>
  79123. </doc>
  79124. </class>
  79125. <!-- end class org.apache.hadoop.tools.rumen.MachineNode -->
  79126. <!-- start class org.apache.hadoop.tools.rumen.MachineNode.Builder -->
  79127. <class name="MachineNode.Builder" extends="java.lang.Object"
  79128. abstract="false"
  79129. static="true" final="true" visibility="public"
  79130. deprecated="not deprecated">
  79131. <constructor name="MachineNode.Builder" type="java.lang.String, int"
  79132. static="false" final="false" visibility="public"
  79133. deprecated="not deprecated">
  79134. <doc>
  79135. <![CDATA[Start building a new NodeInfo object.
  79136. @param name
  79137. Unique name of the node. Typically the fully qualified domain
  79138. name.]]>
  79139. </doc>
  79140. </constructor>
  79141. <method name="setMemory" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  79142. abstract="false" native="false" synchronized="false"
  79143. static="false" final="false" visibility="public"
  79144. deprecated="not deprecated">
  79145. <param name="memory" type="long"/>
  79146. <doc>
  79147. <![CDATA[Set the physical memory of the node.
  79148. @param memory Available RAM in KB.]]>
  79149. </doc>
  79150. </method>
  79151. <method name="setMapSlots" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  79152. abstract="false" native="false" synchronized="false"
  79153. static="false" final="false" visibility="public"
  79154. deprecated="not deprecated">
  79155. <param name="mapSlots" type="int"/>
  79156. <doc>
  79157. <![CDATA[Set the number of map slot for the node.
  79158. @param mapSlots The number of map slots for the node.]]>
  79159. </doc>
  79160. </method>
  79161. <method name="setReduceSlots" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  79162. abstract="false" native="false" synchronized="false"
  79163. static="false" final="false" visibility="public"
  79164. deprecated="not deprecated">
  79165. <param name="reduceSlots" type="int"/>
  79166. <doc>
  79167. <![CDATA[Set the number of reduce slot for the node.
  79168. @param reduceSlots The number of reduce slots for the node.]]>
  79169. </doc>
  79170. </method>
  79171. <method name="setMemoryPerMapSlot" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  79172. abstract="false" native="false" synchronized="false"
  79173. static="false" final="false" visibility="public"
  79174. deprecated="not deprecated">
  79175. <param name="memoryPerMapSlot" type="long"/>
  79176. <doc>
  79177. <![CDATA[Set the amount of RAM reserved for each map slot.
  79178. @param memoryPerMapSlot The amount of RAM reserved for each map slot, in KB.]]>
  79179. </doc>
  79180. </method>
  79181. <method name="setMemoryPerReduceSlot" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  79182. abstract="false" native="false" synchronized="false"
  79183. static="false" final="false" visibility="public"
  79184. deprecated="not deprecated">
  79185. <param name="memoryPerReduceSlot" type="long"/>
  79186. <doc>
  79187. <![CDATA[Set the amount of RAM reserved for each reduce slot.
  79188. @param memoryPerReduceSlot The amount of RAM reserved for each reduce slot, in KB.]]>
  79189. </doc>
  79190. </method>
  79191. <method name="setNumCores" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  79192. abstract="false" native="false" synchronized="false"
  79193. static="false" final="false" visibility="public"
  79194. deprecated="not deprecated">
  79195. <param name="numCores" type="int"/>
  79196. <doc>
  79197. <![CDATA[Set the number of cores for the node.
  79198. @param numCores Number of cores for the node.]]>
  79199. </doc>
  79200. </method>
  79201. <method name="cloneFrom" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  79202. abstract="false" native="false" synchronized="false"
  79203. static="false" final="false" visibility="public"
  79204. deprecated="not deprecated">
  79205. <param name="ref" type="org.apache.hadoop.tools.rumen.MachineNode"/>
  79206. <doc>
  79207. <![CDATA[Clone the settings from a reference {@link MachineNode} object.
  79208. @param ref The reference {@link MachineNode} object.]]>
  79209. </doc>
  79210. </method>
  79211. <method name="build" return="org.apache.hadoop.tools.rumen.MachineNode"
  79212. abstract="false" native="false" synchronized="false"
  79213. static="false" final="false" visibility="public"
  79214. deprecated="not deprecated">
  79215. <doc>
  79216. <![CDATA[Build the {@link MachineNode} object.
  79217. @return The {@link MachineNode} object being built.]]>
  79218. </doc>
  79219. </method>
  79220. <doc>
  79221. <![CDATA[Builder for a NodeInfo object]]>
  79222. </doc>
  79223. </class>
  79224. <!-- end class org.apache.hadoop.tools.rumen.MachineNode.Builder -->
  79225. <!-- start class org.apache.hadoop.tools.rumen.MapAttempt20LineHistoryEventEmitter -->
  79226. <class name="MapAttempt20LineHistoryEventEmitter" extends="org.apache.hadoop.tools.rumen.TaskAttempt20LineEventEmitter"
  79227. abstract="false"
  79228. static="false" final="false" visibility="public"
  79229. deprecated="not deprecated">
  79230. <constructor name="MapAttempt20LineHistoryEventEmitter"
  79231. static="false" final="false" visibility="protected"
  79232. deprecated="not deprecated">
  79233. </constructor>
  79234. </class>
  79235. <!-- end class org.apache.hadoop.tools.rumen.MapAttempt20LineHistoryEventEmitter -->
  79236. <!-- start class org.apache.hadoop.tools.rumen.MapAttemptFinishedEvent -->
  79237. <class name="MapAttemptFinishedEvent" extends="java.lang.Object"
  79238. abstract="false"
  79239. static="false" final="false" visibility="public"
  79240. deprecated="not deprecated">
  79241. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  79242. <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"
  79243. static="false" final="false" visibility="public"
  79244. deprecated="not deprecated">
  79245. <doc>
  79246. <![CDATA[Create an event for successful completion of map attempts
  79247. @param id Task Attempt ID
  79248. @param taskType Type of the task
  79249. @param taskStatus Status of the task
  79250. @param mapFinishTime Finish time of the map phase
  79251. @param finishTime Finish time of the attempt
  79252. @param hostname Name of the host where the map executed
  79253. @param state State string for the attempt
  79254. @param counters Counters for the attempt]]>
  79255. </doc>
  79256. </constructor>
  79257. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  79258. abstract="false" native="false" synchronized="false"
  79259. static="false" final="false" visibility="public"
  79260. deprecated="not deprecated">
  79261. <doc>
  79262. <![CDATA[Get the task ID]]>
  79263. </doc>
  79264. </method>
  79265. <method name="getAttemptId" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  79266. abstract="false" native="false" synchronized="false"
  79267. static="false" final="false" visibility="public"
  79268. deprecated="not deprecated">
  79269. <doc>
  79270. <![CDATA[Get the attempt id]]>
  79271. </doc>
  79272. </method>
  79273. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  79274. abstract="false" native="false" synchronized="false"
  79275. static="false" final="false" visibility="public"
  79276. deprecated="not deprecated">
  79277. <doc>
  79278. <![CDATA[Get the task type]]>
  79279. </doc>
  79280. </method>
  79281. <method name="getTaskStatus" return="java.lang.String"
  79282. abstract="false" native="false" synchronized="false"
  79283. static="false" final="false" visibility="public"
  79284. deprecated="not deprecated">
  79285. <doc>
  79286. <![CDATA[Get the task status]]>
  79287. </doc>
  79288. </method>
  79289. <method name="getMapFinishTime" return="long"
  79290. abstract="false" native="false" synchronized="false"
  79291. static="false" final="false" visibility="public"
  79292. deprecated="not deprecated">
  79293. <doc>
  79294. <![CDATA[Get the map phase finish time]]>
  79295. </doc>
  79296. </method>
  79297. <method name="getFinishTime" return="long"
  79298. abstract="false" native="false" synchronized="false"
  79299. static="false" final="false" visibility="public"
  79300. deprecated="not deprecated">
  79301. <doc>
  79302. <![CDATA[Get the attempt finish time]]>
  79303. </doc>
  79304. </method>
  79305. <method name="getHostname" return="java.lang.String"
  79306. abstract="false" native="false" synchronized="false"
  79307. static="false" final="false" visibility="public"
  79308. deprecated="not deprecated">
  79309. <doc>
  79310. <![CDATA[Get the host name]]>
  79311. </doc>
  79312. </method>
  79313. <method name="getState" return="java.lang.String"
  79314. abstract="false" native="false" synchronized="false"
  79315. static="false" final="false" visibility="public"
  79316. deprecated="not deprecated">
  79317. <doc>
  79318. <![CDATA[Get the state string]]>
  79319. </doc>
  79320. </method>
  79321. <method name="getCounters" return="org.apache.hadoop.tools.rumen.JhCounters"
  79322. abstract="false" native="false" synchronized="false"
  79323. static="false" final="false" visibility="public"
  79324. deprecated="not deprecated">
  79325. <doc>
  79326. <![CDATA[Get the counters]]>
  79327. </doc>
  79328. </method>
  79329. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  79330. abstract="false" native="false" synchronized="false"
  79331. static="false" final="false" visibility="public"
  79332. deprecated="not deprecated">
  79333. <doc>
  79334. <![CDATA[Get the event type]]>
  79335. </doc>
  79336. </method>
  79337. <doc>
  79338. <![CDATA[Event to record successful completion of a map attempt]]>
  79339. </doc>
  79340. </class>
  79341. <!-- end class org.apache.hadoop.tools.rumen.MapAttemptFinishedEvent -->
  79342. <!-- start class org.apache.hadoop.tools.rumen.MapTaskAttemptInfo -->
  79343. <class name="MapTaskAttemptInfo" extends="org.apache.hadoop.tools.rumen.TaskAttemptInfo"
  79344. abstract="false"
  79345. static="false" final="false" visibility="public"
  79346. deprecated="not deprecated">
  79347. <constructor name="MapTaskAttemptInfo" type="org.apache.hadoop.mapred.TaskStatus.State, org.apache.hadoop.tools.rumen.TaskInfo, long"
  79348. static="false" final="false" visibility="public"
  79349. deprecated="not deprecated">
  79350. </constructor>
  79351. <method name="getRuntime" return="long"
  79352. abstract="false" native="false" synchronized="false"
  79353. static="false" final="false" visibility="public"
  79354. deprecated="not deprecated">
  79355. </method>
  79356. <method name="getMapRuntime" return="long"
  79357. abstract="false" native="false" synchronized="false"
  79358. static="false" final="false" visibility="public"
  79359. deprecated="not deprecated">
  79360. <doc>
  79361. <![CDATA[Get the runtime for the <b>map</b> phase of the map-task attempt.
  79362. @return the runtime for the <b>map</b> phase of the map-task attempt]]>
  79363. </doc>
  79364. </method>
  79365. <doc>
  79366. <![CDATA[{@link MapTaskAttemptInfo} represents the information with regard to a
  79367. map task attempt.]]>
  79368. </doc>
  79369. </class>
  79370. <!-- end class org.apache.hadoop.tools.rumen.MapTaskAttemptInfo -->
  79371. <!-- start class org.apache.hadoop.tools.rumen.Node -->
  79372. <class name="Node" extends="java.lang.Object"
  79373. abstract="false"
  79374. static="false" final="false" visibility="public"
  79375. deprecated="not deprecated">
  79376. <implements name="java.lang.Comparable"/>
  79377. <constructor name="Node" type="java.lang.String, int"
  79378. static="false" final="false" visibility="public"
  79379. deprecated="not deprecated">
  79380. <doc>
  79381. <![CDATA[@param name
  79382. A unique name to identify a node in the cluster.
  79383. @param level
  79384. The level of the node in the cluster]]>
  79385. </doc>
  79386. </constructor>
  79387. <method name="getName" return="java.lang.String"
  79388. abstract="false" native="false" synchronized="false"
  79389. static="false" final="false" visibility="public"
  79390. deprecated="not deprecated">
  79391. <doc>
  79392. <![CDATA[Get the name of the node.
  79393. @return The name of the node.]]>
  79394. </doc>
  79395. </method>
  79396. <method name="getLevel" return="int"
  79397. abstract="false" native="false" synchronized="false"
  79398. static="false" final="false" visibility="public"
  79399. deprecated="not deprecated">
  79400. <doc>
  79401. <![CDATA[Get the level of the node.
  79402. @return The level of the node.]]>
  79403. </doc>
  79404. </method>
  79405. <method name="addChild" return="boolean"
  79406. abstract="false" native="false" synchronized="true"
  79407. static="false" final="false" visibility="public"
  79408. deprecated="not deprecated">
  79409. <param name="child" type="org.apache.hadoop.tools.rumen.Node"/>
  79410. <doc>
  79411. <![CDATA[Add a child node to this node.
  79412. @param child The child node to be added. The child node should currently not be belong to another cluster topology.
  79413. @return Boolean indicating whether the node is successfully added.]]>
  79414. </doc>
  79415. </method>
  79416. <method name="hasChildren" return="boolean"
  79417. abstract="false" native="false" synchronized="true"
  79418. static="false" final="false" visibility="public"
  79419. deprecated="not deprecated">
  79420. <doc>
  79421. <![CDATA[Does this node have any children?
  79422. @return Boolean indicate whether this node has any children.]]>
  79423. </doc>
  79424. </method>
  79425. <method name="getChildren" return="java.util.Set"
  79426. abstract="false" native="false" synchronized="true"
  79427. static="false" final="false" visibility="public"
  79428. deprecated="not deprecated">
  79429. <doc>
  79430. <![CDATA[Get the children of this node.
  79431. @return The children of this node. If no child, an empty set will be
  79432. returned. The returned set is read-only.]]>
  79433. </doc>
  79434. </method>
  79435. <method name="getParent" return="org.apache.hadoop.tools.rumen.Node"
  79436. abstract="false" native="false" synchronized="false"
  79437. static="false" final="false" visibility="public"
  79438. deprecated="not deprecated">
  79439. <doc>
  79440. <![CDATA[Get the parent node.
  79441. @return the parent node. If root node, return null.]]>
  79442. </doc>
  79443. </method>
  79444. <method name="hashCode" return="int"
  79445. abstract="false" native="false" synchronized="false"
  79446. static="false" final="false" visibility="public"
  79447. deprecated="not deprecated">
  79448. </method>
  79449. <method name="equals" return="boolean"
  79450. abstract="false" native="false" synchronized="false"
  79451. static="false" final="false" visibility="public"
  79452. deprecated="not deprecated">
  79453. <param name="obj" type="java.lang.Object"/>
  79454. </method>
  79455. <method name="toString" return="java.lang.String"
  79456. abstract="false" native="false" synchronized="false"
  79457. static="false" final="false" visibility="public"
  79458. deprecated="not deprecated">
  79459. </method>
  79460. <method name="compareTo" return="int"
  79461. abstract="false" native="false" synchronized="false"
  79462. static="false" final="false" visibility="public"
  79463. deprecated="not deprecated">
  79464. <param name="o" type="org.apache.hadoop.tools.rumen.Node"/>
  79465. </method>
  79466. <doc>
  79467. <![CDATA[{@link Node} represents a node in the cluster topology. A node can be a
  79468. {@link MachineNode}, or a {@link RackNode}, etc.]]>
  79469. </doc>
  79470. </class>
  79471. <!-- end class org.apache.hadoop.tools.rumen.Node -->
  79472. <!-- start interface org.apache.hadoop.tools.rumen.Outputter -->
  79473. <interface name="Outputter" abstract="true"
  79474. static="false" final="false" visibility="public"
  79475. deprecated="not deprecated">
  79476. <implements name="java.io.Closeable"/>
  79477. <method name="init"
  79478. abstract="false" native="false" synchronized="false"
  79479. static="false" final="false" visibility="public"
  79480. deprecated="not deprecated">
  79481. <param name="path" type="org.apache.hadoop.fs.Path"/>
  79482. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  79483. <exception name="IOException" type="java.io.IOException"/>
  79484. <doc>
  79485. <![CDATA[Initialize the {@link Outputter} to a specific path.
  79486. @param path The {@link Path} to the output file.
  79487. @param conf Configuration
  79488. @throws IOException]]>
  79489. </doc>
  79490. </method>
  79491. <method name="output"
  79492. abstract="false" native="false" synchronized="false"
  79493. static="false" final="false" visibility="public"
  79494. deprecated="not deprecated">
  79495. <param name="object" type="java.lang.Object"/>
  79496. <exception name="IOException" type="java.io.IOException"/>
  79497. <doc>
  79498. <![CDATA[Output an object.
  79499. @param object The objecte.
  79500. @throws IOException]]>
  79501. </doc>
  79502. </method>
  79503. <doc>
  79504. <![CDATA[Interface to output a sequence of objects of type T.]]>
  79505. </doc>
  79506. </interface>
  79507. <!-- end interface org.apache.hadoop.tools.rumen.Outputter -->
  79508. <!-- start class org.apache.hadoop.tools.rumen.ParsedJob -->
  79509. <class name="ParsedJob" extends="org.apache.hadoop.tools.rumen.LoggedJob"
  79510. abstract="false"
  79511. static="false" final="false" visibility="public"
  79512. deprecated="not deprecated">
  79513. <method name="obtainTotalCounters" return="java.util.Map"
  79514. abstract="false" native="false" synchronized="false"
  79515. static="false" final="false" visibility="public"
  79516. deprecated="not deprecated">
  79517. <doc>
  79518. <![CDATA[@return the job total counters]]>
  79519. </doc>
  79520. </method>
  79521. <method name="obtainMapCounters" return="java.util.Map"
  79522. abstract="false" native="false" synchronized="false"
  79523. static="false" final="false" visibility="public"
  79524. deprecated="not deprecated">
  79525. <doc>
  79526. <![CDATA[@return the job level map tasks' counters]]>
  79527. </doc>
  79528. </method>
  79529. <method name="obtainReduceCounters" return="java.util.Map"
  79530. abstract="false" native="false" synchronized="false"
  79531. static="false" final="false" visibility="public"
  79532. deprecated="not deprecated">
  79533. <doc>
  79534. <![CDATA[@return the job level reduce tasks' counters]]>
  79535. </doc>
  79536. </method>
  79537. <method name="obtainJobConfpath" return="java.lang.String"
  79538. abstract="false" native="false" synchronized="false"
  79539. static="false" final="false" visibility="public"
  79540. deprecated="not deprecated">
  79541. <doc>
  79542. <![CDATA[@return the job conf path in staging dir on hdfs]]>
  79543. </doc>
  79544. </method>
  79545. <method name="obtainJobAcls" return="java.util.Map"
  79546. abstract="false" native="false" synchronized="false"
  79547. static="false" final="false" visibility="public"
  79548. deprecated="not deprecated">
  79549. <doc>
  79550. <![CDATA[@return the job acls]]>
  79551. </doc>
  79552. </method>
  79553. <method name="obtainMapTasks" return="java.util.List"
  79554. abstract="false" native="false" synchronized="false"
  79555. static="false" final="false" visibility="public"
  79556. deprecated="not deprecated">
  79557. <doc>
  79558. <![CDATA[@return the list of map tasks of this job]]>
  79559. </doc>
  79560. </method>
  79561. <method name="obtainReduceTasks" return="java.util.List"
  79562. abstract="false" native="false" synchronized="false"
  79563. static="false" final="false" visibility="public"
  79564. deprecated="not deprecated">
  79565. <doc>
  79566. <![CDATA[@return the list of reduce tasks of this job]]>
  79567. </doc>
  79568. </method>
  79569. <method name="obtainOtherTasks" return="java.util.List"
  79570. abstract="false" native="false" synchronized="false"
  79571. static="false" final="false" visibility="public"
  79572. deprecated="not deprecated">
  79573. <doc>
  79574. <![CDATA[@return the list of other tasks of this job]]>
  79575. </doc>
  79576. </method>
  79577. <doc>
  79578. <![CDATA[This is a wrapper class around {@link LoggedJob}. This provides also the
  79579. extra information about the job obtained from job history which is not
  79580. written to the JSON trace file.]]>
  79581. </doc>
  79582. </class>
  79583. <!-- end class org.apache.hadoop.tools.rumen.ParsedJob -->
  79584. <!-- start class org.apache.hadoop.tools.rumen.ParsedTask -->
  79585. <class name="ParsedTask" extends="org.apache.hadoop.tools.rumen.LoggedTask"
  79586. abstract="false"
  79587. static="false" final="false" visibility="public"
  79588. deprecated="not deprecated">
  79589. <method name="incorporateCounters"
  79590. abstract="false" native="false" synchronized="false"
  79591. static="false" final="false" visibility="public"
  79592. deprecated="not deprecated">
  79593. <param name="counters" type="org.apache.hadoop.tools.rumen.JhCounters"/>
  79594. </method>
  79595. <method name="putCounters"
  79596. abstract="false" native="false" synchronized="false"
  79597. static="false" final="false" visibility="public"
  79598. deprecated="not deprecated">
  79599. <param name="counters" type="java.util.Map"/>
  79600. <doc>
  79601. <![CDATA[Set the task counters]]>
  79602. </doc>
  79603. </method>
  79604. <method name="obtainCounters" return="java.util.Map"
  79605. abstract="false" native="false" synchronized="false"
  79606. static="false" final="false" visibility="public"
  79607. deprecated="not deprecated">
  79608. <doc>
  79609. <![CDATA[@return the task counters]]>
  79610. </doc>
  79611. </method>
  79612. <method name="putDiagnosticInfo"
  79613. abstract="false" native="false" synchronized="false"
  79614. static="false" final="false" visibility="public"
  79615. deprecated="not deprecated">
  79616. <param name="msg" type="java.lang.String"/>
  79617. <doc>
  79618. <![CDATA[Set the task diagnostic-info]]>
  79619. </doc>
  79620. </method>
  79621. <method name="obtainDiagnosticInfo" return="java.lang.String"
  79622. abstract="false" native="false" synchronized="false"
  79623. static="false" final="false" visibility="public"
  79624. deprecated="not deprecated">
  79625. <doc>
  79626. <![CDATA[@return the diagnostic-info of this task.
  79627. If the task is successful, returns null.]]>
  79628. </doc>
  79629. </method>
  79630. <method name="putFailedDueToAttemptId"
  79631. abstract="false" native="false" synchronized="false"
  79632. static="false" final="false" visibility="public"
  79633. deprecated="not deprecated">
  79634. <param name="attempt" type="java.lang.String"/>
  79635. <doc>
  79636. <![CDATA[Set the failed-due-to-attemptId info of this task.]]>
  79637. </doc>
  79638. </method>
  79639. <method name="obtainFailedDueToAttemptId" return="java.lang.String"
  79640. abstract="false" native="false" synchronized="false"
  79641. static="false" final="false" visibility="public"
  79642. deprecated="not deprecated">
  79643. <doc>
  79644. <![CDATA[@return the failed-due-to-attemptId info of this task.
  79645. If the task is successful, returns null.]]>
  79646. </doc>
  79647. </method>
  79648. <method name="obtainTaskAttempts" return="java.util.List"
  79649. abstract="false" native="false" synchronized="false"
  79650. static="false" final="false" visibility="public"
  79651. deprecated="not deprecated">
  79652. </method>
  79653. <doc>
  79654. <![CDATA[This is a wrapper class around {@link LoggedTask}. This provides also the
  79655. extra information about the task obtained from job history which is not
  79656. written to the JSON trace file.]]>
  79657. </doc>
  79658. </class>
  79659. <!-- end class org.apache.hadoop.tools.rumen.ParsedTask -->
  79660. <!-- start class org.apache.hadoop.tools.rumen.ParsedTaskAttempt -->
  79661. <class name="ParsedTaskAttempt" extends="org.apache.hadoop.tools.rumen.LoggedTaskAttempt"
  79662. abstract="false"
  79663. static="false" final="false" visibility="public"
  79664. deprecated="not deprecated">
  79665. <method name="incorporateCounters"
  79666. abstract="false" native="false" synchronized="false"
  79667. static="false" final="false" visibility="public"
  79668. deprecated="not deprecated">
  79669. <param name="counters" type="org.apache.hadoop.tools.rumen.JhCounters"/>
  79670. <doc>
  79671. <![CDATA[incorporate event counters]]>
  79672. </doc>
  79673. </method>
  79674. <method name="putCounters"
  79675. abstract="false" native="false" synchronized="false"
  79676. static="false" final="false" visibility="public"
  79677. deprecated="not deprecated">
  79678. <param name="counters" type="java.util.Map"/>
  79679. <doc>
  79680. <![CDATA[Set the task attempt counters]]>
  79681. </doc>
  79682. </method>
  79683. <method name="obtainCounters" return="java.util.Map"
  79684. abstract="false" native="false" synchronized="false"
  79685. static="false" final="false" visibility="public"
  79686. deprecated="not deprecated">
  79687. <doc>
  79688. <![CDATA[@return the task attempt counters]]>
  79689. </doc>
  79690. </method>
  79691. <method name="putDiagnosticInfo"
  79692. abstract="false" native="false" synchronized="false"
  79693. static="false" final="false" visibility="public"
  79694. deprecated="not deprecated">
  79695. <param name="msg" type="java.lang.String"/>
  79696. <doc>
  79697. <![CDATA[Set the task attempt diagnostic-info]]>
  79698. </doc>
  79699. </method>
  79700. <method name="obtainDiagnosticInfo" return="java.lang.String"
  79701. abstract="false" native="false" synchronized="false"
  79702. static="false" final="false" visibility="public"
  79703. deprecated="not deprecated">
  79704. <doc>
  79705. <![CDATA[@return the diagnostic-info of this task attempt.
  79706. If the attempt is successful, returns null.]]>
  79707. </doc>
  79708. </method>
  79709. <method name="obtainTrackerName" return="java.lang.String"
  79710. abstract="false" native="false" synchronized="false"
  79711. static="false" final="false" visibility="public"
  79712. deprecated="not deprecated">
  79713. <doc>
  79714. <![CDATA[@return the tracker name where the attempt was run.]]>
  79715. </doc>
  79716. </method>
  79717. <method name="obtainHttpPort" return="java.lang.Integer"
  79718. abstract="false" native="false" synchronized="false"
  79719. static="false" final="false" visibility="public"
  79720. deprecated="not deprecated">
  79721. <doc>
  79722. <![CDATA[@return http port if set. Returns null otherwise.]]>
  79723. </doc>
  79724. </method>
  79725. <method name="obtainStateString" return="java.lang.String"
  79726. abstract="false" native="false" synchronized="false"
  79727. static="false" final="false" visibility="public"
  79728. deprecated="not deprecated">
  79729. <doc>
  79730. <![CDATA[@return state string of the task attempt.]]>
  79731. </doc>
  79732. </method>
  79733. <doc>
  79734. <![CDATA[This is a wrapper class around {@link LoggedTaskAttempt}. This provides
  79735. also the extra information about the task attempt obtained from
  79736. job history which is not written to the JSON trace file.]]>
  79737. </doc>
  79738. </class>
  79739. <!-- end class org.apache.hadoop.tools.rumen.ParsedTaskAttempt -->
  79740. <!-- start class org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants -->
  79741. <class name="Pre21JobHistoryConstants" extends="java.lang.Object"
  79742. abstract="false"
  79743. static="false" final="false" visibility="public"
  79744. deprecated="not deprecated">
  79745. <constructor name="Pre21JobHistoryConstants"
  79746. static="false" final="false" visibility="public"
  79747. deprecated="not deprecated">
  79748. </constructor>
  79749. </class>
  79750. <!-- end class org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants -->
  79751. <!-- start class org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values -->
  79752. <class name="Pre21JobHistoryConstants.Values" extends="java.lang.Enum"
  79753. abstract="false"
  79754. static="true" final="true" visibility="public"
  79755. deprecated="not deprecated">
  79756. <method name="values" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values[]"
  79757. abstract="false" native="false" synchronized="false"
  79758. static="true" final="false" visibility="public"
  79759. deprecated="not deprecated">
  79760. </method>
  79761. <method name="valueOf" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  79762. abstract="false" native="false" synchronized="false"
  79763. static="true" final="false" visibility="public"
  79764. deprecated="not deprecated">
  79765. <param name="name" type="java.lang.String"/>
  79766. </method>
  79767. <field name="SUCCESS" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  79768. transient="false" volatile="false"
  79769. static="true" final="true" visibility="public"
  79770. deprecated="not deprecated">
  79771. </field>
  79772. <field name="FAILED" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  79773. transient="false" volatile="false"
  79774. static="true" final="true" visibility="public"
  79775. deprecated="not deprecated">
  79776. </field>
  79777. <field name="KILLED" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  79778. transient="false" volatile="false"
  79779. static="true" final="true" visibility="public"
  79780. deprecated="not deprecated">
  79781. </field>
  79782. <field name="MAP" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  79783. transient="false" volatile="false"
  79784. static="true" final="true" visibility="public"
  79785. deprecated="not deprecated">
  79786. </field>
  79787. <field name="REDUCE" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  79788. transient="false" volatile="false"
  79789. static="true" final="true" visibility="public"
  79790. deprecated="not deprecated">
  79791. </field>
  79792. <field name="CLEANUP" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  79793. transient="false" volatile="false"
  79794. static="true" final="true" visibility="public"
  79795. deprecated="not deprecated">
  79796. </field>
  79797. <field name="RUNNING" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  79798. transient="false" volatile="false"
  79799. static="true" final="true" visibility="public"
  79800. deprecated="not deprecated">
  79801. </field>
  79802. <field name="PREP" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  79803. transient="false" volatile="false"
  79804. static="true" final="true" visibility="public"
  79805. deprecated="not deprecated">
  79806. </field>
  79807. <field name="SETUP" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  79808. transient="false" volatile="false"
  79809. static="true" final="true" visibility="public"
  79810. deprecated="not deprecated">
  79811. </field>
  79812. <doc>
  79813. <![CDATA[This enum contains some of the values commonly used by history log events.
  79814. since values in history can only be strings - Values.name() is used in
  79815. most places in history file.]]>
  79816. </doc>
  79817. </class>
  79818. <!-- end class org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values -->
  79819. <!-- start class org.apache.hadoop.tools.rumen.RackNode -->
  79820. <class name="RackNode" extends="org.apache.hadoop.tools.rumen.Node"
  79821. abstract="false"
  79822. static="false" final="true" visibility="public"
  79823. deprecated="not deprecated">
  79824. <constructor name="RackNode" type="java.lang.String, int"
  79825. static="false" final="false" visibility="public"
  79826. deprecated="not deprecated">
  79827. </constructor>
  79828. <method name="addChild" return="boolean"
  79829. abstract="false" native="false" synchronized="true"
  79830. static="false" final="false" visibility="public"
  79831. deprecated="not deprecated">
  79832. <param name="child" type="org.apache.hadoop.tools.rumen.Node"/>
  79833. </method>
  79834. <method name="getMachinesInRack" return="java.util.Set"
  79835. abstract="false" native="false" synchronized="false"
  79836. static="false" final="false" visibility="public"
  79837. deprecated="not deprecated">
  79838. <doc>
  79839. <![CDATA[Get the machine nodes that belong to the rack.
  79840. @return The machine nodes that belong to the rack.]]>
  79841. </doc>
  79842. </method>
  79843. <doc>
  79844. <![CDATA[{@link RackNode} represents a rack node in the cluster topology.]]>
  79845. </doc>
  79846. </class>
  79847. <!-- end class org.apache.hadoop.tools.rumen.RackNode -->
  79848. <!-- start class org.apache.hadoop.tools.rumen.RandomSeedGenerator -->
  79849. <class name="RandomSeedGenerator" extends="java.lang.Object"
  79850. abstract="false"
  79851. static="false" final="false" visibility="public"
  79852. deprecated="not deprecated">
  79853. <constructor name="RandomSeedGenerator"
  79854. static="false" final="false" visibility="public"
  79855. deprecated="not deprecated">
  79856. </constructor>
  79857. <method name="getSeed" return="long"
  79858. abstract="false" native="false" synchronized="false"
  79859. static="true" final="false" visibility="public"
  79860. deprecated="not deprecated">
  79861. <param name="streamId" type="java.lang.String"/>
  79862. <param name="masterSeed" type="long"/>
  79863. <doc>
  79864. <![CDATA[Generates a new random seed.
  79865. @param streamId a string identifying the stream of random numbers
  79866. @param masterSeed higher level master random seed
  79867. @return the random seed. Different (streamId, masterSeed) pairs result in
  79868. (vastly) different random seeds.]]>
  79869. </doc>
  79870. </method>
  79871. <doc>
  79872. <![CDATA[The purpose of this class is to generate new random seeds from a master
  79873. seed. This is needed to make the Random().next*() calls in rumen and mumak
  79874. deterministic so that mumak simulations become deterministically replayable.
  79875. In these tools we need many independent streams of random numbers, some of
  79876. which are created dynamically. We seed these streams with the sub-seeds
  79877. returned by RandomSeedGenerator.
  79878. For a slightly more complicated approach to generating multiple streams of
  79879. random numbers with better theoretical guarantees, see
  79880. P. L'Ecuyer, R. Simard, E. J. Chen, and W. D. Kelton,
  79881. ``An Objected-Oriented Random-Number Package with Many Long Streams and
  79882. Substreams'', Operations Research, 50, 6 (2002), 1073--1075
  79883. http://www.iro.umontreal.ca/~lecuyer/papers.html
  79884. http://www.iro.umontreal.ca/~lecuyer/myftp/streams00/]]>
  79885. </doc>
  79886. </class>
  79887. <!-- end class org.apache.hadoop.tools.rumen.RandomSeedGenerator -->
  79888. <!-- start class org.apache.hadoop.tools.rumen.ReduceAttempt20LineHistoryEventEmitter -->
  79889. <class name="ReduceAttempt20LineHistoryEventEmitter" extends="org.apache.hadoop.tools.rumen.TaskAttempt20LineEventEmitter"
  79890. abstract="false"
  79891. static="false" final="false" visibility="public"
  79892. deprecated="not deprecated">
  79893. </class>
  79894. <!-- end class org.apache.hadoop.tools.rumen.ReduceAttempt20LineHistoryEventEmitter -->
  79895. <!-- start class org.apache.hadoop.tools.rumen.ReduceAttemptFinishedEvent -->
  79896. <class name="ReduceAttemptFinishedEvent" extends="java.lang.Object"
  79897. abstract="false"
  79898. static="false" final="false" visibility="public"
  79899. deprecated="not deprecated">
  79900. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  79901. <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"
  79902. static="false" final="false" visibility="public"
  79903. deprecated="not deprecated">
  79904. <doc>
  79905. <![CDATA[Create an event to record completion of a reduce attempt
  79906. @param id Attempt Id
  79907. @param taskType Type of task
  79908. @param taskStatus Status of the task
  79909. @param shuffleFinishTime Finish time of the shuffle phase
  79910. @param sortFinishTime Finish time of the sort phase
  79911. @param finishTime Finish time of the attempt
  79912. @param hostname Name of the host where the attempt executed
  79913. @param state State of the attempt
  79914. @param counters Counters for the attempt]]>
  79915. </doc>
  79916. </constructor>
  79917. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  79918. abstract="false" native="false" synchronized="false"
  79919. static="false" final="false" visibility="public"
  79920. deprecated="not deprecated">
  79921. <doc>
  79922. <![CDATA[Get the Task ID]]>
  79923. </doc>
  79924. </method>
  79925. <method name="getAttemptId" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  79926. abstract="false" native="false" synchronized="false"
  79927. static="false" final="false" visibility="public"
  79928. deprecated="not deprecated">
  79929. <doc>
  79930. <![CDATA[Get the attempt id]]>
  79931. </doc>
  79932. </method>
  79933. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  79934. abstract="false" native="false" synchronized="false"
  79935. static="false" final="false" visibility="public"
  79936. deprecated="not deprecated">
  79937. <doc>
  79938. <![CDATA[Get the task type]]>
  79939. </doc>
  79940. </method>
  79941. <method name="getTaskStatus" return="java.lang.String"
  79942. abstract="false" native="false" synchronized="false"
  79943. static="false" final="false" visibility="public"
  79944. deprecated="not deprecated">
  79945. <doc>
  79946. <![CDATA[Get the task status]]>
  79947. </doc>
  79948. </method>
  79949. <method name="getSortFinishTime" return="long"
  79950. abstract="false" native="false" synchronized="false"
  79951. static="false" final="false" visibility="public"
  79952. deprecated="not deprecated">
  79953. <doc>
  79954. <![CDATA[Get the finish time of the sort phase]]>
  79955. </doc>
  79956. </method>
  79957. <method name="getShuffleFinishTime" return="long"
  79958. abstract="false" native="false" synchronized="false"
  79959. static="false" final="false" visibility="public"
  79960. deprecated="not deprecated">
  79961. <doc>
  79962. <![CDATA[Get the finish time of the shuffle phase]]>
  79963. </doc>
  79964. </method>
  79965. <method name="getFinishTime" return="long"
  79966. abstract="false" native="false" synchronized="false"
  79967. static="false" final="false" visibility="public"
  79968. deprecated="not deprecated">
  79969. <doc>
  79970. <![CDATA[Get the finish time of the attempt]]>
  79971. </doc>
  79972. </method>
  79973. <method name="getHostname" return="java.lang.String"
  79974. abstract="false" native="false" synchronized="false"
  79975. static="false" final="false" visibility="public"
  79976. deprecated="not deprecated">
  79977. <doc>
  79978. <![CDATA[Get the name of the host where the attempt ran]]>
  79979. </doc>
  79980. </method>
  79981. <method name="getState" return="java.lang.String"
  79982. abstract="false" native="false" synchronized="false"
  79983. static="false" final="false" visibility="public"
  79984. deprecated="not deprecated">
  79985. <doc>
  79986. <![CDATA[Get the state string]]>
  79987. </doc>
  79988. </method>
  79989. <method name="getCounters" return="org.apache.hadoop.tools.rumen.JhCounters"
  79990. abstract="false" native="false" synchronized="false"
  79991. static="false" final="false" visibility="public"
  79992. deprecated="not deprecated">
  79993. <doc>
  79994. <![CDATA[Get the counters for the attempt]]>
  79995. </doc>
  79996. </method>
  79997. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  79998. abstract="false" native="false" synchronized="false"
  79999. static="false" final="false" visibility="public"
  80000. deprecated="not deprecated">
  80001. <doc>
  80002. <![CDATA[Get the event type]]>
  80003. </doc>
  80004. </method>
  80005. <doc>
  80006. <![CDATA[Event to record successful completion of a reduce attempt]]>
  80007. </doc>
  80008. </class>
  80009. <!-- end class org.apache.hadoop.tools.rumen.ReduceAttemptFinishedEvent -->
  80010. <!-- start class org.apache.hadoop.tools.rumen.ReduceTaskAttemptInfo -->
  80011. <class name="ReduceTaskAttemptInfo" extends="org.apache.hadoop.tools.rumen.TaskAttemptInfo"
  80012. abstract="false"
  80013. static="false" final="false" visibility="public"
  80014. deprecated="not deprecated">
  80015. <constructor name="ReduceTaskAttemptInfo" type="org.apache.hadoop.mapred.TaskStatus.State, org.apache.hadoop.tools.rumen.TaskInfo, long, long, long"
  80016. static="false" final="false" visibility="public"
  80017. deprecated="not deprecated">
  80018. </constructor>
  80019. <method name="getReduceRuntime" return="long"
  80020. abstract="false" native="false" synchronized="false"
  80021. static="false" final="false" visibility="public"
  80022. deprecated="not deprecated">
  80023. <doc>
  80024. <![CDATA[Get the runtime for the <b>reduce</b> phase of the reduce task-attempt.
  80025. @return the runtime for the <b>reduce</b> phase of the reduce task-attempt]]>
  80026. </doc>
  80027. </method>
  80028. <method name="getShuffleRuntime" return="long"
  80029. abstract="false" native="false" synchronized="false"
  80030. static="false" final="false" visibility="public"
  80031. deprecated="not deprecated">
  80032. <doc>
  80033. <![CDATA[Get the runtime for the <b>shuffle</b> phase of the reduce task-attempt.
  80034. @return the runtime for the <b>shuffle</b> phase of the reduce task-attempt]]>
  80035. </doc>
  80036. </method>
  80037. <method name="getMergeRuntime" return="long"
  80038. abstract="false" native="false" synchronized="false"
  80039. static="false" final="false" visibility="public"
  80040. deprecated="not deprecated">
  80041. <doc>
  80042. <![CDATA[Get the runtime for the <b>merge</b> phase of the reduce task-attempt
  80043. @return the runtime for the <b>merge</b> phase of the reduce task-attempt]]>
  80044. </doc>
  80045. </method>
  80046. <method name="getRuntime" return="long"
  80047. abstract="false" native="false" synchronized="false"
  80048. static="false" final="false" visibility="public"
  80049. deprecated="not deprecated">
  80050. </method>
  80051. <doc>
  80052. <![CDATA[{@link ReduceTaskAttemptInfo} represents the information with regard to a
  80053. reduce task attempt.]]>
  80054. </doc>
  80055. </class>
  80056. <!-- end class org.apache.hadoop.tools.rumen.ReduceTaskAttemptInfo -->
  80057. <!-- start class org.apache.hadoop.tools.rumen.ResourceUsageMetrics -->
  80058. <class name="ResourceUsageMetrics" extends="java.lang.Object"
  80059. abstract="false"
  80060. static="false" final="false" visibility="public"
  80061. deprecated="not deprecated">
  80062. <implements name="org.apache.hadoop.io.Writable"/>
  80063. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  80064. <constructor name="ResourceUsageMetrics"
  80065. static="false" final="false" visibility="public"
  80066. deprecated="not deprecated">
  80067. </constructor>
  80068. <method name="getCumulativeCpuUsage" return="long"
  80069. abstract="false" native="false" synchronized="false"
  80070. static="false" final="false" visibility="public"
  80071. deprecated="not deprecated">
  80072. <doc>
  80073. <![CDATA[Get the cumulative CPU usage.]]>
  80074. </doc>
  80075. </method>
  80076. <method name="setCumulativeCpuUsage"
  80077. abstract="false" native="false" synchronized="false"
  80078. static="false" final="false" visibility="public"
  80079. deprecated="not deprecated">
  80080. <param name="usage" type="long"/>
  80081. <doc>
  80082. <![CDATA[Set the cumulative CPU usage.]]>
  80083. </doc>
  80084. </method>
  80085. <method name="getVirtualMemoryUsage" return="long"
  80086. abstract="false" native="false" synchronized="false"
  80087. static="false" final="false" visibility="public"
  80088. deprecated="not deprecated">
  80089. <doc>
  80090. <![CDATA[Get the virtual memory usage.]]>
  80091. </doc>
  80092. </method>
  80093. <method name="setVirtualMemoryUsage"
  80094. abstract="false" native="false" synchronized="false"
  80095. static="false" final="false" visibility="public"
  80096. deprecated="not deprecated">
  80097. <param name="usage" type="long"/>
  80098. <doc>
  80099. <![CDATA[Set the virtual memory usage.]]>
  80100. </doc>
  80101. </method>
  80102. <method name="getPhysicalMemoryUsage" return="long"
  80103. abstract="false" native="false" synchronized="false"
  80104. static="false" final="false" visibility="public"
  80105. deprecated="not deprecated">
  80106. <doc>
  80107. <![CDATA[Get the physical memory usage.]]>
  80108. </doc>
  80109. </method>
  80110. <method name="setPhysicalMemoryUsage"
  80111. abstract="false" native="false" synchronized="false"
  80112. static="false" final="false" visibility="public"
  80113. deprecated="not deprecated">
  80114. <param name="usage" type="long"/>
  80115. <doc>
  80116. <![CDATA[Set the physical memory usage.]]>
  80117. </doc>
  80118. </method>
  80119. <method name="getHeapUsage" return="long"
  80120. abstract="false" native="false" synchronized="false"
  80121. static="false" final="false" visibility="public"
  80122. deprecated="not deprecated">
  80123. <doc>
  80124. <![CDATA[Get the total heap usage.]]>
  80125. </doc>
  80126. </method>
  80127. <method name="setHeapUsage"
  80128. abstract="false" native="false" synchronized="false"
  80129. static="false" final="false" visibility="public"
  80130. deprecated="not deprecated">
  80131. <param name="usage" type="long"/>
  80132. <doc>
  80133. <![CDATA[Set the total heap usage.]]>
  80134. </doc>
  80135. </method>
  80136. <method name="size" return="int"
  80137. abstract="false" native="false" synchronized="false"
  80138. static="false" final="false" visibility="public"
  80139. deprecated="not deprecated">
  80140. <doc>
  80141. <![CDATA[Returns the size of the serialized data]]>
  80142. </doc>
  80143. </method>
  80144. <method name="readFields"
  80145. abstract="false" native="false" synchronized="false"
  80146. static="false" final="false" visibility="public"
  80147. deprecated="not deprecated">
  80148. <param name="in" type="java.io.DataInput"/>
  80149. <exception name="IOException" type="java.io.IOException"/>
  80150. </method>
  80151. <method name="write"
  80152. abstract="false" native="false" synchronized="false"
  80153. static="false" final="false" visibility="public"
  80154. deprecated="not deprecated">
  80155. <param name="out" type="java.io.DataOutput"/>
  80156. <exception name="IOException" type="java.io.IOException"/>
  80157. </method>
  80158. <method name="deepCompare"
  80159. abstract="false" native="false" synchronized="false"
  80160. static="false" final="false" visibility="public"
  80161. deprecated="not deprecated">
  80162. <param name="other" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  80163. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  80164. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  80165. </method>
  80166. <doc>
  80167. <![CDATA[Captures the resource usage metrics.]]>
  80168. </doc>
  80169. </class>
  80170. <!-- end class org.apache.hadoop.tools.rumen.ResourceUsageMetrics -->
  80171. <!-- start class org.apache.hadoop.tools.rumen.RewindableInputStream -->
  80172. <class name="RewindableInputStream" extends="java.io.InputStream"
  80173. abstract="false"
  80174. static="false" final="false" visibility="public"
  80175. deprecated="not deprecated">
  80176. <constructor name="RewindableInputStream" type="java.io.InputStream"
  80177. static="false" final="false" visibility="public"
  80178. deprecated="not deprecated">
  80179. <doc>
  80180. <![CDATA[Constructor.
  80181. @param input]]>
  80182. </doc>
  80183. </constructor>
  80184. <constructor name="RewindableInputStream" type="java.io.InputStream, int"
  80185. static="false" final="false" visibility="public"
  80186. deprecated="not deprecated">
  80187. <doc>
  80188. <![CDATA[Constructor
  80189. @param input
  80190. input stream.
  80191. @param maxBytesToRemember
  80192. Maximum number of bytes we need to remember at the beginning of
  80193. the stream. If {@link #rewind()} is called after so many bytes are
  80194. read from the stream, {@link #rewind()} would fail.]]>
  80195. </doc>
  80196. </constructor>
  80197. <method name="read" return="int"
  80198. abstract="false" native="false" synchronized="false"
  80199. static="false" final="false" visibility="public"
  80200. deprecated="not deprecated">
  80201. <exception name="IOException" type="java.io.IOException"/>
  80202. </method>
  80203. <method name="read" return="int"
  80204. abstract="false" native="false" synchronized="false"
  80205. static="false" final="false" visibility="public"
  80206. deprecated="not deprecated">
  80207. <param name="buffer" type="byte[]"/>
  80208. <param name="offset" type="int"/>
  80209. <param name="length" type="int"/>
  80210. <exception name="IOException" type="java.io.IOException"/>
  80211. </method>
  80212. <method name="close"
  80213. abstract="false" native="false" synchronized="false"
  80214. static="false" final="false" visibility="public"
  80215. deprecated="not deprecated">
  80216. <exception name="IOException" type="java.io.IOException"/>
  80217. </method>
  80218. <method name="rewind" return="java.io.InputStream"
  80219. abstract="false" native="false" synchronized="false"
  80220. static="false" final="false" visibility="public"
  80221. deprecated="not deprecated">
  80222. <exception name="IOException" type="java.io.IOException"/>
  80223. </method>
  80224. <doc>
  80225. <![CDATA[A simple wrapper class to make any input stream "rewindable". It could be
  80226. made more memory efficient by grow the internal buffer adaptively.]]>
  80227. </doc>
  80228. </class>
  80229. <!-- end class org.apache.hadoop.tools.rumen.RewindableInputStream -->
  80230. <!-- start class org.apache.hadoop.tools.rumen.Task20LineHistoryEventEmitter -->
  80231. <class name="Task20LineHistoryEventEmitter" extends="org.apache.hadoop.tools.rumen.HistoryEventEmitter"
  80232. abstract="false"
  80233. static="false" final="false" visibility="public"
  80234. deprecated="not deprecated">
  80235. <constructor name="Task20LineHistoryEventEmitter"
  80236. static="false" final="false" visibility="protected"
  80237. deprecated="not deprecated">
  80238. </constructor>
  80239. </class>
  80240. <!-- end class org.apache.hadoop.tools.rumen.Task20LineHistoryEventEmitter -->
  80241. <!-- start class org.apache.hadoop.tools.rumen.TaskAttempt20LineEventEmitter -->
  80242. <class name="TaskAttempt20LineEventEmitter" extends="org.apache.hadoop.tools.rumen.HistoryEventEmitter"
  80243. abstract="true"
  80244. static="false" final="false" visibility="public"
  80245. deprecated="not deprecated">
  80246. <constructor name="TaskAttempt20LineEventEmitter"
  80247. static="false" final="false" visibility="protected"
  80248. deprecated="not deprecated">
  80249. </constructor>
  80250. </class>
  80251. <!-- end class org.apache.hadoop.tools.rumen.TaskAttempt20LineEventEmitter -->
  80252. <!-- start class org.apache.hadoop.tools.rumen.TaskAttemptFinishedEvent -->
  80253. <class name="TaskAttemptFinishedEvent" extends="java.lang.Object"
  80254. abstract="false"
  80255. static="false" final="false" visibility="public"
  80256. deprecated="not deprecated">
  80257. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  80258. <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"
  80259. static="false" final="false" visibility="public"
  80260. deprecated="not deprecated">
  80261. <doc>
  80262. <![CDATA[Create an event to record successful finishes for setup and cleanup
  80263. attempts
  80264. @param id Attempt ID
  80265. @param taskType Type of task
  80266. @param taskStatus Status of task
  80267. @param finishTime Finish time of attempt
  80268. @param hostname Host where the attempt executed
  80269. @param state State string
  80270. @param counters Counters for the attempt]]>
  80271. </doc>
  80272. </constructor>
  80273. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  80274. abstract="false" native="false" synchronized="false"
  80275. static="false" final="false" visibility="public"
  80276. deprecated="not deprecated">
  80277. <doc>
  80278. <![CDATA[Get the task ID]]>
  80279. </doc>
  80280. </method>
  80281. <method name="getAttemptId" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  80282. abstract="false" native="false" synchronized="false"
  80283. static="false" final="false" visibility="public"
  80284. deprecated="not deprecated">
  80285. <doc>
  80286. <![CDATA[Get the task attempt id]]>
  80287. </doc>
  80288. </method>
  80289. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  80290. abstract="false" native="false" synchronized="false"
  80291. static="false" final="false" visibility="public"
  80292. deprecated="not deprecated">
  80293. <doc>
  80294. <![CDATA[Get the task type]]>
  80295. </doc>
  80296. </method>
  80297. <method name="getTaskStatus" return="java.lang.String"
  80298. abstract="false" native="false" synchronized="false"
  80299. static="false" final="false" visibility="public"
  80300. deprecated="not deprecated">
  80301. <doc>
  80302. <![CDATA[Get the task status]]>
  80303. </doc>
  80304. </method>
  80305. <method name="getFinishTime" return="long"
  80306. abstract="false" native="false" synchronized="false"
  80307. static="false" final="false" visibility="public"
  80308. deprecated="not deprecated">
  80309. <doc>
  80310. <![CDATA[Get the attempt finish time]]>
  80311. </doc>
  80312. </method>
  80313. <method name="getHostname" return="java.lang.String"
  80314. abstract="false" native="false" synchronized="false"
  80315. static="false" final="false" visibility="public"
  80316. deprecated="not deprecated">
  80317. <doc>
  80318. <![CDATA[Get the host where the attempt executed]]>
  80319. </doc>
  80320. </method>
  80321. <method name="getState" return="java.lang.String"
  80322. abstract="false" native="false" synchronized="false"
  80323. static="false" final="false" visibility="public"
  80324. deprecated="not deprecated">
  80325. <doc>
  80326. <![CDATA[Get the state string]]>
  80327. </doc>
  80328. </method>
  80329. <method name="getCounters" return="org.apache.hadoop.tools.rumen.JhCounters"
  80330. abstract="false" native="false" synchronized="false"
  80331. static="false" final="false" visibility="public"
  80332. deprecated="not deprecated">
  80333. <doc>
  80334. <![CDATA[Get the counters for the attempt]]>
  80335. </doc>
  80336. </method>
  80337. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  80338. abstract="false" native="false" synchronized="false"
  80339. static="false" final="false" visibility="public"
  80340. deprecated="not deprecated">
  80341. <doc>
  80342. <![CDATA[Get the event type]]>
  80343. </doc>
  80344. </method>
  80345. <doc>
  80346. <![CDATA[Event to record successful task completion]]>
  80347. </doc>
  80348. </class>
  80349. <!-- end class org.apache.hadoop.tools.rumen.TaskAttemptFinishedEvent -->
  80350. <!-- start class org.apache.hadoop.tools.rumen.TaskAttemptInfo -->
  80351. <class name="TaskAttemptInfo" extends="java.lang.Object"
  80352. abstract="true"
  80353. static="false" final="false" visibility="public"
  80354. deprecated="not deprecated">
  80355. <constructor name="TaskAttemptInfo" type="org.apache.hadoop.mapred.TaskStatus.State, org.apache.hadoop.tools.rumen.TaskInfo"
  80356. static="false" final="false" visibility="protected"
  80357. deprecated="not deprecated">
  80358. </constructor>
  80359. <method name="getRunState" return="org.apache.hadoop.mapred.TaskStatus.State"
  80360. abstract="false" native="false" synchronized="false"
  80361. static="false" final="false" visibility="public"
  80362. deprecated="not deprecated">
  80363. <doc>
  80364. <![CDATA[Get the final {@link State} of the task-attempt.
  80365. @return the final <code>State</code> of the task-attempt]]>
  80366. </doc>
  80367. </method>
  80368. <method name="getRuntime" return="long"
  80369. abstract="true" native="false" synchronized="false"
  80370. static="false" final="false" visibility="public"
  80371. deprecated="not deprecated">
  80372. <doc>
  80373. <![CDATA[Get the total runtime for the task-attempt.
  80374. @return the total runtime for the task-attempt]]>
  80375. </doc>
  80376. </method>
  80377. <method name="getTaskInfo" return="org.apache.hadoop.tools.rumen.TaskInfo"
  80378. abstract="false" native="false" synchronized="false"
  80379. static="false" final="false" visibility="public"
  80380. deprecated="not deprecated">
  80381. <doc>
  80382. <![CDATA[Get the {@link TaskInfo} for the given task-attempt.
  80383. @return the <code>TaskInfo</code> for the given task-attempt]]>
  80384. </doc>
  80385. </method>
  80386. <field name="state" type="org.apache.hadoop.mapred.TaskStatus.State"
  80387. transient="false" volatile="false"
  80388. static="false" final="true" visibility="protected"
  80389. deprecated="not deprecated">
  80390. </field>
  80391. <field name="taskInfo" type="org.apache.hadoop.tools.rumen.TaskInfo"
  80392. transient="false" volatile="false"
  80393. static="false" final="true" visibility="protected"
  80394. deprecated="not deprecated">
  80395. </field>
  80396. <doc>
  80397. <![CDATA[{@link TaskAttemptInfo} is a collection of statistics about a particular
  80398. task-attempt gleaned from job-history of the job.]]>
  80399. </doc>
  80400. </class>
  80401. <!-- end class org.apache.hadoop.tools.rumen.TaskAttemptInfo -->
  80402. <!-- start class org.apache.hadoop.tools.rumen.TaskAttemptStartedEvent -->
  80403. <class name="TaskAttemptStartedEvent" extends="java.lang.Object"
  80404. abstract="false"
  80405. static="false" final="false" visibility="public"
  80406. deprecated="not deprecated">
  80407. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  80408. <constructor name="TaskAttemptStartedEvent" type="org.apache.hadoop.mapreduce.TaskAttemptID, org.apache.hadoop.mapreduce.TaskType, long, java.lang.String, int"
  80409. static="false" final="false" visibility="public"
  80410. deprecated="not deprecated">
  80411. <doc>
  80412. <![CDATA[Create an event to record the start of an attempt
  80413. @param attemptId Id of the attempt
  80414. @param taskType Type of task
  80415. @param startTime Start time of the attempt
  80416. @param trackerName Name of the Task Tracker where attempt is running
  80417. @param httpPort The port number of the tracker]]>
  80418. </doc>
  80419. </constructor>
  80420. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  80421. abstract="false" native="false" synchronized="false"
  80422. static="false" final="false" visibility="public"
  80423. deprecated="not deprecated">
  80424. <doc>
  80425. <![CDATA[Get the task id]]>
  80426. </doc>
  80427. </method>
  80428. <method name="getTrackerName" return="java.lang.String"
  80429. abstract="false" native="false" synchronized="false"
  80430. static="false" final="false" visibility="public"
  80431. deprecated="not deprecated">
  80432. <doc>
  80433. <![CDATA[Get the tracker name]]>
  80434. </doc>
  80435. </method>
  80436. <method name="getStartTime" return="long"
  80437. abstract="false" native="false" synchronized="false"
  80438. static="false" final="false" visibility="public"
  80439. deprecated="not deprecated">
  80440. <doc>
  80441. <![CDATA[Get the start time]]>
  80442. </doc>
  80443. </method>
  80444. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  80445. abstract="false" native="false" synchronized="false"
  80446. static="false" final="false" visibility="public"
  80447. deprecated="not deprecated">
  80448. <doc>
  80449. <![CDATA[Get the task type]]>
  80450. </doc>
  80451. </method>
  80452. <method name="getHttpPort" return="int"
  80453. abstract="false" native="false" synchronized="false"
  80454. static="false" final="false" visibility="public"
  80455. deprecated="not deprecated">
  80456. <doc>
  80457. <![CDATA[Get the HTTP port]]>
  80458. </doc>
  80459. </method>
  80460. <method name="getTaskAttemptId" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  80461. abstract="false" native="false" synchronized="false"
  80462. static="false" final="false" visibility="public"
  80463. deprecated="not deprecated">
  80464. <doc>
  80465. <![CDATA[Get the attempt id]]>
  80466. </doc>
  80467. </method>
  80468. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  80469. abstract="false" native="false" synchronized="false"
  80470. static="false" final="false" visibility="public"
  80471. deprecated="not deprecated">
  80472. <doc>
  80473. <![CDATA[Get the event type]]>
  80474. </doc>
  80475. </method>
  80476. <doc>
  80477. <![CDATA[Event to record start of a task attempt]]>
  80478. </doc>
  80479. </class>
  80480. <!-- end class org.apache.hadoop.tools.rumen.TaskAttemptStartedEvent -->
  80481. <!-- start class org.apache.hadoop.tools.rumen.TaskAttemptUnsuccessfulCompletionEvent -->
  80482. <class name="TaskAttemptUnsuccessfulCompletionEvent" extends="java.lang.Object"
  80483. abstract="false"
  80484. static="false" final="false" visibility="public"
  80485. deprecated="not deprecated">
  80486. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  80487. <constructor name="TaskAttemptUnsuccessfulCompletionEvent" type="org.apache.hadoop.mapreduce.TaskAttemptID, org.apache.hadoop.mapreduce.TaskType, java.lang.String, long, java.lang.String, java.lang.String"
  80488. static="false" final="false" visibility="public"
  80489. deprecated="not deprecated">
  80490. <doc>
  80491. <![CDATA[Create an event to record the unsuccessful completion of attempts
  80492. @param id Attempt ID
  80493. @param taskType Type of the task
  80494. @param status Status of the attempt
  80495. @param finishTime Finish time of the attempt
  80496. @param hostname Name of the host where the attempt executed
  80497. @param error Error string]]>
  80498. </doc>
  80499. </constructor>
  80500. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  80501. abstract="false" native="false" synchronized="false"
  80502. static="false" final="false" visibility="public"
  80503. deprecated="not deprecated">
  80504. <doc>
  80505. <![CDATA[Get the task id]]>
  80506. </doc>
  80507. </method>
  80508. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  80509. abstract="false" native="false" synchronized="false"
  80510. static="false" final="false" visibility="public"
  80511. deprecated="not deprecated">
  80512. <doc>
  80513. <![CDATA[Get the task type]]>
  80514. </doc>
  80515. </method>
  80516. <method name="getTaskAttemptId" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  80517. abstract="false" native="false" synchronized="false"
  80518. static="false" final="false" visibility="public"
  80519. deprecated="not deprecated">
  80520. <doc>
  80521. <![CDATA[Get the attempt id]]>
  80522. </doc>
  80523. </method>
  80524. <method name="getFinishTime" return="long"
  80525. abstract="false" native="false" synchronized="false"
  80526. static="false" final="false" visibility="public"
  80527. deprecated="not deprecated">
  80528. <doc>
  80529. <![CDATA[Get the finish time]]>
  80530. </doc>
  80531. </method>
  80532. <method name="getHostname" return="java.lang.String"
  80533. abstract="false" native="false" synchronized="false"
  80534. static="false" final="false" visibility="public"
  80535. deprecated="not deprecated">
  80536. <doc>
  80537. <![CDATA[Get the name of the host where the attempt executed]]>
  80538. </doc>
  80539. </method>
  80540. <method name="getError" return="java.lang.String"
  80541. abstract="false" native="false" synchronized="false"
  80542. static="false" final="false" visibility="public"
  80543. deprecated="not deprecated">
  80544. <doc>
  80545. <![CDATA[Get the error string]]>
  80546. </doc>
  80547. </method>
  80548. <method name="getTaskStatus" return="java.lang.String"
  80549. abstract="false" native="false" synchronized="false"
  80550. static="false" final="false" visibility="public"
  80551. deprecated="not deprecated">
  80552. <doc>
  80553. <![CDATA[Get the task status]]>
  80554. </doc>
  80555. </method>
  80556. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  80557. abstract="false" native="false" synchronized="false"
  80558. static="false" final="false" visibility="public"
  80559. deprecated="not deprecated">
  80560. <doc>
  80561. <![CDATA[Get the event type]]>
  80562. </doc>
  80563. </method>
  80564. <doc>
  80565. <![CDATA[Event to record unsuccessful (Killed/Failed) completion of task attempts]]>
  80566. </doc>
  80567. </class>
  80568. <!-- end class org.apache.hadoop.tools.rumen.TaskAttemptUnsuccessfulCompletionEvent -->
  80569. <!-- start class org.apache.hadoop.tools.rumen.TaskFailedEvent -->
  80570. <class name="TaskFailedEvent" extends="java.lang.Object"
  80571. abstract="false"
  80572. static="false" final="false" visibility="public"
  80573. deprecated="not deprecated">
  80574. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  80575. <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"
  80576. static="false" final="false" visibility="public"
  80577. deprecated="not deprecated">
  80578. <doc>
  80579. <![CDATA[Create an event to record task failure
  80580. @param id Task ID
  80581. @param finishTime Finish time of the task
  80582. @param taskType Type of the task
  80583. @param error Error String
  80584. @param status Status
  80585. @param failedDueToAttempt The attempt id due to which the task failed]]>
  80586. </doc>
  80587. </constructor>
  80588. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  80589. abstract="false" native="false" synchronized="false"
  80590. static="false" final="false" visibility="public"
  80591. deprecated="not deprecated">
  80592. <doc>
  80593. <![CDATA[Get the task id]]>
  80594. </doc>
  80595. </method>
  80596. <method name="getError" return="java.lang.String"
  80597. abstract="false" native="false" synchronized="false"
  80598. static="false" final="false" visibility="public"
  80599. deprecated="not deprecated">
  80600. <doc>
  80601. <![CDATA[Get the error string]]>
  80602. </doc>
  80603. </method>
  80604. <method name="getFinishTime" return="long"
  80605. abstract="false" native="false" synchronized="false"
  80606. static="false" final="false" visibility="public"
  80607. deprecated="not deprecated">
  80608. <doc>
  80609. <![CDATA[Get the finish time of the attempt]]>
  80610. </doc>
  80611. </method>
  80612. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  80613. abstract="false" native="false" synchronized="false"
  80614. static="false" final="false" visibility="public"
  80615. deprecated="not deprecated">
  80616. <doc>
  80617. <![CDATA[Get the task type]]>
  80618. </doc>
  80619. </method>
  80620. <method name="getFailedAttemptID" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  80621. abstract="false" native="false" synchronized="false"
  80622. static="false" final="false" visibility="public"
  80623. deprecated="not deprecated">
  80624. <doc>
  80625. <![CDATA[Get the attempt id due to which the task failed]]>
  80626. </doc>
  80627. </method>
  80628. <method name="getTaskStatus" return="java.lang.String"
  80629. abstract="false" native="false" synchronized="false"
  80630. static="false" final="false" visibility="public"
  80631. deprecated="not deprecated">
  80632. <doc>
  80633. <![CDATA[Get the task status]]>
  80634. </doc>
  80635. </method>
  80636. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  80637. abstract="false" native="false" synchronized="false"
  80638. static="false" final="false" visibility="public"
  80639. deprecated="not deprecated">
  80640. <doc>
  80641. <![CDATA[Get the event type]]>
  80642. </doc>
  80643. </method>
  80644. <doc>
  80645. <![CDATA[Event to record the failure of a task]]>
  80646. </doc>
  80647. </class>
  80648. <!-- end class org.apache.hadoop.tools.rumen.TaskFailedEvent -->
  80649. <!-- start class org.apache.hadoop.tools.rumen.TaskFinishedEvent -->
  80650. <class name="TaskFinishedEvent" extends="java.lang.Object"
  80651. abstract="false"
  80652. static="false" final="false" visibility="public"
  80653. deprecated="not deprecated">
  80654. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  80655. <constructor name="TaskFinishedEvent" type="org.apache.hadoop.mapreduce.TaskID, long, org.apache.hadoop.mapreduce.TaskType, java.lang.String, org.apache.hadoop.mapreduce.Counters"
  80656. static="false" final="false" visibility="public"
  80657. deprecated="not deprecated">
  80658. <doc>
  80659. <![CDATA[Create an event to record the successful completion of a task
  80660. @param id Task ID
  80661. @param finishTime Finish time of the task
  80662. @param taskType Type of the task
  80663. @param status Status string
  80664. @param counters Counters for the task]]>
  80665. </doc>
  80666. </constructor>
  80667. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  80668. abstract="false" native="false" synchronized="false"
  80669. static="false" final="false" visibility="public"
  80670. deprecated="not deprecated">
  80671. <doc>
  80672. <![CDATA[Get task id]]>
  80673. </doc>
  80674. </method>
  80675. <method name="getFinishTime" return="long"
  80676. abstract="false" native="false" synchronized="false"
  80677. static="false" final="false" visibility="public"
  80678. deprecated="not deprecated">
  80679. <doc>
  80680. <![CDATA[Get the task finish time]]>
  80681. </doc>
  80682. </method>
  80683. <method name="getCounters" return="org.apache.hadoop.tools.rumen.JhCounters"
  80684. abstract="false" native="false" synchronized="false"
  80685. static="false" final="false" visibility="public"
  80686. deprecated="not deprecated">
  80687. <doc>
  80688. <![CDATA[Get task counters]]>
  80689. </doc>
  80690. </method>
  80691. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  80692. abstract="false" native="false" synchronized="false"
  80693. static="false" final="false" visibility="public"
  80694. deprecated="not deprecated">
  80695. <doc>
  80696. <![CDATA[Get task type]]>
  80697. </doc>
  80698. </method>
  80699. <method name="getTaskStatus" return="java.lang.String"
  80700. abstract="false" native="false" synchronized="false"
  80701. static="false" final="false" visibility="public"
  80702. deprecated="not deprecated">
  80703. <doc>
  80704. <![CDATA[Get task status]]>
  80705. </doc>
  80706. </method>
  80707. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  80708. abstract="false" native="false" synchronized="false"
  80709. static="false" final="false" visibility="public"
  80710. deprecated="not deprecated">
  80711. <doc>
  80712. <![CDATA[Get event type]]>
  80713. </doc>
  80714. </method>
  80715. <doc>
  80716. <![CDATA[Event to record the successful completion of a task]]>
  80717. </doc>
  80718. </class>
  80719. <!-- end class org.apache.hadoop.tools.rumen.TaskFinishedEvent -->
  80720. <!-- start class org.apache.hadoop.tools.rumen.TaskInfo -->
  80721. <class name="TaskInfo" extends="java.lang.Object"
  80722. abstract="false"
  80723. static="false" final="false" visibility="public"
  80724. deprecated="not deprecated">
  80725. <constructor name="TaskInfo" type="long, int, long, int, long"
  80726. static="false" final="false" visibility="public"
  80727. deprecated="not deprecated">
  80728. </constructor>
  80729. <constructor name="TaskInfo" type="long, int, long, int, long, org.apache.hadoop.tools.rumen.ResourceUsageMetrics"
  80730. static="false" final="false" visibility="public"
  80731. deprecated="not deprecated">
  80732. </constructor>
  80733. <method name="getInputBytes" return="long"
  80734. abstract="false" native="false" synchronized="false"
  80735. static="false" final="false" visibility="public"
  80736. deprecated="not deprecated">
  80737. <doc>
  80738. <![CDATA[@return Raw bytes read from the FileSystem into the task. Note that this
  80739. may not always match the input bytes to the task.]]>
  80740. </doc>
  80741. </method>
  80742. <method name="getInputRecords" return="int"
  80743. abstract="false" native="false" synchronized="false"
  80744. static="false" final="false" visibility="public"
  80745. deprecated="not deprecated">
  80746. <doc>
  80747. <![CDATA[@return Number of records input to this task.]]>
  80748. </doc>
  80749. </method>
  80750. <method name="getOutputBytes" return="long"
  80751. abstract="false" native="false" synchronized="false"
  80752. static="false" final="false" visibility="public"
  80753. deprecated="not deprecated">
  80754. <doc>
  80755. <![CDATA[@return Raw bytes written to the destination FileSystem. Note that this may
  80756. not match output bytes.]]>
  80757. </doc>
  80758. </method>
  80759. <method name="getOutputRecords" return="int"
  80760. abstract="false" native="false" synchronized="false"
  80761. static="false" final="false" visibility="public"
  80762. deprecated="not deprecated">
  80763. <doc>
  80764. <![CDATA[@return Number of records output from this task.]]>
  80765. </doc>
  80766. </method>
  80767. <method name="getTaskMemory" return="long"
  80768. abstract="false" native="false" synchronized="false"
  80769. static="false" final="false" visibility="public"
  80770. deprecated="not deprecated">
  80771. <doc>
  80772. <![CDATA[@return Memory used by the task leq the heap size.]]>
  80773. </doc>
  80774. </method>
  80775. <method name="getResourceUsageMetrics" return="org.apache.hadoop.tools.rumen.ResourceUsageMetrics"
  80776. abstract="false" native="false" synchronized="false"
  80777. static="false" final="false" visibility="public"
  80778. deprecated="not deprecated">
  80779. <doc>
  80780. <![CDATA[@return Resource usage metrics]]>
  80781. </doc>
  80782. </method>
  80783. </class>
  80784. <!-- end class org.apache.hadoop.tools.rumen.TaskInfo -->
  80785. <!-- start class org.apache.hadoop.tools.rumen.TaskStartedEvent -->
  80786. <class name="TaskStartedEvent" extends="java.lang.Object"
  80787. abstract="false"
  80788. static="false" final="false" visibility="public"
  80789. deprecated="not deprecated">
  80790. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  80791. <constructor name="TaskStartedEvent" type="org.apache.hadoop.mapreduce.TaskID, long, org.apache.hadoop.mapreduce.TaskType, java.lang.String"
  80792. static="false" final="false" visibility="public"
  80793. deprecated="not deprecated">
  80794. <doc>
  80795. <![CDATA[Create an event to record start of a task
  80796. @param id Task Id
  80797. @param startTime Start time of the task
  80798. @param taskType Type of the task
  80799. @param splitLocations Split locations, applicable for map tasks]]>
  80800. </doc>
  80801. </constructor>
  80802. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  80803. abstract="false" native="false" synchronized="false"
  80804. static="false" final="false" visibility="public"
  80805. deprecated="not deprecated">
  80806. <doc>
  80807. <![CDATA[Get the task id]]>
  80808. </doc>
  80809. </method>
  80810. <method name="getSplitLocations" return="java.lang.String"
  80811. abstract="false" native="false" synchronized="false"
  80812. static="false" final="false" visibility="public"
  80813. deprecated="not deprecated">
  80814. <doc>
  80815. <![CDATA[Get the split locations, applicable for map tasks]]>
  80816. </doc>
  80817. </method>
  80818. <method name="getStartTime" return="long"
  80819. abstract="false" native="false" synchronized="false"
  80820. static="false" final="false" visibility="public"
  80821. deprecated="not deprecated">
  80822. <doc>
  80823. <![CDATA[Get the start time of the task]]>
  80824. </doc>
  80825. </method>
  80826. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  80827. abstract="false" native="false" synchronized="false"
  80828. static="false" final="false" visibility="public"
  80829. deprecated="not deprecated">
  80830. <doc>
  80831. <![CDATA[Get the task type]]>
  80832. </doc>
  80833. </method>
  80834. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  80835. abstract="false" native="false" synchronized="false"
  80836. static="false" final="false" visibility="public"
  80837. deprecated="not deprecated">
  80838. <doc>
  80839. <![CDATA[Get the event type]]>
  80840. </doc>
  80841. </method>
  80842. <doc>
  80843. <![CDATA[Event to record the start of a task]]>
  80844. </doc>
  80845. </class>
  80846. <!-- end class org.apache.hadoop.tools.rumen.TaskStartedEvent -->
  80847. <!-- start class org.apache.hadoop.tools.rumen.TaskUpdatedEvent -->
  80848. <class name="TaskUpdatedEvent" extends="java.lang.Object"
  80849. abstract="false"
  80850. static="false" final="false" visibility="public"
  80851. deprecated="not deprecated">
  80852. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  80853. <constructor name="TaskUpdatedEvent" type="org.apache.hadoop.mapreduce.TaskID, long"
  80854. static="false" final="false" visibility="public"
  80855. deprecated="not deprecated">
  80856. <doc>
  80857. <![CDATA[Create an event to record task updates
  80858. @param id Id of the task
  80859. @param finishTime Finish time of the task]]>
  80860. </doc>
  80861. </constructor>
  80862. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  80863. abstract="false" native="false" synchronized="false"
  80864. static="false" final="false" visibility="public"
  80865. deprecated="not deprecated">
  80866. <doc>
  80867. <![CDATA[Get the task ID]]>
  80868. </doc>
  80869. </method>
  80870. <method name="getFinishTime" return="long"
  80871. abstract="false" native="false" synchronized="false"
  80872. static="false" final="false" visibility="public"
  80873. deprecated="not deprecated">
  80874. <doc>
  80875. <![CDATA[Get the task finish time]]>
  80876. </doc>
  80877. </method>
  80878. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  80879. abstract="false" native="false" synchronized="false"
  80880. static="false" final="false" visibility="public"
  80881. deprecated="not deprecated">
  80882. <doc>
  80883. <![CDATA[Get the event type]]>
  80884. </doc>
  80885. </method>
  80886. <doc>
  80887. <![CDATA[Event to record updates to a task]]>
  80888. </doc>
  80889. </class>
  80890. <!-- end class org.apache.hadoop.tools.rumen.TaskUpdatedEvent -->
  80891. <!-- start class org.apache.hadoop.tools.rumen.TopologyBuilder -->
  80892. <class name="TopologyBuilder" extends="java.lang.Object"
  80893. abstract="false"
  80894. static="false" final="false" visibility="public"
  80895. deprecated="not deprecated">
  80896. <constructor name="TopologyBuilder"
  80897. static="false" final="false" visibility="public"
  80898. deprecated="not deprecated">
  80899. </constructor>
  80900. <method name="process"
  80901. abstract="false" native="false" synchronized="false"
  80902. static="false" final="false" visibility="public"
  80903. deprecated="not deprecated">
  80904. <param name="event" type="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  80905. <doc>
  80906. <![CDATA[Process one {@link HistoryEvent}
  80907. @param event
  80908. The {@link HistoryEvent} to be processed.]]>
  80909. </doc>
  80910. </method>
  80911. <method name="process"
  80912. abstract="false" native="false" synchronized="false"
  80913. static="false" final="false" visibility="public"
  80914. deprecated="not deprecated">
  80915. <param name="conf" type="java.util.Properties"/>
  80916. <doc>
  80917. <![CDATA[Process a collection of JobConf {@link Properties}. We do not restrict it
  80918. to be called once.
  80919. @param conf
  80920. The job conf properties to be added.]]>
  80921. </doc>
  80922. </method>
  80923. <method name="build" return="org.apache.hadoop.tools.rumen.LoggedNetworkTopology"
  80924. abstract="false" native="false" synchronized="false"
  80925. static="false" final="false" visibility="public"
  80926. deprecated="not deprecated">
  80927. <doc>
  80928. <![CDATA[Request the builder to build the final object. Once called, the
  80929. {@link TopologyBuilder} would accept no more events or job-conf properties.
  80930. @return Parsed {@link LoggedNetworkTopology} object.]]>
  80931. </doc>
  80932. </method>
  80933. <doc>
  80934. <![CDATA[Building the cluster topology.]]>
  80935. </doc>
  80936. </class>
  80937. <!-- end class org.apache.hadoop.tools.rumen.TopologyBuilder -->
  80938. <!-- start class org.apache.hadoop.tools.rumen.TraceBuilder -->
  80939. <class name="TraceBuilder" extends="org.apache.hadoop.conf.Configured"
  80940. abstract="false"
  80941. static="false" final="false" visibility="public"
  80942. deprecated="not deprecated">
  80943. <implements name="org.apache.hadoop.util.Tool"/>
  80944. <constructor name="TraceBuilder"
  80945. static="false" final="false" visibility="public"
  80946. deprecated="not deprecated">
  80947. </constructor>
  80948. <method name="main"
  80949. abstract="false" native="false" synchronized="false"
  80950. static="true" final="false" visibility="public"
  80951. deprecated="not deprecated">
  80952. <param name="args" type="java.lang.String[]"/>
  80953. </method>
  80954. <method name="run" return="int"
  80955. abstract="false" native="false" synchronized="false"
  80956. static="false" final="false" visibility="public"
  80957. deprecated="not deprecated">
  80958. <param name="args" type="java.lang.String[]"/>
  80959. <exception name="Exception" type="java.lang.Exception"/>
  80960. </method>
  80961. <doc>
  80962. <![CDATA[The main driver of the Rumen Parser.]]>
  80963. </doc>
  80964. </class>
  80965. <!-- end class org.apache.hadoop.tools.rumen.TraceBuilder -->
  80966. <!-- start class org.apache.hadoop.tools.rumen.TreePath -->
  80967. <class name="TreePath" extends="java.lang.Object"
  80968. abstract="false"
  80969. static="false" final="false" visibility="public"
  80970. deprecated="not deprecated">
  80971. <constructor name="TreePath" type="org.apache.hadoop.tools.rumen.TreePath, java.lang.String"
  80972. static="false" final="false" visibility="public"
  80973. deprecated="not deprecated">
  80974. </constructor>
  80975. <constructor name="TreePath" type="org.apache.hadoop.tools.rumen.TreePath, java.lang.String, int"
  80976. static="false" final="false" visibility="public"
  80977. deprecated="not deprecated">
  80978. </constructor>
  80979. <method name="toString" return="java.lang.String"
  80980. abstract="false" native="false" synchronized="false"
  80981. static="false" final="false" visibility="public"
  80982. deprecated="not deprecated">
  80983. </method>
  80984. <doc>
  80985. <![CDATA[This describes a path from a node to the root. We use it when we compare two
  80986. trees during rumen unit tests. If the trees are not identical, this chain
  80987. will be converted to a string which describes the path from the root to the
  80988. fields that did not compare.]]>
  80989. </doc>
  80990. </class>
  80991. <!-- end class org.apache.hadoop.tools.rumen.TreePath -->
  80992. <!-- start class org.apache.hadoop.tools.rumen.ZombieCluster -->
  80993. <class name="ZombieCluster" extends="org.apache.hadoop.tools.rumen.AbstractClusterStory"
  80994. abstract="false"
  80995. static="false" final="false" visibility="public"
  80996. deprecated="not deprecated">
  80997. <constructor name="ZombieCluster" type="org.apache.hadoop.tools.rumen.LoggedNetworkTopology, org.apache.hadoop.tools.rumen.MachineNode"
  80998. static="false" final="false" visibility="public"
  80999. deprecated="not deprecated">
  81000. <doc>
  81001. <![CDATA[Construct a homogeneous cluster. We assume that the leaves on the topology
  81002. are {@link MachineNode}s, and the parents of {@link MachineNode}s are
  81003. {@link RackNode}s. We also expect all leaf nodes are on the same level.
  81004. @param topology
  81005. The network topology.
  81006. @param defaultNode
  81007. The default node setting.]]>
  81008. </doc>
  81009. </constructor>
  81010. <constructor name="ZombieCluster" type="org.apache.hadoop.fs.Path, org.apache.hadoop.tools.rumen.MachineNode, org.apache.hadoop.conf.Configuration"
  81011. static="false" final="false" visibility="public"
  81012. deprecated="not deprecated">
  81013. <exception name="IOException" type="java.io.IOException"/>
  81014. <doc>
  81015. <![CDATA[Construct a homogeneous cluster. We assume that the leaves on the topology
  81016. are {@link MachineNode}s, and the parents of {@link MachineNode}s are
  81017. {@link RackNode}s. We also expect all leaf nodes are on the same level.
  81018. @param path Path to the JSON-encoded topology file.
  81019. @param conf
  81020. @param defaultNode
  81021. The default node setting.
  81022. @throws IOException]]>
  81023. </doc>
  81024. </constructor>
  81025. <constructor name="ZombieCluster" type="java.io.InputStream, org.apache.hadoop.tools.rumen.MachineNode"
  81026. static="false" final="false" visibility="public"
  81027. deprecated="not deprecated">
  81028. <exception name="IOException" type="java.io.IOException"/>
  81029. <doc>
  81030. <![CDATA[Construct a homogeneous cluster. We assume that the leaves on the topology
  81031. are {@link MachineNode}s, and the parents of {@link MachineNode}s are
  81032. {@link RackNode}s. We also expect all leaf nodes are on the same level.
  81033. @param input The input stream for the JSON-encoded topology file.
  81034. @param defaultNode
  81035. The default node setting.
  81036. @throws IOException]]>
  81037. </doc>
  81038. </constructor>
  81039. <method name="getClusterTopology" return="org.apache.hadoop.tools.rumen.Node"
  81040. abstract="false" native="false" synchronized="false"
  81041. static="false" final="false" visibility="public"
  81042. deprecated="not deprecated">
  81043. </method>
  81044. <doc>
  81045. <![CDATA[{@link ZombieCluster} rebuilds the cluster topology using the information
  81046. obtained from job history logs.]]>
  81047. </doc>
  81048. </class>
  81049. <!-- end class org.apache.hadoop.tools.rumen.ZombieCluster -->
  81050. <!-- start class org.apache.hadoop.tools.rumen.ZombieJob -->
  81051. <class name="ZombieJob" extends="java.lang.Object"
  81052. abstract="false"
  81053. static="false" final="false" visibility="public"
  81054. deprecated="not deprecated">
  81055. <implements name="org.apache.hadoop.tools.rumen.JobStory"/>
  81056. <constructor name="ZombieJob" type="org.apache.hadoop.tools.rumen.LoggedJob, org.apache.hadoop.tools.rumen.ClusterStory, long"
  81057. static="false" final="false" visibility="public"
  81058. deprecated="not deprecated">
  81059. <doc>
  81060. <![CDATA[This constructor creates a {@link ZombieJob} with the same semantics as the
  81061. {@link LoggedJob} passed in this parameter
  81062. @param job
  81063. The dead job this ZombieJob instance is based on.
  81064. @param cluster
  81065. The cluster topology where the dead job ran on. This argument can
  81066. be null if we do not have knowledge of the cluster topology.
  81067. @param seed
  81068. Seed for the random number generator for filling in information
  81069. not available from the ZombieJob.]]>
  81070. </doc>
  81071. </constructor>
  81072. <constructor name="ZombieJob" type="org.apache.hadoop.tools.rumen.LoggedJob, org.apache.hadoop.tools.rumen.ClusterStory"
  81073. static="false" final="false" visibility="public"
  81074. deprecated="not deprecated">
  81075. <doc>
  81076. <![CDATA[This constructor creates a {@link ZombieJob} with the same semantics as the
  81077. {@link LoggedJob} passed in this parameter
  81078. @param job
  81079. The dead job this ZombieJob instance is based on.
  81080. @param cluster
  81081. The cluster topology where the dead job ran on. This argument can
  81082. be null if we do not have knowledge of the cluster topology.]]>
  81083. </doc>
  81084. </constructor>
  81085. <method name="getJobConf" return="org.apache.hadoop.mapred.JobConf"
  81086. abstract="false" native="false" synchronized="true"
  81087. static="false" final="false" visibility="public"
  81088. deprecated="not deprecated">
  81089. </method>
  81090. <method name="getInputSplits" return="org.apache.hadoop.mapreduce.InputSplit[]"
  81091. abstract="false" native="false" synchronized="false"
  81092. static="false" final="false" visibility="public"
  81093. deprecated="not deprecated">
  81094. </method>
  81095. <method name="getName" return="java.lang.String"
  81096. abstract="false" native="false" synchronized="false"
  81097. static="false" final="false" visibility="public"
  81098. deprecated="not deprecated">
  81099. </method>
  81100. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  81101. abstract="false" native="false" synchronized="false"
  81102. static="false" final="false" visibility="public"
  81103. deprecated="not deprecated">
  81104. </method>
  81105. <method name="getNumberMaps" return="int"
  81106. abstract="false" native="false" synchronized="false"
  81107. static="false" final="false" visibility="public"
  81108. deprecated="not deprecated">
  81109. </method>
  81110. <method name="getNumberReduces" return="int"
  81111. abstract="false" native="false" synchronized="false"
  81112. static="false" final="false" visibility="public"
  81113. deprecated="not deprecated">
  81114. </method>
  81115. <method name="getOutcome" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  81116. abstract="false" native="false" synchronized="false"
  81117. static="false" final="false" visibility="public"
  81118. deprecated="not deprecated">
  81119. </method>
  81120. <method name="getSubmissionTime" return="long"
  81121. abstract="false" native="false" synchronized="false"
  81122. static="false" final="false" visibility="public"
  81123. deprecated="not deprecated">
  81124. </method>
  81125. <method name="getQueueName" return="java.lang.String"
  81126. abstract="false" native="false" synchronized="false"
  81127. static="false" final="false" visibility="public"
  81128. deprecated="not deprecated">
  81129. </method>
  81130. <method name="getNumLoggedMaps" return="int"
  81131. abstract="false" native="false" synchronized="false"
  81132. static="false" final="false" visibility="public"
  81133. deprecated="not deprecated">
  81134. <doc>
  81135. <![CDATA[Getting the number of map tasks that are actually logged in the trace.
  81136. @return The number of map tasks that are actually logged in the trace.]]>
  81137. </doc>
  81138. </method>
  81139. <method name="getNumLoggedReduces" return="int"
  81140. abstract="false" native="false" synchronized="false"
  81141. static="false" final="false" visibility="public"
  81142. deprecated="not deprecated">
  81143. <doc>
  81144. <![CDATA[Getting the number of reduce tasks that are actually logged in the trace.
  81145. @return The number of map tasks that are actually logged in the trace.]]>
  81146. </doc>
  81147. </method>
  81148. <method name="getUser" return="java.lang.String"
  81149. abstract="false" native="false" synchronized="false"
  81150. static="false" final="false" visibility="public"
  81151. deprecated="not deprecated">
  81152. </method>
  81153. <method name="getLoggedJob" return="org.apache.hadoop.tools.rumen.LoggedJob"
  81154. abstract="false" native="false" synchronized="false"
  81155. static="false" final="false" visibility="public"
  81156. deprecated="not deprecated">
  81157. <doc>
  81158. <![CDATA[Get the underlining {@link LoggedJob} object read directly from the trace.
  81159. This is mainly for debugging.
  81160. @return the underlining {@link LoggedJob} object]]>
  81161. </doc>
  81162. </method>
  81163. <method name="getTaskAttemptInfo" return="org.apache.hadoop.tools.rumen.TaskAttemptInfo"
  81164. abstract="false" native="false" synchronized="false"
  81165. static="false" final="false" visibility="public"
  81166. deprecated="not deprecated">
  81167. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  81168. <param name="taskNumber" type="int"/>
  81169. <param name="taskAttemptNumber" type="int"/>
  81170. <doc>
  81171. <![CDATA[Get a {@link TaskAttemptInfo} with a {@link TaskAttemptID} associated with
  81172. taskType, taskNumber, and taskAttemptNumber. This function does not care
  81173. about locality, and follows the following decision logic: 1. Make up a
  81174. {@link TaskAttemptInfo} if the task attempt is missing in trace, 2. Make up
  81175. a {@link TaskAttemptInfo} if the task attempt has a KILLED final status in
  81176. trace, 3. Otherwise (final state is SUCCEEDED or FAILED), construct the
  81177. {@link TaskAttemptInfo} from the trace.]]>
  81178. </doc>
  81179. </method>
  81180. <method name="getTaskInfo" return="org.apache.hadoop.tools.rumen.TaskInfo"
  81181. abstract="false" native="false" synchronized="false"
  81182. static="false" final="false" visibility="public"
  81183. deprecated="not deprecated">
  81184. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  81185. <param name="taskNumber" type="int"/>
  81186. </method>
  81187. <method name="getMapTaskAttemptInfoAdjusted" return="org.apache.hadoop.tools.rumen.TaskAttemptInfo"
  81188. abstract="false" native="false" synchronized="false"
  81189. static="false" final="false" visibility="public"
  81190. deprecated="not deprecated">
  81191. <param name="taskNumber" type="int"/>
  81192. <param name="taskAttemptNumber" type="int"/>
  81193. <param name="locality" type="int"/>
  81194. <doc>
  81195. <![CDATA[Get a {@link TaskAttemptInfo} with a {@link TaskAttemptID} associated with
  81196. taskType, taskNumber, and taskAttemptNumber. This function considers
  81197. locality, and follows the following decision logic: 1. Make up a
  81198. {@link TaskAttemptInfo} if the task attempt is missing in trace, 2. Make up
  81199. a {@link TaskAttemptInfo} if the task attempt has a KILLED final status in
  81200. trace, 3. If final state is FAILED, construct a {@link TaskAttemptInfo}
  81201. from the trace, without considering locality. 4. If final state is
  81202. SUCCEEDED, construct a {@link TaskAttemptInfo} from the trace, with runtime
  81203. scaled according to locality in simulation and locality in trace.]]>
  81204. </doc>
  81205. </method>
  81206. <doc>
  81207. <![CDATA[{@link ZombieJob} is a layer above {@link LoggedJob} raw JSON objects.
  81208. Each {@link ZombieJob} object represents a job in job history. For everything
  81209. that exists in job history, contents are returned unchanged faithfully. To
  81210. get input splits of a non-exist task, a non-exist task attempt, or an
  81211. ill-formed task attempt, proper objects are made up from statistical
  81212. sketches.]]>
  81213. </doc>
  81214. </class>
  81215. <!-- end class org.apache.hadoop.tools.rumen.ZombieJob -->
  81216. <!-- start class org.apache.hadoop.tools.rumen.ZombieJobProducer -->
  81217. <class name="ZombieJobProducer" extends="java.lang.Object"
  81218. abstract="false"
  81219. static="false" final="false" visibility="public"
  81220. deprecated="not deprecated">
  81221. <implements name="org.apache.hadoop.tools.rumen.JobStoryProducer"/>
  81222. <constructor name="ZombieJobProducer" type="org.apache.hadoop.fs.Path, org.apache.hadoop.tools.rumen.ZombieCluster, org.apache.hadoop.conf.Configuration"
  81223. static="false" final="false" visibility="public"
  81224. deprecated="not deprecated">
  81225. <exception name="IOException" type="java.io.IOException"/>
  81226. <doc>
  81227. <![CDATA[Constructor
  81228. @param path
  81229. Path to the JSON trace file, possibly compressed.
  81230. @param cluster
  81231. The topology of the cluster that corresponds to the jobs in the
  81232. trace. The argument can be null if we do not have knowledge of the
  81233. cluster topology.
  81234. @param conf
  81235. @throws IOException]]>
  81236. </doc>
  81237. </constructor>
  81238. <constructor name="ZombieJobProducer" type="org.apache.hadoop.fs.Path, org.apache.hadoop.tools.rumen.ZombieCluster, org.apache.hadoop.conf.Configuration, long"
  81239. static="false" final="false" visibility="public"
  81240. deprecated="not deprecated">
  81241. <exception name="IOException" type="java.io.IOException"/>
  81242. <doc>
  81243. <![CDATA[Constructor
  81244. @param path
  81245. Path to the JSON trace file, possibly compressed.
  81246. @param cluster
  81247. The topology of the cluster that corresponds to the jobs in the
  81248. trace. The argument can be null if we do not have knowledge of the
  81249. cluster topology.
  81250. @param conf
  81251. @param randomSeed
  81252. use a deterministic seed.
  81253. @throws IOException]]>
  81254. </doc>
  81255. </constructor>
  81256. <constructor name="ZombieJobProducer" type="java.io.InputStream, org.apache.hadoop.tools.rumen.ZombieCluster"
  81257. static="false" final="false" visibility="public"
  81258. deprecated="not deprecated">
  81259. <exception name="IOException" type="java.io.IOException"/>
  81260. <doc>
  81261. <![CDATA[Constructor
  81262. @param input
  81263. The input stream for the JSON trace.
  81264. @param cluster
  81265. The topology of the cluster that corresponds to the jobs in the
  81266. trace. The argument can be null if we do not have knowledge of the
  81267. cluster topology.
  81268. @throws IOException]]>
  81269. </doc>
  81270. </constructor>
  81271. <constructor name="ZombieJobProducer" type="java.io.InputStream, org.apache.hadoop.tools.rumen.ZombieCluster, long"
  81272. static="false" final="false" visibility="public"
  81273. deprecated="not deprecated">
  81274. <exception name="IOException" type="java.io.IOException"/>
  81275. <doc>
  81276. <![CDATA[Constructor
  81277. @param input
  81278. The input stream for the JSON trace.
  81279. @param cluster
  81280. The topology of the cluster that corresponds to the jobs in the
  81281. trace. The argument can be null if we do not have knowledge of the
  81282. cluster topology.
  81283. @param randomSeed
  81284. use a deterministic seed.
  81285. @throws IOException]]>
  81286. </doc>
  81287. </constructor>
  81288. <method name="getNextJob" return="org.apache.hadoop.tools.rumen.ZombieJob"
  81289. abstract="false" native="false" synchronized="false"
  81290. static="false" final="false" visibility="public"
  81291. deprecated="not deprecated">
  81292. <exception name="IOException" type="java.io.IOException"/>
  81293. </method>
  81294. <method name="close"
  81295. abstract="false" native="false" synchronized="false"
  81296. static="false" final="false" visibility="public"
  81297. deprecated="not deprecated">
  81298. <exception name="IOException" type="java.io.IOException"/>
  81299. </method>
  81300. <doc>
  81301. <![CDATA[Producing {@link JobStory}s from job trace.]]>
  81302. </doc>
  81303. </class>
  81304. <!-- end class org.apache.hadoop.tools.rumen.ZombieJobProducer -->
  81305. </package>
  81306. </api>